users@glassfish.java.net

Re: After Restarting: Glassfish can't map implementations to interfaces?

From: <glassfish_at_javadesktop.org>
Date: Mon, 23 Nov 2009 06:09:56 PST

The cause is a Exception, but GlassFish logs this exception only with INFO!

This was the important failure:


[#|2009-11-23T12:09:44.766+0000|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=p: thread-pool-1; w: 8;QueriesBean;|EJB5018: An exception was thrown during an ejb invocation on [QueriesBean]|#]

[#|2009-11-23T12:09:44.766+0000|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=p: thread-pool-1; w: 8;|
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.persistence.NoResultException: getSingleResult() did not retrieve any entities.
javax.persistence.NoResultException: getSingleResult() did not retrieve any entities.
        at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.throwNoResultException(EJBQueryImpl.java:274)
        at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:513)
        at mypackage.other.QueriesBean.loadTimestampByTableName(QueriesBean.java:68)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2920)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4011)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:127)
        at $Proxy211.loadTimestampByTableName(Unknown Source)
        at mypackage.another.OtherBean.createOrUpdateTypeSafe(OtherBean.java:57)
....
[Message sent by forum member 'hegalor' ]

http://forums.java.net/jive/thread.jspa?messageID=372961