java.lang.NullPointerException

ZK-Tracker | asukachen | 5 years ago
  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 | 5 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 | 5 years ago | asukachen
    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.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