NPE when incrementally building a page flow that inherits from another
----------------------------------------------------------------------

         Key: BEEHIVE-471
         URL: http://issues.apache.org/jira/browse/BEEHIVE-471
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Rich Feit
 Assigned to: Rich Feit 
    Priority: Critical
     Fix For: V1


Repro:
    - Create the following two page flows:

        /base/Controller.jpf:
        ---
        @Jpf.Controller(
            simpleActions={
                @Jpf.SimpleAction(name="begin", path="doesnotexist.jsp")
            }
        )
        public class Controller extends PageFlowController
        {
        }
        ---

        /inherit/Controller.jpf:
        ---
        @Jpf.Controller(
            simpleActions={
                @Jpf.SimpleAction(name="begin", path="foo.jsp")
            }
        )
        public class Controller extends base.Controller
        {
        }
        ---

    - Build the webapp.

    - Modify /inherit/Controller.jpf, but don't change /base/Controller.jpf.

    - Build the webapp.

java.lang.NullPointerException
    at 
org.apache.beehive.netui.compiler.typesystem.impl.env.MessagerImpl.printWarning(MessagerImpl.java:59)
    at 
org.apache.beehive.netui.compiler.Diagnostics.addWarningArrayArgs(Diagnostics.java:185)
    at 
org.apache.beehive.netui.compiler.Diagnostics.addWarning(Diagnostics.java:180)
    at 
org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:393)
    at 
org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:340)
    at 
org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:321)
    at 
org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:120)
    at 
org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:96)
    at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:47)
    at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:68)
    at 
org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:64)
    at 
org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:119)
    at 
org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:83)
    at 
org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:103)
    at 
org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64)
    at 
com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:404)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:440)
    at com.sun.tools.apt.main.Main.compile(Main.java:1017)
    at com.sun.tools.apt.main.Main.compile(Main.java:907)
    at com.sun.tools.apt.Main.compile(Main.java:41)
    at com.sun.tools.apt.Main.main(Main.java:32)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to