Posts by romarcio • 363 points
23 posts
-
0
votes1
answer100
viewsA: Float with Spring null value
From what you described, I have the impression that you have in your class an attribute of the kind float, i.e., a primitive type. In this case, you must be having an exception of type…
-
0
votes1
answer38
viewsA: Doubts - JSP - Servlets
The operations for Insert and update are of type POST in your forms. Therefore, the method in Servlet that should receive them is the doPost() and not the doGet(). Just change the method that should…
-
0
votes2
answers189
viewsA: I cannot connect jsp page to Oracle bank
According to the exception you posted java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver the application is not finding the Oracle jdbc driver. You can download it from this page:…
-
1
votes3
answers514
viewsA: Error persisting data in JPA
Under the exception that you posted the error is Constraint violation Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'pessoa_id' cannot be null Are you…
-
1
votes1
answer54
views -
2
votes2
answers646
viewsA: What is wrong with my Thread ultilizando Synchronized - Java
You have created an instant sync, since your method imprimirValores() It’s a method of instantiation. Thus, synchronization will work only for objects or methods of that instance that is accessing…
-
0
votes2
answers2116
viewsA: Tomcat V8.5 not booting, error: Child container failed During start
Do the following, let Maven manage the project and not eclipse it. To do this, add the following configuration in pom.xml <build> <plugins> <plugin>…
-
0
votes1
answer307
viewsA: Problem with Firebird Hibernate bank connection
According to the Hibernate documentation is highly discouraging use the property below, which was used in until version 2.x. I would take it out to do some tests. <property…
-
0
votes1
answer129
viewsA: Doubt JPA 2.1 and Hibernate 5.2
Yes, you don’t need Hibernate to use JPA, but you will need another ORM framework similar to Hibernate like Eclipselink, Toplink, etc. The framework is the implementation of the JPA specification,…
-
0
votes1
answer691
viewsA: Thymeleaf does not display date in HTML5 component
I found the problem. I had created a Formatter class to format the date and it seems that was the problem. When creating this class I removed the annotation @DateTimeFormat of the attribute of…
-
0
votes1
answer691
viewsQ: Thymeleaf does not display date in HTML5 component
Hello! I’m starting to study Hymeleaf with Spring MVC and I came across a problem that I can’t solve. I have a date field with the component type="date" HTML5 in a form, which works 100% when…
-
1
votes1
answer379
viewsA: Date field not saved in Spring and Angular database
Add the Spring @Datetimeformat annotation on the date fields. This annotation will convert the value of the date that comes as a form text to a java.util.Date object. Example: @DateTimeFormat(iso =…
-
1
votes1
answer90
viewsA: Convert a sql to_date to a java date
The problem is that this format 'DD/MM/YYYY HH24:MI:SS' is not compatible with Simpledateformat, it has to be one. For example: 'dd/MM/yyyy HH:mm:ss' > 01/05/2014 23:10:55 'dd/MM/yyyy hh:mm:ss'…
-
1
votes1
answer426
viewsA: Value '0000-00-00' can not be represented as java.sql.Date
Hello, this exception occurs because you are apparently trying to insert a date with zeros. And there is no date with zeros, so the error. Do the following, in your url add the property…
-
0
votes2
answers207
viewsA: Login comparing user input to encrypted data in Mysql
From what I noticed, you are using the Select password value entered in the login form. To test with the database, you need to test the encrypted password. So, you need to encrypt the recovered form…
-
1
votes1
answer1053
viewsA: What are/do these dependencies?
These dependencies are nothing less than external libraries that the application will use. For example, it seems that this application uses Spring Boot. Thus, it was necessary to add to the project…
-
2
votes1
answer513
viewsA: Problem trying to request HTTP in Java
Probably the exception is due to missing parts of your declared URL. Change: URL url = new URL("localhost/CWS/cadastrar_guia.php"); For: URL url = new URL("http://localhost/CWS/cadastrar_guia.php");…
-
0
votes1
answer274
viewsA: How to integrate CDI-Unit with Jersey Test Framework?
I couldn’t solve the problem with the CDI-Unit, but I was able to run the tests I wanted as follows. I extended Jersey in the test class and then needed to configure an Abstractbuilder to bind among…
-
0
votes1
answer274
viewsQ: How to integrate CDI-Unit with Jersey Test Framework?
Hello. I am working on a Ws Rest with CDI and Jersey. I want to create a test unit with Junit and due to CDI ended up using the CDI-Unit Runner. I found CDI-Unit simpler than Weldjunit4runner. Now,…
-
1
votes1
answer181
viewsA: Jasper Studio with Hibernate Session
Finally I managed to fix it. What happens is this, bug in Jasper Studio. I was using version 6.2.2 and with it there was no way to make it work. So I installed version 6.3.0 of Jasper Studio and it…
-
1
votes2
answers4196
viewsA: Get list of objects with JPA and Hibernate
Two things I noticed: 1° - change the persistence.xml to the file you are using for this: <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> The package ejb Provider is…
-
1
votes1
answer181
viewsQ: Jasper Studio with Hibernate Session
I’m trying to add a connection in Jasper Studio via the option "Hibernate Session" I added the . Hibernate jars, the Mysql Driver and I’ve uploaded the Hibernate.cfg.xml file, but still, I always…
-
1
votes1
answer361
viewsQ: Spring-Data JPA and Audit updated by @Modifying
It is possible to audit an update operation with Spring-Data Auditing using the update via annotations @Query and @Modifying instead of using the method save()?…