java.lang.NullPointerException

ZK-Tracker | asukachen | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    https://sourceforge.net/tracker/?func=detail&aid=2931804&group_id=152762&atid=785191 hello, I'm trying to transit to a sub-flow state but facing problems. Below is my configuration: First, the zul page: <?init class="org.zkoss.zwf.FlowHandler" arg0="/WEB-INF/flow/functions/function1/index.xml"?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver" ?> <zul:zk xmlns="http://www.zkoss.org/2005/zk/native" xmlns:zul="http://www.zkoss.org/2005/zul" xmlns:a="http://www.zkoss.org/2005/zk/annotation" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd'> <zul:zscript> </zul:zscript> <zul:window border="none" width="100%" height="100%"> <zul:div width="100%" height="100%" self="@{view(content)}"/> </zul:window> </zul:zk> Then, the main flow definition: <?xml version="1.0" encoding="UTF-8"?> <flow id="test1"> <subflow-state id="subflow" subflow="/WEB-INF/subflow1"> <transition to="finish" onTransit='finish' /> </subflow-state> <end-state id="finish" /> </flow> Finally, the sub flow definition: <?xml version="1.0" encoding="UTF-8"?> <flow id="fullContainerFlow"> <end-state id="finish" /> </flow> As shown above, the flow definition is fairly simple. However, I always get the following exception: java.lang.NullPointerException >> at org.zkoss.zwf.impl.SubflowStateImpl.enter(SubflowStateImpl.java:49) >> at org.zkoss.zwf.impl.FlowImpl.gotoState(FlowImpl.java:407) >> at org.zkoss.zwf.impl.FlowImpl.enter(FlowImpl.java:339) >> at org.zkoss.zwf.impl.FlowImpl.restore(FlowImpl.java:626) >> at org.zkoss.zwf.FlowHandler$FlowBookMarkChangeListener.onEvent(FlowHandler.java:195) >> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:168) >>...

    ZK-Tracker | 6 years ago | asukachen
    java.lang.NullPointerException
  2. 0

    https://sourceforge.net/tracker/?func=detail&aid=2931804&group_id=152762&atid=785191 hello, I'm trying to transit to a sub-flow state but facing problems. Below is my configuration: First, the zul page: <?init class="org.zkoss.zwf.FlowHandler" arg0="/WEB-INF/flow/functions/function1/index.xml"?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver" ?> <zul:zk xmlns="http://www.zkoss.org/2005/zk/native" xmlns:zul="http://www.zkoss.org/2005/zul" xmlns:a="http://www.zkoss.org/2005/zk/annotation" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd'> <zul:zscript> </zul:zscript> <zul:window border="none" width="100%" height="100%"> <zul:div width="100%" height="100%" self="@{view(content)}"/> </zul:window> </zul:zk> Then, the main flow definition: <?xml version="1.0" encoding="UTF-8"?> <flow id="test1"> <subflow-state id="subflow" subflow="/WEB-INF/subflow1"> <transition to="finish" onTransit='finish' /> </subflow-state> <end-state id="finish" /> </flow> Finally, the sub flow definition: <?xml version="1.0" encoding="UTF-8"?> <flow id="fullContainerFlow"> <end-state id="finish" /> </flow> As shown above, the flow definition is fairly simple. However, I always get the following exception: java.lang.NullPointerException >> at org.zkoss.zwf.impl.SubflowStateImpl.enter(SubflowStateImpl.java:49) >> at org.zkoss.zwf.impl.FlowImpl.gotoState(FlowImpl.java:407) >> at org.zkoss.zwf.impl.FlowImpl.enter(FlowImpl.java:339) >> at org.zkoss.zwf.impl.FlowImpl.restore(FlowImpl.java:626) >> at org.zkoss.zwf.FlowHandler$FlowBookMarkChangeListener.onEvent(FlowHandler.java:195) >> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:168) >>...

    ZK-Tracker | 6 years ago | asukachen
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.zkoss.zwf.impl.SubflowStateImpl.enter()
    2. org.zkoss.zwf
      FlowHandler$FlowBookMarkChangeListener.onEvent
      1. org.zkoss.zwf.impl.SubflowStateImpl.enter(SubflowStateImpl.java:49)
      2. org.zkoss.zwf.impl.FlowImpl.gotoState(FlowImpl.java:407)
      3. org.zkoss.zwf.impl.FlowImpl.enter(FlowImpl.java:339)
      4. org.zkoss.zwf.impl.FlowImpl.restore(FlowImpl.java:626)
      5. org.zkoss.zwf.FlowHandler$FlowBookMarkChangeListener.onEvent(FlowHandler.java:195)
      5 frames
    3. ZK Kernel
      EventProcessor.process0
      1. org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:168)
      1 frame