Hi,
jnbridge team says the configurations are correct at the adapter end. And we also did some changes at JBoss end, opened a few more ports. And changed the JMS scheme to http+remote with port 8080. Now the error is different :
Exception: Failed to create session factory
Stack Trace:
at JNBridge.JMSAdapter.Core.JMSContext.getContext(Uri aUri, String aPassWord, String aUserName, String anInitialContextFactory, String aQueueFactory, String aTopicFactory, String topicConnectionClientID, String queueConnectionClientID, String aJMSScheme, String aSecurityLevel, String anAckMode, TimeSpan sendTimeout, TimeSpan receiveTimeout, Type aType, Boolean isOffLine, String customConnectionString)
at JNBridge.JMSAdapter.JMSReceiverEndpoint.initContext()
at JNBridge.JMSAdapter.JMSReceiverEndpoint.Start()
at JNBridge.JMSAdapter.JMSReceiverEndpoint.Open(String uri, IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag, IBTTransportProxy transportProxy, String transportType, String propertyNamespace, ControlledTermination control)
Nested Exception: Exception has been thrown by the target of an invocation.
Stack Trace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at JNBridge.JMSAdapter.Core.JMSContext.getContext(Uri aUri, String aPassWord, String aUserName, String anInitialContextFactory, String aQueueFactory, String aTopicFactory, String topicConnectionClientID, String queueConnectionClientID, String aJMSScheme, String aSecurityLevel, String anAckMode, TimeSpan sendTimeout, TimeSpan receiveTimeout, Type aType, Boolean isOffLine, String customConnectionString)
Nested Exception: Failed to create session factory
Stack Trace:
at JNBridge.JMSAdapter.Core.JMSContext.createQueueConnection()
at JNBridge.JMSAdapter.Core.JMSContext..ctor(Uri aUri, String aPassWord, String aUserName, String anInitialContextFactory, String aQueueFactory, String aTopicFactory, String topicConnectionClientID, String queueConnectionClientID, String aJMSScheme, String aSecurityLevel, String anAckMode, TimeSpan sendTimeout, TimeSpan receiveTimeout, Boolean isOffLine, String customConnectionString)
Nested Exception: Failed to create session factory
Stack Trace:
.NET-side stack trace:
at com.jnbridge.jnbproxy.ExceptionFactory.throwException(JNBException e, Hashtable objMap)
at org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory.createQueueConnection(String arg0, String arg1)
at JNBridge.JMSAdapter.Core.JMSQueueConnectionFactory.createQueueConnection()
at JNBridge.JMSAdapter.Core.JMSQueueConnection..ctor(IJMSConnectionFactory aFactory)
at JNBridge.JMSAdapter.Core.JMSContext.createQueueConnection()
Java-side stack trace:
javax.jms.JMSException: Failed to create session factory
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:862)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.jnbridge.jnbcore.JNBDispatcher.objectVirtualCall(Unknown Source)
at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest2(Unknown Source)
at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:798)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:860)
... 9 more
We have tried other schemes like the 'http-remoting' as well, but didnt make any difference. Does anyone have any pointers as to what we could be doing wrong ?
Thanks in advance.