Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 50875 invoked from network); 28 Nov 2005 23:01:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 23:01:05 -0000 Received: (qmail 53716 invoked by uid 500); 28 Nov 2005 23:01:03 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 53559 invoked by uid 500); 28 Nov 2005 23:01:02 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 53204 invoked by uid 99); 28 Nov 2005 23:01:01 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 15:00:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 985ADCB for ; Tue, 29 Nov 2005 00:00:38 +0100 (CET) Message-ID: <820189095.1133218838622.JavaMail.jira@ajax.apache.org> Date: Tue, 29 Nov 2005 00:00:38 +0100 (CET) From: "Rich Feit (JIRA)" To: dev@beehive.apache.org Subject: [jira] Commented: (BEEHIVE-1015) NPE when compiling a JSF backing bean in the same package as an invalid page flow controller In-Reply-To: <1004403016.1133218477683.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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.(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