tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Hernandez <owen092...@gmail.com>
Subject RMI Binding Problem with Apache Tuscany 2
Date Thu, 07 Nov 2013 02:04:18 GMT
Hi,
I´m trying to configurate my composite with a RMI binding reference to a
RMI non-SCA service.
This is my reference:

<reference name="pagar">
<interface.java interface="services.Pagar" />
<tuscany:binding.rmi uri="rmi://localhost:8099/TestRMI" />
 </reference>

I already used this: <tuscany:binding.rmi host="localhost" port="8099"
serviceName="TestRMI" />

but I´m getting this error message in my console:

org.oasisopen.sca.ServiceUnavailableException:
org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:64)
at
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:122)
at
org.apache.tuscany.sca.binding.atom.provider.AtomBindingListenerServlet.getFeed(AtomBindingListenerServlet.java:501)
at
org.apache.tuscany.sca.binding.atom.provider.AtomBindingListenerServlet.doGet(AtomBindingListenerServlet.java:254)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.apache.tuscany.sca.core.work.impl.Work.run(Work.java:63)
at
org.apache.tuscany.sca.core.work.impl.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:57)
at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:61)
... 22 more
Caused by:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.implementation.java.invocation.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:52)
at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:50)
... 23 more
Caused by: org.apache.tuscany.sca.host.rmi.RMIHostRuntimeException: error
unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.test.TestRemote (no security manager:
RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at
org.apache.tuscany.sca.host.rmi.DefaultRMIHost.findService(DefaultRMIHost.java:115)
at
org.apache.tuscany.sca.host.rmi.ExtensibleRMIHost.findService(ExtensibleRMIHost.java:56)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.initProxy(RMIBindingInvoker.java:121)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.invokeTarget(RMIBindingInvoker.java:71)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.invoke(RMIBindingInvoker.java:56)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:329)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:272)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:125)
at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:238)
at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:157)
at $Proxy14.isLoginValid(Unknown Source)
at services.ShoppingCartImpl.init(ShoppingCartImpl.java:51)
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.apache.tuscany.sca.implementation.java.invocation.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:43)
... 24 more

<?xml version="1.0" encoding="utf-8"?>
<xml><item><bill_id>2</bill_id><user_id>43</user_id><proveedor>TELMEX</proveedor><folio>MMC22683767</folio><total>638</total><fecha_vencimiento>2013-04-15
00:00:00</fecha_vencimiento><observaciones>Marzo</observaciones></item><item><bill_id>3</bill_id><user_id>43</user_id><proveedor>Cablemas</proveedor><folio>418533-01</folio><total>498</total><fecha_vencimiento>2012-10-11
00:00:00</fecha_vencimiento><observaciones>Septiembre</observaciones></item></xml>

nov 06, 2013 6:52:53 PM org.apache.tuscany.sca.http.jetty.JettyLogger warn
Advertencia: /ShoppingCart/Cart/
org.oasisopen.sca.ServiceUnavailableException:
org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:64)
at
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:122)
at
org.apache.tuscany.sca.binding.atom.provider.AtomBindingListenerServlet.getFeed(AtomBindingListenerServlet.java:501)
at
org.apache.tuscany.sca.binding.atom.provider.AtomBindingListenerServlet.doGet(AtomBindingListenerServlet.java:254)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.apache.tuscany.sca.core.work.impl.Work.run(Work.java:63)
at
org.apache.tuscany.sca.core.work.impl.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.tuscany.sca.core.scope.TargetInitializationException:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:57)
at
org.apache.tuscany.sca.core.scope.impl.CompositeScopeContainer.getWrapper(CompositeScopeContainer.java:61)
... 22 more
Caused by:
org.apache.tuscany.sca.implementation.java.invocation.EventInvocationException:
Exception thrown by event method [init]
at
org.apache.tuscany.sca.implementation.java.invocation.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:52)
at
org.apache.tuscany.sca.implementation.java.context.ReflectiveInstanceWrapper.start(ReflectiveInstanceWrapper.java:50)
... 23 more
Caused by: org.apache.tuscany.sca.host.rmi.RMIHostRuntimeException: error
unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.test.TestRemote (no security manager:
RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at
org.apache.tuscany.sca.host.rmi.DefaultRMIHost.findService(DefaultRMIHost.java:115)
at
org.apache.tuscany.sca.host.rmi.ExtensibleRMIHost.findService(ExtensibleRMIHost.java:56)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.initProxy(RMIBindingInvoker.java:121)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.invokeTarget(RMIBindingInvoker.java:71)
at
org.apache.tuscany.sca.binding.rmi.provider.RMIBindingInvoker.invoke(RMIBindingInvoker.java:56)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:329)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:272)
at
org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:125)
at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:238)
at
org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:157)
at $Proxy14.isLoginValid(Unknown Source)
at services.ShoppingCartImpl.init(ShoppingCartImpl.java:51)
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.apache.tuscany.sca.implementation.java.invocation.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:43)
... 24 more

I want to know if RMI reference configuration is OK?
Have you ever got this kind of errors.

Mime
View raw message