Hated Error Messages in GlassFish .

Cay S. Horstmann

I am assembling this material in response to a discussion topic on the GlassFish forum. These are messages that I get from GlassFish, together with suggestions for more developer-friendly messages.

Also note this blog: http://blogs.sun.com/roller/page/swchan?entry=troubleshooting_deployment_in_glassfish

Using the Verifier Separately

Scenario:

Deploy with

<sun-appserv-deploy file="${build.dir}/${ear.file}" verify="true" ..."/> 

Message:

An exception occurred while running the command. The exception message is: CLI171 Command deploy failed : Deploying application in domain failed; Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details

Comment:

Huh? Why do I have to run it separately? Didn't GlassFish run the verifier? Can't it tell me what went wrong?

Multiple Writable Mappings Exist

Scenario:

In build <= 33 (and maybe beyond), TopLink requires a @JoinColumn together with a @ManyToOne annotation, e.g.

@Entity
public class Response implements Serializable {
    . . .
    @ManyToOne 
    @JoinColumn(name="Question_Id") 
    public Question getQuestion() { 
        return question;
    }
}

Actually, this should not be necessary according to the EJB3 spec, but that's not the point. Commenting out the @JoinColumn yields the following.

Message:  

Test Name : tests.persistence.DefaultProviderVerification
Test Assertion : Test validity of EJB 3.0 persistence unit. This
test tests validity using a portable persistence provider.
Test Description : For [ register#register-ejb.jar#defaultPersistenceUnit ]
Exception Description: Multiple writable mappings exist for the field
[RESPONSE.ID].  Only one may be defined as writable, all others
must be specified read-only.
Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[question]
Descriptor: RelationalDescriptor(elvis.entity.Response --> [DatabaseTable(RESPONSE)])

Comment:

It is not clear how to figure out the problem from the error message. What does RESPONSE.ID have to do with this? The desired error message would have been something like:

File elvis/entity/Response.java line 39: Need handholding to implement @ManyToOne relationship for QUESTION property.

Give me something to work with...

Scenario:

Accidentally removed @ManyToOne before @JoinColumn.

Message:

          ---------------------------
          STATIC VERIFICATION RESULTS
          ---------------------------

    
     ----------------------------------
     NUMBER OF FAILURES/WARNINGS/ERRORS
     ----------------------------------
     # of Failures : 0
     # of Warnings : 0
     # of Errors : 1

          -----------------------------------------------------
          ERRORS THAT OCCURED WHILE RUNNING STATIC VERIFICATION
          ----------------------------------------------------- 
    
    Error Name : com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification
    Error Description : java.lang.ClassCastException: oracle.toplink.essentials.mappings.DirectToFieldMapping
    at oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processOneToMany(EJBAnnotationsProcessor.java:1895)
    at oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelationshipAccessor(EJBAnnotationsProcessor.java:2231)
    at oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelatedClass(EJBAnnotationsProcessor.java:2202)
    at oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processORAnnotations(EJBAnnotationsProcessor.java:1975)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:329)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:120)
    at com.sun.enterprise.tools.verifier.tests.persistence.DefaultProviderVerification.check(DefaultProviderVerification.java:68)
    at com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:120)
    at com.sun.enterprise.tools.verifier.persistence.PersistenceUnitCheckMgrImpl.check(PersistenceUnitCheckMgrImpl.java:80)
    at com.sun.enterprise.tools.verifier.CheckMgr.checkPersistenceUnits(CheckMgr.java:377)
    at com.sun.enterprise.tools.verifier.ejb.EjbCheckMgrImpl.check(EjbCheckMgrImpl.java:67)
    at com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.java:133)
    at com.sun.enterprise.tools.verifier.ejb.EjbVerifier.verify(EjbVerifier.java:65)
    at com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(VerificationHandler.java:217)
    at com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:128)
    at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:131)
    at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:101)

        
          ----------------------------------
          END OF STATIC VERIFICATION RESULTS
          ----------------------------------

Comments:   

Encountered "USER"

Scenario: 

Naming an entity User is fatal (at least with Derby) because USER is a SQL keyword.

Message:

[sun-appserv-deploy] Command deploy executed successfully with following warning messages:

