openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Kronegg (JIRA)" <>
Subject [jira] Created: (OPENJPA-1003) NullPointerException at runtime enhancement when the entity has no package
Date Mon, 30 Mar 2009 13:14:50 GMT
NullPointerException at runtime enhancement when the entity has no package

                 Key: OPENJPA-1003
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 1.2.0
         Environment: DB2, openJPA 1.2.0-r422266:683325
            Reporter: Julien Kronegg
            Priority: Minor

The given entity (referenced as <class>C</class> in the persistence.xml) produce
a NullPointerException at runtime enhancement:

    // no package
    @Table(...) // valid table definition
    public class C {
      private int id;
      @Column(...) // valid column definition
      public int getId() {
      public void setId(int id) {;

The NPE is :


The class is enhanced like a charm when adding a package name.

I would expect  either:
1) allow the enhancement of entities without package name [preferred]
2) receive an error message such as "could not enhance an entity without package name".

I set the priority to "Minor" as this is not very likely that an entity is added without package.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message