[mule-user] Problem with Remote Mule Client

0 views
Skip to first unread message

PawanModi

unread,
May 15, 2008, 1:15:31 AM5/15/08
to us...@mule.codehaus.org

Hi,

I am sending JMS message to remote mule server from my local client. Running
local client works fine but running remote client throws error.

My mule client is as follow:
---------------------------------------------

public class MuleEchoClient {

public static void main(String[] args) throws UMOException,
InterruptedException {
MuleServer server=new MuleServer("hello-config.xml");
server.start(false);
MuleClient client=new MuleClient();
RemoteDispatcher dispatcher =
client.getRemoteDispatcher("tcp://localhost:60504");
//UMOMessage result=result =
dispatcher.sendRemote("sendStringToActiveMQ2","My Testing String", null);

dispatcher.dispatchRemote("vm://sendStringToActiveMQ2",
"This is your string that should be send to active mq", null);
}
}


Following is my mule-config.xml
---------------------------------------------------


<connector name="jmsConnector"
className="org.mule.providers.jms.JmsConnector">
<properties>
<property name="specification" value="1.1"/>
<property name="connectionFactoryJndiName"
value="ConnectionFactory"/>
<property name="jndiInitialFactory"

value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
<map name="connectionFactoryProperties">
<property name="brokerURL" value="tcp://146.223.151.178:61616"/>
<property name="brokerXmlConfig"
value="activemq-config.xml"/>
</map>
</properties>
</connector>

<mule-descriptor name="EmployeeClassPublisherUMO"
implementation="org.mule.components.simple.BridgeComponent">
<inbound-router>
<endpoint address="vm://employee2"/>
</inbound-router>

<outbound-router>
<router
className="org.mule.routing.outbound.OutboundPassThroughRouter"
enableCorrelation="ALWAYS">
<endpoint address="jms://topic:my.employee2"
transformers="ObjectToJMSMessage"/>
</router>
</outbound-router>
</mule-descriptor>

Running my mule client i am getting following error:
-------------------------------------------------------------------------------------

INFO 2008-05-15 10:36:16,478 [main] org.mule.MuleManager:
**********************************************************************
* Mule ESB and Integration Platform version 1.4.3 *
* MuleSource, Inc. *
* For more information go to http://mule.mulesource.org *
* *
* Server started: 5/15/08 10:36 AM *
* Server ID: Hello_Sample *
* JDK: 1.5.0_14 (mixed mode, sharing) *
* OS: Windows XP - Service Pack 2 (5.1, x86) *
* Host: sgh7450850 (146.223.151.76) *
* *
* Agents Running: *
* Mule Admin: accepting connections on tcp://localhost:60504 *
**********************************************************************
INFO 2008-05-15 10:36:16,478 [main] org.mule.MuleServer: Mule Server
initialized.
INFO 2008-05-15 10:36:16,494 [main] org.mule.extras.client.MuleClient:
There is already a manager locally available to this client, no need to
create a new one
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/activation/DataHandler
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at java.io.ObjectStreamClass.getPrivateMethod(Unknown Source)
at java.io.ObjectStreamClass.access$1700(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:108)
at
org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:133)
at
org.mule.transformers.simple.SerializableToByteArray.transform(SerializableToByteArray.java:75)
at
org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:40)
at
org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:250)
at
org.mule.transformers.wire.TransformerPairWireFormat.write(TransformerPairWireFormat.java:98)
at
org.mule.extras.client.RemoteDispatcher.dispatchAction(RemoteDispatcher.java:289)
at
org.mule.extras.client.RemoteDispatcher.doToRemote(RemoteDispatcher.java:275)
at
org.mule.extras.client.RemoteDispatcher.dispatchRemote(RemoteDispatcher.java:191)
at com.agilent.spring.MuleEchoClient.main(MuleEchoClient.java:19)


I searched for missing class "javax/activation/DataHandler" but not
available in java or mule jars.

Can any one help me in that?

Thanks & regards,
Pawan Modi


--
View this message in context: http://www.nabble.com/Problem-with-Remote-Mule-Client-tp17246075p17246075.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


PawanModi

unread,
May 15, 2008, 3:00:25 AM5/15/08
to us...@mule.codehaus.org

Hello Friends,

Solution of the problem mentioned in my previous post is here.
Download activation.jar from
http://www.java2s.com/Code/Jar/glassfish/Downloadactivationjar.htm
This jar will be having javax/activation/DataHandler.

Enjoy working with mule

Best regards,
Pawan MOdi

--
View this message in context: http://www.nabble.com/Problem-with-Remote-Mule-Client-tp17246075p17247189.html

Reply all
Reply to author
Forward
0 new messages