org.glassfish.jersey.server.ContainerException: java.lang.ExceptionInInitializerError

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.

  • Using the web.zip distribution from the trunk, run the following script: set -x ./asadmin start-domain ./asadmin deploy $HOME/test/apps/helloworld.war ./asadmin stop-domain ./asadmin start-domain ./asadmin uptime The result of the final command is: Unknown Response: null Command uptime failed. The helloworld.war file is just a simple web app with an index.jsp. It appears that the app that is used doesn't matter. In the server.log file, there is the following exception reported: [#|2013-02-05T15:32:25.840-0600|INFO|glassfish 4.0|javax.enterprise.admin.rest|_ThreadID=63;_ThreadName=admin-listener(1);_TimeMillis=1360099945840;_LevelValue=800;_MessageID=NCLS-REST-00003;|An error occurred while processing the request. Please see the server logs for details. org.glassfish.jersey.server.ContainerException: java.lang.ExceptionInInitializerError at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer$ResponseWriter.rethrow(GrizzlyHttpContainer.java:270) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer$ResponseWriter.failure(GrizzlyHttpContainer.java:257) at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:307) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:209) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:316) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:179) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:790) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321) at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:319) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:182) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:818) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:562) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:542) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ExceptionInInitializerError at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:140) at javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:611) at com.sun.enterprise.admin.util.CachedCommandModel.computeETag(CachedCommandModel.java:171) at com.sun.enterprise.v3.admin.CommandRunnerImpl.validateCommandModelETag(CommandRunnerImpl.java:212) at org.glassfish.admin.rest.resources.admin.CommandResource.checkCommandModelETag(CommandResource.java:330) at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:378) at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:231) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:358) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:353) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:99) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:203) ... 23 more Caused by: java.lang.IllegalStateException: This web container has not yet been started at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2764) at org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1256) at org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1240) at org.glassfish.web.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1474) at javax.xml.datatype.SecuritySupport$4.run(SecuritySupport.java:90) at java.security.AccessController.doPrivileged(Native Method) at javax.xml.datatype.SecuritySupport.getResourceAsStream(SecuritySupport.java:83) at javax.xml.datatype.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248) at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:221) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:129) at javax.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:889) ... 42 more |#] After this exception no commands can be run. The server cannot be stopped gracefully (a kill is required). This problem does not happen with glassfish.zip. This problem is holding up promotion of build 73. We are seeing this problem in the weekly build (revision 59056) with both glassfish.zip and web.zip (and glassfish-ips.zip). This causes the admin devtests to fail in the manual-sync test.
    via by Tom Mueller,
  • slf4j
    via by Unknown author,
  • GitHub comment 1#210566684
    via GitHub by montalbano
    ,
    • org.glassfish.jersey.server.ContainerException: java.lang.ExceptionInInitializerError at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer$ResponseWriter.rethrow(GrizzlyHttpContainer.java:270) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer$ResponseWriter.failure(GrizzlyHttpContainer.java:257) at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:307) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:209) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:316) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:179) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:790) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321) at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:319) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:182) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:818) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:562) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:542) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ExceptionInInitializerError at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:140) at javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:611) at com.sun.enterprise.admin.util.CachedCommandModel.computeETag(CachedCommandModel.java:171) at com.sun.enterprise.v3.admin.CommandRunnerImpl.validateCommandModelETag(CommandRunnerImpl.java:212) at org.glassfish.admin.rest.resources.admin.CommandResource.checkCommandModelETag(CommandResource.java:330) at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:378) at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:231) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:358) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:353) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:99) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:203) ... 23 more Caused by: java.lang.IllegalStateException: This web container has not yet been started at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2764) at org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1256) at org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1240) at org.glassfish.web.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1474) at javax.xml.datatype.SecuritySupport$4.run(SecuritySupport.java:90) at java.security.AccessController.doPrivileged(Native Method) at javax.xml.datatype.SecuritySupport.getResourceAsStream(SecuritySupport.java:83) at javax.xml.datatype.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248) at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:221) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:129) at javax.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:889) ... 42 more

    Users with the same issue

    Unknown visitor1 times, last one,