Uploaded image for project: 'ZATS'
  1. ZATS
  2. ZATS-27

ZATS fails to check version with ZK 7.0.0-RC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.1.1
    • 1.1.0
    • Mimic
    • None

      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);

            paowang paowang
            cor3000 cor3000
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: