cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.3 JMS Adapter Active MQ-com.sap.aii.adapter.jms.api.connector.ConnectorException

Former Member
0 Kudos

Hi Guys,

we are trying to connect to the ActiveMQ (5.5.1) from PI 7.3 using JMS adapter and the provider.xml exactly looks like above and i have followed your blog PI tips Active MQ and i am getting the error as below. Any help would be appreciated.

A channel error occurred. Detailed error (if any) : com.sap.aii.adapter.jms.api.connector.ConnectorException: Cannot construct connection factory using constructor: ConstructorInvocationException: Error executing constructor invocation: <br>{ConstructorInvocation<br>{className=org.apache.activemq.ActiveMQConnectionFactory,<br>invokeParams=[<br>{InvokeParameter<br>{className=null,<br>type=java.lang.String,<br>value=tcp://XX.XXX.XX.XX:61616<br>}]<br>}: java.lang.reflect.InvocationTargetException at com.sap.aii.adapter.jms.core.connector.DirectConnectorImpl.createConnectionFactory(DirectConnectorImpl.java:101) <br>

My provider.xml looks like below.

<?xml version="1.0"?>

-<provider-descriptor> <display-name>XPI Adapter Library</display-name> <component-name>com.sap.aii.adapter.lib</component-name> <provider-name>sap.com</provider-name> -<references> <reference provider-name="sap.com" strength="strong" type="library">engine.j2ee14.facade</reference> </references> -<jars> <jar-name>lib/com.sap.aii.adapter.lib_api.jar</jar-name> <jar-name>lib/activemq-all-5.5.1.jar</jar-name> <jar-name>lib/slf4j-log4j12-1.6.4.jar</jar-name> <jar-name>lib/log4j-over-slf4j-1.6.4.jar</jar-name> <jar-name>lib/spring-aop-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-asm-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-beans-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-context-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-core-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-expression-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-jms-3.0.3.RELEASE.jar</jar-name> <jar-name>lib/spring-oxm-tiger-1.5.8.jar</jar-name> <jar-name>lib/spring-tx-3.0.3.RELEASE.jar</jar-name> </jars> </provider-descriptor>

Do i need to remove all spring files and just have 4 jar files as in the link below? Do i need to set any class path? I did overwrite option while deploying the sda file using JSPM. Any help would be appreciated

looked into threads http://scn.sap.com/thread/2140311

http://scn.sap.com/people/michal.krawczyk2/blog/2011/12/25/michals-pi-tips-activemq--jms--topics-wit...

Thanks,

Srini

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Guys,

Do i need to install JDK 1.6 on the PI server? any help would be appreciated.

Thanks,

Srini

baskar_gopalakrishnan2
Active Contributor
0 Kudos

If your jdk version is 1.5 plus then it is sufficient. The problem is not due to java version. I suspect problem due to jms drivers incorrect installation or the channel does not have the connection details to connect jms server like connection factory class name, queue name, jndi lookup name etc. Check with jms system and make sure you specify correctly in the jms channel.

Former Member
0 Kudos

Hi Bhaskar,

Thanks for the reply and i am using below parameters for the connection.

Enable tpoic support - checked.

JMS.QueueConnectionFactoryImpl.classname = org.apache.activemq.ActiveMQConnectionFactory

JMS.QueueConnectionFactoryImpl.constructor = java.lang.String tcp://<IP>:<PORT>

JMS.QueueImpl.classname = org.apache.activemq.command.ActiveMQQueue

JMS.QueueImpl.constructor = java.lang.String <QUEUENAME>

SAPJVM Current version is 6.01.33.0. There is no JDK installed on the PI server as PI 7.3 uses SAP JVM. Do we need to still install the JDK? any help would be appreciated.

Thanks,

Srini



former_member234749
Participant
0 Kudos

Hi Srinivasa,

I am facing the same issue. Could you please provide me the solution how did you achieve this?

Thanks,