Hi,
I'm having trouble with Jboss2.0 FINAL and Oracle8.1.6.
Getting CMP Entities with findAll() from a client program works well.
But using the same finder fromout of a session bean fails after the ninth
record. To there it works, but getting the next crashes. Once crashed it
doesn't work any more, even if I try to get only one record, it fails. But after
restarting jboss it work for the first 9 sets well, then fails again, always
with the tenth one. Has someone an idea what happens and what can I do?
PersonBean is the Entity Bean:
[PersonBean] XAException: tx=OracleXid [ID=257, Global=myhost/2, Branch=]
errorCode=XAER_RMERR
[PersonBean] oracle.jdbc.xa.OracleXAException
[PersonBean] at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
[PersonBean] at
oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
[PersonBean] at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1020)
[PersonBean] at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:593)
[PersonBean] at
org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:114)
[PersonBean] at
org.jboss.minerva.factories.XAConnectionFactory.prepareObject(XAConnectionFactory.java:254)
[PersonBean] at
org.jboss.minerva.pools.ObjectPool.getObject(ObjectPool.java:539)
[PersonBean] at
org.jboss.minerva.datasource.XAPoolDataSource.getConnection(XAPoolDataSource.java:169)
[PersonBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:615)
[PersonBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:150)
[PersonBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:77)
[PersonBean] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistenceManager.java:150)
.....
----jboss.properties----
jboss.xa.xidclass=oracle.jdbc.xa.OracleXid
jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,oracle.jdbc.driver.OracleDriver
----jboss.conf----
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,oracle.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="OracleDB">
<ARG TYPE="java.lang.String"
VALUE="oracle.jdbc.xa.client.OracleXADataSource">
</MLET>
----jboss.jcml----
<mbean name="DefaultDomain:service=XADataSource,name=OracleDB">
<attribute name="Properties"></attribute>
<attribute name="URL">jdbc:oracle:thin:@myhost:1521:mysid</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">scott</attribute>
<attribute name="MaxSize">0</attribute>
<attribute name="Password">tiger</attribute>
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
</mbean>
Thanks,
Stephan
--
Sent through GMX FreeMail - http://www.gmx.net
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]