beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie O'Neil (JIRA)" <...@beehive.apache.org>
Subject [jira] Resolved: (BEEHIVE-889) controls annotation processor needs to safely handle a missing -classpath option
Date Thu, 10 Nov 2005 22:21:03 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-889?page=all ]
     
Eddie O'Neil resolved BEEHIVE-889:
----------------------------------

    Fix Version: 1.1
     Resolution: Fixed

Fixed in SVN 332375

> controls annotation processor needs to safely handle a missing -classpath option
> --------------------------------------------------------------------------------
>
>          Key: BEEHIVE-889
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-889
>      Project: Beehive
>         Type: Bug
>   Components: Controls
>     Reporter: Eddie O'Neil
>     Assignee: Eddie O'Neil
>     Priority: Minor
>      Fix For: 1.1
>  Attachments: BEEHIVE-889.diff
>
> When the controls annotation processing class AptControlInterface attempts to resolve
types during checking, it expects to find a value for the "-classpath" environment variable.
 If this value is missing, the AptControlInterface class NPEs at the stack trace below because
null is returned for the URLClassLoader.  
> This should either throw an exception to stop annotation processing or log a warning
and continue annotation processing.  Kyle / Ken, any thoughts there?
> Stack trace:
> java.lang.NullPointerException
> [java]     at org.apache.beehive.controls.runtime.generator.AptControlInterface.check(AptControlInterface.java:949)
> [java]     at org.apache.beehive.controls.runtime.generator.AptControlInterface.<init>(AptControlInterface.java:121)
> [java]     at org.apache.beehive.controls.runtime.generator.apt.ControlAnnotationProcessor.check(ControlAnnotationProcessor.java:56)
> [java]     at org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:104)
> [java]     at org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)


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