Announcement Announcement Module
Collapse
No announcement yet.
Cannot deserialize OutputStream Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot deserialize OutputStream

    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:

    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)
    The client and the server are running under java 1.5.

    Does anyone have an idea?
    Thanks,
    Jens

  • #2
    Well, OutputStream is not serializable. What would it mean to serialize a stream pointing to the local file system?

    Comment


    • #3
      Yeah your are right. It is a probably a bad idea . The remoting technology is maybe not made to transfer large files. Although I found this:

      http://opensource.atlassian.com/proj...rowse/SPR-1223

      I will try to find a different solution then. Thanks for the reply anyway.

      Cheers,
      Jens

      Comment

      Working...
      X