RE: [jBoss-User] Container exception. Notify thecontainerdevelopers (2)
Tim, TxInterceptorCMT.java:475 is a comment in the new code (// something) ... can you get the latest and greatest? Also all this method does is get teh information for the BeanMetaData from the XML files. Did you specify the Tx attributes for the method getAllValues? marc |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Squires |Sent: Thursday, November 23, 2000 4:02 AM |To: jBoss |Subject: RE: [jBoss-User] Container exception. Notify the |containerdevelopers (2) | | |Forgot console output: | | |[company] CONTAINER EXCEPTION:null |[company] java.lang.NullPointerException |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInter |ceptorCMT.j |ava:475) |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterc |eptorCMT.ja |va:209) |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) |[company] at |org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityIntercepto |r.java:144) |[company] at |org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) |[company] at |org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316) |[company] at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:222) |[company] at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:187) |[company] at java.lang.reflect.Method.invoke(Native Method) |[company] at |sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) |[company] at sun.rmi.transport.Transport$1.run(Transport.java:142) |[company] at |java.security.AccessController.doPrivileged(Native Method) |[company] at |sun.rmi.transport.Transport.serviceCall(Transport.java:139) |[company] at |sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) |[company] at |sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTranspo |rt.java:643 |) |[company] at java.lang.Thread.run(Thread.java:484) |[classification] CONTAINER EXCEPTION:null |[classification] java.lang.NullPointerException |[classification]at |org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInter |ceptorCMT.j |ava:475) |[classification]at |org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterc |eptorCMT.ja |va:209) |[classification]at |org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) |[classification]at |org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityIntercepto |r.java:144) |[classification]at |org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) |[classification]at |org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316) |[classification]at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:222) |[classification]at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:187) |[classification]at java.lang.reflect.Method.invoke(Native Method) |[classification]at |sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) |[classification]at |sun.rmi.transport.Transport$1.run(Transport.java:142) |[classification]at |java.security.AccessController.doPrivileged(Native |Method) |[classification]at |sun.rmi.transport.Transport.serviceCall(Transport.java:139) |[classification]at |sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) |[classification]at |sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTranspo |rt.java:643 |) |[classification]at java.lang.Thread.run(Thread.java:484) |[company] CONTAINER EXCEPTION:null |[company] java.lang.NullPointerException |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInter |ceptorCMT.j |ava:475) |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterc |eptorCMT.ja |va:209) |[company] at |org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) |[company] at |org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityIntercepto |r.java:144) |[company] at |org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) |[company] at |org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316) |[company] at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:222) |[company] at |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC |ontainerInv |oker.java:187) |[company] at java.lang.reflect.Method.invoke(Native Method) |[company] at |sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) |[company] at sun.rmi.transport.Transport$1.run(Transport.java:142) |[company] at
Re: [jBoss-User] Container exception. Notify thecontainerdevelopers:-) (another?)
Jvrg Schorr wrote: > > Hi, > > sorry, actually I had the mistake only when another EJB was calling it (and > not from a servlet for example). > It was coming from a mistake in the ejb-jar.xml, because by mistake my > ListManager was the only one where the transaction was set to 'Bean' and the > others were set to 'Container'. > That's the reason, now whether it is normal or not I cannot tell... I > haven't checked the spec. > > Thanks a lot for your answer, And thanks for your help. > jorg > > PS - do you still want me to check if [ListManager] Cannot import > transaction .. appears somewhere? Yes. That should be the only way this could happen. But I think that message only occurs if the transaction is propagated from another VM. Did you run all your enterprise beans in the same VM? Actually I am also interested what is in the server log just before the snippet you included. Would it be possible for you to mail me (privately) the entire server log? Best Regards, Ole Husgaard. -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
RE: [jBoss-User] Container exception. Notify thecontainerdevelopers:-)
ole,
you are obviously a C coder by background ;-)
please try to do some java stuff, and pay attention to details
good work though ;-) just pay attention and simplify your style :-P
marc
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ole Husgaard
> Sent: Sunday, October 08, 2000 7:48 AM
> To: jBoss
> Subject: Re: [jBoss-User] Container exception. Notify the
> containerdevelopers:-)
>
>
> Hi,
>
> I've committed a few bugfixes that should make at least some of
> these exceptions go away.
>
> One of these fixes are to the transaction manager: If a user
> used the setTransactionTimeout(), the resulting timeout would
> be 1/1000 of what is expected.
> If you did this, that would explain why you had all these
> transaction timeouts. But if you used setTransactionTimeout(),
> my fix could hide the org.jboss.ejb.EnterpriseContext.unlock()
> exception below. If this is the case, please hack the line in
> src/main/org/jboss/tm/TxManager.java that says "timeOut = " to
> have the value you specified in your call to
> setTransactionTimeout(), and avoid calling setTransactionTimeout()
> in your next test. A bit tricky, but then we can kill another bug
> that just _might_ bite you if your server ever gets heavily
> loaded.
>
>
> Best Regards,
>
> Ole Husgaard.
>
>
> Sascha Matzke wrote:
> >
> > Hello,
> >
> > I'm using an cvs checkout from last night...
> >
> > I have here 2 stateless sessionbeans and one entitybean. They are
> > named XMLImporterBean, catalogserviceUpdateBean and CatalogService.
> >
> > The following happens:
> >
> > An external process parses a xml file to a DOM tree, then looks up a
> > reference to an XMLImporterBean instance and calls the process method
> > of this bean with the DOM tree as argument. The XMLImportBean then
> > determines the documenttype and then looksup the appropriate
> > {doctype}UpdateBean (in this case an catalogserviceUpdateBean).
> >
> > The catalogserviceUpdateBean the trys to lookup the CatalogServiceBean
> > associated with the data in the DOM tree. If it doen't exist, it is
> > created. The it updates the data in the CatalogServiceBean according
> > to the data in the DOM tree.
> >
> > The external process is multithreaded. It starts an xml parser thread
> > for each file found in a certain directory. There are no "global"
> > attributes which apply to each thread.
> >
> > When I put only one file of a document type in the import directory
> > everything works fine. But when I try to import more than one file
> > an exception occurs...
> >
> > [XMLImporterBean] TxCapsule.commit(): Entered, status=STATUS_ACTIVE
> > [XMLImporterBean] Transaction XidImpl:router/4 timed out.
> > [XMLImporterBean] java.lang.Exception
> > at
> org.jboss.ejb.EnterpriseContext.unlock(EnterpriseContext.java:124)
> > at
> org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor$InstanceS
> ynchronization.afterCompletion(StatefulSessionInstanceInterceptor.
> java:283)
> > at org.jboss.tm.TxCapsule.doAfterCompletion(TxCapsule.java:1009)
> > at org.jboss.tm.TxCapsule.timedOut(TxCapsule.java:168)
> > at
> org.jboss.util.timeout.TimeoutFactory.doWork(TimeoutFactory.java:343)
> > at
> org.jboss.util.timeout.TimeoutFactory.access$1(TimeoutFactory.java:316)
> > at
> org.jboss.util.timeout.TimeoutFactory$1.run(TimeoutFactory.java:378)
> > [XMLImporterBean] EnterpriseContext.unlock() 6894041 -1
> > [XMLImporterBean] Transaction XidImpl:router/5 timed out.
> > [CatalogServiceBean] EnterpriseContext.unlock() 980053 0
> > [JAWS] java.sql.SQLException: java.sql.SQLException: IO
> problem: java.lang.ArrayIndexOutOfBoundsExceptionnull
> > [JAWS] at org.enhydra.instantdb.db.SQLProg.execute(SQLProg.java:276)
> > [JAWS] at
> org.enhydra.instantdb.jdbc.idbPreparedStatement.execute(idbPrepare
> dStatement.java:92)
> > [JAWS] at
> org.enhydra.instantdb.jdbc.idbPreparedStatement.executeUpdate(idbP
> reparedStatement.java:71)
> > [JAWS] at
> org.jboss.minerva.jdbc.PreparedStatementInPool.executeUpdate(Prepa
> redStatementInPool.java:81)
> > [JAWS] at
> org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatement
> AndHandleResult(JDBCUpdateCommand.java:49)
> > [JAWS] at
> org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCComman
> d.java:154)
> > [JAWS] at
> org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDB
> CStoreEntityCommand.java:97)
> > [JAWS] at
> org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWS
> PersistenceManager.java:156)
> > [JAWS] at
> org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersist
> enceManager.java:337)
> > [JAWS] at
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSyn
> chronization.beforeCompletion(EntitySynchronizationInterceptor.java:323)
> > [JAWS] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:993)
> > [JAWS] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:262)
> > [JAWS] at
Re: [jBoss-User] Container exception. Notify thecontainerdevelopers:-)
Sascha Matzke wrote: > > On Sun, Oct 08, 2000 at 04:48:12PM +0200, Ole Husgaard wrote: > > Hi, > > > > I've committed a few bugfixes that should make at least some of > > these exceptions go away. > > > > One of these fixes are to the transaction manager: If a user > > used the setTransactionTimeout(), the resulting timeout would > > be 1/1000 of what is expected. > > I'm not using this method... Ok. If it works for you now all is fine. Otherwise please send a new server trace. Best Regards, Ole Husgaard. -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
