glassfish
  1. glassfish
  2. GLASSFISH-499

TopLink throws internal exception while parsing abstract entiy class

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.0pe
    • Fix Version/s: not determined
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      499
    • Status Whiteboard:
      Hide

      LOW

      Show
      LOW

      Description

      I have only one entity class, called, A.class in my persistence unit. A is
      defined as below:

      @Inheritance
      @Entity public abstract class A {
      String id;
      public A(){}
      A(String id)

      {this.id = id;}

      @Id public String getId()

      { return id; }

      public void setId(String id)

      { this.id = id; }

      }

      When I try to run this application, I get following exception:

      Exception [TOPLINK-0] (Oracle TopLink Essentials - 2006.3 (Build 060327)):
      oracle.toplink.essentials.exceptions.IntegrityException
      Descriptor Exceptions:
      ---------------------------------------------------------

      Exception [TOPLINK-108] (Oracle TopLink Essentials - 2006.3 (Build 060327)):
      oracle.toplink.essentials.exceptions.DescriptorException
      Exception Description: Cannot find value in class indicator mapping in parent
      descriptor [null].
      Descriptor: RelationalDescriptor(pkg.A --> [DatabaseTable(A)])

      Runtime Exceptions:
      ---------------------------------------------------------

      at
      oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:428)
      at
      oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:360)
      at
      oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:166)
      ...

      I see the same behavior if I run "verifier client,jar".

      The complete test case is attached here with.

      – Sahoo

        Issue Links

          Activity

          Hide
          Sanjeeb Sahoo added a comment -

          Created an attachment (id=185)
          test case along with README

          Show
          Sanjeeb Sahoo added a comment - Created an attachment (id=185) test case along with README
          Hide
          pkrogh added a comment -

          Downgrading. This would work if there was at least one class that could be
          instantiated. This is not a practical usecase, but I believe a better
          exception (or at least a warning) could be thrown.

          Show
          pkrogh added a comment - Downgrading. This would work if there was at least one class that could be instantiated. This is not a practical usecase, but I believe a better exception (or at least a warning) could be thrown.
          Hide
          marina vatkina added a comment -

          All misleading errors must be fixed for 9.1

          Show
          marina vatkina added a comment - All misleading errors must be fixed for 9.1
          Hide
          pkrogh added a comment -

          Reprioritized based on BUG triage. P4 LOW.

          Show
          pkrogh added a comment - Reprioritized based on BUG triage. P4 LOW.
          Hide
          Tom Mueller added a comment -

          Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

          Show
          Tom Mueller added a comment - Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

            People

            • Assignee:
              tware
              Reporter:
              Sanjeeb Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: