Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
38 views

Jakarta EE 8 JTA transaction aborded after 2 minutes

I'm developping with Apach Netbeans 16 and Glassfish 6.2.5 and everytime when I have a transaction that take more thant 2 minutes, the transaction is aborded with this error : A system exception ...
Chatis's user avatar
  • 55
0 votes
0 answers
81 views

eclipse 2023-09 for EE unable to set JPA and EJB Facet version

I started a ejb project and want to use Persistence 3.1 and Enterprise Beans 4.0. Maven loaded the jars, I added the maven dependancies to the libraries, but I'm still unable to select something ...
Thomas P's user avatar
  • 121
0 votes
0 answers
119 views

DAO is null despite @EJB annotation

This is my first Java EE app with JPA Hibernate DAO & EJB. I'm stuck on a problem where despite injecting my Dao is null. I searched a lot about this problem but everything not worked. Maybe ...
Milena Milena's user avatar
0 votes
0 answers
31 views

How do i getAlll While using join between 2 tables

RESTEASY008205: JSON Binding serialization error jakarta.json.bind.JsonbException: Unable to serialize property 'coveredRegions' from shop.ShippingCompany error because ShippingCompany tableis joined ...
Modi Samir's user avatar
1 vote
2 answers
361 views

TransactionAttributeType.NOT_SUPPORTED method spends transaction time of the suspended transaction

I have a method that does heavy operations (file handling) that does not need a transaction but is inside one and generates timeouts. I don't have the option to refactor the code or to raise the ...
oscar's user avatar
  • 1,716
2 votes
0 answers
499 views

WFLYEJB0406: No Jakarta Enterprise Beans found with interface of type

Can you help me please? I'm deploying a simple application on windfly 27.0.1. First, I have an interface called IGenericDAO: package br.com.lucasatolini.dao; import br.com.lucasatolini.domain....
Lucas Atolini's user avatar
-1 votes
1 answer
43 views

Stateless Session Bean using Container Managed EntityManger in Asynchronous method generates constraint violation Excetion in DB

I have a NO Interface View bean (Stateless) which has an asyncronous method. This method is performing persistence access via a Container Managed EntityManager. Unfortunately, it generates Constraint ...
André's user avatar
  • 172
0 votes
1 answer
156 views

EntityManager injected only once if declared into two different EJBs

I am on Weblogic 12c + JPA/Hibernate + EJB 3. I wish to simplify my class model as follow: public abstract class AbstractEJBBean { @PersistenceContext(unitName = "myPU") private ...
Antonio Petricca's user avatar
0 votes
1 answer
987 views

How to set date parameter in the native query

I have created a query like this. String date = "01/01/2021"; String date2 = "01/05/2021" Query query = em.createNativeQuery("select * .... From .... Date between ? And ?&...
Ahmed Camara's user avatar
0 votes
0 answers
124 views

How to handle EntityNotFoundException during Hibernate query?

I'm working on an application where we need to query for a collection of entities using hibernate and then perform some indexing on the results. Unfortunately, the database the application is querying ...
pbuchheit's user avatar
  • 1,665
2 votes
2 answers
562 views

How to delete records in JPA with greater than condition?

I want to delete the records from a PGSQL database table(ContainerTypeRule) whose id(rule_id) is greater than 10000. I am creating a query in JPA like as follows public void deleteAllTestRules(long ...
Vishal codeshark's user avatar
0 votes
0 answers
543 views

Hibernate does not insert the information into the database

I'm trying to sort of login with JPA and hibernate. The truth is that I'm new to working with hibernate and I don't know what I'm doing wrong. I have two entity classes (User and Credential), and I ...
Jairo Flores's user avatar
0 votes
0 answers
132 views

How to handle exceptions in jpa proxy classes?

I have a restful method in a @Stateless annotated class which is like the following: @POST @Path("example") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.TEXT_PLAIN) ...
Filippo's user avatar
  • 1,155
0 votes
1 answer
567 views

How to configure EJB/JPA in JTA transaction mode?

This is a simple guide for configuring JPA and connecting to your database using JTA transaction mode. Also it is including the most common mistakes that developers do and you should avoid them. Hope ...
mtz1406's user avatar
  • 75
0 votes
1 answer
142 views

when table name include a DOT , JPA throw "INSERT command denied to user for table 'XXX'"

I have a strange issue with JPA. I have renamed a table in my database from "Users" to "App.Users". And put this annotation to my entity class: @Table(name="App.Users") ...
mtz1406's user avatar
  • 75

15 30 50 per page
1
2 3 4 5
57