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

Java.net JIRA | Tom Mueller | 4 years ago
  1. 0

    [GLASSFISH-19639] Command framework fails after deploying application - Java.net JIRA

    java.net | 11 months ago
    org.glassfish.jersey.server.ContainerException: java.lang.ExceptionInInitializerError
  2. 0

    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.

    Java.net JIRA | 4 years ago | Tom Mueller
    org.glassfish.jersey.server.ContainerException: java.lang.ExceptionInInitializerError
  3. 0

    slf4j

    solveseek.com | 1 year ago
    java.lang.IllegalStateException: This web container has not yet been started
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Saxon: Need to restart Glassfish after every redeployment

    Stack Overflow | 2 years ago | Davio
    java.lang.IllegalStateException: This web container has not yet been started

    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.lang.IllegalStateException

      This web container has not yet been started

      at org.glassfish.web.loader.WebappClassLoader.findResourceInternal()
    2. Web Container Common Utilities
      WebappClassLoader.getResourceAsStream
      1. org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2764)
      2. org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1256)
      3. org.glassfish.web.loader.WebappClassLoader.findResource(WebappClassLoader.java:1240)
      4. org.glassfish.web.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1474)
      4 frames
    3. Java RT
      DatatypeConverter.printBase64Binary
      1. javax.xml.datatype.SecuritySupport$4.run(SecuritySupport.java:90)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. javax.xml.datatype.SecuritySupport.getResourceAsStream(SecuritySupport.java:83)
      4. javax.xml.datatype.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248)
      5. javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:221)
      6. javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:129)
      7. javax.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:889)
      8. javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:140)
      9. javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:611)
      9 frames
    4. admin-util
      CachedCommandModel.computeETag
      1. com.sun.enterprise.admin.util.CachedCommandModel.computeETag(CachedCommandModel.java:171)
      1 frame
    5. Kernel Classes
      CommandRunnerImpl.validateCommandModelETag
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl.validateCommandModelETag(CommandRunnerImpl.java:212)
      1 frame
    6. org.glassfish.admin
      CommandResource.execCommandSimpInMultOut
      1. org.glassfish.admin.rest.resources.admin.CommandResource.checkCommandModelETag(CommandResource.java:330)
      2. org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:378)
      3. org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:231)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    8. jersey-core-server
      ServerRuntime$1.run
      1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
      3. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
      4. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)
      5. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:358)
      6. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:353)
      7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:99)
      8. org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:203)
      8 frames
    9. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:316)
      1 frame
    10. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:179)
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:790)
      2 frames
    11. jersey-container-grizzly2-http
      GrizzlyHttpContainer.service
      1. org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)
      1 frame
    12. GlassFish Admin
      RestAdapter.service
      1. org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:319)
      2. org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:182)
      2 frames
    13. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      1 frame
    14. Grizzly Server
      HttpServerFilter.handleRead
      1. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
      2. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
      2 frames
    15. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:818)
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:562)
      13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:542)
      13 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame