You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <de...@beehive.apache.org> on 2005/11/29 00:00:38 UTC

[jira] Commented: (BEEHIVE-1015) NPE when compiling a JSF backing bean in the same package as an invalid page flow controller

    [ http://issues.apache.org/jira/browse/BEEHIVE-1015?page=comments#action_12358726 ] 

Rich Feit commented on BEEHIVE-1015:
------------------------------------

The expected output would be something like this:

web\foo\Controller.java:10: cannot find symbol
symbol: class Share
public class Controller extends xxyyzz
                                ^
web\foo\Controller.java:10: The Controller annotation is not valid on this class.  The class should extend org.apache.beehive.netui.pageflow.PageFlowController or org.apache.beehive.netui.pageflow.SharedFlowController.
public class Controller extends Share
       ^
1 error

> 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
>     Assignee: 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