users@glassfish.java.net

Re: JTS5033: Exception [java.lang.NoClassDefFoundError] on [before_completion] synchronization operation

From: Sebastian Hofmann <sebastian.hofmann_at_sourcepark.de>
Date: Mon, 27 Oct 2008 09:22:00 +0100

Hello,

no, there was no nested exception, but I found the problem. There was
another little error about commons-logging/log4j used by Hibernate
occouring only once at startup. This error produced just a small simple
message, so I overlooked it at first...

As I solved this problem, the real error appeared. I did not use a
XA-DataSource that is required when doing a remote call. Using the right
DataSource solved all problems.

Thanks a lot for help.
Regards
Sebastian

Marina Vatkina schrieb:
> Is there any nested exception in the log?
>
> thanks,
> -marina
>
> Sebastian Hofmann wrote:
>> Hi,
>>
>> I get the following strange exception in Glassfish 9.1_01 (build
>> b09d-fcs) after a remote call between two enterprise applications within
>> the same server. The call seems to work, I get the result from the
>> "remote" side. On the remote side a reading database operation (via JPA)
>> is invoked. Debugging shows nothing special - everything seems to be
>> fine...
>>
>> Does anybody know this exception? I could not find anything else in the
>> log files...
>>
>> Thanks for advice...
>> Sebastian
>>
>> JTS5033: Exception [java.lang.NoClassDefFoundError] on
>> [before_completion] synchronization operation.
>> EJB5018: An exception was thrown during an ejb invocation on
>> [EventMessageImportBean]
>> javax.ejb.EJBException: Transaction aborted; nested exception is:
>> javax.transaction.RollbackException
>> javax.transaction.RollbackException
>> at
>> com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:311)
>>
>> at
>> com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1004)
>>
>> at
>> com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
>>
>> at
>> com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
>>
>> at
>> com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3571)
>>
>> at
>> com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
>> at
>> com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
>> at
>> com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:2855)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService.deliverTimeout(EJBTimerService.java:1401)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService.access$100(EJBTimerService.java:99)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.run(EJBTimerService.java:1952)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.service(EJBTimerService.java:1948)
>>
>> at
>> com.sun.ejb.containers.util.WorkAdapter.doWork(WorkAdapter.java:75)
>> at
>> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
>>
>> javax.ejb.EJBException: Transaction aborted; nested exception is:
>> javax.transaction.RollbackException
>> at
>> com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3798)
>>
>> at
>> com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3571)
>>
>> at
>> com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
>> at
>> com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
>> at
>> com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:2855)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService.deliverTimeout(EJBTimerService.java:1401)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService.access$100(EJBTimerService.java:99)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.run(EJBTimerService.java:1952)
>>
>> at
>> com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.service(EJBTimerService.java:1948)
>>
>> at
>> com.sun.ejb.containers.util.WorkAdapter.doWork(WorkAdapter.java:75)
>> at
>> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>