[Messaging, JMS & JBossMQ] - Synchronization Problem JMS Queue/Topic
by dpabhay
I have scheduled(once every minute it empties the queue) receiver from the queue. And I have multiple browsers of the queue using the objects from the queue.
I am using following code to browser through the objects on the queue.
--------------
Queue queue = getQueue();
logger.info("Get queue. Name: " + queue.getQueueName());
conn = getQueueConnection();
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
brower = session.createBrowser(queue);
Enumeration enumeration = brower.getEnumeration();
while(enumeration.hasMoreElements())
{
Object message = enumeration.nextElement();
if(message instanceof ObjectMessage)
{
ObjectMessage objMessage = (ObjectMessage)message;
Object obj = objMessage.getObject();
}
}
--------------
And using the following code to receive/remove objects from the queue
--------------
conn = getQueueConnection();
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
receiver = session.createReceiver(queue);
Message message = null;
message = receiver.receive(TIME_TO_WAIT);
while (message != null) {
message = receiver.receive(TIME_TO_WAIT);
}
----------------------------
Task - the browsing of the queue and receiving from the queue must be mutually exclusive. Can I control that?
Even greater problem is that I would like to have multiple browsing readers to be able to access the queue and still guarantee that the receivers will run within the reasonably comparable time with the schedule- time of the receiver (1 minute).
How can I access the queue in such a way? Does JBoss have other control structures to do the kind of thing that I am trying to do? Any pointers and answers?
Please assist.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983502#3983502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983502
19Â years, 6Â months
[Persistence, JBoss/CMP, Hibernate, Database] - javax.ejb.ObjectNotFoundException: No such entity! Transacti
by caerlama
Hi,
I got a javax.ejb.ObjectNotFoundException: exception trying to get a CMP Bean Data written by a MessageDrivenBean:
I am doing the following steps:
MDB1 read some information from a topic
MDB1 call the create method from a CMP Bean for saving the information in the DB
MDB1 send a message to a queue with the primary key of the CMP Bean written before to the DB
MDB2 read the primary key from the queue and starts a Thread parameterized with the primary key
The Thread tries to get the CMP Bean data using the findByPrimaryKey method.
I traced my Beans and I can recognize that the CMP Bean Data is on the DB ant the create method is finished.
I suppose the problem is that the CMP.create transaction isn?t committed before I try to read the DB record using the CMP.findByPrimaryKey because it works if I insert a wait for 1000 ms and retry to execute the findByPrimaryKey method
Now the question:
How can I be sure that the create transaction is committed before I read it again?
I am running Jboss 4.05, Oracle XE 10 and Java 1.4.2 all on the same server (ubuntu 2.6.15-26-server)
here the completed exception:
19:40:38,778 ERROR [STDERR] javax.ejb.ObjectNotFoundException: No such entity!
19:40:38,779 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:64)
19:40:38,779 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)
19:40:38,779 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)
19:40:38,779 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
19:40:38,779 ERROR [STDERR] at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1103)
19:40:38,780 ERROR [STDERR] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:721)
19:40:38,780 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:40:38,780 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
19:40:38,780 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:40:38,780 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
19:40:38,780 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1130)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
19:40:38,781 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
19:40:38,781 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
19:40:38,782 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
19:40:38,783 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
19:40:38,783 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:514)
19:40:38,783 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:975)
19:40:38,783 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
19:40:38,783 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:40:38,783 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
19:40:38,783 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
19:40:38,783 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
19:40:38,784 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
19:40:38,784 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
19:40:38,784 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
19:40:38,784 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
19:40:38,784 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
19:40:38,784 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:206)
19:40:38,784 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:192)
19:40:38,785 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
19:40:38,785 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
19:40:38,785 ERROR [STDERR] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
19:40:38,785 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
19:40:38,785 ERROR [STDERR] at $Proxy136.findByPrimaryKey(Unknown Source)
19:40:38,785 ERROR [STDERR] at edu.leipzig.taskman.TaskCache.getTask(TaskCache.java:287)
19:40:38,785 ERROR [STDERR] at edu.leipzig.taskman.ClientUpdate.addOpenTask(ClientUpdate.java:284)
19:40:38,786 ERROR [STDERR] at edu.leipzig.taskman.ClientManager.taskCreated(ClientManager.java:48)
19:40:38,786 ERROR [STDERR] at edu.leipzig.taskman.ejb.NewTask_PropagatingBean.handleClientTask(NewTask_PropagatingBean.java:254)
19:40:38,786 ERROR [STDERR] at edu.leipzig.taskman.ejb.NewTask_PropagatingBean.onMessage(NewTask_PropagatingBean.java:180)
19:40:38,786 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:40:38,786 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
19:40:38,786 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
19:40:38,787 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
19:40:38,787 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
19:40:38,787 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
19:40:38,787 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
19:40:38,787 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
19:40:38,787 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
19:40:38,787 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
19:40:38,788 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
19:40:38,789 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
19:40:38,789 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
19:40:38,789 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
19:40:38,789 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:902)
19:40:38,789 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
19:40:38,789 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:323)
19:40:38,790 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
19:40:38,790 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
19:40:38,790 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
Any Ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983501#3983501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983501
19Â years, 6Â months
[Installation, Configuration & Deployment] - Jboss AS Deployer Issues
by rameshkumar132
Hi All,
I am facing some deployer issues:
I have couple of war/ear files in my Jboss AS. I am facing the following issues:
Not sure what is the problem and where is the problem. Could some help me regarding this ?
Problem Log msg:
11:52:48,684 INFO [TomcatDeployer] deploy, ctxPath=/taxstream, warUrl=file:/opt/shared/app/geam/service/jboss/asgeam01d-2/tmp/deploy/tmp9637taxstream-exp.war/
11:52:48,911 ERROR [Tomcat5] Problem in init
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:215)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
at java.util.jar.JarInputStream.read(JarInputStream.java:159)
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:279)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:262)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
11:52:48,920 ERROR [MainDeployer] Could not initialise deployment: file:/opt/shared/app/geam/gsdwv2/content
org.jboss.deployment.DeploymentException: Unexpected end of ZLIB input stream; - nested throwable: (java.io.EOFException: Unexpected end of ZLIB input stream)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:314)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:215)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
at java.util.jar.JarInputStream.read(JarInputStream.java:159)
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:279)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:262)
... 68 more
11:52:48,937 INFO [TomcatDeployer] deploy, ctxPath=/pma, warUrl=file:/opt/shared/app/geam/pma/content/pma.war/
46.841: [GC 46.842: [DefNew: 6579K->704K(6656K), 0.0129610 secs] 43486K->38324K(64960K), 0.0130070 secs]
11:52:49,047 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/pma]
11:52:49,072 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@8b56e502 { url=file:/opt/shared/app/geam/gsdwv2/content/gsdwv2.war }
deployer: org.jboss.web.tomcat.tc5.Tomcat5@8aeed0
status: null
state: FAILED
watch: file:/opt/shared/app/geam/gsdwv2/content/gsdwv2.war
altDD: null
lastDeployed: 1162831968919
lastModified: 1162831968000
mbeans:
org.jboss.deployment.DeploymentInfo@fad28ef8 { url=file:/opt/shared/app/geam/gsdwv2/content }
deployer: org.jboss.deployment.JARDeployer@182da3d
status: null
state: FAILED
watch: file:/opt/shared/app/geam/gsdwv2/content
altDD: null
lastDeployed: 1162831968920
lastModified: 1162826048000
mbeans:
46.997: [GC 46.997: [DefNew: 6655K->703K(6656K), 0.0172570 secs] 44276K->39510K(64960K), 0.0173050 secs]
11:52:49,318 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-3.24.198.59-8080
47.280: [GC 47.280: [DefNew: 6655K->630K(6656K), 0.0149660 secs] 45462K->40124K(64960K), 0.0150200 secs]
11:52:49,489 INFO [ChannelSocket] JK2: ajp13 listening on /3.24.198.59:8009
11:52:49,494 INFO [JkMain] Jk running ID=0 time=0/40 config=null
11:52:49,516 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 47s:369ms
Regards,
Rameshkumar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983498#3983498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983498
19Â years, 6Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: TransactionRolledBackLocalException accessing entity bea
by jaysperk
After alot of research, I have come to the following conclusion. Performing a rollback does not rollback any changes made to a CMR relationship altered in concurrent transactions. The changes made to the database seem to be rolled back, but the entity that contains the CMR relationship will still contain the association.
Entity of type A has one to many relationship with Entity of type B
Start Transaction 1
Load Entity A1
Create Entity B1
Add Entity B1 to Entity A1 CMR relationship
Suspend Transaction 1
Start Transaction 2
Create Entity B2
Add Entity B2 to Entity A1
Rollback Transaction 2
Resume Transaction 1
Call CMR relationship to get B entities from A1
Returns RelationSet with 2 Entities
Get NoSuchObjectLocalException when accesing CMP field from entity B2 found in the returned RelationSet because the creation of B2 was rolled back but the relationship between A1 and B2 still existed in memory.
Conclusion:
The CMR relationship is not being cleaned up when Transaction 2 is rolled back. Transaction 1
will get a RelationSet that contains a reference to the rolled back entity B2.
If you use the per transaction entity instance cache (to jboss.xml below)
<instance-cache>org.jboss.ejb.plugins.PerTxEntityInstanceCache</instance-cache>
You will avoid the problem because each transaction is working on a separate instance
of the entity. This won't work for us however, because you also would not see commits
that occurred in transaction 2, within transaction 1.
Is anyone familiar with this problem? Or does anyone know of a workaround?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983494#3983494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983494
19Â years, 6Â months