java.lang.RuntimeException: java.io.StreamCorruptedException

Spring JIRA | Costin Leau | 1 decade ago
  1. 0

    I have gotten this error from time to time and I have no idea what is occurring - see stack trace at end of this email. I get no other errors than this. When full debug is on, nothing else in the log. Something is obviously going wrong, but I know not what... java.lang.RuntimeException: java.io.StreamCorruptedException at org.springframework.osgi.test.TestUtils.receiveTestResult(TestUtils.java:89) at org.springframework.osgi.test.AbstractOsgiTests.readTestResult(AbstractOsgiTests.java:404) at org.springframework.osgi.test.AbstractOsgiTests.runTest(AbstractOsgiTests.java:500) at junit.framework.TestCase.runBare(TestCase.java:127) 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 org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:520) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:269) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:788) Caused by: java.io.StreamCorruptedException at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at java.util.ArrayList.readObject(ArrayList.java:591) 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:585) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.springframework.osgi.test.TestUtils.receiveTestResult(TestUtils.java:85) ... 24 more

    Spring JIRA | 1 decade ago | Costin Leau
    java.lang.RuntimeException: java.io.StreamCorruptedException
  2. 0

    I have gotten this error from time to time and I have no idea what is occurring - see stack trace at end of this email. I get no other errors than this. When full debug is on, nothing else in the log. Something is obviously going wrong, but I know not what... java.lang.RuntimeException: java.io.StreamCorruptedException at org.springframework.osgi.test.TestUtils.receiveTestResult(TestUtils.java:89) at org.springframework.osgi.test.AbstractOsgiTests.readTestResult(AbstractOsgiTests.java:404) at org.springframework.osgi.test.AbstractOsgiTests.runTest(AbstractOsgiTests.java:500) at junit.framework.TestCase.runBare(TestCase.java:127) 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 org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:520) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:269) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:788) Caused by: java.io.StreamCorruptedException at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at java.util.ArrayList.readObject(ArrayList.java:591) 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:585) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.springframework.osgi.test.TestUtils.receiveTestResult(TestUtils.java:85) ... 24 more

    Spring JIRA | 1 decade ago | Costin Leau
    java.lang.RuntimeException: java.io.StreamCorruptedException
  3. 0

    Spring-OSGi and JMS

    Google Groups | 10 years ago | Don Laidlaw
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in OSGi resource[/ META-INF/spring/bundle-context.xml|id=95| symName=com.infor.jms.SimpleReceiver]: Invocation of init method failed; nested exception is javax.naming.NamingException [Root exception is java.io.StreamCorruptedException] Caused by: javax.naming.NamingException [Root exception is java.io.StreamCorruptedException]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. eti22 5 times, last 1 month ago
  2. bpbhat77 8 times, last 3 months ago
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.StreamCorruptedException

    No message provided

    at java.io.ObjectInputStream.readObject0()
  2. Java RT
    ObjectInputStream.readObject
    1. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
    2. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    3. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    4. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    5. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    6. java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
    7. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
    8. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    9. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    10. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    11. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    12. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    13. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    14. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    15. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    16. java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    17. java.util.ArrayList.readObject(ArrayList.java:591)
    18. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    19. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    20. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    21. java.lang.reflect.Method.invoke(Method.java:585)
    22. java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
    23. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
    24. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    25. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    26. java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    26 frames
  3. org.springframework.osgi
    AbstractOsgiTests.runTest
    1. org.springframework.osgi.test.TestUtils.receiveTestResult(TestUtils.java:85)
    2. org.springframework.osgi.test.AbstractOsgiTests.readTestResult(AbstractOsgiTests.java:404)
    3. org.springframework.osgi.test.AbstractOsgiTests.runTest(AbstractOsgiTests.java:500)
    3 frames
  4. JUnit
    TestCase.run
    1. junit.framework.TestCase.runBare(TestCase.java:127)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:118)
    5 frames
  5. org.springframework.osgi
    AbstractOsgiTests.run
    1. org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:520)
    1 frame
  6. JUnit
    TestSuite.run
    1. junit.framework.TestSuite.runTest(TestSuite.java:208)
    2. junit.framework.TestSuite.run(TestSuite.java:203)
    2 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  8. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    1 frame
  9. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    3 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  11. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:269)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:788)
    2 frames