#307 ValueObjectTagsHandler throws NPE

cvs
closed
ejbdoclet (127)
5
2002-10-03
2002-09-16
Anonymous
No

ValueObjectTagsHandler throws a NullPointerException
for extendsFrom if the value object does not have an
assigned name.

We're using a custom value object template that uses
extendsFrom like:

<XDtClass:classCommentTags indent="0"/> */
public class
<XDtClass:classOf><XDtEjbValueObj:valueObjectClass/
></XDtClass:classOf>
extends <XDtEjbValueObj:extendsFrom/>

I have an entity bean that declares a value object like:

* @ejb.bean
* name="GroupMember"
* type="CMP"
* local-jndi-
name="...ejb.GroupMemberLocalHome"
* view-type="local"
*
* @ejb.home
* local-
extends="javax.ejb.EJBLocalHome"
*
* @ejb.value-object
* match="*"

Notice that @ejb.value-object name is not defined.
According to the docs, name is not required; if it's not
specified, then the bean name is used.

However, this causes a NPE in
ValueObjectTagsHandler, line 305:

if (valueObjectName.equals(tag.getAttributeValue
("name")) &&

I have to explicitly define a name for my value object to
work around this.

Rich

Discussion

  • Marcus Brito

    Marcus Brito - 2002-09-18
    • assigned_to: nobody --> pazu
     
  • Konstantin Pribluda

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks