[mule-user] Problems Setting up Mule2.x.x

1 view
Skip to first unread message

code4me

unread,
Oct 30, 2008, 2:15:06 PM10/30/08
to us...@mule.codehaus.org

I have been trying to setup Eclipse with Mule 2.1.1 and have had numerous
problems which are as follows:

When opening the Config file it gives following error:
java.lang.ClassCastException:
org.eclipse.emf.ecore.xml.type.impl.XMLTypeDocumentRootImpl cannot be cast
to org.mule.ide.config.core.DocumentRoot

I was able to setup on my windows box without an IDE and was also able to
startup the Mule Server.

But I faced the following problems with the stand alone version (without
IDE):

1) In a JMS to JMS configuration the JMS messages written to the queue have
a MFH2 header. I tried specifying the tragetClient = 1 but that did not
work.

<spring:bean name="connectionFactory2"
class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
<spring:property name="hostName" value="hostname"/>
<spring:property name="port" value="port"/>
<spring:property name="channel" value="channel-name"/>
<spring:property name="transportType" value="1"/>
<spring:property name="queueManager" value="queue-mgr"/>
</spring:bean>

<jms:connector name="JMS1" connectionFactory-ref="connectionFactory" >
</jms:connector>

<jms:connector name="JMS2" connectionFactory-ref="connectionFactory" >
</jms:connector>

<jms:object-to-jmsmessage-transformer name="ObjectToJMSMessage" />
<jms:jmsmessage-to-object-transformer name="JMSMessageToObject"/>

<model name="JMS_TXN">
<service name="JMS-TXN_Test">
<inbound>
<jms:inbound-endpoint connector-ref="JMS1" queue="OMS.TO.ALLOC" >
</jms:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router>
<jms:outbound-endpoint connector-ref="JMS2"
queue="OMS.TO.ITS?targetClient=1">
<jms:object-to-jmsmessage-transformer/>
</jms:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
</model>


2) In the same JMS to JMS configuration when I added XA-Transactions control
i got the following error:
org.mule.transaction.IllegalTransactionStateException: Only a single
resource can be bound to this type of transaction
at
org.mule.transaction.AbstractSingleResourceTransaction.bindResource(AbstractSingleResourceTransaction.java:94)

<model name="JMS_TXN">
<service name="JMS-TXN_Test">
<inbound>
<jms:inbound-endpoint connector-ref="JMS1" queue="OMS.TO.ALLOC" >
<jms:transaction action="ALWAYS_BEGIN"/>
</jms:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router>
<jms:outbound-endpoint connector-ref="JMS2"
queue="OMS.TO.ITS?targetClient=1">
<jms:object-to-jmsmessage-transformer/>
<jms:transaction action="ALWAYS_JOIN"/>
</jms:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
</model>

*** **** **** ****

As for Mule 2.0.0 I used the All-In-One package which included eclipse. But
problem with Mule 2.0.0 is that XA-transactions don't work and also the JMS
connector adds the RFH2 header to each message it writes to the MQ queue.
And also the XA-Transactions don't work.

I have been trying to setup Mule for the last 6 months and have encountered
issues with each version I have used.

Is there anyone who can provide some details on how to get Mule 2.x setup
with Eclipse on a windows machine and to figure out the XA-Transaction
issues.
Thanks.

--
View this message in context: http://www.nabble.com/Problems-Setting-up-Mule2.x.x-tp20252517p20252517.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Oct 30, 2008, 2:25:34 PM10/30/08
to us...@mule.codehaus.org

It wouldn't hurt breaking questions into separate posts and do some homework. You mentioned 6 months. If there are still questions like this after 6 months of Mule, I highly encourage you take a training class, they cover advanced topics.

So:
1. Eclipse complains about xml mismatch, and there are no details. If it's a general use, ensure right xml parsers are used. Either endorse ones bundled with Mule, or just use java 6 update 10, which has them ootb.
2. I'm not sure that was the right config for MQ.
3. You want XA transactions, but configure jms ones on the endpoint. Use xa one.

Andrew

code4me

unread,
Oct 30, 2008, 4:27:11 PM10/30/08
to us...@mule.codehaus.org

Ok I guess i should have posted the questions seperately (would have avoided
the confusion and the typo's).

In responce to the your points :

1) I am currently using Java6 update10 for my eclipse which has the xerces
2.9.1 endorsed.The complete error thrown by eclipse is :

java.lang.ClassCastException:
org.eclipse.emf.ecore.xml.type.impl.XMLTypeDocumentRootImpl cannot be cast
to org.mule.ide.config.core.DocumentRoot

