dev@glassfish.java.net

Re: The server exited prematurely with exit code 0.Before it died, it produced the following output:

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Wed, 04 Jan 2012 10:39:10 -0600

I saw this yesterday with a "31-ea" build of Java SE. It appears that
the Grizzly StaticResourcesAdapter.linuxSendFileSupported method is
trying to convert the Java version number to an integer, and "28-ea"
causes an exception to be thrown. As a workaround, use a non-ea version
of Java.

Can you please file a Grizzly bug?

Tom

On 1/4/2012 10:14 AM, Sreekanth wrote:
> This is another issue I am facing with latest glassfish nightly if I
> use Java version : 1.6.0_28-ea
>
> My Environment details:
> GlassFish Server Open Source Edition 3.1.2-SNAPSHOT (build 17)
> Java(TM) SE Runtime Environment (build 1.6.0_28-ea-b02)
>
> Actual Problem:
>
> sreekanth_at_Spidy:/space/Sreekanth/servers/glassfish3/glassfish$ asadmin
> start-domain domain1
> Waiting for domain1 to start ....Error starting domain domain1.
> The server exited prematurely with exit code 0.
> Before it died, it produced the following output:
>
> Launching GlassFish on Felix platform
> [#|2012-01-04T21:40:06.911+0530|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=main;|Running
> GlassFish Version: GlassFish Server Open Source Edition 3.1.2-SNAPSHOT
> (build 17)|#]
>
> [#|2012-01-04T21:40:07.020+0530|INFO|glassfish3.1.2|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=main;|Registered
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> persistence-type = replicated in BackingStoreFactoryRegistry|#]
>
> [#|2012-01-04T21:40:07.230+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=10;_ThreadName=main;|Unable
> to start v3. Closing all ports
> com.sun.grizzly.config.GrizzlyConfigException: For input string: "28-ea"
> at
> com.sun.grizzly.config.GrizzlyEmbeddedHttp.configureHttpListenerProperty(GrizzlyEmbeddedHttp.java:605)
> at
> com.sun.grizzly.config.GrizzlyEmbeddedHttp.configureProtocol(GrizzlyEmbeddedHttp.java:337)
> at
> com.sun.grizzly.config.GrizzlyEmbeddedHttp.configure(GrizzlyEmbeddedHttp.java:301)
> at
> com.sun.grizzly.config.GrizzlyServiceListener.initializeListener(GrizzlyServiceListener.java:104)
> at
> com.sun.grizzly.config.GrizzlyServiceListener.configure(GrizzlyServiceListener.java:89)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyListener.configure(GrizzlyListener.java:84)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyProxy.configureGrizzly(GrizzlyProxy.java:150)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyProxy.<init>(GrizzlyProxy.java:121)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:445)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:353)
> at
> com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
> at
> com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
> at
> com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
> at
> com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
> at
> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
> at
> com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
> at
> com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
> at
> com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
> at
> com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
> at
> com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
> at
> com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
> 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.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
> at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
> Caused by: java.lang.NumberFormatException: For input string: "28-ea"
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:458)
> at java.lang.Integer.parseInt(Integer.java:499)
> at
> com.sun.grizzly.tcp.StaticResourcesAdapter.linuxSendFileSupported(StaticResourcesAdapter.java:452)
> at
> com.sun.grizzly.tcp.StaticResourcesAdapter.<init>(StaticResourcesAdapter.java:102)
> at
> com.sun.grizzly.tcp.StaticResourcesAdapter.<init>(StaticResourcesAdapter.java:94)
> 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 java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> com.sun.grizzly.config.GrizzlyEmbeddedHttp.configureHttpListenerProperty(GrizzlyEmbeddedHttp.java:600)
> ... 28 more
> |#]
>
> [#|2012-01-04T21:40:07.232+0530|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|Startup
> service failed to start :
> com.sun.enterprise.v3.services.impl.GrizzlyService|#]
>
> [#|2012-01-04T21:40:07.261+0530|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=11;_ThreadName=Thread-3;|Server
> shutdown initiated|#]
>
> [#|2012-01-04T21:40:07.262+0530|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=11;_ThreadName=Thread-3;|Already
> stopped, so just returning|#]
>
>
> Thanks
> Sreekanth
>