JMS to JMS Bridge fails with Number format exception on physical name ---------------------------------------------------------------------
Key: AMQ-1110 URL: https://issues.apache.org/activemq/browse/AMQ-1110 Project: ActiveMQ Issue Type: Bug Components: Broker Affects Versions: 4.1.0 Environment: Using Windows XP SP2, JDK 1.6.0, Bea Weblogic Server 8.1 SP6 Reporter: Kay Stanke Attachments: activemq.xml Maybe this is just some missconfiguration from my site but ... I'm trying to use activemq to integrate some c++ code with the j2ee world. My task is to forward messages generated on the c++ side to the JMS of Bea Weblogic 8.1. ActiveMQ is running outside the WLS in a separate process. The startup looks fine as the wls context can be used to get references to the ConnectionFactory and the configured test destination WLSTestQ. On sending a message to the local queue of the bridge i get the following stacktrace: java.lang.NumberFormatException: For input string: "WLSTESTQ" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.parseInt(Integer.java:497) at org.apache.activemq.command.ActiveMQTempDestination.setPhysicalName(ActiveMQTempDestination.java:66) at org.apache.activemq.command.ActiveMQDestination.<init>(ActiveMQDestination.java:142) at org.apache.activemq.command.ActiveMQTempDestination.<init>(ActiveMQTempDestination.java:38) at org.apache.activemq.command.ActiveMQTempQueue.<init>(ActiveMQTempQueue.java:36) at org.apache.activemq.command.ActiveMQDestination.transform(ActiveMQDestination.java:107) at org.apache.activemq.command.ActiveMQMessage.setJMSDestination(ActiveMQMessage.java:219) at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:428) at weblogic.jms.client.JMSProducer.send(JMSProducer.java:152) at weblogic.jms.client.JMSProducer.send(JMSProducer.java:215) 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:840) at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:96) at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:165) at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:88) at org.apache.activemq.thread.DedicatedTaskRunner.access$000(DedicatedTaskRunner.java:25) at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:39) ERROR DestinationBridge - failed to forward message on attempt: 1 reason: java.lang.NumberFormatException: For input string: "WLSTESTQ" message: ActiveMQTextMessage { commandId = 14, responseRequired = false, messageId = ID:KStanke-1523-1167310376227-0:0:1:1:10, originalDestination = null, originalTransactionId = null, producerId = ID:KStanke-1523-1167310376227-0:0:1:1, destination = queue://TEST.FOO, transactionId = null, expiration = 0, timestamp = 1167310385795, arrival = 0, correlationId = null, replyTo = null, persistent = false, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false, text = Message: 9 sent at: Thu Dec 28 13:53:05 CET 2006 [Skipped some blank lines] } I'm using the message producer from the example to test the routing to wls JMS. I also attached my activemq.xml configuration for you reference. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira