Questions tagged as 'java'

0
answers

org.hibernate.exception.JDBCConnectionException: Could not open connection

I'm having trouble losing connection to the MySQL database, which occurs after a few minutes of use. Please, could anyone help me? I have no idea what it can be. Here are my codes: hibernate.cfg.xml <property name="hibernate.conn...
asked by 18.05.2018 / 22:17
0
answers

accessing SQLite database created by ROOM in Android Studio

I'm using the new android.arch components for persistence with the room , but I could not access the database created in    data \ data \ path \ databases It creates 3 files:    base    base-shm    base-wal    But none...
asked by 19.05.2018 / 05:49
1
answer

Filter in Java and working with Servlets

Good afternoon guys, I'm going through a really annoying problem, it must be a little detail to solve the problem and I'm lost in how to get this information that I lack. Well, enough of crying and following the problem report: I'm creatin...
asked by 18.05.2018 / 22:32
1
answer

Socket in Java that sends and receives

I'm doing a college project and I'm using an ESP8266 microcontroller. At first, I wanted to create a SocketServer and a SocketClient in Java, that were able to both receive messages and send each other, no need to have a multithreaded connection...
asked by 19.05.2018 / 13:33
0
answers

Project in JSF 2.3 with delay in the initial connection

I'm making a system using Java1.8, JSF 2.3, hibernate 5.4.x and Tomcat 9, with standard MVC and entitymanager. The problem is that to save the first object on a form, it takes about 3 to 5 seconds. Then everything is normal. I think it's the...
asked by 12.05.2018 / 00:03
0
answers

accumulate a value for each for () before adding to the array

I have a List that contains objects of the type of ProductBuy. My question is the following, I need to go through the ArrayList of this class and generate a new array with the total payable per vendor report, that is, I have to keep the vendo...
asked by 18.05.2018 / 18:32
0
answers

How to implement a TAD queue with complex objects?

I need to implement a data structure queue, with objects, being RA and student name but I am not able to evolve, a single row with integers I get good, this is not going to happen. I think I'm picking up is in the main, I'm not sure how to ca...
asked by 12.05.2018 / 17:12
0
answers

I'm trying to update a database field, through the adapter. How I do?

... public void concluirAtividade(Atividade atividade){ ContentValues contentValues = new ContentValues(); contentValues.put("SITUACAO", atividade.situacao); String[] parametros = new String[1]; parametros[0]...
asked by 11.05.2018 / 01:45
0
answers

Problem with mins js with maven

I'm trying to minify my js code by maven, but when I run the code it gives the error in my variable declarations that have the let. (ex: let myVariable="test").     
asked by 10.05.2018 / 15:35
1
answer

Tomcat - RFC 7230 and RFC 3986

I have a problem with: Error parsing HTTP request header My apache tomcat 8 server is rejecting the requests of a system which I did an integration, the error is by the character account that is in the request, was taking a look and I saw that t...
asked by 10.05.2018 / 15:43