SAP Knowledge Base Article - Preview

2714555 - "com.sap.aii.adapter.jms.api.connector.ConnectorException" thrown in JMS channel with transport protocol "Access JMS Provider with JNDI"

Symptom

You have configured a JMS channel with the transport protocol set to "Access JMS Provider with JNDI" and would like to connection to Weblogic JMS. When you try to start the channel you see the following error in the Communication Channel Monitor and in the default traces:

[EXCEPTION]
com.sap.aii.adapter.jms.api.connector.ConnectorException:Error creating initial context with environment: java.naming.provider.url=JMSserverhostname:JMSserverport; java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory; java.naming.security.principal=weblogic; java.naming.security.credentials=**********, for profile: ConnectionProfile of channel: JMSChannelName on node: servernodeID having object id: *** : javax.naming.ConfigurationException
at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext(JndiConnectorImpl.java:73)

at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.doBeforeConnect(JndiConnectorImpl.java:51)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connectIfDisconnected(ConnectorImpl.java:249)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connect(ConnectorImpl.java:233)
at com.sap.aii.adapter.jms.core.channel.ChannelImpl.doStart(ChannelImpl.java:423)
at com.sap.aii.adapter.jms.core.channel.ChannelImpl.start(ChannelImpl.java:180)
at com.sap.aii.adapter.jms.core.channel.AdapterImpl$1.run(AdapterImpl.java:987)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)

When you collect an XPI Inspector trace with Example 50 - XI Channel for the JMS channel you can see the following error:

Caused by:
javax.naming.ConfigurationException [Root exception is java.net.MalformedURLException: no protocol: JMSserverhostname:JMSserverport]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:36)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:368)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at com.sap.engine.system.naming.provider.DefaultInitialContext._getDefaultInitCtxt(DefaultInitialContext.java:64)
at com.sap.engine.system.naming.provider.DefaultInitialContext.<init>(DefaultInitialContext.java:45)
at com.sap.engine.system.naming.provider.DefaultInitialContextFactory.getInitialContext(DefaultInitialContextFactory.java:41)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext(JndiConnectorImpl.java:66)
at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.doBeforeConnect(JndiConnectorImpl.java:51)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connectIfDisconnected(ConnectorImpl.java:249)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connect(ConnectorImpl.java:233)
at com.sap.aii.adapter.jms.core.channel.ChannelImpl.doStart(ChannelImpl.java:423)
at com.sap.aii.adapter.jms.core.channel.ChannelImpl.start(ChannelImpl.java:180)
at com.sap.aii.adapter.jms.core.channel.AdapterImpl$1.run(AdapterImpl.java:987)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
Caused by: java.net.MalformedURLException: no protocol: JMSserverhostname:JMSserverport
at weblogic.protocol.ServerURL.parseURL(ServerURL.java:357)
at weblogic.protocol.ServerURL.<init>(ServerURL.java:103)
at weblogic.rjvm.ServerURL.<init>(ServerURL.java:49)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:338)
... 21 more


Read more...

Environment

  • SAP NetWeaver 7.1
  • SAP enhancement package 1 for SAP NetWeaver 7.1
  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Process Integration 7.1 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1

Keywords

Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI, ConnectorException, com.sap.aii.adapter.jms.api.connector.ConnectorException, ConfigurationException, javax.naming.ConfigurationException, MalformedURLException, java.net.MalformedURLException, no protocol, com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext , KBA , BC-XI-CON-JMS , JMS Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.