Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem while doing Multithreading and using EntityManager(Getting exception while using EntityManager in multiThreaded Environment)
Problem while doing Multithreading and using EntityManager [message #1787417] Fri, 25 May 2018 05:12
Vikas Rathee is currently offline Vikas RatheeFriend
Messages: 1
Registered: May 2018
Junior Member

I am having my application deployed in EJBContainer in glassfish server. I am calling one method using Callable and future in session bean, and in this method i'm using EntityManager for some transaction but getting an NullPointerException for whenever any call to EntityManager is there. Below is the error stack trace::

Severe: java.lang.NullPointerException at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMsFromCurrentInvocation( at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMFromCurrentInvocation( at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate( at com.sun.enterprise.container.common.impl.EntityManagerWrapper.createQuery( at LogisticsEngineSessionBean.getAllPackSerialsForProcess( at LogisticsEngineSessionBean.processSalesOutLines( at LogisticsEngineSessionBean.lambda$updateSKULocationStatusOnSell$0( at LogisticsEngineSessionBean$$Lambda$7/ Source) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec( at java.util.concurrent.ForkJoinTask.doExec( at java.util.concurrent.ForkJoinPool$WorkQueue.runTask( at java.util.concurrent.ForkJoinPool.runWorker( at
Previous Topic:Rollback Behaviour When Commit Fails due to no connection
Next Topic:Using a @Converter on (nullable) foreign key fields
Goto Forum:

Current Time: Mon Jan 30 22:37:28 GMT 2023

Powered by FUDForum. Page generated in 0.13365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top