java.lang.NullPointerException

ZK-Tracker | cor3000 | 3 years ago
  1. 0

    when trying to run a test with ZATS and ZK 7.0.0-RC version ZATS fails to check the version SEVERE: Failed to invoke class org.zkoss.zats.mimic.impl.Ext6Initiator java.lang.NullPointerException at org.zkoss.zats.mimic.impl.Util.checkVersion(Util.java:80) at org.zkoss.zats.mimic.impl.OperationAgentManager.registerBuilder(OperationAgentManager.java:339) at org.zkoss.zats.mimic.impl.OperationAgentManager.<init>(OperationAgentManager.java:141) at org.zkoss.zats.mimic.impl.OperationAgentManager.getInstance(OperationAgentManager.java:126) at org.zkoss.zats.mimic.impl.Ext6Initiator.init(Ext6Initiator.java:41) at org.zkoss.zk.ui.util.Configuration.invokeWebAppInits(Configuration.java:729) at org.zkoss.zk.ui.impl.AbstractWebApp.init(AbstractWebApp.java:204) at org.zkoss.zk.ui.http.SimpleWebApp.init(SimpleWebApp.java:58) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:228) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at runjettyrun.Bootstrap.main(Bootstrap.java:97) the static zkVersion member is null in org.zkoss.zats.mimic.impl.Util because this line fails: 35: zkVersion = Util.parseVersion(Version.class.getField("UID").get(null).toString()); as the pattern in line 108 does not match 108: Matcher m = Pattern.compile( "\\s*(\\d+)\\.(\\d+)\\.(\\d+)\\.?(\\d*)\\s*").matcher(version);

    ZK-Tracker | 3 years ago | cor3000
    java.lang.NullPointerException
  2. 0

    when trying to run a test with ZATS and ZK 7.0.0-RC version ZATS fails to check the version SEVERE: Failed to invoke class org.zkoss.zats.mimic.impl.Ext6Initiator java.lang.NullPointerException at org.zkoss.zats.mimic.impl.Util.checkVersion(Util.java:80) at org.zkoss.zats.mimic.impl.OperationAgentManager.registerBuilder(OperationAgentManager.java:339) at org.zkoss.zats.mimic.impl.OperationAgentManager.<init>(OperationAgentManager.java:141) at org.zkoss.zats.mimic.impl.OperationAgentManager.getInstance(OperationAgentManager.java:126) at org.zkoss.zats.mimic.impl.Ext6Initiator.init(Ext6Initiator.java:41) at org.zkoss.zk.ui.util.Configuration.invokeWebAppInits(Configuration.java:729) at org.zkoss.zk.ui.impl.AbstractWebApp.init(AbstractWebApp.java:204) at org.zkoss.zk.ui.http.SimpleWebApp.init(SimpleWebApp.java:58) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:228) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at runjettyrun.Bootstrap.main(Bootstrap.java:97) the static zkVersion member is null in org.zkoss.zats.mimic.impl.Util because this line fails: 35: zkVersion = Util.parseVersion(Version.class.getField("UID").get(null).toString()); as the pattern in line 108 does not match 108: Matcher m = Pattern.compile( "\\s*(\\d+)\\.(\\d+)\\.(\\d+)\\.?(\\d*)\\s*").matcher(version);

    ZK-Tracker | 3 years ago | cor3000
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.zkoss.zats.mimic.impl.Util.checkVersion()
    2. org.zkoss.zats
      Ext6Initiator.init
      1. org.zkoss.zats.mimic.impl.Util.checkVersion(Util.java:80)
      2. org.zkoss.zats.mimic.impl.OperationAgentManager.registerBuilder(OperationAgentManager.java:339)
      3. org.zkoss.zats.mimic.impl.OperationAgentManager.<init>(OperationAgentManager.java:141)
      4. org.zkoss.zats.mimic.impl.OperationAgentManager.getInstance(OperationAgentManager.java:126)
      5. org.zkoss.zats.mimic.impl.Ext6Initiator.init(Ext6Initiator.java:41)
      5 frames
    3. ZK Kernel
      HttpSessionListener23.contextInitialized
      1. org.zkoss.zk.ui.util.Configuration.invokeWebAppInits(Configuration.java:729)
      2. org.zkoss.zk.ui.impl.AbstractWebApp.init(AbstractWebApp.java:204)
      3. org.zkoss.zk.ui.http.SimpleWebApp.init(SimpleWebApp.java:58)
      4. org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:228)
      5. org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140)
      5 frames
    4. Jetty Server
      WebAppContext.doStart
      1. org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
      2. org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
      4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
      5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
      5 frames
    5. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    6. Jetty Server
      Server.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      2. org.mortbay.jetty.Server.doStart(Server.java:224)
      2 frames
    7. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    8. runjettyrun
      Bootstrap.main
      1. runjettyrun.Bootstrap.main(Bootstrap.java:97)
      1 frame