Questions tagged as 'java'

2
answers

Repeating code at the time of listing

I have a repetition problem at the time of listing, in my view it repeats R01 and R01, twice the same code and only after it correctly follows R02, RO3 and so on. The correct one would be R01, R02, R03 and so on. Thanks. public void reorgani...
asked by 10.08.2015 / 20:34
1
answer

SpringBoot and Angularjs Routes

I'm trying to put a friendly url to get the '#' from the angle of the url, I followed the following tutorial: # / spring-boot-as-a-backend-for-angularjs / and it worked fine on the static url. But if I do this .state('site3.evento', {//a...
asked by 07.08.2015 / 18:25
1
answer

Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError

I'm having this error here: run: Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:222) at java.awt.Win...
asked by 09.07.2015 / 02:59
1
answer

SUM and MAX function in Hibernate

Hello I have the following scenario, I have a hibernate criter where I get the highest value from a column when I pass a branch code as a parameter. Example: There are only two branches if the code is 1 is a value, if 2 is another value that...
asked by 15.07.2015 / 02:46
2
answers

Convert Spring XML declaration to Java code

Can anyone help me convert the Spring XML code that is just below a Java code? <bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine"> <property name="templateResolver" ref="templateResolver" /> <pr...
asked by 15.07.2015 / 16:01
2
answers

How to isolate gravity on the accelerometer

I'm developing an app where the user needs to shake the phone in all directions and the smartphone needs to maintain steady guidance in the meantime. The problem is that all forms of spatial orientation such as TYPE_ROTATION_VECTOR , TY...
asked by 02.10.2014 / 05:25
1
answer

WebView on Android by modifying HTML

I'm able to load the URL on my device using WebView , but the page you're uploading is not mobile-friendly. I would like to know if I have access to the page, however, by deleting some parts of HTML. Code below: MainActivity.java: public c...
asked by 02.11.2014 / 21:33
1
answer

Multi Processing / Multithread is not working

I want to try to solve the problem of when the client can not connect to the server (connection failure, server down, etc.). In my main class is the connection to the server and I want that in case of giving error caught by try ... catch(C...
asked by 04.11.2014 / 12:11
2
answers

SelectOneMenu is not fed

I have p:selectOneMenu and would like it to be fed with data in the database as soon as the page loads: page.xhtml <p:selectOneMenu id="carros"> <f:selectItem itemLabel="Carros" itemValue="0"/> <f:selectItems v...
asked by 30.11.2014 / 22:11
2
answers

Failed to acquire data source with JPA and EclipseLink

When I put it to persistence.xml , using a JNDI resource configured in Glassfish itself does not give an error. But when it is to get from file glassfish-resource.xml it gives the following error:    Information: [EL Info]: 2014-...
asked by 09.07.2014 / 17:50