2 Replies Latest reply on Mar 31, 2003 9:13 AM by raghavk

    "Attempt to get a lock for a null object in jboss-3.0.6

    raghavk

      Hi,
      Iam struggling with a problem related to CMP.

      I had implemented local-interfaces for CMP's as a part of moving to ejb-2.0. With the these changes my application is working fine with JBoss-2.4.10.

      I wanted to upgrade to jboss-3.0.6 and when i deploy my application jars in jboss-3.0.6 i had faced excpetions saying abstrat methods should be defined for cmp-fields. To overcome these exceptions,i have added a tag <cmp-version>1.x</cmp-version> for CMP's in ejb-jar.xml . Now the deployement is fine and iam facing runtime exception "Attempt to get a lock for a null object". Iam attaching
      the exception.log and ejb-jar.xml.

      Could u please help me in this regard..

      thanks in advance
      Raghava

        • 1. Re: "Attempt to get a lock for a null object in jboss-3.0.6
          benholland

          You need to do more than just implement local interfaces. Try looking at some example code.

          * the abstract entity should have abstract accessor methods.

          Mastering EJB by Ed Romans is a good reference.

          • 2. Re: "Attempt to get a lock for a null object in jboss-3.0.6
            raghavk

            Hi,

            Iam very thankful to ur reply. What u have said is correct. But still i wanted to continue with cmp1.x . I have added <cmp-version>1.x</cmp-version> in ejb-jar.xml.
            As we are using lot of cmp's in our application, it takes time to move to cmp2.x. Is there any alternative for this.
            (i.e ) still i wanted to continue with cmp1.x + Local-Interfaces. With this combination there is no problem in JBoss-2.4.10. This problem is particular to jboss-3.0.6. Could plz help further in succeeding further...

            thanks
            Raghav