[sun-appserv-deploy] JDO76614: Deployment encountered SQL Exceptions:
[sun-appserv-deploy]   
JDO76609: Got SQLException executing statement "CREATE TABLE QUIZFORM
(ID INTEGER NOT NULL, TITLE VARCHAR(255), PRIMARY KEY (ID))":
org.apache.derby.client.am.SqlException: Table/View 'QUIZFORM' already
exists in Schema 'APP'.
[sun-appserv-deploy]   
JDO76609: Got SQLException executing statement "CREATE TABLE USER
(USERID VARCHAR(255) NOT NULL, TYPE VARCHAR(255), EMAIL VARCHAR(255),
PASSWORD VARCHAR(255), LASTNAME VARCHAR(255), FIRSTNAME VARCHAR(255),
MIDDLENAME VARCHAR(255), PRIMARY KEY (USERID))":
org.apache.derby.client.am.SqlException: Syntax error: Encountered
"USER" at line 1, column 14.
(many more)

Comment:

  1. This is an error; it should not be reported as successful deployment
  2. The first error message (which is reported for every table other than USER) is misleading
  3. It is not clear how Elvis can figure out from Syntax error: Encountered "USER" at line 1, column 14 that the solution is to rename the User entity

The desired error message would be: File elvis/entity/User.java line 13: Entity name User conflicts with SQL keyword

Attempted to Redeploy a Session

Here is a link to a blog in which the author complains about an inscrutable message when restarting GlassFish and redeploying. http://www.iasandcb.pe.kr/blog/2006/01/first-jpa.html. His solution: To deploy the app in another domain. Puhleeze.

Nested exception is...

Scenario:

A session bean throws an exception (because of a programmer error)

Message:

    
Exception in thread "main" javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
         java.rmi.RemoteException
     java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at elvis.session.__Setup_Remote_DynamicStub.setupDemo(__Setup_Remote_DynamicStub.java)
         at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
         at elvis.client.Client.main(Client.java:13)
     Caused by: java.rmi.RemoteException
         at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:234)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1254)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
         at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
         at $Proxy85.setupDemo(Unknown Source)
         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:585)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
     javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
         java.rmi.RemoteException
         at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
         at elvis.client.Client.main(Client.java:13)

Comment:

Deep in the logs, I can see the real reason:

javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3712)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3612)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy85.setupDemo(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
    at elvis.session.SetupImpl.makeSampleCourse(SetupImpl.java:39)
    at elvis.session.SetupImpl.setupDemo(SetupImpl.java:24)
    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:585)
    at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:975)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2748)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3825)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    ... 17 more

TopLink Warning

Scenario:

I mistakenly try to persist two distinct entities with the same ID.

Message:

 Exception
in thread "main" javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        
java.rmi.RemoteException: Transaction aborted; nested exception is:
javax.transaction.RollbackException: Transaction marked for rollback.;
nested exception is:
         javax.transaction.RollbackException: Transaction marked for rollback.
     java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        
java.rmi.RemoteException: Transaction aborted; nested exception is:
javax.transaction.RollbackException: Transaction marked for rollback.;
nested exception is:
         javax.transaction.RollbackException: Transaction marked for rollback.
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at elvis.session.__Setup_Remote_DynamicStub.setupDemo(__Setup_Remote_DynamicStub.java)
         at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
         at elvis.client.Client.main(Client.java:13)
    
Caused by: java.rmi.RemoteException: Transaction aborted; nested
exception is: javax.transaction.RollbackException: Transaction marked
for rollback.; nested exception is:
         javax.transaction.RollbackException: Transaction marked for rollback.
         at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:234)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1254)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
         at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
         at $Proxy44.setupDemo(Unknown Source)
         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:585)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
     Caused by: javax.transaction.RollbackException: Transaction marked for rollback.
         at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:394)
         at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3635)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
         ... 18 more
    
javax.ejb.EJBException: nested exception is: java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
        
java.rmi.RemoteException: Transaction aborted; nested exception is:
javax.transaction.RollbackException: Transaction marked for rollback.;
nested exception is:
         javax.transaction.RollbackException: Transaction marked for rollback.
         at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
         at elvis.client.Client.main(Client.java:13)

Comments:

#|2006-01-17T14:30:10.494-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=p:
thread-pool-1; w: 1;|[TopLink Warning]: 2006.01.17
02:30:10.486--UnitOfWork(13404366)--Thread(Thread[p: thread-pool-1; w:
1,5,main])--Local Exception Stack: 
Exception [TOPLINK-4002]
(Oracle TopLink Essentials - 10g release 4 (10.1.4.0.0) (Build
060104Dev)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.apache.derby.client.am.SqlException: The
statement was aborted because it would have caused a duplicate key
value in a unique or primary key constraint or unique index identified by 'SQL060117023006120' defined on 'QUESTION'.Error Code: -1
Call:INSERT
INTO QUESTION (ID, ANSWER, TEXT, TYPE) VALUES (0, '0xCAFEBABE', 'What
are the first 4 bytes of every class file (in hexadecimal)?',
'ChoiceQuestion')
Query:InsertObjectQuery(elvis.entity.ChoiceQuestion[id=0,text=What
are the first 4 bytes of every class file (in
hexadecimal)?,answer=0xCAFEBABE,categories={[]}][choices=[elvis.entity.Choice[id=0,text=0xCAFEBABE],
elvis.entity.Choice[id=0,text=JAVA],
elvis.entity.Choice[id=0,text=0xFFFE or 0xFEFF],
elvis.entity.Choice[id=0,text=PK]]])
    at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:295)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:639)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:688)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:477)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.executeCall(UnitOfWorkImpl.java:1368)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:331)
    at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:176)
    at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:192)
    at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:457)
    at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:74)
    at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:635)
    at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:599)
    at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:495)
    at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:130)
    at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:283)
    at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:67)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:536)
    at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:123)
    at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:95)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.internalExecuteQuery(RepeatableWriteUnitOfWork.java:130)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:925)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:882)
    at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:254)
    at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:231)
    at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:187)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2575)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1036)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1120)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2435)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:169)
    at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:116)
    at oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:76)
    at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(ContainerSynchronization.java:154)
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:377)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3635)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy44.setupDemo(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
Caused
by: org.apache.derby.client.am.SqlException: The statement was aborted
because it would have caused a duplicate key value in a unique or
primary key constraint or unique index identified by
'SQL060117023006120' defined on 'QUESTION'.
    at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
    at org.apache.derby.client.am.Statement.completeExecuteImmediate(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.parseEXCSQLIMMreply(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.readExecuteImmediate(Unknown Source)
    at org.apache.derby.client.net.StatementReply.readExecuteImmediate(Unknown Source)
    at org.apache.derby.client.net.NetStatement.readExecuteImmediate_(|#]

NotSerializableException

Scenario: 

A class that is moved from a session bean to a JSF managed bean is not declared as serializable.

Message:

javax.servlet.ServletException: nested exception is: java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is: 
	java.io.NotSerializableException: 
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:230)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

root cause

javax.ejb.EJBException: nested exception is: java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is: 
	java.io.NotSerializableException: 
	elvis.session._Registration_Wrapper.find(elvis.session._Registration_Wrapper.java)
	elvis.web.UserManagement.login(UserManagement.java:38)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	com.sun.el.parser.AstValue.invoke(AstValue.java:151)
	com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:71)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:94)
	javax.faces.component.UICommand.broadcast(UICommand.java:384)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:452)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:764)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:262)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:130)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:218)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

Comment:

NameNotFoundException

Scenario:

I forgot to annotate a session bean as @Stateless. The class implements an interface that is annotated as @Remote.

Message:

    
Exception in thread "main" javax.naming.NameNotFoundException:
elvis.session.AssignmentSubmission not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)

Comments:

It would have been nice if the verifier had issued a warning. I admit this is a bit tough to diagnose. It is legal to implement a remote interface without being a session bean.

EJBQL Syntax

Scenario:

An error in EJB QL Syntax

Message:

[#|2006-01-18T11:02:54.495-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.ejb|_ThreadID=39;_ThreadName=p:
thread-pool-1; w: 249;|
javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3712)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3612)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy78.getOpenAssignments(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:146)
    at com.sun.enterprise.util.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:189)
    at elvis.session.AssignmentSubmissionImpl.getOpenAssignments(AssignmentSubmissionImpl.java:22)
    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:585)
    at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:975)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2748)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3825)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    ... 17 more
Caused
by: Exception [TOPLINK-8001] (Oracle TopLink Essentials - 10g release 4
(10.1.4.0.0) (Build 060104Dev)):
oracle.toplink.essentials.exceptions.EJBQLException
Exception
Description: Syntax Recognition Problem parsing the EJBQL [SELECT a
FROM Course c, IN (c.students) s, IN (c.assignments) a WHERE s.userId =
:id AND ]. The parser returned the following [unexpected token: null].
    at oracle.toplink.essentials.exceptions.EJBQLException.recognitionException(EJBQLException.java:88)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:195)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalFactor(EJBQLParser.java:2077)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalTerm(EJBQLParser.java:1939)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalExpression(EJBQLParser.java:1891)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.whereClause(EJBQLParser.java:511)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:188)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:139)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:249)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:198)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:173)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:137)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:98)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:83)
    at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:71)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:141)
    ... 30 more
|#]

Comments:

Could not find class

Scenario:

An entity with a lazily fetched field is exported outside the container, and a client whose class path only includes javaee.jar and appserv-rt.jar receives it. 

Message:

    
Exception in thread "main" javax.ejb.EJBException: nested exception is:
java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested
exception is:
        
org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257
completed: Maybe
     java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
        
org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257
completed: Maybe
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at elvis.session.__AssignmentSubmission_Remote_DynamicStub.getOpenAssignments(__AssignmentSubmission_Remote_DynamicStub.java)
         at elvis.session._AssignmentSubmission_Wrapper.getOpenAssignments(elvis.session._AssignmentSubmission_Wrapper.java)
         at elvis.client.Client.main(Client.java:19)
     Caused by: org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257 completed: Maybe
         at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(Unknown Source)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
         at java.util.ArrayList.readObject(ArrayList.java:591)
         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:585)
         at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(Unknown Source)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(Unknown Source)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(Unknown Source)
         ... 6 more
     Caused by: java.lang.ClassNotFoundException
         ... 44 more
    
javax.ejb.EJBException: nested exception is: java.rmi.MarshalException:
CORBA MARSHAL 1398079745 Maybe; nested exception is:
        
org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257
completed: Maybe
        
at
elvis.session._AssignmentSubmission_Wrapper.getOpenAssignments(elvis.session._AssignmentSubmission_Wrapper.java)
         at elvis.client.Client.main(Client.java:19)

Comments:

Unknown Property

Scenario:

I had this code in faces-config.xml:

    <managed-bean>
        <managed-bean-name>assign</managed-bean-name>
        <managed-bean-class>elvis.web.AssignmentWork</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
            <property-name>user</property-name>
            <value>#{userMgmt}</value>
        </managed-property>
    </managed-bean>

However, the class had no property with name user. (It was currentUser :-()

Message:

javax.servlet.ServletException: Unknown property 'user'
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:230)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

root cause

java.lang.NoSuchMethodException: Unknown property 'user'
	org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1777)
	com.sun.faces.config.ManagedBeanFactoryImpl.setPropertiesIntoBean(ManagedBeanFactoryImpl.java:615)
	com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:293)
	com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:493)
	com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:83)
	javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
	com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:58)
	com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
	com.sun.el.parser.AstValue.getValue(AstValue.java:106)
	com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
	javax.faces.component.UIOutput.getValue(UIOutput.java:176)
	com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:101)
	com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:281)
	com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:207)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
	javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:905)
	javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:858)
	javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:895)
	javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:901)
	com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:248)
	com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:166)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:262)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:157)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:219)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

Comments:

Almost Right

Scenario:

Wrong attribute name in JSF tag

Message:

 SEVERE:
file:/tmp/exploded20060119123613/register/web_war/select-assignment.jsp(20,107)
Attribute columnStyles invalid for tag dataTable according to TLD

Comments:

What is Worse Than the Stack Trace from Hell? No Stack Trace!

Scenario:

Write a JSF action listener that throws a NullPointerException.

Message:

Comments:

Cannot Persist Detached Object

Scenario:

  1. Make a session bean that calls em.persist(new MyEntity());
  2. Call that session bean from a client using javaagent, as described in https://glassfish.dev.java.net/javaee5/persistence/entity-persistence-support.html, but do that without making a transaction. (I thought the transaction would be made for me since it works when I invoke the client without the javaagent.)

Message:

From client:


Exception
in thread "main" javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        java.rmi.RemoteException
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
        at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
        at elvis.session.__Setup_Remote_DynamicStub.setupDemo(__Setup_Remote_DynamicStub.java)
        at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
        at elvis.client.Client.main(Client.java:17)
Caused by: java.rmi.RemoteException
        at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:234)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1254)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
        at $Proxy74.setupDemo(Unknown Source)
        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:585)
        at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
        at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
javax.ejb.EJBException: nested exception is: 
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        java.rmi.RemoteException
        at elvis.session._Setup_Wrapper.setupDemo(elvis.session._Setup_Wrapper.java)
        at elvis.client.Client.main(Client.java:17)

Useless as always. The logs give a clue:

javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3712)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3612)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy74.setupDemo(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Can not PERSIST detatched object: userId=cayhorstmann,name=Cay Stephan Horstmann.
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerNotRegisteredNewObjectForPersist(UnitOfWorkImpl.java:3204)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.registerNotRegisteredNewObjectForPersist(RepeatableWriteUnitOfWork.java:291)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:3181)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:103)
    at com.sun.enterprise.util.EntityManagerWrapper.persist(EntityManagerWrapper.java:165)
    at elvis.session.SetupImpl.makeSampleCourse(SetupImpl.java:51)
    at elvis.session.SetupImpl.setupDemo(SetupImpl.java:26)
    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:585)
    at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:975)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2748)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3825)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    ... 17 more

Comments:

Look at the highlighted part of the stack trace. In this case, it would be an easy matter to give the developer a useful report: Error in SetupImpl.java line 51.

How deeply can you bury it?

Scenario:

Refresh an entity that no longer exists, in a session bean that is called from a JSF managed bean. An "entity not found exception" is buried in the mother of all stack traces.

Message:

The browser shows this message, useless as always:

javax.servlet.ServletException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.RemoteException
	javax.faces.webapp.FacesServlet.service(Unknown Source)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

root cause

javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.RemoteException
	elvis.session._AssignmentSubmission_Wrapper.getOpenSubmissions(elvis.session._AssignmentSubmission_Wrapper.java)
	elvis.web.AssignmentWork.getOpenSubmissions(AssignmentWork.java:39)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	javax.el.BeanELResolver.getValue(BeanELResolver.java:275)
	javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
	com.sun.faces.el.FacesCompositeELResolver.getValue(Unknown Source)
	com.sun.el.parser.AstValue.getValue(AstValue.java:117)
	com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
	javax.faces.component.UIData.getValue(Unknown Source)
	javax.faces.component.UIData.getDataModel(Unknown Source)
	javax.faces.component.UIData.setRowIndex(Unknown Source)
	com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(Unknown Source)
	javax.faces.component.UIComponentBase.encodeBegin(Unknown Source)
	javax.faces.component.UIData.encodeBegin(Unknown Source)
	javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
	javax.faces.render.Renderer.encodeChildren(Unknown Source)
	javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
	javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
	javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
	com.sun.faces.application.ViewHandlerImpl.doRenderView(Unknown Source)
	com.sun.faces.application.ViewHandlerImpl.renderView(Unknown Source)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
	com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
	com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
	javax.faces.webapp.FacesServlet.service(Unknown Source)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
	com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

Ok, on to the log:

[#|2006-01-25T10:54:00.093-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=httpWorkerThread-8080-0;|
javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3712)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3612)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3413)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1221)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy53.getOpenSubmissions(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at elvis.session.__AssignmentSubmission_Remote_DynamicStub.getOpenSubmissions(__AssignmentSubmission_Remote_DynamicStub.java)
    at elvis.session._AssignmentSubmission_Wrapper.getOpenSubmissions(elvis.session._AssignmentSubmission_Wrapper.java)
    at elvis.web.AssignmentWork.getOpenSubmissions(AssignmentWork.java:39)
    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:585)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:275)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at javax.faces.component.UIData.getValue(Unknown Source)
    at javax.faces.component.UIData.getDataModel(Unknown Source)
    at javax.faces.component.UIData.setRowIndex(Unknown Source)
    at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeBegin(Unknown Source)
    at javax.faces.component.UIData.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.render.Renderer.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.renderView(Unknown Source)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
    at javax.faces.webapp.FacesServlet.service(Unknown Source)
    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:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused
by: javax.persistence.EntityNotFoundException: Entity no longer exists
in the database:
elvis.entity.Submission[id=2183,assignment=elvis.entity.Assignment[id=2176,title=A
Java Trivia Quiz,course=elvis.entity.Course[name=Sample
Course]],responses=[],student=userId=jqpublic,name=John Quincy
Public,status=NOT_STARTED].
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.refresh(EntityManagerImpl.java:234)
    at com.sun.enterprise.util.EntityManagerWrapper.refresh(EntityManagerWrapper.java:209)
    at elvis.session.AssignmentSubmissionImpl.getOpenSubmissions(AssignmentSubmissionImpl.java:70)
    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:585)
    at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:975)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2748)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3825)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    ... 71 more
|#]

[#|2006-01-25T10:54:00.102-0800|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=20;_ThreadName=httpWorkerThread-8080-0;_RequestID=2ca6705f-5f16-4f96-86ed-2cbc60acd271;|executePhase(RENDER_RESPONSE
6,com.sun.faces.context.FacesContextImpl@12d73bb) threw exception
javax.faces.FacesException:
javax.el.ELException: javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is: 
    java.rmi.RemoteException
    at javax.faces.component.UIData.getValue(Unknown Source)
    at javax.faces.component.UIData.getDataModel(Unknown Source)
    at javax.faces.component.UIData.setRowIndex(Unknown Source)
    at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeBegin(Unknown Source)
    at javax.faces.component.UIData.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.render.Renderer.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.renderView(Unknown Source)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
    at javax.faces.webapp.FacesServlet.service(Unknown Source)
    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:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.el.ELException: javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is: 
    java.rmi.RemoteException
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:280)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    ... 50 more
Caused by: javax.ejb.EJBException: nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is: 
    java.rmi.RemoteException
    at elvis.session._AssignmentSubmission_Wrapper.getOpenSubmissions(elvis.session._AssignmentSubmission_Wrapper.java)
    at elvis.web.AssignmentWork.getOpenSubmissions(AssignmentWork.java:39)
    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:585)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:275)
    ... 54 more
|#]

[#|2006-01-25T10:54:00.108-0800|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=httpWorkerThread-8080-0;_RequestID=2ca6705f-5f16-4f96-86ed-2cbc60acd271;|StandardWrapperValve[Faces
Servlet]: Servlet.service() for servlet Faces Servlet threw exception
javax.ejb.EJBException:
nested exception is: java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is: 
    java.rmi.RemoteException
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.RemoteException
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Unknown Source)
    at javax.rmi.CORBA.Util.wrapException(Util.java:279)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(Unknown Source)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at elvis.session.__AssignmentSubmission_Remote_DynamicStub.getOpenSubmissions(__AssignmentSubmission_Remote_DynamicStub.java)
    at elvis.session._AssignmentSubmission_Wrapper.getOpenSubmissions(elvis.session._AssignmentSubmission_Wrapper.java)
    at elvis.web.AssignmentWork.getOpenSubmissions(AssignmentWork.java:39)
    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:585)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:275)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at javax.faces.component.UIData.getValue(Unknown Source)
    at javax.faces.component.UIData.getDataModel(Unknown Source)
    at javax.faces.component.UIData.setRowIndex(Unknown Source)
    at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeBegin(Unknown Source)
    at javax.faces.component.UIData.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.render.Renderer.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.renderView(Unknown Source)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
    at javax.faces.webapp.FacesServlet.service(Unknown Source)
    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:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.rmi.RemoteException
javax.ejb.EJBException:
nested exception is: java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is: 
    java.rmi.RemoteException
   
at
elvis.session._AssignmentSubmission_Wrapper.getOpenSubmissions(elvis.session._AssignmentSubmission_Wrapper.java)
    at elvis.web.AssignmentWork.getOpenSubmissions(AssignmentWork.java:39)
    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:585)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:275)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:145)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(Unknown Source)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at javax.faces.component.UIData.getValue(Unknown Source)
    at javax.faces.component.UIData.getDataModel(Unknown Source)
    at javax.faces.component.UIData.setRowIndex(Unknown Source)
    at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeBegin(Unknown Source)
    at javax.faces.component.UIData.encodeBegin(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.render.Renderer.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at javax.faces.component.UIComponentBase.encodeAll(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(Unknown Source)
    at com.sun.faces.application.ViewHandlerImpl.renderView(Unknown Source)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Unknown Source)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
    at javax.faces.webapp.FacesServlet.service(Unknown Source)
    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:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]

Comments:

How long did it take you to spot the relevant message? Hint: It is javax.persistence.EntityNotFoundException: Entity no longer exists in the database... And a couple of lines below, elvis.session.AssignmentSubmissionImpl.getOpenSubmissions(AssignmentSubmissionImpl.java:70)

Glassfish developers: Your challenge, should you accept it, is to extract this information and put it in front of the developer's eyes.