JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-1430

Unable to dispatch the message into Websphere MQ using JMS

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.3.3
  • Fix Version/s: None
  • Component/s: Transport: JMS
  • Labels:
    None
  • Environment:

    Win2k, Jdk 1.4, WAS 6.0, MQ 6.0

  • Configuration:
    Hide

    <mule-configuration id="Echo_Tcp_Server" version="1.0">
    <connector name="openJmsConnector" className="org.mule.providers.jms.JmsConnector">
    <properties>
    <property name="specification" value="1.0.2b"/>
    <property name="jndiInitialFactory" value="com.ibm.websphere.naming.WsnInitialContextFactory"/> <property name="connectionFactoryJndiName" value="MuleJNDI"/>
    </properties>
    </connector>
    <model name="dev">
    <mule-descriptor name="echoComponent" implementation="org.mule.components.simple.EchoComponent" >
    <inbound-router>
    <endpoint address="tcp://localhost:20205" synchronous="true" />
    </inbound-router>
    <outbound-router>
    <router className="org.mule.routing.outbound.OutboundPassThroughRouter">
    <endpoint address="jms://TTY.DELIVERYQUEUE"/>
    </router>
    </outbound-router>
    </mule-descriptor>
    </model>
    </mule-configuration>

    Show
    <mule-configuration id="Echo_Tcp_Server" version="1.0"> <connector name="openJmsConnector" className="org.mule.providers.jms.JmsConnector"> <properties> <property name="specification" value="1.0.2b"/> <property name="jndiInitialFactory" value="com.ibm.websphere.naming.WsnInitialContextFactory"/> <property name="connectionFactoryJndiName" value="MuleJNDI"/> </properties> </connector> <model name="dev"> <mule-descriptor name="echoComponent" implementation="org.mule.components.simple.EchoComponent" > <inbound-router> <endpoint address="tcp://localhost:20205" synchronous="true" /> </inbound-router> <outbound-router> <router className="org.mule.routing.outbound.OutboundPassThroughRouter"> <endpoint address="jms://TTY.DELIVERYQUEUE"/> </router> </outbound-router> </mule-descriptor> </model> </mule-configuration>
  • Log Output:
    Hide
    Exception in thread "main" java.lang.NoSuchFieldError: org.eclipse.hyades.internal.logging.core.Constants: field LOCAL_HOST_IP_ADDRESS not found
    at org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.<init>(CommonBaseEventLogRecord.java)
    at com.ibm.ws.logging.object.WsLogRecordFactory.createWsLogRecord(WsLogRecordFactory.java:126)
    at com.ibm.ejs.ras.Tr.logToJSR47Logger(Tr.java:1560)
    at com.ibm.ejs.ras.Tr.fireEvent(Tr.java:1490)
    at com.ibm.ejs.ras.Tr.fireMessageEvent(Tr.java:1422)
    at com.ibm.ejs.ras.Tr.warning(Tr.java:1097)
    at com.ibm.ws.naming.util.CommonHelpers.mergeJndiProviderProperties(CommonHelpers.java:255)
    at com.ibm.ws.naming.util.CommonHelpers.mergeWsnJndiProperties(CommonHelpers.java:141)
    at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:108)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257)
    at javax.naming.InitialContext.init(InitialContext.java:233)
    at javax.naming.InitialContext.<init>(InitialContext.java:209)
    at org.mule.providers.jms.JmsConnector.initJndiContext(JmsConnector.java:184)
    at org.mule.providers.jms.JmsConnector.doConnect(JmsConnector.java:301)
    at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:993)
    at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29)
    at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:86)
    at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:983)
    at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29)
    at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:86)
    at org.mule.providers.AbstractConnector.startConnector(AbstractConnector.java:324)
    at org.mule.MuleManager.registerConnector(MuleManager.java:580)
    at org.mule.providers.service.ConnectorFactory.createEndpoint(ConnectorFactory.java:98)
    at org.mule.impl.ImmutableMuleEndpoint.createEndpointFromUri(ImmutableMuleEndpoint.java:545)
    at org.mule.impl.ImmutableMuleEndpoint.getOrCreateEndpointForUri(ImmutableMuleEndpoint.java:586)
    at org.mule.extras.client.MuleClient.getEndpoint(MuleClient.java:870)
    at org.mule.extras.client.MuleClient.getEvent(MuleClient.java:839)
    at org.mule.extras.client.MuleClient.dispatch(MuleClient.java:278)
    at org.mule.extras.client.MuleClient.dispatch(MuleClient.java:264)
    at org.mule.samples.tcp.MuleJMS.main(MuleJMS.java:30)
    Show
    Exception in thread "main" java.lang.NoSuchFieldError: org.eclipse.hyades.internal.logging.core.Constants: field LOCAL_HOST_IP_ADDRESS not found at org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.<init>(CommonBaseEventLogRecord.java) at com.ibm.ws.logging.object.WsLogRecordFactory.createWsLogRecord(WsLogRecordFactory.java:126) at com.ibm.ejs.ras.Tr.logToJSR47Logger(Tr.java:1560) at com.ibm.ejs.ras.Tr.fireEvent(Tr.java:1490) at com.ibm.ejs.ras.Tr.fireMessageEvent(Tr.java:1422) at com.ibm.ejs.ras.Tr.warning(Tr.java:1097) at com.ibm.ws.naming.util.CommonHelpers.mergeJndiProviderProperties(CommonHelpers.java:255) at com.ibm.ws.naming.util.CommonHelpers.mergeWsnJndiProperties(CommonHelpers.java:141) at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:108) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:257) at javax.naming.InitialContext.init(InitialContext.java:233) at javax.naming.InitialContext.<init>(InitialContext.java:209) at org.mule.providers.jms.JmsConnector.initJndiContext(JmsConnector.java:184) at org.mule.providers.jms.JmsConnector.doConnect(JmsConnector.java:301) at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:993) at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29) at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:86) at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:983) at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:29) at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:86) at org.mule.providers.AbstractConnector.startConnector(AbstractConnector.java:324) at org.mule.MuleManager.registerConnector(MuleManager.java:580) at org.mule.providers.service.ConnectorFactory.createEndpoint(ConnectorFactory.java:98) at org.mule.impl.ImmutableMuleEndpoint.createEndpointFromUri(ImmutableMuleEndpoint.java:545) at org.mule.impl.ImmutableMuleEndpoint.getOrCreateEndpointForUri(ImmutableMuleEndpoint.java:586) at org.mule.extras.client.MuleClient.getEndpoint(MuleClient.java:870) at org.mule.extras.client.MuleClient.getEvent(MuleClient.java:839) at org.mule.extras.client.MuleClient.dispatch(MuleClient.java:278) at org.mule.extras.client.MuleClient.dispatch(MuleClient.java:264) at org.mule.samples.tcp.MuleJMS.main(MuleJMS.java:30)
  • Similar Issues:
    None

Description

I'm trying to dispatch message from own java application using MuleClient. I have created Queue Manager, Queues and configured Websphere MQ Queue Connection Factories as given by.

Here I have some java code snap.
****
try{ MuleClient client = new MuleClient(); client.setProperty("jms.connectionFactoryJndiName", "MuleJNDI"); client.setProperty("jms.jndiInitialFactory", "com.ibm.websphere.naming.WsnInitialContextFactory"); client.setProperty("jms.specification", "1.1"); client.dispatch("jms://TTY.DELIVERYQUEUE","SAMPLE FROM SIMULATOR", null); }catch(UMOException e){ e.printStackTrace(); }
*****
When try to run this java code its throws me following exception(field LOCAL_HOST_IP_ADDRESS not found) pls refer logoutput.

When I try to start the mule server using config file(pls refer below config), its also throws same error, I couldn't start the mule server.

Please comment on fixing this issue, update me if any thing else needs to be done.

Thanks in advance.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Andrew Perepelytsya added a comment - 26/Feb/07 11:49 AM

The log mentions the Hyades running from within the eclipse. Do you have the problem when running Mule standalone? I am not sure it's not a problem in Hyades.

Show
Andrew Perepelytsya added a comment - 26/Feb/07 11:49 AM The log mentions the Hyades running from within the eclipse. Do you have the problem when running Mule standalone? I am not sure it's not a problem in Hyades.
Hide
Permalink
Antoine Borg added a comment - 27/Feb/07 03:47 AM

Apart from Andrew's comment, it also looks like your config is not complete - you need a few more properties for WebSphere. Check out the following:
http://mule.mulesource.org/wiki/display/MULE/Configuring+Jms#ConfiguringJms-IBMWebSphereMQ

Show
Antoine Borg added a comment - 27/Feb/07 03:47 AM Apart from Andrew's comment, it also looks like your config is not complete - you need a few more properties for WebSphere. Check out the following: http://mule.mulesource.org/wiki/display/MULE/Configuring+Jms#ConfiguringJms-IBMWebSphereMQ
Hide
Permalink
Andrew Perepelytsya added a comment - 08/Mar/07 04:35 PM

I was able to successfully send and receive transactional (non-XA) and non-transactional messages to Websphere MQ 5.3 (remote), QCF and Queues bound to Websphere's AppServer JNDI.

Show
Andrew Perepelytsya added a comment - 08/Mar/07 04:35 PM I was able to successfully send and receive transactional (non-XA) and non-transactional messages to Websphere MQ 5.3 (remote), QCF and Queues bound to Websphere's AppServer JNDI.
Andrew Perepelytsya made changes - 08/Mar/07 04:35 PM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Cannot Reproduce [ 5 ]
Assignee Andrew Perepelytsya [ andrew ]
Andrew Perepelytsya made changes - 18/May/07 09:15 AM
Workflow No "Resolved" state, added "Pending 3rd-Party" state [ 17655 ] Release Mode Workflow [ 19803 ]
Andrew Perepelytsya made changes - 18/May/07 09:18 AM
Workflow Release Mode Workflow [ 19803 ] No "Resolved" state, added "Pending 3rd-Party" state [ 21684 ]
Andrew Perepelytsya made changes - 18/May/07 09:23 AM
Workflow No "Resolved" state, added "Pending 3rd-Party" state [ 21684 ] Release Mode Workflow [ 23557 ]
Andrew Perepelytsya made changes - 17/Jun/07 01:04 PM
Workflow Release Mode Workflow [ 23557 ] Main Mule Workflow [ 24121 ]
Andrew Perepelytsya made changes - 17/Jun/07 01:24 PM
Workflow Main Mule Workflow [ 24121 ] Copy of Main Mule Workflow [ 26176 ]
Andrew Perepelytsya made changes - 17/Jun/07 01:32 PM
Workflow Copy of Main Mule Workflow [ 26176 ] Main Mule Workflow [ 29104 ]
Andrew Perepelytsya made changes - 30/Jul/07 08:34 PM
Workflow Main Mule Workflow [ 29104 ] Copy of Main Mule Workflow [ 30426 ]
Andrew Perepelytsya made changes - 30/Jul/07 08:40 PM
Workflow Copy of Main Mule Workflow [ 30426 ] Main Mule Workflow [ 32793 ]
Andrew Perepelytsya made changes - 30/Jul/07 09:05 PM
Workflow Main Mule Workflow [ 32793 ] Copy of Main Mule Workflow [ 36070 ]
Andrew Perepelytsya made changes - 06/May/08 11:09 AM
Workflow Copy of Main Mule Workflow [ 36070 ] Fixed Main Mule Workflow (after JIRA upgrade) [ 60668 ]
Andrew Perepelytsya made changes - 15/May/08 10:17 AM
Workflow Fixed Main Mule Workflow (after JIRA upgrade) [ 60668 ] Copy of Main Mule Workflow [ 64601 ]
Andrew Perepelytsya made changes - 15/May/08 10:53 AM
Workflow Copy of Main Mule Workflow [ 64601 ] Fixed Main Mule Workflow (after JIRA upgrade) [ 68395 ]
Transition Time In Source Status Execution Times Last Executer Last Execution Date
Open Open Closed Closed
10d 11h 46m 1 Andrew Perepelytsya 08/Mar/07 04:35 PM
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
  • Repository mule on http://foo.bar/ failed: Error in remote call to 'FishEye 0 (http://foo.bar/)' (http://foo.bar) [AbstractRestCommand{path='/rest-service-fe/changeset-v1/listChangesets/', params={expand=changesets[-21:-1].revisions[0:29], comment=MULE-1430, p4JobFixed=MULE-1430, rep=mule}, methodType=GET}] : java.net.UnknownHostException: foo.bar

People

  • Assignee:
    Andrew Perepelytsya
    Reporter:
    prakasam msprakasam
Vote (0)
Watch (0)

Dates

  • Created:
    26/Feb/07 04:49 AM
    Updated:
    08/Mar/07 04:35 PM
    Resolved:
    08/Mar/07 04:35 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.