Questions tagged as 'java'

0
answers

OnResume method is undoing the SharedPreferences of a CheckBox

It turns out that I want to leave the CheckBox saved according to whether the user checks it or not. So I called a method to check the internet if CheckBox is checked, and then CheckBox was mentioned in onResume to be checked updated mai...
asked by 23.07.2016 / 22:06
1
answer

Error 500 (Internal Server Error), how much do I try to create a session

I'm trying to create a session for a login using Java, vRaptor, Hibernate, AngularJS. But when the session is going to be created I get this exception ( 500 (Internal Server Error )). This is my session class using vRaptor: @SessionSc...
asked by 06.07.2016 / 14:31
1
answer

Creating Thread dynamically with Spring-boot

Good morning, Is it possible to make spring-boot create thread when needed and also kill it?     
asked by 12.07.2016 / 20:33
1
answer

Error executing .jar in Windows PowerShell with Maven

Good afternoon everyone. I'm trying to run this tool (CPA - link ). Through the link available, I download the classes. After that, I run Maven, which generates a .jar. The configuration file (pom.xml) used in Maven is this: link After...
asked by 13.07.2016 / 17:27
1
answer

Syntax error on token "123", invalid VariableDeclaratorId

I'm having an error in the class R.java     
asked by 13.07.2016 / 15:56
1
answer

What is the error in the last row of UPDATE usage in the MySQL language?

I developed a final project without error, done in Java, but I still only have a UPDATE error in the last line of the database creation clientes of the database in the MySQL language. I am asking to update the data. public void a...
asked by 20.06.2016 / 18:16
1
answer

Crud with webservices REST simple java. Problems with class customer jersey

I have this class but it is giving many errors I do not know what I do today that I try to solve. What do I do? package manager.client; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Invo...
asked by 15.07.2016 / 20:07
1
answer

Serial port connection balances using JSSC

I communicate with a scale via a serial port, and today I use the JSSC library, however the hour scale returns are of the weight and time are different characters, searching I came to the conclusion that it can some configuration inform...
asked by 24.06.2016 / 16:30
0
answers

Problem with Selenium Dependencies

I have a problem with selenium with Java, I have developed a code that goes to a website and searches for it. It is giving this error: Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE at org.apache.http.conn.ssl.SSLConnectionSo...
asked by 23.06.2016 / 21:04
1
answer

ImageView appears in only one-fourth of the screen

I have the following function in my android app: public void createBall() { layout = new RelativeLayout(this); // Random choose color of ball int[] color={R.drawable.vermelho, R.drawable.azul, R.drawable.amarelo, R.drawable.verd...
asked by 14.06.2016 / 17:49