at
org.mule.ide.config.editor.editors.MuleConfigEditor.init(MuleConfigEditor.java:388)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at
org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at
org.eclipse.ui.internal.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:184)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:372)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)


2) The Config provided for MQ works except for the part were it adds the
RFH2 header.

3) The config for the XA-Transaction setting was a typo..The correct entries
for that are :

<jbossts:transaction-manager/>

<spring:bean name="connectionFactory1"


class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
<spring:property name="hostName" value="hostname"/>
<spring:property name="port" value="port"/>

<spring:property name="channel" value="channel"/>


<spring:property name="transportType" value="1"/>

<spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<spring:bean name="connectionFactory2"
class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
<spring:property name="hostName" value="hostname"/>
<spring:property name="port" value="port"/>

<spring:property name="channel" value="channel"/>


<spring:property name="transportType" value="1"/>

<spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<jms:connector name="JMS1" connectionFactory-ref="connectionFactory1" >
</jms:connector>

<jms:connector name="JMS2" connectionFactory-ref="connectionFactory2" >
</jms:connector>

<jms:object-to-jmsmessage-transformer name="ObjectToJMSMessage" />
<jms:jmsmessage-to-object-transformer name="JMSMessageToObject"/>


<model name="JMS_TXN">
<service name="JMS-TXN_Test">

<default-service-exception-strategy>
<jms:outbound-endpoint connector-ref="JMS2" queue="Queue3"/>
</default-service-exception-strategy>
<inbound>
<jms:inbound-endpoint connector-ref="JMS1" queue="Queue1">
<xa-transaction action="ALWAYS_BEGIN"/>


</jms:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router>
<jms:outbound-endpoint connector-ref="JMS2"

queue="Queue2?targetClient=1">
<xa-transaction action="ALWAYS_JOIN"/>


</jms:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
</model>

</mule>

and the complete error trace is as follows:

ERROR 2008-10-30 16:22:21,973 [JMS1.receiver.3]
org.mule.service.DefaultServiceExceptionStrategy:
********************************************************************************
Message : Failed to route event via endpoint:
DefaultOutboundEndpoint{endpointUri=jms://OMS.TO.ITS?targetClient=1,
connector=JmsConnector{this=adf5be, started=true, i
nitialised=true, name='JMS2', disposed=false,
numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[jms], serviceOver
rides=null}, transformer=[ObjectToJMSMessage{this=25491d,
name='ObjectToMessage', ignoreBadInput=false, returnClass=interface
javax.jms.Message, sourceTypes=[]}], name='endpoint.jm
s.OMS.TO.ITS', properties={targetClient=1},
transactionConfig=Transaction{factory=org.mule.transaction.XaTransactionFactory@1873eb2,
action=ALWAYS_JOIN, timeout=0}, filter=null, de
leteUnacceptedMessages=false, securityFilter=null, synchronous=true,
initialState=started, remoteSync=false, remoteSyncTimeout=3000,
endpointEncoding=UTF-8}. Message payload is of
type: String
Type : org.mule.api.transport.DispatchException
Code : MULE_ERROR-42999
Payload : test
JavaDoc :
http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html
********************************************************************************
Exception stack is:
1. [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive]
[com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The
transaction is not active! (java.lang.IllegalStat
eException)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple:550
(null)
2. Failed to route event via endpoint:
DefaultOutboundEndpoint{endpointUri=jms://OMS.TO.ITS?targetClient=1,
connector=JmsConnector{this=adf5be, started=true, initialised=true, name
='JMS2', disposed=false, numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[jms], serviceOverrides=null}, transfor
mer=[ObjectToJMSMessage{this=25491d, name='ObjectToMessage',
ignoreBadInput=false, returnClass=interface javax.jms.Message,
sourceTypes=[]}], name='endpoint.jms.OMS.TO.ITS', proper
ties={targetClient=1},
transactionConfig=Transaction{factory=org.mule.transaction.XaTransactionFactory@1873eb2,
action=ALWAYS_JOIN, timeout=0}, filter=null, deleteUnacceptedMessage
s=false, securityFilter=null, synchronous=true, initialState=started,
remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message
payload is of type: String (org.mul
e.api.transport.DispatchException)
org.mule.transport.AbstractMessageDispatcher:195
(http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html)


As for the 6months..I becasue I have had different issues with each
version..i am trying to configure one in which Mule would work with and
without transactions.

Thanks.

--
View this message in context: http://www.nabble.com/Problems-Setting-up-Mule2.x.x-tp20252517p20254799.html

Andrew Perepelytsya

unread,
Oct 30, 2008, 5:14:50 PM10/30/08
to us...@mule.codehaus.org

So, more puzzles.

1. The eclipse error is not a Mule error. This is the MuleIDE one! Feel the difference. I bet you ran it with eclipse 3.4 ganymede, which won't work, need an earlier version.
2. The stacktrace posted is for endpoint which isn't even listed in your config snippet.

Andrew

On Oct 30, 2008 4:27 PM, "code4me" <manish.h...@gmail.com> wrote:


Ok I guess i should have posted the questions seperately (would have avoided
the confusion and the typo's).

In responce to the your points :

1) I am currently using Java6 update10 for my eclipse which has the xerces
2.9.1 endorsed.The complete error thrown by eclipse is :

java.lang.ClassCastException: org.eclipse.emf.ecore.xml.type.impl.XMLTypeDocumentRootImpl cannot be...

class="com.ibm.mq.jms.MQXAQueueConnectionFactory"> <spring:property name="hostName" value="hostname...

       <spring:property name="channel" value="channel"/>

<spring:property name="transportType" value="1"/>

       <spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<spring:bean name="connectionFactory2" class="com.ibm.mq.jms.MQXAQueueConnectionFactory"> <spring:...

       <spring:property name="channel" value="channel"/>

<spring:property name="transportType" value="1"/>

       <spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<jms:connector name="JMS1" connectionFactory-ref="connectionFactory1" >
</jms:connector>

<jms:connector name="JMS2" connectionFactory-ref="connectionFactory2" >

</jms:connector> <jms:object-to-jmsmessage-transformer name="ObjectToJMSMessage" /> <jms:jmsmessage...

            <default-service-exception-strategy>
                       <jms:outbound-endpoint connector-ref="JMS2" queue="Queue3"/>
       </default-service-exception-strategy>
               <inbound>
                       <jms:inbound-endpoint connector-ref="JMS1" queue="Queue1">
                               <xa-transaction action="ALWAYS_BEGIN"/>

</jms:inbound-endpoint> </inbound> <outbound> <pass-through-router> <jms:outbound-endpo...

Andrew Perepelytsya wrote: > > > > It wouldn't hurt breaking questions into separate posts and ...

Sent from the Mule - User mailing list archive at Nabble.com. ------------------------------------...

code4me

unread,
Oct 31, 2008, 3:37:52 PM10/31/08
to us...@mule.codehaus.org

1)You are right about the version of Eclipse I was using and Yes i relaize
that this particular error is for the MuleIDE.

I did not see any note about not using Ganymede so went with the latest
version.

So now i downloaded the MuleIDE-all-in-one-2.0.0.M2-I200804101555-win32.zip
which has the Europa version and all Mule dependecies.
But i get the same error when i try create a Sample Project using Mule
2.1.1. It won't open the config file inside the IDE because of the class
cast exception.

So i guess the ClassCast Exception for Mule 2.1.1 is not only in Eclipse
Ganymede.

As far as Mule 2.0.0 is concerned it starts up and works with Eclipse
Europa. As noted before the MQ config without transaction works fine. But
The one with XA-Transaction does not work.

2)About the second point, i guess i did not do a good job of masking the
queue names, which made you think that the endpoint was not defined.
Attached is the same Error Stack with the MQ names masked correctly:

<jbossts:transaction-manager/>

<spring:bean name="connectionFactory1"
class="com.ibm.mq.jms.MQXAQueueConnectionFactory">

<spring:property name="hostName" value="hostname"/>


<spring:property name="channel" value="channel"/>
<spring:property name="transportType" value="1"/>
<spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<spring:bean name="connectionFactory2"
class="com.ibm.mq.jms.MQXAQueueConnectionFactory">

<spring:property name="hostName" value="hostname"/>

<spring:property name="channel" value="channel"/>
<spring:property name="transportType" value="1"/>
<spring:property name="queueManager" value="q-mgr"/>
</spring:bean>

<jms:connector name="JMS1" connectionFactory-ref="connectionFactory1" >
</jms:connector>

<jms:connector name="JMS2" connectionFactory-ref="connectionFactory2" >
</jms:connector>

<jms:object-to-jmsmessage-transformer name="ObjectToJMSMessage" />

<jms:jmsmessage-to-object-transformer name="JMSMessageToObject"/>

<model name="JMS_TXN">
<default-service-exception-strategy>
<jms:outbound-endpoint connector-ref="JMS2" queue="Test.Error"/>
</default-service-exception-strategy>
<service name="JMS-TXN_Test">
<inbound>
<jms:inbound-endpoint connector-ref="JMS1" queue="Test.Input">


<xa-transaction action="ALWAYS_BEGIN"/>
</jms:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router>

<jms:outbound-endpoint connector-ref="JMS2"
queue="Test.Output?targetClient=1">
<jms:object-to-jmsmessage-transformer/>


<xa-transaction action="ALWAYS_JOIN"/>
</jms:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
</model>

and the complete error trace is as follows:

WARN 2008-10-31 15:30:36,375 [JMS1.receiver.4]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not
defined. Using af32263:a38:490b5cdc:4

INFO 2008-10-31 15:30:36,453 [JMS1.receiver.4]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting
service com.arjuna.ats.arjuna.recove
ry.ActionStatusService on port 2616
INFO 2008-10-31 15:30:36,453 [JMS1.receiver.4]
com.arjuna.ats.arjuna.logging.arjLogger: TransactionStatusManagerItem -
host: 10.243.34.99 port: 2616
INFO 2008-10-31 15:30:36,547 [JMS1.receiver.4]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] -
TransactionStatusManager started on port 2616
with service com.arjuna.ats.arjuna.recovery.ActionStatusService
WARN 2008-10-31 15:31:36,564 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id
af32263:a38:490b5cdc:0 invoked while multi
ple threads active within it.
WARN 2008-10-31 15:31:36,564 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check -
atomic action af32263:a38:490b5cdc:0
aborting with 1 threads active!
WARN 2008-10-31 15:31:36,580 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id
af32263:a38:490b5cdc:1 invoked while multi
ple threads active within it.
WARN 2008-10-31 15:31:36,580 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check -
atomic action af32263:a38:490b5cdc:1
aborting with 1 threads active!
WARN 2008-10-31 15:31:36,595 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id
af32263:a38:490b5cdc:2 invoked while multi
ple threads active within it.
WARN 2008-10-31 15:31:36,595 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check -
atomic action af32263:a38:490b5cdc:2
aborting with 1 threads active!
WARN 2008-10-31 15:31:36,611 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id
af32263:a38:490b5cdc:3 invoked while multi
ple threads active within it.
WARN 2008-10-31 15:31:36,611 [Thread-3]
com.arjuna.ats.arjuna.logging.arjLoggerI18N:
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check -
atomic action af32263:a38:490b5cdc:3
aborting with 1 threads active!
ERROR 2008-10-31 15:31:36,627 [JMS1.receiver.2]
org.mule.transport.jms.JmsConnector: Failed to close jms message producer
javax.jms.JMSException: MQJMS2000: failed to close MQ queue
at
com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:418)
at com.ibm.mq.jms.MQQueueSender.close(MQQueueSender.java:421)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

org.mule.transport.jms.xa.ConsumerProducerInvocationHandler.invoke(ConsumerProducerInvocationHandler.java:30)
at $Proxy3.close(Unknown Source)
at org.mule.transport.jms.JmsConnector.close(JmsConnector.java:638)
at
org.mule.transport.jms.JmsConnector.closeQuietly(JmsConnector.java:652)
at
org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:330)
at
org.mule.transport.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:359)
at
org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168)
at
org.mule.transport.AbstractConnector.send(AbstractConnector.java:1910)
at
org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77)
at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:327)
at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:213)
at
org.mule.routing.outbound.AbstractOutboundRouter$2.doInTransaction(AbstractOutboundRouter.java:149)
at
org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99)
at
org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:156)
at
org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:68)
at
org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:69)
at
org.mule.routing.outbound.DefaultOutboundRouterCollection$1.doInTransaction(DefaultOutboundRouterCollection.java:64)
at
org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45)
at
org.mule.routing.outbound.DefaultOutboundRouterCollection.route(DefaultOutboundRouterCollection.java:69)
at
org.mule.service.AbstractService.sendToOutboundRouter(AbstractService.java:902)
at org.mule.model.seda.SedaService.doSend(SedaService.java:230)
at
org.mule.service.AbstractService.sendEvent(AbstractService.java:505)
at
org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:220)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:180)
at
org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:365)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:253)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:176)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:169)
at
org.mule.transport.jms.XaTransactedJmsMessageReceiver.getMessages(XaTransactedJmsMessageReceiver.java:262)
at
org.mule.transport.jms.XaTransactedJmsMessageReceiver$1.doInTransaction(XaTransactedJmsMessageReceiver.java:168)
at
org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99)
at
org.mule.transport.jms.XaTransactedJmsMessageReceiver.poll(XaTransactedJmsMessageReceiver.java:195)
at
org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:47)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Unknown Source)
INFO 2008-10-31 15:31:36,642 [JMS1.receiver.2]
org.mule.transport.jms.JmsMessageDispatcher: Disconnected:
JmsMessageDispatcher{this=16d64c5,
endpoint=jms://Test.Output?targetClient=1, disposed=false}
INFO 2008-10-31 15:31:36,705 [JMS1.receiver.2]
org.mule.transaction.TransactionTemplate: Exception Caught in Transaction
template. Handing off to exception handler:
org.mule.service.DefaultServiceEx
ceptionStrategy@fd1810
ERROR 2008-10-31 15:31:36,705 [JMS1.receiver.2]


org.mule.service.DefaultServiceExceptionStrategy:
********************************************************************************
Message : Failed to route event via endpoint:

DefaultOutboundEndpoint{endpointUri=jms://Test.Output?targetClient=1,
connector=JmsConnector{this=178920a, started=true, initialised=true, na
me='JMS2', disposed=false, numberOfConcurrentTransactedReceivers=4,


createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToJMSMe

ssage{this=176086d, name='ObjectToMessage', ignoreBadInput=false,
returnClass=interface javax.jms.Message, sourceTypes=[]}],
name='endpoint.jms.Test.Output', properties={targetClient=1}, transactionCon
fig=Transaction{factory=org.mule.transaction.XaTransactionFactory@cb07ef,


action=ALWAYS_JOIN, timeout=0}, filter=null, deleteUnacceptedMessages=false,
securityFilter=null, synchronous=true, initialSta

te=started, remoteSync=false, remoteSyncTimeout=3000,
endpointEncoding=UTF-8}. Message payload is of type: JMSTextMessage


Type : org.mule.api.transport.DispatchException
Code : MULE_ERROR-42999
Payload :

JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: null
JMSTimestamp: 0
JMSCorrelationID:ID:414d51204e594855423244202020202048f3600020a1c61a
JMSDestination: queue:///Test.Output
JMSReplyTo: null
JMSRedelivered: false
JMSXDeliveryCount:0
MULE_ENDPOINT:jms://Test.Output?targetClient=1
JMS_IBM_MsgType:8
MULE_SESSION:SUQ9NjRiNGE0ODUtYTc4Mi0xMWRkLWFlNzMtMGQzNjNmMjFhYzQ2
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:6
targetClient:1
MULE_ORIGINATING_ENDPOINT:endpoint.jms.Test.Input
MULE_CORRELATION_ID:ID:414d51204e594855423244202020202048f3600020a1c61a
Test
JavaDoc :
http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html
JMS Code : MQJMS2007
********************************************************************************
Exception stack is:
1. MQJE001: Completion Code 2, Reason 2195 (com.ibm.mq.MQException)
com.ibm.mq.MQQueue:1518 (null)
2. MQJMS2007: failed to send message to MQ queue(JMS Code: MQJMS2007)
(javax.jms.JMSException)
com.ibm.mq.jms.services.ConfigEnvironment:418
(http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/JMSException.html)
3. Failed to route event via endpoint:
DefaultOutboundEndpoint{endpointUri=jms://Test.Output?targetClient=1,
connector=JmsConnector{this=178920a, started=true, initialised=true,
name='JMS2', disposed=f


alse, numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[jms], serviceOverrides=null},

transformer=[ObjectToJMSMessage{this=176086d, n


ame='ObjectToMessage', ignoreBadInput=false, returnClass=interface

javax.jms.Message, sourceTypes=[]}], name='endpoint.jms.Test.Output',


properties={targetClient=1}, transactionConfig=Transaction{facto

ry=org.mule.transaction.XaTransactionFactory@cb07ef, action=ALWAYS_JOIN,
timeout=0}, filter=null, deleteUnacceptedMessages=false,
securityFilter=null, synchronous=true, initialState=started, remoteSyn


c=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message payload is

of type: JMSTextMessage (org.mule.api.transport.DispatchException)
org.mule.transport.AbstractMessageDispatcher:195
(http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html)
********************************************************************************
Root Exception stack trace:
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2195
at com.ibm.mq.MQQueue.put(MQQueue.java:1518)
at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:666)
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

--
View this message in context: http://www.nabble.com/Problems-Setting-up-Mule2.x.x-tp20252517p20272836.html


Sent from the Mule - User mailing list archive at Nabble.com.

code4me

unread,
Nov 11, 2008, 3:14:24 PM11/11/08
to us...@mule.codehaus.org
Reply all
Reply to author
Forward
0 new messages