It seems that any attached file is eliminated.
That is the stack trace.
----
Exception: [16:08:37] javax.transaction.NotSupportedException: Nested transactions not
supported
javax.transaction.NotSupportedException: Nested transactions not supported
at allaire.ejipt._LocalCaller._pushTransaction(_LocalCaller.java(Compiled Code))
at allaire.ejipt._EntityObject._grab(_EntityObject.java(Compiled Code))
at allaire.ejipt._AbstractObject._passivate(_AbstractObject.java(Compiled Code))
at allaire.ejipt._ContextPool._passivateNext(_ContextPool.java(Compiled Code))
at allaire.ejipt._ContextPool._getContext(_ContextPool.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._invoke(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._find(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at allaire.ejipt._CallableStub._call(_CallableStub.java(Compiled Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementHomeObject_Stub.findByPK(ElementHomeObject_Stub.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementEJB.testOrphanageAdding(ElementEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementEJB.ejbCreate(ElementEJB.java(Compiled
Code))
at java.lang.reflect.Method.invoke(Native Method)
at allaire.ejipt._BeanMethod._invoke(_BeanMethod.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._create(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at allaire.ejipt._CallableStub._call(_CallableStub.java(Compiled Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementHomeObject_Stub.create(ElementHomeObject_Stub.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreate(ElementXMLParserEJB.java:627)
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.parse(ElementXMLParserEJB.java:302)
at java.lang.reflect.Method.invoke(Native Method)
at allaire.ejipt._BeanMethod._invoke(_BeanMethod.java(Compiled Code))
at allaire.ejipt._SessionObject._invoke(_SessionObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
at sun.rmi.transport.Transport$1.run(Transport.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:152)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport..java:662)
at java.lang.Thread.run(Thread.java:498)
Exception: [16:08:38] javax.transaction.NotSupportedException: Nested transactions not
supported
javax.transaction.NotSupportedException: Nested transactions not supported
at allaire.ejipt._LocalCaller._pushTransaction(_LocalCaller.java(Compiled Code))
at allaire.ejipt._EntityObject._grab(_EntityObject.java(Compiled Code))
at allaire.ejipt._AbstractObject._passivate(_AbstractObject.java(Compiled Code))
at allaire.ejipt._ContextPool._passivateNext(_ContextPool.java(Compiled Code))
at allaire.ejipt._ContextPool._getContext(_ContextPool.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._invoke(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._find(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at allaire.ejipt._CallableStub._call(_CallableStub.java(Compiled Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementHomeObject_Stub.findByPK(ElementHomeObject_Stub.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementEJB.testOrphanageAdding(ElementEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementEJB.ejbCreate(ElementEJB.java(Compiled
Code))
at java.lang.reflect.Method.invoke(Native Method)
at allaire.ejipt._BeanMethod._invoke(_BeanMethod.java(Compiled Code))
at allaire.ejipt._EntityHomeObject._create(_EntityHomeObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at allaire.ejipt._CallableStub._call(_CallableStub.java(Compiled Code))
at
com.aqs.qcommerce.ejb.entitybeans.element.ElementHomeObject_Stub.create(ElementHomeObject_Stub.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreateRecursively(ElementXMLParserEJB.java(Compiled
Code))
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.bindAndCreate(ElementXMLParserEJB.java:627)
at
com.aqs.qcommerce.ejb.sessionbeans.parser.ElementXMLParserEJB.parse(ElementXMLParserEJB.java:302)
at java.lang.reflect.Method.invoke(Native Method)
at allaire.ejipt._BeanMethod._invoke(_BeanMethod.java(Compiled Code))
at allaire.ejipt._SessionObject._invoke(_SessionObject.java(Compiled Code))
at allaire.ejipt._CallableObject.call(_CallableObject.java(Compiled Code))
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
at sun.rmi.transport.Transport$1.run(Transport.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:152)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport..java:662)
at java.lang.Thread.run(Thread.java:498)
----
C�sar �lvarez N��ez wrote:
> We have a problem when there are no free contexts in the pool while we
> are in a transaction. The description of the problem is as follows:
>
> We have a stateless session bean that parses XML files. While parsing
> instances of an entity bean are created. Just to put in case, each XML
> file in our example implies the creation of about 4000 entities and a
> lot of XML files are parsed sequentially.
>
> The parse() method happens in a transaction ("Required" in ejb-jar.xml).
> Among other things, while parsing, the home is often reclaimed to be
> asked for something, so an entity (context) is retrieved for this
> matter.
> If "maxContexts" property in the entity bean is not big enough, soon all
> contexts in the context pool are busy. If this happens, the application
> server tries to passivate an entity bean "at random" when reclaiming the
> home, if this entity bean is among those ones playing the transaction,
> then the exception below is thrown.
>
> Of course, a solution is to increase "maxContexts" but we wonder if that
> is a well known behavior or wouldn't be better to avoid trying to
> passivate entities that take part in the current transaction.
>
> Thanks,
> C�sar �lvarez.
>
> P.D. An stack trace log file is attached.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists