sandeep J Posted June 22, 2020 Share Posted June 22, 2020 Hi, From my local machine, I have connected to IBM MQ without any issues and I am able to post messages on MQ Queue andI have deployed the same code in one of the test environment (Linux) and it is throwing below error during deployment and most likely it seems an issue with IBM MQ and I have installed ibmmq-driver in Linux by placing required jar's. I am assuming by setting Directory Preference to MQ jar's will resolve the issue in Linux env but I don't know where to set this path in Linux whereas in windows we have an option called "click here to set preferences" in JMS connection resource. So does anyone know how to setDirectory Preference for IBM MQ in Linux or is there anything else I need to do for IBM MQ connection from Linux. Attached My windows JMS connection andDirectory Preference screenshot and copied the error belowwhich I am getting in Linux environment. Error =========== 2020-06-22 10:31:44.264 ERROR [pool-19-thread-6] com.tibco.bw.frwk.BWApplicationModuleImpl - TIBCO-BW-FRWK-600000: com.tibco.bx.core.faults.BxException: BX-600037: Init module failed for module [Test-MQ.module] version [1.0.0.202006180920] application [Test-MQ 1.0] com.tibco.bx.core.faults.BxException: BX-600037: Init module failed for module [Test-MQ.module] version [1.0.0.202006180920] application [Test-MQ 1.0] at com.tibco.bx.core.service.BxExtServiceAgentImpl.init(BxExtServiceAgentImpl.java:388) at com.tibco.bx.core.service.BxApplicationAgentImpl.initializeNonExecutables(BxApplicationAgentImpl.java:175) at com.tibco.bw.core.runtime.BWEngineImpl.initializeNonExecutables(BWEngineImpl.java:2093) at com.tibco.bw.frwk.BWApplicationModuleImpl.startApplication(BWApplicationModuleImpl.java:515) at com.tibco.bw.frwk.BWApplicationModuleImpl.onResolved(BWApplicationModuleImpl.java:158) at com.tibco.bw.thor.runtime.api.DependencyDescriptor.onStateChange(DependencyDescriptor.java:83) at com.tibco.bw.thor.runtime.api.ConstituentStateDependency.o00000(ConstituentStateDependency.java:105) at com.tibco.bw.thor.runtime.api.ConstituentStateDependency.onStateChange(ConstituentStateDependency.java:71) at com.tibco.bw.thor.runtime.model.Constituent.setConstituentState(Constituent.java:142) at com.tibco.bw.frwk.BWSharedModuleImpl.onResolved(BWSharedModuleImpl.java:84) at com.tibco.bw.thor.runtime.api.DependencyDescriptor.start(DependencyDescriptor.java:120) at com.tibco.bw.frwk.BWModuleEventHandler.deployModule(BWModuleEventHandler.java:592) at com.tibco.bw.frwk.BWModuleEventHandler.handleBundleEvent(BWModuleEventHandler.java:412) at com.tibco.bw.thor.runtime.ApplicationHandler$1.call(ApplicationHandler.java:337) at com.tibco.bw.thor.runtime.ApplicationHandler$1.call(ApplicationHandler.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: com.tibco.bw.core.runtime.ActivityInitException: TIBCO-BW-CORE-500618: Failed to initialize the activity [JMSSendMessage] in process [implementation.VoiceEvent.BFrag.Service], module [Test-MQ.module] due to unexpected activity lifecycle error at com.tibco.bw.core.runtime.bx.BWBxActivityBridgeImpl.init(BWBxActivityBridgeImpl.java:674) at com.tibco.bx.core.behaviors.BxProcessTemplateInstance.initActivities(BxProcessTemplateInstance.java:338) at com.tibco.bx.core.behaviors.BxProcessTemplateInstance.init(BxProcessTemplateInstance.java:308) at com.tibco.bx.core.behaviors.BxProcessTemplateSingleton.init(BxProcessTemplateSingleton.java:178) at com.tibco.bx.core.service.BxExtServiceAgentImpl.init(BxExtServiceAgentImpl.java:377) ... 18 common frames omitted Caused by: javax.naming.NameNotFoundException: null at com.sun.jndi.fscontext.FSContext.checkExists(FSContext.java:850) at com.sun.jndi.fscontext.FSContext.checkIsDirectory(FSContext.java:883) at com.sun.jndi.fscontext.FSContext.(FSContext.java:108) at com.sun.jndi.fscontext.FSContext.(FSContext.java:81) at com.sun.jndi.fscontext.RefFSContext.(RefFSContext.java:97) at com.sun.jndi.fscontext.RefFSContextFactory.createContext(RefFSContextFactory.java:42) at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(RefFSContextFactory.java:47) at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(FSContextFactory.java:49) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.(InitialContext.java:202) at com.tibco.bw.sr.jms.runtime.ibmmq.client.service.IBMMQProvider.lookupConnectionFactory(IBMMQProvider.java:62) at com.tibco.bw.sr.jms.runtime.decorators.unified.JMSConnectionFactoryWrapper.lookupConnectionFactory(JMSConnectionFactoryWrapper.java:152) at com.tibco.bw.sr.jms.runtime.decorators.unified.JMSConnectionFactoryWrapper.createQueueConnection(JMSConnectionFactoryWrapper.java:221) at com.tibco.bw.sr.jms.runtime.decorators.unified.JMSConnectionFactoryWrapper.createQueueConnection(JMSConnectionFactoryWrapper.java:207) at com.tibco.bw.jms.shared.primitives.JMSSender.createConnection(JMSSender.java:441) at com.tibco.bw.jms.shared.primitives.JMSSender.init(JMSSender.java:108) at com.tibco.bw.palette.jms.runtime.send.JMSSendActivity.init(JMSSendActivity.java:67) at com.tibco.bw.core.runtime.bx.BWBxActivityBridgeImpl.init(BWBxActivityBridgeImpl.java:650) ... 22 common frames omitted 2020-06-22 10:31:44.266 ERROR [pool-19-thread-6] com.tibco.bw.thor.runtime.model.Constituent - The following error has occurred for "name: Test-MQ.module version: 1.0.0.202006180920 bundle name: Test-MQ.module " which needs to be resolved. 2020-06-22 10:31:44.266 ERROR [pool-19-thread-6] com.tibco.bw.thor.runtime.model.Constituent - TIBCO-BW-FRWK-600000: com.tibco.bx.core.faults.BxException: BX-600037: Init module failed for module [Test-MQ.module] version [1.0.0.202006180920] application [Test-MQ 1.0]. com.tibco.bx.core.faults.BxException: BX-600037: Init module failed for module [Test-MQ.module] version [1.0.0.202006180920] application [Test-MQ 1.0]. com.tibco.bw.core.runtime.ActivityInitException: TIBCO-BW-CORE-500618: Failed to initialize the activity [JMSSendMessage] in process [implementation.VoiceEvent.BFrag.Service], module [Test-MQ.module] due to unexpected activity lifecycle error. javax.naming.NameNotFoundException Thanks, Sandeep Link to comment Share on other sites More sharing options...
Emmanuel Marchiset 2 Posted June 26, 2020 Share Posted June 26, 2020 Hi, In BW 6.X context the IBM MQ client library has to be defined at install time. See below from default silent file Example : /opt/mqm/java/lib/OSGi/com.ibm.mq.osgi.java_9.1.0.3.jar Regards EM Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now