java.lang.IllegalStateException

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.

  • Programmatic deployment of EAR application
    via by nikles007,
  • Oracle GlassFish 3.1
    via by seagate-746906,
  • Oracle GlassFish 3.1
    via by seagate-746906,
  • Error
    via GitHub by Mo121Montazeri
    ,
    • java.lang.IllegalStateException: java.io.IOException: Unexpected end of file from server at com.sun.enterprise.deployapi.SunDeploymentManager.getTargets(SunDeploymentManager.java:228) at com.blablabla.utils.appserver.glassfish.DeploymentHelper.deploy(DeploymentHelper.java:121) at com.blablabla.utils.appserver.glassfish.GlassFishManager.deployArchive(GlassFishManager.java:399) at com.myproject.installer.AssembleAndRedeploy.refreshApplication(AssembleAndRedeploy.java:111) at com.myproject.installer.AssembleAndRedeploy.main(AssembleAndRedeploy.java:144) Caused by: java.lang.RuntimeException: java.io.IOException: Unexpected end of file from server at com.sun.appserv.management.client.ProxyFactory.getInstance(ProxyFactory.java:459) at com.sun.appserv.management.client.ProxyFactory.getInstance(ProxyFactory.java:409) at com.sun.enterprise.deployapi.SunDeploymentManager.getProxyFactory(SunDeploymentManager.java:1661) at com.sun.enterprise.deployapi.SunDeploymentManager.getRootProxy(SunDeploymentManager.java:1638) at com.sun.enterprise.deployapi.SunDeploymentManager.getDomainConfigProxy(SunDeploymentManager.java:1650) at com.sun.enterprise.deployapi.SunDeploymentManager.getTargets(SunDeploymentManager.java:199) ... 4 more Caused by: java.io.IOException: Unexpected end of file from server at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.handleException(ServletConnection.java:261) at com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.receive(ServletConnection.java:148) at com.sun.enterprise.admin.jmx.remote.comm.MBeanServerMessageConductor.invoke(MBeanServerMessageConductor.java:84) at com.sun.enterprise.admin.jmx.remote.internal.RemoteMBeanServerConnection.getAttribute(RemoteMBeanServerConnection.java:297) at com.sun.appserv.management.util.jmx.JMXUtil.getMBeanServerID(JMXUtil.java:123) at com.sun.appserv.management.client.ProxyFactory.getInstance(ProxyFactory.java:445) ... 9 more Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.receive(ServletConnection.java:127) ... 13 more

    Users with the same issue

    CasperCasper
    4 times, last one,
    treefolktreefolk
    6 times, last one,
    musketyrmusketyr
    48 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    33 more bugmates