java.lang.NullPointerException

JBoss Issue Tracker | Andre Winkler | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Container: apache-tomcat-7.0.47 Weld version: 2.1.2 Weld is started over the web.xml with the listener: org.jboss.weld.environment.servlet.Listener We deployed a WAR file with a PrimeFaces user interface and made many many automatic gui tests. After updating to this weld version and switching to the tomcat 7 we get this exception after a random time... The exception occurs in differnt tests on different times, it is not possible to describe the bug to reproduce it... After the exception occurs, the web app is no more useable or have undesirable side effects java.lang.IllegalStateException: WELD-000341: Unable to load current conversations from the associated request, something went badly wrong when associate() was called at org.jboss.weld.context.AbstractConversationContext.getCurrentConversation(AbstractConversationContext.java:434) at org.jboss.weld.servlet.ConversationContextActivator.deactivateConversationContext(ConversationContextActivator.java:145) at org.jboss.weld.servlet.HttpContextLifecycle.requestDestroyed(HttpContextLifecycle.java:217) at org.jboss.weld.servlet.WeldInitialListener.requestDestroyed(WeldInitialListener.java:136) at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:38) at org.apache.catalina.core.StandardContext.fireRequestDestroyEvent(StandardContext.java:6137) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    JBoss Issue Tracker | 3 years ago | Andre Winkler
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    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.NullPointerException

      No message provided

      at org.apache.catalina.connector.Request.notifyAttributeAssigned()
    2. Glassfish Core
      Request.setAttribute
      1. org.apache.catalina.connector.Request.notifyAttributeAssigned(Request.java:1565)
      2. org.apache.catalina.connector.Request.setAttribute(Request.java:1556)
      2 frames
    3. Weld Implementation
      WeldInitialListener.requestInitialized
      1. org.jboss.weld.context.http.HttpConversationContextImpl.setRequestAttribute(HttpConversationContextImpl.java:42)
      2. org.jboss.weld.context.http.HttpConversationContextImpl.setRequestAttribute(HttpConversationContextImpl.java:13)
      3. org.jboss.weld.context.AbstractConversationContext.associateRequestWithNewConversation(AbstractConversationContext.java:196)
      4. org.jboss.weld.context.AbstractConversationContext.initialize(AbstractConversationContext.java:252)
      5. org.jboss.weld.context.http.LazyHttpConversationContextImpl.initialize(LazyHttpConversationContextImpl.java:67)
      6. org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:226)
      7. org.jboss.weld.servlet.ConversationContextActivator.activate(ConversationContextActivator.java:110)
      8. org.jboss.weld.servlet.ConversationContextActivator.activateConversationContext(ConversationContextActivator.java:93)
      9. org.jboss.weld.servlet.HttpContextLifecycle.requestInitialized(HttpContextLifecycle.java:183)
      10. org.jboss.weld.servlet.WeldInitialListener.requestInitialized(WeldInitialListener.java:153)
      10 frames
    4. Weld SPIs for container integration
      ForwardingServletListener.requestInitialized
      1. org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestInitialized(ForwardingServletListener.java:42)
      1 frame
    5. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardContext.fireRequestInitEvent(StandardContext.java:6103)
      2. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:167)
      3. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      4. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      5. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      6. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      6 frames
    6. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      3 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:679)
      3 frames