Questions tagged as 'java-ee'

1
answer

Reason for process delay and hibernate configuration (persistence)

I'm building a WS server with Java, and I'm seeing some problems, such as login via POSTMAN, it's taking between 6000 and 7500 ms to respond, which it actually does, is around 50 ms. After you can configure log4, most of the delay is in: or...
asked by 31.01.2018 / 17:34
1
answer

Error generating a JSON object

I'm trying to create this object: { "schema": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User" ], "endereco": "Rua 0"...
asked by 21.11.2017 / 17:15
1
answer

Database result in inputText

I'm developing a web application in JSP and would like to get the maximum code of the products registered in the database and put in the text field. <input type="text" name="codigo" id="codigo"/> But I can not. Here's my JSP:...
asked by 25.10.2017 / 02:21
2
answers

java.lang.NullPointerException JSP Servlet

I'm developing a web application using jsp and servlet and I want to show all my records from my database and the amount of records in a table, I created a DAO where I performed queries where they returned the data correctly and put a session in...
asked by 14.09.2017 / 06:31
1
answer

Tables not being generated - Hibernate

I have 2 tables in my software that are not being generated correctly. SQL is generated, but when verifying in MySQL, not the meetings. If I change the tag to: <property name="hibernate.hbm2ddl.auto" value="validate"/> or <...
asked by 05.09.2017 / 14:16
1
answer

Javax, @DefaultValues, @PrePersistent, @PreUpdate

I'm learning to tinker with Javax, and Java persistence and want to know if there's any way to leave a default value for the database. Example in SQL: variacao TIMESTAMP DEFAULT CURRENT_TIMESTAMP How would I do this in my Model code? @...
asked by 01.09.2017 / 22:16
1
answer

Problem with JSF

I have a screen and would like each product added, could choose a quantity and then calculate that quantity by multiplying by the value of the product. However, I have no idea how to do this, because every time I add a new product the quantity i...
asked by 04.01.2017 / 19:20
1
answer

Error. WARN: WELD-000335: Conversation context is already active

I'm having the following error in the output of my Glassfish 4.1 server:    WARN: WELD-000335: Conversation context is already active, most   it was not cleaned up properly during previous request   processing: org.apache.catalina.connector.R...
asked by 04.09.2016 / 06:09
1
answer

How to configure JBoss AS 7.1 with Demoiselle 2.4.1 to operate with distributed transactions?

Hello My scenario: JSF / Demoiselle application that invokes an EJB method, both hosted on a JBoss AS 7.1.1 server. During insert and update operations on a CRUD page, the Demoiselle application has to save its data in its own DataSource and...
asked by 06.07.2016 / 14:32
1
answer

JPA / Hibernate - LazyLoading OneToMany duplicating records

Well, I have the following structure: public class FinCxaTransacaoGrupo { @Id @GeneratedValue(generator="gen-uuid") @GenericGenerator(name="gen-uuid", strategy = "uuid2") @Type(type="pg-uuid") @Column(name="id_fin_cxa_tran...
asked by 01.07.2016 / 20:02