beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julie Zhuo (JIRA)" <...@beehive.apache.org>
Subject [jira] Closed: (BEEHIVE-1015) NPE when compiling a JSF backing bean in the same package as an invalid page flow controller
Date Fri, 09 Dec 2005 17:00:10 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-1015?page=all ]
     
Julie Zhuo closed BEEHIVE-1015:
-------------------------------


verified with rev354233. It now produces the following compiler error as expected. Close.

      [apt] D:\beehive\netui\test\webapps\jsf\src\faces\jira1015\Controller.java
:9: cannot find symbol
      [apt] symbol: class xxyyzz
      [apt] public class Controller extends xxyyzz
      [apt]                                 ^
      [apt] warning: Annotation types without processors: [org.apache.beehive.ne
tui.pageflow.annotations.Jpf.SimpleAction, org.apache.beehive.netui.pageflow.ann
otations.Jpf.Controller, org.apache.beehive.netui.pageflow.annotations.Jpf.Faces
Backing]
      [apt] 1 warning
      [apt] D:\beehive\netui\test\webapps\jsf\src\faces\jira1015\Controller.java
:9: cannot find symbol
      [apt] symbol: class xxyyzz
      [apt] public class Controller extends xxyyzz
      [apt]                                 ^
      [apt] 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: Julie Zhuo
>      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