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

NullPointerException in QueryFinder

XMLWordPrintable

      SourceForge Submitter: jdefelice .
      Using JBoss 3.2.6, I had set up my CMP bean's
      configuration wrong, but I got a NullPointerException
      from the container instead of something more useful.

      Culprit is line 75 of QueryFinder:

      throw new DeploymentException("Local home
      interface " + home.getClass().getName() +
      " does not contain findByPrimaryKey(" +
      entity.getPrimaryKeyClass().getName() + ")");

      should read:

      throw new DeploymentException("Local home
      interface " + local.getClass().getName() +
      " does not contain findByPrimaryKey(" +
      entity.getPrimaryKeyClass().getName() + ")");

      since, at that point in the code, the local class is being
      queried, not the remote home class.

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

              Created:
              Updated:
              Resolved: