|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Using RMI endpointDear all,
am trying to configure mule endpoint to execute RMI service and am getting the following exception: INFO 2009-11-03 09:28:05,728 [rmi.dispatcher.1] org.mule.transport.rmi.RmiMessageDispatcher: Connected: endpoint.outbound.rmi://localhost:1099/hello-service ERROR 2009-11-03 09:28:05,744 [rmi.dispatcher.1] org.mule.DefaultExceptionStrategy: Caught exception in Exception Strategy: Invocation error. Method "doRemoteAction", with parameters "{class java.lang.Integer}" not found on "org.springframework.remoting.rmi.RmiInvocationWrapper_Stub" java.lang.NoSuchMethodException: Invocation error. Method "doRemoteAction", with parameters "{class java.lang.Integer}" not found on "org.springframework.remoting.rmi.RmiInvocationWrapper_Stub" at org.mule.transport.rmi.RmiConnector.getMethodObject(RmiConnector.java:268) at org.mule.transport.rmi.RmiMessageDispatcher.doDispatch(RmiMessageDispatcher.java:83) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:262) 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(Thread.java:619) iam using Mule 2.2 and following is my endpoint mule configuration <!-- RMI Connector --> <spring:bean name="jndiFactory" class="com.mig.rmi.MuleRMIFactory"/> <spring:bean name="jndiContext" factory-bean="jndiFactory" factory-method="create"/> <rmi:connector name="rmi" jndiContext-ref="jndiContext" securityPolicy="conf/rmi.policy" /> <!-- RMI Endpoint --> <rmi:endpoint name="doDBRMI" host="localhost" port="1099" object="hello-service" method="doRemoteAction" methodArgumentTypes="java.lang.Integer" /> com.mig.rmi.MuleRMIFactory is /** * * @return * @throws Exception */ public Object create() throws Exception { InitialContext ic = new InitialContext(); ic.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory"); return ic; } please help!! --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |