Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-676

JBoss throws NPE if CMP int field is NULL in DB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-3.2.6 Final
    • CMP service
    • None

    Description

      SourceForge Submitter: zds0 .
      JBoss 3.2.1, Red Hat Linux 6.2, Sun JVM 1.4.2

      JBoss throws NullPointerException when it loads CMP
      entity bean from database if CMP field has type int and
      there is value NULL in database. This happens at least
      with EJB 1.1 CMP entity beans.

      Attached is a patch against JBoss 3.2.1 that fixes this
      problem by setting the field value to 0 and whining to log.

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: