Hi;

I'm using JBOSS 2.4, Tomcate 3.2.3,MySql 3.23.42 (with BDB for 
transaction-safe supoprt), Jdk1.3.1, and mm.mysql.jdbc 1.2 driver. all 
installed on a Linux box.

I'm able to deply (hot-deploy) my (BMP) entity bean and access it (via a 
servlet) just fine with no problems. However, when I attempt to perform 
hot-deployment (for my entity bean)at the same time there are active bean 
instances (of the same entity bean being hot-deployed), belonging to to 
multi-threaded client http-servlet based requests, that are accessing (i.e. 
performing SQL updates), or trying to access the database; all those beans 
active instances through expections.

Every time I re-attempt the test, I get a different exception raised from 
the bean. The exception I've seen so far are:
- EJBException
- IllegalStateException
- RemoteException
- TransactionRolledBackException
- MarshalException: invalid remote object
- UndeclaredThrowableException

Initially I thuoght that it was a MySql, or an mm jdbc driver problem. 
However, MySql (or even the mm jdbc driver)has no problems handling parallel 
db transactions in any shape. Only when HotDeploy is done for the same (BMP) 
entity bean type that at the same time is beeing used by clients, 
creates/raises exceptions and causes all db transactions that are taking 
place at that same hot-deployment time to fail.

Did I stumple upon a JBOSS bug?... Have someone else encountered this 
problem?

Any help/clues will be greatly appreciated.

Regards;
Tom

PS: Below are the command line outputs of JBOSS during one of my testings 
(Sorry if it's too long; but I thought it might be helpful):

[beanManaged] findByPrimaryKey(474638)
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@5ffe34' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5'.
[ejb_dbPool] Pool ejb_dbPool [1/1/10] gave out pooled object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5
[ejb_dbPool] Pool ejb_dbPool [0/1/10] returned object 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5 to the pool.
[beanManaged] ejbFindByPrimaryKey: AccountBean (474638) not found
[beanManaged] create(474638,3000.0)
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@5ffe34' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5'.
[ejb_dbPool] Pool ejb_dbPool [1/1/10] gave out pooled object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5
[ejb_dbPool] Pool ejb_dbPool [0/1/10] returned object 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5 to the pool.
[beanManaged] [474638] deposit(5000,100.0)
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@5ffe34' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5'.
[ejb_dbPool] Pool ejb_dbPool [1/1/10] gave out pooled object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5
[beanManaged] findByPrimaryKey(666052)
[ejb_dbPool] org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl created new 
Connection (org.gjt.mm.mysql.jdbc2.Connection) with XAResource 
org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl and XAConnection 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl.
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@16b9cd' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47'.
[ejb_dbPool] Pool ejb_dbPool [1/1/10] gave out new object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47
[ejb_dbPool] Pool ejb_dbPool [1/2/10] returned object 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47 to the pool.
[beanManaged] ejbFindByPrimaryKey: AccountBean (666052) not found
[beanManaged] create(666052,3000.0)
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@16b9cd' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47'.
[ejb_dbPool] Pool ejb_dbPool [2/2/10] gave out pooled object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47
[beanManaged] findByPrimaryKey(978500)
[ejb_dbPool] org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl created new 
Connection (org.gjt.mm.mysql.jdbc2.Connection) with XAResource 
org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl and XAConnection 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl.
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@4a6d70' 
enlisted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@4749fc'.
[ejb_dbPool] Pool ejb_dbPool [2/2/10] gave out new object: 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@4749fc
[AutoDeployer] Auto deploy of 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/deploy/beanManaged_Account.jar
[J2EE Deployer Default] Stopping module beanManaged_Account.jar
[Container factory] 
Undeploying:file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/beanManaged_Account.jar
[ContainerManagement] Stopping
[ContainerManagement] Stopped
[ContainerManagement] Destroying
[ContainerManagement] Destroyed
[ContainerManagement] Destroying
[ContainerManagement] Destroyed
[Container factory] Undeployed application: 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/beanManaged_Account.jar
[J2EE Deployer Default] Destroying application beanManaged_Account.jar
[J2EE Deployer Default] Report of undeployment of J2EE application: 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/deploy/beanManaged_Account.jar 
could not be reported.
[J2EE Deployer Default] Deploy J2EE application: 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/deploy/beanManaged_Account.jar
[J2eeDeployer] Create application beanManaged_Account.jar
[J2eeDeployer] install EJB module beanManaged_Account.jar
[Container factory] 
Deploying:file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/beanManaged_Account.jar
[Verifier] Verifying 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/beanManaged_Account.jar/ejb1072.jar
[Container factory] Deploying beanManaged
[Default] null
[ContainerManagement] Initializing
[ContainerManagement] Initialized
[ContainerManagement] Starting
[ContainerManagement] Started
[Container factory] Deployed application: 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/beanManaged_Account.jar
[J2EE Deployer Default] J2EE application: 
file:/home/awada/JBoss-2.4.0_Tomcat-3.2.3/jboss/deploy/beanManaged_Account.jar 
is deployed.
[ejb_dbPool] Pool ejb_dbPool [2/3/10] returned object 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@2053d5 to the pool.
[ejb_dbPool] Pool ejb_dbPool [1/3/10] returned object 
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@3a1c47 to the pool.
[beanManaged] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
        javax.ejb.EJBException
[beanManaged] java.lang.IllegalStateException: Can't put job, thread is not 
alive or not present
[beanManaged]   at org.jboss.util.WorkerQueue.putJob(WorkerQueue.java:77)
[beanManaged]   at 
org.jboss.ejb.plugins.AbstractInstanceCache$PassivationHelper.schedule(AbstractInstanceCache.java:725)
[beanManaged]   at 
org.jboss.ejb.plugins.AbstractInstanceCache.schedulePassivation(AbstractInstanceCache.java:403)
[beanManaged]   at 
org.jboss.ejb.plugins.AbstractInstanceCache.release(AbstractInstanceCache.java:233)
[beanManaged]   at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ageOut(LRUEnterpriseContextCachePolicy.java:234)
[beanManaged]   at 
org.jboss.util.LRUCachePolicy$LRUList.demote(LRUCachePolicy.java:337)
[beanManaged]   at 
org.jboss.util.LRUCachePolicy.insert(LRUCachePolicy.java:153)[beanManaged] 
        at 
org.jboss.ejb.plugins.AbstractInstanceCache.insert(AbstractInstanceCache.java:202)
[beanManaged]   at 
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManager.java:180)
[beanManaged]   at 
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:538)
[beanManaged]   at java.lang.reflect.Method.invoke(Native Method)
[beanManaged]   at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:765)
[beanManaged]   at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:224)
[beanManaged]   at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:87)
[beanManaged]   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[beanManaged]   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
[beanManaged]   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[beanManaged]   at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
[beanManaged]   at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[beanManaged]   at 
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:342)
[beanManaged]   at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:370)
[beanManaged]   at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:424)
[beanManaged]   at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:237)
[beanManaged]   at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
[beanManaged]   at $Proxy98.create(Unknown Source)
[beanManaged]   at ALA_WORK.beanManaged.Servlet.service(Servlet.java:119)
[beanManaged]   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[beanManaged]   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
[beanManaged]   at org.apache.tomcat.core.Handler.service(Handler.java:287)
[beanManaged]   at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
java:372)
[beanManaged]   at 
org.apache.tomcat.core.ContextManager.internalService(Context
Manager.java:812)
[beanManaged]   at 
org.apache.tomcat.core.ContextManager.service(ContextManager.
java:758)
[beanManaged]   at 
org.apache.tomcat.service.http.HttpConnectionHandler.processC
onnection(HttpConnectionHandler.java:213)
[beanManaged]   at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
nt.java:416)
[beanManaged]   at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
ool.java:501)
[beanManaged]   at java.lang.Thread.run(Thread.java:484)
[ejb_dbPool] Pool ejb_dbPool [0/3/10] returned object 
org.jboss.pool.jdbc.xa.wra
pper.XAConnectionImpl@4749fc to the pool.
[beanManaged] ejbFindByPrimaryKey: AccountBean (978500) not found
[beanManaged] create(978500,3000.0)
[ejb_dbPool] Resource 'org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl@4a6d70' 
enl
isted for 'org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@4749fc'.
[ejb_dbPool] Pool ejb_dbPool [1/3/10] gave out pooled object: 
org.jboss.pool.jdb
c.xa.wrapper.XAConnectionImpl@4749fc
[ejb_dbPool] Pool ejb_dbPool [0/3/10] returned object 
org.jboss.pool.jdbc.xa.wra
pper.XAConnectionImpl@4749fc to the pool.




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to