java.io.IOException: Connection reset by peer

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Glassfish V3 and JMS problems
    via by glenmiller,
  • I'm unable to lunch any app-client using Web Start. I don't know in which "subcomponent" fill the bug, and maybe it should be a P1. Tested with both Glassfish 3.0 (as bundled with NetBean 6.8), GF 3.0.1 (file glassfish-v3u1-b01.zip), GF 3.1 (build 2010-01-24). After having deployed (using the CLI) the NetBeans sample LotteryAnnotation (but the same happens with a my custom EAR application), when I try to execute the appclient (using javaws) I receive this error message on console: java.io.IOException: Failed to read jar:http://localhost:8080/___JWSappclient/___app/LotteryAnnotation/glassfish/modules/gf-client-module.jar!/META-INF/inhabitants/default at com.sun.enterprise.module.single.ProxyModuleDefinition.readFully(ProxyModuleDefinition.java:112) at com.sun.enterprise.module.single.ProxyModuleDefinition.<init>(ProxyModuleDefinition.java:83) at com.sun.enterprise.module.single.ProxyModuleDefinition.<init>(ProxyModuleDefinition.java:73) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:42) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:30) at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:60) at org.glassfish.appclient.client.acc.ACCModulesManager.prepareHabitat(ACCModulesManager.java:147) at org.glassfish.appclient.client.acc.ACCModulesManager.initialize(ACCModulesManager.java:81) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.prepareHabitatAndNaming(AppClientContainerBuilder.java:192) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:152) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:141) at org.glassfish.appclient.client.AppClientFacade.createContainerForJWSLaunch(AppClientFacade.java:469) at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:428) at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256) at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83) 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 com.sun.javaws.Launcher.executeApplication(Launcher.java:1302) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1248) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066) at com.sun.javaws.Launcher.run(Launcher.java:116) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:180) at java.io.DataInputStream.readFully(DataInputStream.java:152) at com.sun.enterprise.module.single.ProxyModuleDefinition.readFully(ProxyModuleDefinition.java:105) ... 23 more Error launching or running the application java.lang.NullPointerException java.lang.NullPointerException at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:448) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:443) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:48) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:30) at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:60) at org.glassfish.appclient.client.acc.ACCModulesManager.prepareHabitat(ACCModulesManager.java:147) at org.glassfish.appclient.client.acc.ACCModulesManager.initialize(ACCModulesManager.java:81) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.prepareHabitatAndNaming(AppClientContainerBuilder.java:192) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:152) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:141) at org.glassfish.appclient.client.AppClientFacade.createContainerForJWSLaunch(AppClientFacade.java:469) at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:428) at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256) at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83) 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 com.sun.javaws.Launcher.executeApplication(Launcher.java:1302) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1248) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066) at com.sun.javaws.Launcher.run(Launcher.java:116) at java.lang.Thread.run(Thread.java:619) What is the problem? Is there a work-around? Regards, Daniele
    via by dbenegiamo,
    • java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104) at sun.nio.ch.IOUtil.write(IOUtil.java:75) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334) at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:106) at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74) at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:321) at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392) at com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:279) at com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:884) at com.sun.grizzly.tcp.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:155) at com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:640) at com.sun.grizzly.tcp.Response.doWrite(Response.java:676) at com.sun.grizzly.tcp.StaticResourcesAdapter.service(StaticResourcesAdapter.java:229) at org.glassfish.appclient.server.core.jws.RestrictedContentAdapter.processContent(RestrictedContentAdapter.java:266) at org.glassfish.appclient.server.core.jws.RestrictedContentAdapter.serviceContent(RestrictedContentAdapter.java:226) at org.glassfish.appclient.server.core.jws.AppClientHTTPAdapter.service(AppClientHTTPAdapter.java:135) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    345 more bugmates