Hi,
I have a problem with spring remoting. I deployed a remote service in jboss and I am able to call simple methods from its interface which return a string. But what I want to do is to call a method which returns an java.io.OutputStream. But when I invoke the remote method I get the following exception:
The client and the server are running under java 1.5.Code:junit.framework.AssertionFailedError: Cannot deserialize result from HTTP invoker remote service [http://localhost:80/remote/AdministrationServiceSpring]; nested exception is java.lang.ClassNotFoundException: [Ljava.lang.StackTraceElement; at junit.framework.Assert.fail(Assert.java:47) at de.juwimm.cms.client.test.AdministrationServiceClientTest.testExportXlsPersonData(AdministrationServiceClientTest.java:25) 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 junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) 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)
Does anyone have an idea?
Thanks,
Jens


Reply With Quote
. The remoting technology is maybe not made to transfer large files. Although I found this: