[JBoss Messaging] - Non JCA JMS and Transactions
by jamesbo
I'm using JBoss-4.2.2.GA and JBossMessaging-1.4.0.SP3.
It appears that my JMS messages sent transactionally are lost, and non-transactionally are transmitted OK as shown in the following traces (all log lines for the relevant message id shown):
TRACE [org.jboss.jms.message.MessageIdGenerator] Getting next message id=1765522
| TRACE [org.jboss.jms.client.container.SessionAspect] sending message JBossMessage[1765522]:PERSISTENT transactionally, queueing on resource manager txID=LocalTx[f5-z0pvn4hf-1-jbdun4hf-r3jkeb-o2e184a] sessionID= e5-z0pvn4hf-1-jbdun4hf-r3jkeb-o2e184a
| TRACE [org.jboss.jms.tx.ResourceManager] addding message JBossMessage[1765522]:PERSISTENT for xid LocalTx[f5-z0pvn4hf-1-jbdun4hf-r3jkeb-o2e184a]
|
TRACE [org.jboss.jms.message.MessageIdGenerator] Getting next message id=1765514
| TRACE [org.jboss.jms.server.endpoint.ServerConnectionEndpoint] ConnectionEndpoint[gl1-afx8o4hf-1-jbdun4hf-r3jkeb-o2e184a] sending message JBossMessage[1765514]:PERSISTENT non-transactionally
| TRACE [org.jboss.messaging.core.impl.postoffice.MessagingPostOffice] org.jboss.messaging.core.impl.postoffice.MessagingPostOffice@2f8985ba routing Reference[1765514]:RELIABLE with condition 'topic.ACTIVITY_LOG' from cluster false
| TRACE [org.jboss.messaging.core.impl.ChannelSupport] Queue[887642795/1/5265-ea1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] handles Reference[1765514]:RELIABLE non-transactionally
| TRACE [org.jboss.messaging.core.impl.ChannelSupport] Queue[887642795/1/5265-ea1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] added Reference[1765514]:RELIABLE non-transactionally in memory
| TRACE [org.jboss.messaging.core.impl.ChannelSupport] Queue[887642795/1/5265-ea1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] pushing Reference[1765514]:RELIABLE
| TRACE [org.jboss.jms.server.endpoint.ServerConsumerEndpoint] ConsumerEndpoint[da1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] receives Reference[1765514]:RELIABLE for delivery
| TRACE [org.jboss.jms.server.endpoint.ServerSessionEndpoint] SessionEndpoint[ca1-17g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] handling delivery Delivery[Reference[1765514]:RELIABLE]
| TRACE [org.jboss.messaging.core.impl.SimpleDelivery] Delivery[Reference[1765514]:RELIABLE] acknowledging delivery non-transactionally
| TRACE [org.jboss.messaging.core.impl.ChannelSupport] acknowledging Delivery[Reference[1765514]:RELIABLE] non-transactionally
| TRACE [org.jboss.jms.server.endpoint.ServerSessionEndpoint] SessionEndpoint[ca1-17g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] performing delivery for Reference[1765514]:RELIABLE
| TRACE [org.jboss.jms.server.endpoint.ServerSessionEndpoint] SessionEndpoint[ca1-17g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] submitting message JBossMessage[1765514]:PERSISTENT to the remoting layer to be sent asynchronously
| DEBUG [org.jboss.remoting.callback.ServerInvokerCallbackHandler] ServerInvokerCallbackHandler[a481e2o-8ownnu-fh4nzxf5-1-fh4o8g66-50+a481e2o-8ownnu-fh4nzxf5-1-fh4o8g6m-53] got PUSH callback InvocationRequest[11453981, ClientDelivery[JBossMessage[1765514]:PERSISTENT]]
| TRACE [org.jboss.jms.wireformat.JMSWireFormat] It's a callback: InvocationRequest[11453981, ClientDelivery[JBossMessage[1765514]:PERSISTENT]]
| TRACE [org.jboss.jms.wireformat.JMSWireFormat] Writing packet: ClientDelivery[JBossMessage[1765514]:PERSISTENT]
| TRACE [org.jboss.messaging.core.impl.RoundRobinDistributor] receiver ConsumerEndpoint[da1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a] handled Reference[1765514]:RELIABLE and returned Delivery[Reference[1765514]:RELIABLE]
| TRACE [org.jboss.messaging.core.impl.ClusterRoundRobinDistributor] org.jboss.messaging.core.impl.ClusterRoundRobinDistributor@70ccbbea local distributor returned Delivery[Reference[1765514]:RELIABLE]
| TRACE [org.jboss.messaging.core.impl.ChannelSupport] Queue[887642795/1/5265-ea1-h7g8o4hf-1-jbdun4hf-r3jkeb-o2e184a]: Delivery[Reference[1765514]:RELIABLE] returned for message Reference[1765514]:RELIABLE
| TRACE [org.jboss.messaging.core.impl.postoffice.MessagingPostOffice] Queue returned Delivery[Reference[1765514]:RELIABLE]
| TRACE [org.jboss.jms.server.endpoint.ServerConnectionEndpoint] sent JBossMessage[1765514]:PERSISTENT
For historical reasons (I'm porting some existing code from WLS) the JMS connections in the server are obtained in the same manner as a remote client, i.e. it does not use a JCA ConnectionManager. The JMS messages are sent in the context of a CMT SLSB and the transactions are committing. Is it possible that I'm not getting proper transaction integration if using connections not obtained via a JCA ConnectionManager?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156280#4156280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156280
17 years, 10 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
abuse@localhost
17 years, 10 months
[EJB/JBoss] - Got marshalling/unmarshalling Exception while communicating
by ashish_patil
Hi all,
I have one EJB application(which is running in Weblogic10) while i making the call to second application which is deplyed in Jboss4.0.4 ,i got follwing Exception in my EJB application log...
Actually its not able to connect to Jboss application :
vocationMarshaller&socketTimeout=600000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
06-Jun-2008 04:09:04 [DEBUG] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] UnifiedInvokerHAProxy - Making invocation on InvokerLocator [socket://172.31.210.217:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&socketTimeout=600000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
06-Jun-2008 04:09:04 [ERROR] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] SocketClientInvoker - Got marshalling exception, exiting
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1631)
at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:666)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObject(JavaSerializationManager.java:87)
at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:84)
at org.jboss.invocation.unified.marshall.InvocationMarshaller.write(InvocationMarshaller.java:66)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:273)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:185)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:331)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:194)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy86.create(Unknown Source)
at com.abc.util.ServiceLocator.connectToJbossApplication(ServiceLocator.java:179)
at com.abc.util.ServiceLocator.getJbossApplication(ServiceLocator.java:155)
at com.abc.myapplication.ejb.server.mySessnioBean.create(mySessnioBean.java:2039)
at com.abc.myapplication.ejb.server.mySessnioBean.create(mySessnioBean.java:821)
at sun.reflect.GeneratedMethodAccessor591.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at weblogic.ejb.container.injection.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:68)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy75.create(Unknown Source)
at com.abc.myapplication.ejb.server.mySessnioBean_dm2o44_EOImpl.create(mySessnioBean_dm2o44_EOImpl.java:2079)
at com.abc.myapplication.ejb.server.mySessnioBean_dm2o44_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
06-Jun-2008 04:09:04 [DEBUG] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] UnifiedInvokerHAProxy - Invocation failed: RemoteException - java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.net.SocketException: Broken pipe
java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.net.SocketException: Broken pipe
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:185)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:331)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:194)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy86.create(Unknown Source)
at com.abc.util.ServiceLocator.connectToJbossApplication(ServiceLocator.java:179)
at com.abc.util.ServiceLocator.getJbossApplication(ServiceLocator.java:155)
at com.abc.myapplication.ejb.server.mySessnioBean.create(mySessnioBean.java:2039)
at com.abc.myapplication.ejb.server.mySessnioBean.create(mySessnioBean.java:821)
at sun.reflect.GeneratedMethodAccessor591.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at weblogic.ejb.container.injection.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:68)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy75.create(Unknown Source)
at com.abc.myapplication.ejb.server.mySessnioBean_dm2o44_EOImpl.create(mySessnioBean_dm2o44_EOImpl.java:2079)
at com.abc.myapplication.ejb.server.mySessnioBean_dm2o44_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1631)
at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:666)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObject(JavaSerializationManager.java:87)
at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:84)
at org.jboss.invocation.unified.marshall.InvocationMarshaller.write(InvocationMarshaller.java:66)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:273)
... 46 more
06-Jun-2008 04:09:04 [ERROR] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ServiceLocator - Failed to connect to JbossApplication after 3198 ms: java.rmi.MarshalException
Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.net.SocketException: Broken pipe
06
Please provide any solutions on this ASAP.
Thanks in advance,
Ashish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156277#4156277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156277
17 years, 10 months
[Beginners Corner] - Liferay with Jboss
by vikramap
I am trying to create a simple PHP portlet in liferay:
Steps followed:
1. http://wiki.liferay.com/index.php/How_to_create_a_simple_php_portlet
on liferay-portal-jboss-tomcat-4.2-5.0.1
2. Log in as administrator(test(a)liferay.com/test).
Select "add application"->Admin->PluginInstaller-> add
Error(in red):
"An error occurred while retrieving available plugins."
The server.log has the following trace:
ERROR [PluginPackageUtil] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
ERROR [PluginPackageUtil] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
WARN [PluginPackageUtil] Unable to communicate with repository http://plugins.liferay.com/official
3. Upload the php zipped file using the "upload file" tab -> Install
I got following success message:
The plugin was uploaded successfully and is now being installed.
The server log has:
07:34:58,582 INFO [PortletAutoDeployListener] Portlets for C:\Documents and Settings\m1006785\liferay\deploy\test_abc.zip copied successfully
07:35:01,317 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@b25dfae { url=file:/D:/Liferay/liferay-portal-jboss-tomcat-4.2-5.0.1/server/default/deploy/test_abc.zip/ }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/Liferay/liferay-portal-jboss-tomcat-4.2-5.0.1/server/default/deploy/test_abc.zip/
altDD: null
lastDeployed: 1212737701317
lastModified: 1212737698442
mbeans:
--- Incompletely deployed packages ---
4. Select "Return to full page" , Add application
By default the portlet was supposed to appear in "Undefined" category but DOESNOT appear. The error in plugin installer section continues to have:
"An error occurred while retrieving available plugins."
I am not sure if it is waiting for some plugins to be downloaded from site and is not able to proceed due to communication error while accessing the trusted adn untrusted repositories at the following link:
http://plugins.liferay.com/official
Any help would be highly appreciated.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156271#4156271
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156271
17 years, 10 months