[JBoss Messaging] - Re: Bridge - Foreign Message (ActiveMQ -> JbossMessaging)
by sherington
I think I am seeing the same problem or something similar.
I have posted my results here in case it helps with any resolution.
My understanding is that a foreign JMS provider should be supported - so either this should work or my understanding is wrong!
Setup:
JBoss-4.2.1.GA (clustered)
JBossMessaging-1.4.0CR1 (automatically installed to JBoss 4.2.1 as per instructions)
ActiveMQ-4.1.1
Background:
I have two failing scenarios, both of which involve a message bridge between an ActiveMQ broker and a JBoss server instance on different boxes.
The first scenario is to configure the JBoss Messaging bridge to pull messages from a remote ActiveMQ queue and send them to a local message queue.
The second scenario is to configure the ActiveMQ messaging bridge to pull messages from a local ActiveMQ queue and send them to a remote JBoss message queue.
The two scenarios are mutually exclusive of course.
I am pretty confident that I have correctly set up the configuration files and the bridge service.
In both scenarios I can see messages successfully being sent to the local queue and I can even see the respective bridge picking up the messages and attempting to transport them across the bridge.
Results:
First results (JBoss Messaging bridge from ActiveMQ):
This is the JBoss server log after I send a message to the remote ActiveMQ queue...
| 13:02:18,640 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 41s:531ms
| 13:04:03,234 INFO [BridgeService] Started bridge BridgeService. Source: dynamicQueues/TestQueue Target: /queue/BridgeTargetQueue
| 13:04:08,281 WARN [Bridge] Failed to send + acknowledge batch, closing JMS objects
| org.jboss.jms.exception.MessagingJMSException: Failed to invoke
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:247)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:202)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:447)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:631)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:243)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect46.invoke(ProducerAspect46.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)
| at org.jboss.jms.server.bridge.Bridge.sendBatch(Bridge.java:1197)
| at org.jboss.jms.server.bridge.Bridge.access$1700(Bridge.java:63)
| at org.jboss.jms.server.bridge.Bridge$BatchTimeChecker.run(Bridge.java:1481)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.ClassCastException: org.apache.activemq.command.ActiveMQQueue cannot be cast to org.jboss.jms.destination.JBossDestination
| at org.jboss.jms.server.container.SecurityAspect.check(SecurityAspect.java:219)
| at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:150)
| 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:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_6145266547759487588.invokeNext(SessionAdvised$send_6145266547759487588.java)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_6145266547759487588.invokeNext(SessionAdvised$send_6145266547759487588.java)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:85)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:165)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
| at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.remoting.Client.invoke(Client.java:518)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
| ... 28 more
| 13:04:08,609 WARN [Bridge] Will retry after a pause of 5000 ms
|
org.jboss.jms.server.container.SecurityAspect.java:
| 216 private void check(Destination dest, CheckType checkType, ServerConnectionEndpoint conn)
| 217 throws JMSSecurityException
| 218 {
| 219 JBossDestination jbd = (JBossDestination)dest; <-------------
| 220
| 221 if (jbd.isTemporary())
|
Second results (Active MQ bridge to JBoss):
This is the ActiveMQ broker log after I send a message to the ActiveMQ queue...
| INFO BrokerService - ActiveMQ JMS Message Broker (localhost, ID:CFX002.cfis-49696-1186750424461-1:0) started
| ERROR JMSWireFormat - Failed to write packet
| java.lang.ClassCastException
| at org.jboss.jms.destination.JBossDestination.writeDestination(JBossDestination.java:62)
| at org.jboss.jms.message.JBossMessage.write(JBossMessage.java:1031)
| at org.jboss.jms.wireformat.SessionSendRequest.write(SessionSendRequest.java:96)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.remoting.Client.invoke(Client.java:518)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(Client
| SessionDelegate.java:447)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:631)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:243)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:150)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:201)
| at org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:87)
| at org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:134)
| at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:854)
| at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:99)
| at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:166)
| at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:117)
| at org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java:26)
| at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| ERROR SocketClientInvoker - Got marshalling exception, exiting
| java.io.IOException
| at org.jboss.jms.destination.JBossDestination.writeDestination(JBossDestination.java:62)
| at org.jboss.jms.message.JBossMessage.write(JBossMessage.java:1031)
| at org.jboss.jms.wireformat.SessionSendRequest.write(SessionSendRequest.java:96)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.remoting.Client.invoke(Client.java:518)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(Client
| SessionDelegate.java:447)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:631)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:243)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:150)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:201)
| at org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:87)
| at org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:134)
| at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:854)
| at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:99)
| at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:166)
| at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:117)
| at org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java:26)
| at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| ERROR DestinationBridge - failed to forward message on attempt: 1 reason: org.jboss.jms.exception.MessagingNetworkFai
| lureException message: ActiveMQTextMessage {commandId = 5, responseRequired = true, messageId = ID:XXXXXXXXXX-1277-1186741192984-1:0:
| 1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:XXXXXXXXXX-1277-1186741192984-1:0:1:1, destination =
| queue://BridgeTargetQueue, transactionId = null, expiration = 0, timestamp = 1186750453371, arrival = 0, correlationId = null, re
| plyTo = null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed
| = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 604, pro
| perties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false, text = Message 1 @ Fri Aug 10 11:19:54 BST 2007
| }
| org.jboss.jms.exception.MessagingNetworkFailureException
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:221)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:202)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(Client
| SessionDelegate.java:447)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:631)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145
| 266547759487588.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:243)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_39
| 61598017717988886.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:150)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:201)
| at org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:87)
| at org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:134)
| at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:854)
| at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:99)
| at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:166)
| at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:117)
| at org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java:26)
| at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
| java.io.IOException
| at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:644)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:353)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.remoting.Client.invoke(Client.java:518)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
| ... 34 more
| Caused by: java.io.IOException
| at org.jboss.jms.destination.JBossDestination.writeDestination(JBossDestination.java:62)
| at org.jboss.jms.message.JBossMessage.write(JBossMessage.java:1031)
| at org.jboss.jms.wireformat.SessionSendRequest.write(SessionSendRequest.java:96)
| at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:969)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:557)
| ... 40 more
|
org.jboss.jms.destination.JBossDestination.java:
| 60 public static void writeDestination(DataOutputStream out, Destination dest) throws IOException
| 61 {
| 62 JBossDestination jb = (JBossDestination)dest; <-------------
|
Hope this is useful!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073005#4073005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073005
18Â years, 10Â months
[Installation, Configuration & DEPLOYMENT] - JasperException error.
by alamandrax
Hi,
I posted this question to the beginner's section of the forum, but can't seem to get this fixed.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115792
I'm pasting the first post of the thread here.
"alamandrax" wrote : Hi,
|
| I've just finished installing the JBoss AS 4.0.5.GA using the JEMS installer and I configured it to install the ejb 3.0 profile.
|
| After completing the installation, I deployed my application to the Application Server. Upon trying to run the application however, I encounter the following exception.
|
| org.apache.jasper.JasperException: Unable to compile class for JSP
| |
| | An error occurred at line: 2 in the jsp file: /menu.jsp
| | Generated servlet error:
| | The type List is not generic; it cannot be parameterized with arguments <String>
| |
| | An error occurred at line: 2 in the jsp file: /menu.jsp
| | Generated servlet error:
| | Syntax error, parameterized types are only available if source level is 5.0
| |
| | An error occurred at line: 2 in the jsp file: /menu.jsp
| | Generated servlet error:
| | The type List is not generic; it cannot be parameterized with arguments <String>
| |
| | An error occurred at line: 2 in the jsp file: /menu.jsp
| | Generated servlet error:
| | Syntax error, parameterized types are only available if source level is 5.0
| |
| | An error occurred at line: 320 in the jsp file: /menu.jsp
| | Generated servlet error:
| | Incompatible conditional operand types Long and String
| |
| | An error occurred at line: 326 in the jsp file: /menu.jsp
| | Generated servlet error:
| | Incompatible conditional operand types Long and String
| |
| |
| | org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
| | org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
| | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| I do not know why it asks me for a source level of 5.0. I have the Java 1.5.0_12 SDK installed and my JAVA_HOME environment variable points to the installation directory. I have searched my registry to check if the JVM version points to an incorrect version, but haven't found anything yet. I am not sure about configuration options of the Tomcat server though.
|
| Do I need to change any settings to point tomcat to the right resource for the JDK?
|
| I am on a Windows Vista Home Premium machine.
|
| Please help.
|
| Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073002#4073002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073002
18Â years, 10Â months
[JNDI/Naming/Network] - Cannot connect to a RMI server (RMI) from JBoss (JNDI)
by analorite
Hi everyone. I hope I am in the right forum.
I have problems to access to a remote RMI server from JBoss. I mean JBoss is the client.
My application run under Unix. My JBoss version is 4.0.2.
Following i describe my scenario:
- The Server: a pure java RMI server:
step 1) i start the RMI Registry:
agilent:/> rmiregistry -J-Djava.class.path=. &
step 2) i run the java rmi server.
agilent:/> java HelloServer
Hello Server is going to be already....
Hello Server already!
My server code is the following:
HelloImpl obj = new HelloImpl();
System.setProperty("java.security.policy", "java.policy");
System.setSecurityManager(new RMISecurityManager());
System.out.println("Hello Server is going to be already....");
Naming.rebind("HelloServer", obj);
System.out.println("Hello Server already!");
- The Client: A class within JBoss. My client code is the following:
String server = "rmi://10.95.18.121:1099/HelloServer";
try {
if (System.getSecurityManager()== null){
log.debug("GestorColeta::executeRemote ==> Crear RMISecurityManager");
System.setSecurityManager(new RMISecurityManager());
}else log.debug("GestorColeta::executeRemote ==> Ya existe RMISecurityManager");
Registry registry = LocateRegistry.getRegistry("10.95.18.121");
if (registry != null){
String[] entries = registry.list();
if (entries != null){
for (int x = 0; x < entries.length; x++){
log.debug("GestorColeta::executeRemote ==> Vinculos disponibles[" + x + "]:" + entries[x] );
}
}else log.debug("GestorColeta::executeRemote ==> Fallo al obtener vÃnculos disponibles");
} else log.debug("GestorColeta::executeRemote ==> Fallo al obtener el registro");
/*Properties prop = new Properties();
prop.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
prop.put("java.naming.provider.url","rmi://10.95.18.121:1099");
prop.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
Context c = new InitialContext(prop);*/
log.debug("GestorColeta::executeRemote ==> Naming lookup...");
//Hello gestor = (Hello) c.lookup("HelloServer");
Hello gestor = (Hello) registry.lookup(server);
log.debug("GestorColeta::executeRemote ==> Naming lookup... OK!!");
And i obtain the next:
12:52:42,472 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Ya existe RMISecurityManager
12:52:42,488 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Vinculos disponibles[0]:HelloServer
12:52:42,488 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Naming lookup...
12:52:42,511 ERROR [uploadmanager] GestorColeta::GestorColeta: ==> rmi://10.95.18.121:1099/HelloServer
12:52:42,511 ERROR [uploadmanager] GestorColeta::GestorColeta: ==> java.rmi.NotBoundException
As you can see, i get the entries list from the registry... but i cannot lookup the HelloServer service. :-(
I tried to run the commented code: Hello gestor = (Hello) c.lookup("HelloServer"); but i had no good news:
13:56:16,949 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Ya existe RMISecurityManager
13:56:16,967 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Vinculos disponibles[0]:HelloServer
13:56:16,968 DEBUG [uploadmanager] GestorColeta::executeRemote ==> Naming lookup...
13:56:21,983 ERROR [uploadmanager] GestorColeta::GestorColeta: ==> Receive timed out
13:56:21,984 ERROR [uploadmanager] GestorColeta::GestorColeta: ==> javax.naming.CommunicationException
13:56:21,985 ERROR [uploadmanager] GestorColeta::GestorColeta: ==> java.net.SocketTimeoutException: Receive timed out
I changed the rmi.codebase.server in my JBoss run.sh: -Drmi.codebase.server.... (by default is http://10.95.18.121:8083/ ) but if i change this property all my EJBeans and Servlets fail
Reading the forums i could obtain the list of the rmi services on the server... And i knew that JBoss use JNDI instead RMI so I tried jnp:// instead of rmi://. Nothing.
This topic is very interesting http://www.jboss.org/index.html?module=bb&op=viewtopic&t=56265
anonymous wrote : Oh, your using the rmi registry Naming.list, not the jndi Context.list as I thought. JBoss does not implement an rmi registry. Use jndi.
so: how can I use JNDI to connect to a RMI server?
I am literally desesperated. Can anyone give me a ray of light? It will be really appreciated. :)
Thanks in advance.
Ana.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072999#4072999
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072999
18Â years, 10Â months
[JBoss Seam] - Seam 2.0 Beta booking test
by urswag
When I run the tests for the
booking example of Seam 2.0 is get now an unbound transaction error.
What could be not correctly configured? Thanks
| [testng] ERROR 10-08 14:11:44,809 (DebugPageHandler.java:handle:23) -redirecting to debug page
| [testng] javax.naming.NameNotFoundException: EjbTransaction not bound
| [testng] at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
| [testng] at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
| [testng] at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
| [testng] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| [testng] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:628)
| [testng] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
| [testng] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| [testng] at org.jboss.seam.Component.instantiateSessionBean(Component.java:1173)
| [testng] at org.jboss.seam.Component.instantiate(Component.java:1159)
| [testng] at org.jboss.seam.Component.newInstance(Component.java:1849)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1756)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1735)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1712)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1707)
| [testng] at org.jboss.seam.transaction.Transaction.instance(Transaction.java:96)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:301)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.applyRequestValuesPhase(BaseSeamTest.java:657)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:547)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:487)
| [testng] at org.jboss.seam.example.booking.test.ChangePasswordTest.testChangePassword(ChangePasswordTest.java:52)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
| [testng] at org.testng.TestRunner.run(TestRunner.java:495)
| [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| [testng] at org.testng.TestNG.run(TestNG.java:699)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
| [testng] at org.testng.TestNG.main(TestNG.java:802)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072998#4072998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072998
18Â years, 10Â months
[Beginners Corner] - Did I understand this correctly?
by tdemuth
I'm trying to write a first JEE-Applicationclient connecting to JBoss for my diploma thesis. I have read a lot of stuff about how to connect and login into JBoss, but I'm not sure if I got it right:
When my app-client starts up, it should prompt the User for an username and a password. This Username and password must be checked against the database by using JBoss. The last "by using JBoss" is not so much a requirement, I'm just thinking, it's a good idea.
So I guess I configure my login-module that way:
<policy>
| <application-policy name="clientLogin">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.ClientLoginModule" flag="required">
| </login-module>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
| <module-option name="dsJndiName">java:/MySQLDS</module-option>
| </login-module>
| </authentication>
| </application-policy>
| </policy>
So, first of all: Did I understand the way how to login correctly? The application-code calls a secured EJB-method and the Server runs the configured Login-Process. Via a CallBackHandler specified for ClientLogin, I am able to open a graphical Dialog for getting the User's credentials.
Second question: How do I specify a CallbackHandler for the ClientLogin-module?
kind regards
Tobias
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072986#4072986
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072986
18Â years, 10Â months