The MockServer in binding-ejb-runtime doesn't work with OpenEJB 3.0.1 ---------------------------------------------------------------------
Key: TUSCANY-2957 URL: https://issues.apache.org/jira/browse/TUSCANY-2957 Project: Tuscany Issue Type: Bug Components: Java SCA EJB Binding Extension Affects Versions: Java-SCA-1.5 Reporter: Raymond Feng Assignee: Raymond Feng Fix For: Java-SCA-1.5 Apr 4, 2009 1:27:18 AM org.apache.tuscany.sca.node.impl.NodeImpl <init> INFO: Creating node: account/account.composite Apr 4, 2009 1:27:20 AM org.apache.tuscany.sca.node.impl.NodeImpl configureNode INFO: Loading contribution: file:/C:/Tuscany/branches/sca-java-1.x/modules/binding-ejb-runtime/target/test-classes/ Apr 4, 2009 1:27:20 AM org.apache.tuscany.sca.assembly.xml.CompositeProcessor WARNING: No namespace found: Composite = account Apr 4, 2009 1:27:21 AM org.apache.tuscany.sca.node.impl.NodeImpl configureNode INFO: Loading composite: file:/C:/Tuscany/branches/sca-java-1.x/modules/binding-ejb-runtime/target/test-classes/account/account.composite Apr 4, 2009 1:27:21 AM org.apache.tuscany.sca.assembly.xml.CompositeProcessor WARNING: No namespace found: Composite = account Apr 4, 2009 1:27:21 AM org.apache.tuscany.sca.node.impl.NodeImpl start INFO: Starting node: account/account.composite In component implementation. Invoking external EJB through EJB reference binding javax.naming.NamingException: Cannot lookup '/hello-addservice/AddServiceBean/calculator.AddService'. [Root exception is java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI;] at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:240) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.apache.tuscany.sca.binding.ejb.util.EJBLocator$JndiLocator.locate(EJBLocator.java:461) at org.apache.tuscany.sca.binding.ejb.util.EJBLocator.locate(EJBLocator.java:429) at org.apache.tuscany.sca.binding.ejb.util.EJBObjectFactory.createStub(EJBObjectFactory.java:65) at org.apache.tuscany.sca.binding.ejb.util.EJBStubHelper.getStub(EJBStubHelper.java:49) at org.apache.tuscany.sca.binding.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:44) at org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:73) at org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:66) at org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.doInvoke(EJBBindingInvoker.java:73) at org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.invoke(EJBBindingInvoker.java:50) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163) at $Proxy10.add(Unknown Source) at account.CustomerImpl.depositAmount(CustomerImpl.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:162) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112) at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163) at $Proxy9.depositAmount(Unknown Source) at org.apache.tuscany.sca.binding.ejb.tests.EJBReferenceTestCase.testCalculator(EJBReferenceTestCase.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI; at org.apache.openejb.client.Client.processRequest(Client.java:175) at org.apache.openejb.client.Client.request(Client.java:42) at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:87) at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:234) ... 50 more Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI; at org.apache.openejb.client.ServerMetaData.readExternal(ServerMetaData.java:70) at org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:67) at org.apache.openejb.client.Client.processRequest(Client.java:167) ... 53 more org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceUnavailableException: javax.naming.NamingException: Cannot lookup '/hello-addservice/AddServiceBean/calculator.AddService'. [Root exception is java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI;] at org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:76) at org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:66) at org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.doInvoke(EJBBindingInvoker.java:73) at org.apache.tuscany.sca.binding.ejb.provider.EJBBindingInvoker.invoke(EJBBindingInvoker.java:50) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163) at $Proxy10.add(Unknown Source) at account.CustomerImpl.depositAmount(CustomerImpl.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:162) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112) at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163) at $Proxy9.depositAmount(Unknown Source) at org.apache.tuscany.sca.binding.ejb.tests.EJBReferenceTestCase.testCalculator(EJBReferenceTestCase.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.osoa.sca.ServiceUnavailableException: javax.naming.NamingException: Cannot lookup '/hello-addservice/AddServiceBean/calculator.AddService'. [Root exception is java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI;] at org.apache.tuscany.sca.binding.ejb.util.EJBStubHelper.getStub(EJBStubHelper.java:51) at org.apache.tuscany.sca.binding.ejb.util.EJBStubHelper.lookup(EJBStubHelper.java:44) at org.apache.tuscany.sca.binding.ejb.util.EJBHandler.<init>(EJBHandler.java:73) ... 43 more Caused by: javax.naming.NamingException: Cannot lookup '/hello-addservice/AddServiceBean/calculator.AddService'. [Root exception is java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI;] at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:240) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.apache.tuscany.sca.binding.ejb.util.EJBLocator$JndiLocator.locate(EJBLocator.java:461) at org.apache.tuscany.sca.binding.ejb.util.EJBLocator.locate(EJBLocator.java:429) at org.apache.tuscany.sca.binding.ejb.util.EJBObjectFactory.createStub(EJBObjectFactory.java:65) at org.apache.tuscany.sca.binding.ejb.util.EJBStubHelper.getStub(EJBStubHelper.java:49) ... 45 more Caused by: java.rmi.RemoteException: Error reading response from server (OEJP/2.0) : java.lang.Class cannot be cast to [Ljava.net.URI;; nested exception is: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI; at org.apache.openejb.client.Client.processRequest(Client.java:175) at org.apache.openejb.client.Client.request(Client.java:42) at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:87) at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:234) ... 50 more Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to [Ljava.net.URI; at org.apache.openejb.client.ServerMetaData.readExternal(ServerMetaData.java:70) at org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:67) at org.apache.openejb.client.Client.processRequest(Client.java:167) ... 53 more Apr 4, 2009 1:27:22 AM org.apache.tuscany.sca.node.impl.NodeImpl stop INFO: Stopping node: account/account.composite -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.