beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Feit (JIRA)" <...@beehive.apache.org>
Subject [jira] Created: (BEEHIVE-1015) NPE when compiling a JSF backing bean in the same package as an invalid page flow controller
Date Mon, 28 Nov 2005 22:54:37 GMT
NPE when compiling a JSF backing bean in the same package as an invalid page flow controller
--------------------------------------------------------------------------------------------

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


Repro:
    - Create the following page flow controller (notice the invalid base class):
        import org.apache.beehive.netui.pageflow.annotations.Jpf;

        @Jpf.Controller(
            simpleActions={
                @Jpf.SimpleAction(name="begin", path="index.jsp")
            }
        )
        public class Controller extends xxyyzz
        {
        }

    - In the same directory, create the following JSF backing bean:
        import org.apache.beehive.netui.pageflow.FacesBackingBean;
        import org.apache.beehive.netui.pageflow.annotations.Jpf;

        @Jpf.FacesBacking()
        public class FooBacking extends FacesBackingBean
        {
        }

    - Build.

You get the following exception:

java.lang.NullPointerException
    at org.apache.beehive.netui.compiler.CompilerUtils.getOutermostClass(CompilerUtils.java:675)
    at org.apache.beehive.netui.compiler.CompilerUtils.getSourceFile(CompilerUtils.java:754)
    at org.apache.beehive.netui.compiler.FlowControllerInfo.<init>(FlowControllerInfo.java:108)
    at org.apache.beehive.netui.compiler.FacesBackingChecker.onCheck(FacesBackingChecker.java:56)
    at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
    at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66)
    at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125)
    at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)
    at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106)
    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:450)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:43)
    at com.sun.tools.apt.Main.main(Main.java:34)

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message