Bugs item #456126, was opened at 2001-08-28 06:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=456126&group_id=31602

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Stevens (stevensa)
Assigned to: Konstantin Pribluda (ko5tik)
Summary: NPE being thrown

Initial Comment:
[ejbdoclet] javadoc: In doclet class 
xdoclet.ejb.EjbDocletTask$EjbDocletMain,  method start 
has thrown an exception 
java.lang.reflect.InvocationTargetException
[ejbdoclet] java.lang.NullPointerException
[ejbdoclet]     at java.util.StringTokenizer.<init>
(StringTokenizer.java:122)
[ejbdoclet]     at java.util.StringTokenizer.<init>
(StringTokenizer.java:138)
[ejbdoclet]     at 
xdoclet.ejb.AbstractEjbSubTask.shortEjbName
(AbstractEjbSubTask.java:425)
[ejbdoclet]     at 
xdoclet.ejb.AbstractEjbSubTask.getHomeInterface
(AbstractEjbSubTask.java:1300)
[ejbdoclet]     at 
xdoclet.ejb.HomeInterfaceSubTask.getGeneratedClassName
(HomeInterfaceSubTask.java:78)
[ejbdoclet]     at 
xdoclet.ejb.HomeInterfaceSubTask.execute
(HomeInterfaceSubTask.java:53)
[ejbdoclet] 1 error
[ejbdoclet]     at 
xdoclet.ejb.EjbDocletTask$EjbDocletMain.start
(EjbDocletTask.java:183)
[ejbdoclet]     at java.lang.reflect.Method.invoke
(Native Method)
[ejbdoclet]     at 
com.sun.tools.javadoc.DocletInvoker.invoke
(DocletInvoker.java:193)
[ejbdoclet]     at 
com.sun.tools.javadoc.DocletInvoker.start
(DocletInvoker.java:95)
[ejbdoclet]     at com.sun.tools.javadoc.Main.main
(Main.java:233)

I know exactly why it did it - I had a class that I 
hadn't converted from @ejb:entity to @ejb:bean yet.  
However, xdoclet could really do with a better error 
message e.g. "mandatory @ejb:bean parameter 'name' 
missing in class X", rather than dying with an 
uncaught exception.  Plus, that way I'd get to see a 
list of all the faulty classes instead of having to 
search through everything to check...

----------------------------------------------------------------------

Comment By: Konstantin Pribluda (ko5tik)
Date: 2001-08-30 08:33

Message:
Logged In: YES 
user_id=91100

it's commited now. 

----------------------------------------------------------------------

Comment By: Konstantin Pribluda (ko5tik)
Date: 2001-08-28 23:47

Message:
Logged In: YES 
user_id=91100

I already have patch for this problem. Will commit it today
evening...

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=456126&group_id=31602

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to