users@glassfish.java.net

Problem usning sun-jms-adapter with sun-jms-binding component

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jun 2010 10:43:00 PDT

When I have the ConnectionURL property set to mq://server:port/ssljms I have connection problems to Sun Java Message Queue server. It works fine when I have the property set to mq://server:port/. Using the jmsra adapter connections using ssljms works just fine so I know the ssljms service is working. Does anyone know why mq://server:port/ssljms is not working? Here are the errors I get:


[#|2010-06-07T12:16:53.553-0500|SEVERE|sun-appserver2.1|com.stc.jmsjca.core.RAJMSResourceAdapter|_ThreadID=37;_ThreadName=EnterpriseEventBPEL_CA-sun-jms-binding;_RequestID=3eed649d-1ccb-4903-96d2-04a4f48346e2;|JMSJCA-E010: Could not create Activation for com.sun.jbi.jmsbc.InboundMessageProcessorFactory_at_912e6a and spec com.stc.jmsjca.unifiedjms.RAUnifiedActivationSpec: String index out of range: -1.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

[#|2010-06-07T12:16:53.554-0500|SEVERE|sun-appserver2.1|sun-jms-binding.com.sun.jbi.jmsbc.JMSBindingDeployer|_ThreadID=37;_ThreadName=EnterpriseEventBPEL_CA-sun-jms-binding;_RequestID=3eed649d-1ccb-4903-96d2-04a4f48346e2;|JMSBC-E0728: Failed to start the service unit EnterpriseEventBPEL_CA-sun-jms-binding: JMSBC-E0754: Failed to start endpoint EnterpriseEventJMSInput_InPort of service {http://j2ee.netbeans.org/wsdl/EnterpriseEventBPEL/EnterpriseEventJMSInput}JMSInService
javax.jbi.JBIException: JMSBC-E0754: Failed to start endpoint EnterpriseEventJMSInput_InPort of service {http://j2ee.netbeans.org/wsdl/EnterpriseEventBPEL/EnterpriseEventJMSInput}JMSInService
        at com.sun.jbi.jmsbc.ServiceUnitImpl.start(ServiceUnitImpl.java:421)
        at com.sun.jbi.jmsbc.JMSBindingDeployer.start(JMSBindingDeployer.java:281)
        at com.sun.jbi.framework.ServiceUnitOperation.process(ServiceUnitOperation.java:185)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.jbi.jmsbc.jms.ChannelException: JMSBC-E0205: Failed to start channel for connection lookup://jms/EvtQCF
        at com.sun.jbi.jmsbc.jms.ReceiveChannelJCAImpl.internalStart(ReceiveChannelJCAImpl.java:247)
        at com.sun.jbi.jmsbc.jms.ReceiveChannelJCAImpl.start(ReceiveChannelJCAImpl.java:203)
        at com.sun.jbi.jmsbc.ServiceUnitImpl.start(ServiceUnitImpl.java:731)
        at com.sun.jbi.jmsbc.ServiceUnitImpl.startConsuming(ServiceUnitImpl.java:664)
        at com.sun.jbi.jmsbc.ServiceUnitImpl.start(ServiceUnitImpl.java:377)
        ... 4 more
Caused by: javax.resource.NotSupportedException: JMSJCA-E010: Could not create Activation for com.sun.jbi.jmsbc.InboundMessageProcessorFactory_at_912e6a and spec com.stc.jmsjca.unifiedjms.RAUnifiedActivationSpec: String index out of range: -1.
        at com.stc.jmsjca.core.RAJMSResourceAdapter.endpointActivation(RAJMSResourceAdapter.java:352)
        at com.sun.jbi.jmsbc.jms.ReceiveChannelJCAImpl.internalStart(ReceiveChannelJCAImpl.java:236)
        ... 8 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at java.lang.String.substring(String.java:1904)
        at com.stc.jmsjca.sunone.SunOneConnectionUrl.parse(SunOneConnectionUrl.java:101)
        at com.stc.jmsjca.sunone.SunOneConnectionUrl.getProtocol(SunOneConnectionUrl.java:198)
        at com.stc.jmsjca.sunone.SunOneUrlParser.validate(SunOneUrlParser.java:134)
        at com.stc.jmsjca.sunone.RASunOneObjectFactory.validateAndAdjustURL(RASunOneObjectFactory.java:164)
        at com.stc.jmsjca.core.RAJMSObjectFactory.getProperties(RAJMSObjectFactory.java:268)
        at com.stc.jmsjca.core.Activation.activate(Activation.java:218)
        at com.stc.jmsjca.core.RAJMSResourceAdapter.endpointActivation(RAJMSResourceAdapter.java:344)
        ... 9 more
[Message sent by forum member 'sbeard']

http://forums.java.net/jive/thread.jspa?messageID=473185