java.io.StreamCorruptedException: invalid stream header: 47455420

Java.net JIRA | survivant | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [GLASSFISH-5573] java.io.StreamCorruptedException: invalid stream header: 47455420 - Java.net JIRA

    java.net | 1 year ago
    java.io.StreamCorruptedException: invalid stream header: 47455420
  2. 0

    [GLASSFISH-5573] java.io.StreamCorruptedException: invalid stream header: 47455420 - Java.net JIRA

    java.net | 1 year ago
    java.io.StreamCorruptedException: invalid stream header: 47455420
  3. 0

    I download the latest build b20: I started Glassfish with this : asadmin start-domain -v when I enter the URL : http://localhost:8888/admin ou http://localhost:8888/admin/ I have a popup in Firefox telling me : You have chosen to open : which is a : application/octem-stream from http://localhost:8888 ... here the system.log 2008-08-21 12:08:58 com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: JVM invocation command line: C:\jdk\bin\java.exe -cp C:/Temp/latest-snapshot/glassfish/modules/glassfish-10.0-SNAPSHOT.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:+LogVMOutput -XX:LogFile=C:\Temp\latest-snapshot\glassfish\domains\domain1/logs/jvm.log -Xmx512m -client -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.net.ssl.trustStore=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/cacerts.jks -Dsun.rmi.dgc.client.gcInterval=3600000 -Djavax.net.ssl.keyStore=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/keystore.jks -Djava.security.policy=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/server.policy -Dsun.rmi.dgc.server.gcInterval=3600000 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Djava.security.auth.login.config=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/login.conf -Djava.endorsed.dirs=C:\Temp\latest-snapshot\glassfish/lib/endorsed -Djava.ext.dirs=C:\jdk/lib/ext;C:\jdk/jre/lib/ext;C:\Temp\latest-snapshot\glassfish\domains\domain1/lib/ext;C:\Temp\latest-snapshot\glassfish\javadb/lib com.sun.enterprise.glassfish.bootstrap.ASMain -domainname domain1 -instancename server -verbose true -debug false -domaindir C:/Temp/latest-snapshot/glassfish/domains/domain1 2008-08-21 12:08:58 com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: Successfully launched in 203 msec. [#|2008-08-21T12:09:07.250-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.web.web-cli [42];|Started bundle org.glassfish.web.web-cli [42]|#] [#|2008-08-21T12:09:07.250-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.web.web-cli [42];|Started bundle org.glassfish.web.web-cli [42]|#] [#|2008-08-21T12:09:07.265-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### ConnectorStartupService.ConnectorStartupService|#] [#|2008-08-21T12:09:07.281-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.flashlight.flashlight-framework [92];|Started bundle org.glassfish.flashlight.flashlight-framework [92]|#] [#|2008-08-21T12:09:07.296-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.admin.monitoring-core [81];|Started bundle org.glassfish.admin.monitoring-core [81]|#] [#|2008-08-21T12:09:07.375-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### SystemJmxConnectorName: system, 1 connectors found|#] [#|2008-08-21T12:09:07.390-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.deployment.deployment-autodeploy [58];|Started bundle org.glassfish.deployment.deployment-autodeploy [58]|#] [#|2008-08-21T12:09:07.406-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = false}|#] [#|2008-08-21T12:09:07.421-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.deployment.deployment-common [88];|Started bundle org.glassfish.deployment.deployment-common [88]|#] [#|2008-08-21T12:09:07.500-0400|INFO||org.glassfish.admin.connector.rmi.JmxConnectorServerDriver|_ThreadID=13;_ThreadName=Thread-3;|Initial Bindings in RmiRegistry at port: [8686] : NONE|#] [#|2008-08-21T12:09:07.500-0400|INFO||org.glassfish.admin.connector.rmi.JmxConnectorServerDriver|_ThreadID=13;_ThreadName=Thread-3;|Starting JMXConnectorServer @ service:jmx:rmi:///jndi/rmi://FB07607.fbn-nbf.local:8686/management/rmi-jmx-connector|#] [#|2008-08-21T12:09:07.593-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.common.container-common [101];|Started bundle org.glassfish.common.container-common [101]|#] [#|2008-08-21T12:09:07.625-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 8080|#] [#|2008-08-21T12:09:07.640-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 8181|#] [#|2008-08-21T12:09:07.640-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 4848|#] [#|2008-08-21T12:09:07.640-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.common.glassfish-api [102];|Started bundle org.glassfish.common.glassfish-api [102]|#] [#|2008-08-21T12:09:07.656-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.connectors.connectors-runtime [22];|Started bundle org.glassfish.connectors.connectors-runtime [22]|#] [#|2008-08-21T12:09:07.796-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Admin Console Adapter: context root: /admin|#] [#|2008-08-21T12:09:07.796-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.transaction.jta [54];|Started bundle org.glassfish.transaction.jta [54]|#] [#|2008-08-21T12:09:07.812-0400|SEVERE||null|_ThreadID=13;_ThreadName=Thread-3;|ERROR starting JMX connector: JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = false}: java.io.IOException: Cannot bind to URL [rmi://FB07607.fbn-nbf.local:8686/management/rmi-jmx-connector]: javax.naming.InvalidNameException: Cannot create empty subcontext|#] [#|2008-08-21T12:09:07.812-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### UnprocessedConfigListener.UnprocessedConfigListener|#] [#|2008-08-21T12:09:07.843-0400|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;Class Loader for Bundle [GlassFish-Application-Common-Module [66] ];|APIClassLoader = Class Loader for Bundle [GlassFish-Application-Common-Module [66] ]|#] [#|2008-08-21T12:09:07.859-0400|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;|urls = []|#] [#|2008-08-21T12:09:07.859-0400|INFO||javax.enterprise.system.core|_ThreadID=12;_ThreadName=Thread-3;|Glassfish v3 started in 9125 ms|#] [#|2008-08-21T12:09:08.125-0400|INFO||null|_ThreadID=14;_ThreadName=Thread-3;|JMXMP connector server URL = service:jmx:jmxmp://localhost:8888|#] [#|2008-08-21T12:13:48.484-0400|WARNING||javax.management.remote.generic|_ThreadID=15;_ThreadName=Thread-3;|Failed to open connection: java.io.StreamCorruptedException: invalid stream header: 47455420 java.io.StreamCorruptedException: invalid stream header: 47455420 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at com.sun.jmx.remote.socket.SocketConnection$ObjectInputStreamWithLoader.<init>(SocketConnection.java:394) at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:244) at com.sun.jmx.remote.opt.security.AdminServer.connectionOpen(AdminServer.java:116) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.connect(ServerSynchroMessageConnectionImpl.java:98) at javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:443) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:248) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:99) |#] [#|2008-08-21T12:13:59.921-0400|WARNING||javax.management.remote.generic|_ThreadID=15;_ThreadName=Thread-3;|Failed to open connection: java.io.StreamCorruptedException: invalid stream header: 47455420 java.io.StreamCorruptedException: invalid stream header: 47455420 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at com.sun.jmx.remote.socket.SocketConnection$ObjectInputStreamWithLoader.<init>(SocketConnection.java:394) at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:244) at com.sun.jmx.remote.opt.security.AdminServer.connectionOpen(AdminServer.java:116) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.connect(ServerSynchroMessageConnectionImpl.java:98) at javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:443) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:248) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:99) |#]

    Java.net JIRA | 9 years ago | survivant
    java.io.StreamCorruptedException: invalid stream header: 47455420
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I download the latest build b20: I started Glassfish with this : asadmin start-domain -v when I enter the URL : http://localhost:8888/admin ou http://localhost:8888/admin/ I have a popup in Firefox telling me : You have chosen to open : which is a : application/octem-stream from http://localhost:8888 ... here the system.log 2008-08-21 12:08:58 com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: JVM invocation command line: C:\jdk\bin\java.exe -cp C:/Temp/latest-snapshot/glassfish/modules/glassfish-10.0-SNAPSHOT.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:+LogVMOutput -XX:LogFile=C:\Temp\latest-snapshot\glassfish\domains\domain1/logs/jvm.log -Xmx512m -client -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.net.ssl.trustStore=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/cacerts.jks -Dsun.rmi.dgc.client.gcInterval=3600000 -Djavax.net.ssl.keyStore=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/keystore.jks -Djava.security.policy=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/server.policy -Dsun.rmi.dgc.server.gcInterval=3600000 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Djava.security.auth.login.config=C:\Temp\latest-snapshot\glassfish\domains\domain1/config/login.conf -Djava.endorsed.dirs=C:\Temp\latest-snapshot\glassfish/lib/endorsed -Djava.ext.dirs=C:\jdk/lib/ext;C:\jdk/jre/lib/ext;C:\Temp\latest-snapshot\glassfish\domains\domain1/lib/ext;C:\Temp\latest-snapshot\glassfish\javadb/lib com.sun.enterprise.glassfish.bootstrap.ASMain -domainname domain1 -instancename server -verbose true -debug false -domaindir C:/Temp/latest-snapshot/glassfish/domains/domain1 2008-08-21 12:08:58 com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: Successfully launched in 203 msec. [#|2008-08-21T12:09:07.250-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.web.web-cli [42];|Started bundle org.glassfish.web.web-cli [42]|#] [#|2008-08-21T12:09:07.250-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.web.web-cli [42];|Started bundle org.glassfish.web.web-cli [42]|#] [#|2008-08-21T12:09:07.265-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### ConnectorStartupService.ConnectorStartupService|#] [#|2008-08-21T12:09:07.281-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.flashlight.flashlight-framework [92];|Started bundle org.glassfish.flashlight.flashlight-framework [92]|#] [#|2008-08-21T12:09:07.296-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.admin.monitoring-core [81];|Started bundle org.glassfish.admin.monitoring-core [81]|#] [#|2008-08-21T12:09:07.375-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### SystemJmxConnectorName: system, 1 connectors found|#] [#|2008-08-21T12:09:07.390-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.deployment.deployment-autodeploy [58];|Started bundle org.glassfish.deployment.deployment-autodeploy [58]|#] [#|2008-08-21T12:09:07.406-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = false}|#] [#|2008-08-21T12:09:07.421-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-3;org.glassfish.deployment.deployment-common [88];|Started bundle org.glassfish.deployment.deployment-common [88]|#] [#|2008-08-21T12:09:07.500-0400|INFO||org.glassfish.admin.connector.rmi.JmxConnectorServerDriver|_ThreadID=13;_ThreadName=Thread-3;|Initial Bindings in RmiRegistry at port: [8686] : NONE|#] [#|2008-08-21T12:09:07.500-0400|INFO||org.glassfish.admin.connector.rmi.JmxConnectorServerDriver|_ThreadID=13;_ThreadName=Thread-3;|Starting JMXConnectorServer @ service:jmx:rmi:///jndi/rmi://FB07607.fbn-nbf.local:8686/management/rmi-jmx-connector|#] [#|2008-08-21T12:09:07.593-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.common.container-common [101];|Started bundle org.glassfish.common.container-common [101]|#] [#|2008-08-21T12:09:07.625-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 8080|#] [#|2008-08-21T12:09:07.640-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 8181|#] [#|2008-08-21T12:09:07.640-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Listening on port 4848|#] [#|2008-08-21T12:09:07.640-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.common.glassfish-api [102];|Started bundle org.glassfish.common.glassfish-api [102]|#] [#|2008-08-21T12:09:07.656-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.connectors.connectors-runtime [22];|Started bundle org.glassfish.connectors.connectors-runtime [22]|#] [#|2008-08-21T12:09:07.796-0400|INFO||global|_ThreadID=12;_ThreadName=Thread-3;|Admin Console Adapter: context root: /admin|#] [#|2008-08-21T12:09:07.796-0400|INFO||org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-3;org.glassfish.transaction.jta [54];|Started bundle org.glassfish.transaction.jta [54]|#] [#|2008-08-21T12:09:07.812-0400|SEVERE||null|_ThreadID=13;_ThreadName=Thread-3;|ERROR starting JMX connector: JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = false}: java.io.IOException: Cannot bind to URL [rmi://FB07607.fbn-nbf.local:8686/management/rmi-jmx-connector]: javax.naming.InvalidNameException: Cannot create empty subcontext|#] [#|2008-08-21T12:09:07.812-0400|INFO||null|_ThreadID=13;_ThreadName=Thread-3;|### UnprocessedConfigListener.UnprocessedConfigListener|#] [#|2008-08-21T12:09:07.843-0400|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;Class Loader for Bundle [GlassFish-Application-Common-Module [66] ];|APIClassLoader = Class Loader for Bundle [GlassFish-Application-Common-Module [66] ]|#] [#|2008-08-21T12:09:07.859-0400|INFO||javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Thread-3;|urls = []|#] [#|2008-08-21T12:09:07.859-0400|INFO||javax.enterprise.system.core|_ThreadID=12;_ThreadName=Thread-3;|Glassfish v3 started in 9125 ms|#] [#|2008-08-21T12:09:08.125-0400|INFO||null|_ThreadID=14;_ThreadName=Thread-3;|JMXMP connector server URL = service:jmx:jmxmp://localhost:8888|#] [#|2008-08-21T12:13:48.484-0400|WARNING||javax.management.remote.generic|_ThreadID=15;_ThreadName=Thread-3;|Failed to open connection: java.io.StreamCorruptedException: invalid stream header: 47455420 java.io.StreamCorruptedException: invalid stream header: 47455420 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at com.sun.jmx.remote.socket.SocketConnection$ObjectInputStreamWithLoader.<init>(SocketConnection.java:394) at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:244) at com.sun.jmx.remote.opt.security.AdminServer.connectionOpen(AdminServer.java:116) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.connect(ServerSynchroMessageConnectionImpl.java:98) at javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:443) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:248) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:99) |#] [#|2008-08-21T12:13:59.921-0400|WARNING||javax.management.remote.generic|_ThreadID=15;_ThreadName=Thread-3;|Failed to open connection: java.io.StreamCorruptedException: invalid stream header: 47455420 java.io.StreamCorruptedException: invalid stream header: 47455420 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at com.sun.jmx.remote.socket.SocketConnection$ObjectInputStreamWithLoader.<init>(SocketConnection.java:394) at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:244) at com.sun.jmx.remote.opt.security.AdminServer.connectionOpen(AdminServer.java:116) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl.connect(ServerSynchroMessageConnectionImpl.java:98) at javax.management.remote.generic.GenericConnectorServer$ClientCreation.run(GenericConnectorServer.java:443) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:248) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:99) |#]

    Java.net JIRA | 9 years ago | survivant
    java.io.StreamCorruptedException: invalid stream header: 47455420

  1. tererecool 2 times, last 5 months ago
  2. Stefan Braune 4 times, last 7 months ago
  3. RoiOtero 1 times, last 8 months ago
  4. MoYapro 15 times, last 8 months ago
47 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

    invalid stream header: 47455420

    at java.io.ObjectInputStream.readStreamHeader()
  2. Java RT
    ObjectInputStream.<init>
    1. java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
    2. java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
    2 frames