You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Manu T George (JIRA)" <ji...@apache.org> on 2006/12/16 16:17:20 UTC

[jira] Created: (OPENEJB-409) NullPointer Exception on trying to deploy MessageDrivenBean

NullPointer Exception on trying to deploy MessageDrivenBean
-----------------------------------------------------------

                 Key: OPENEJB-409
                 URL: http://issues.apache.org/jira/browse/OPENEJB-409
             Project: OpenEJB
          Issue Type: Bug
          Components: ejb3 simplified
    Affects Versions: 3.0
         Environment: All
            Reporter: Manu T George


I am getting a NullPointerException on trying to deploy an MDB.  The error occurs due to a ClassCastException in EjbJarUtils.
This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from 
<openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-409) NullPointer Exception on trying to deploy MessageDrivenBean

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-409?page=all ]

Manu T George updated OPENEJB-409:
----------------------------------

    Attachment: patch[1]_r487986_OPENEJB-409.patch

This patch is for fixing this issue. 

> NullPointer Exception on trying to deploy MessageDrivenBean
> -----------------------------------------------------------
>
>                 Key: OPENEJB-409
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-409
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: Manu T George
>         Attachments: ejb-jar.patch, mdb.patch, patch[1]_r487986_OPENEJB-409.patch
>
>
> I am getting a NullPointerException on trying to deploy an MDB.  The error occurs due to a ClassCastException in EjbJarUtils.
> This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from 
> <openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-409) NullPointer Exception on trying to deploy MessageDrivenBean

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OPENEJB-409?page=comments#action_12459138 ] 
            
Manu T George commented on OPENEJB-409:
---------------------------------------

in the ejb-jar.patch the activation-config tag has an error. the correct one is given below

            <activation-config>
           	<activation-config-property>
                    <activation-config-property-name>destination</activation-config-property-name>
                    <activation-config-property-value>SendReceiveQueue</activation-config-property-value>
                </activation-config-property>
            </activation-config>

Currently for testing I have used a separate AMQ instance and manually created the SendReceiveQueue queue. 

> NullPointer Exception on trying to deploy MessageDrivenBean
> -----------------------------------------------------------
>
>                 Key: OPENEJB-409
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-409
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: Manu T George
>         Attachments: ejb-jar.patch, mdb.patch, patch[1]_r487986_OPENEJB-409.patch
>
>
> I am getting a NullPointerException on trying to deploy an MDB.  The error occurs due to a ClassCastException in EjbJarUtils.
> This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from 
> <openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-409) NullPointer Exception on trying to deploy MessageDrivenBean

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-409?page=all ]

Manu T George updated OPENEJB-409:
----------------------------------

    Attachment: ejb-jar.patch
                mdb.patch

This patch is just for replicating the issue

> NullPointer Exception on trying to deploy MessageDrivenBean
> -----------------------------------------------------------
>
>                 Key: OPENEJB-409
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-409
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: Manu T George
>         Attachments: ejb-jar.patch, mdb.patch
>
>
> I am getting a NullPointerException on trying to deploy an MDB.  The error occurs due to a ClassCastException in EjbJarUtils.
> This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from 
> <openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (OPENEJB-409) NullPointer Exception on trying to deploy MessageDrivenBean

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-409?page=all ]

David Blevins closed OPENEJB-409.
---------------------------------

    Resolution: Fixed
      Assignee: Manu T George

Committed!

> NullPointer Exception on trying to deploy MessageDrivenBean
> -----------------------------------------------------------
>
>                 Key: OPENEJB-409
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-409
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: Manu T George
>         Assigned To: Manu T George
>         Attachments: ejb-jar.patch, mdb.patch, patch[1]_r487986_OPENEJB-409.patch
>
>
> I am getting a NullPointerException on trying to deploy an MDB.  The error occurs due to a ClassCastException in EjbJarUtils.
> This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from 
> <openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira