[ 
https://issues.apache.org/activemq/browse/AMQ-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41942#action_41942
 ] 

George Daswani commented on AMQ-765:
------------------------------------

Is this problem really fixed on the latest 5.1 snapshots?  I tried the 03/29/08 
5.1-SNAPSHOT but I'm still running into the following error

---------------------- CUT -------------------
javax.jms.JMSException: Error in allocating a connection. Cause: null
        at 
org.apache.activemq.ra.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:98)
        at 
org.apache.activemq.ra.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:64)
---------------------- CUT -------------------

when trying to use outbound connections

> ActiveMQ RA serialization issue on Glassfish
> --------------------------------------------
>
>                 Key: AMQ-765
>                 URL: https://issues.apache.org/activemq/browse/AMQ-765
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 4.0, 4.0.1
>         Environment: Glassfish
>            Reporter: Chris Conrad
>             Fix For: 5.1.0
>
>         Attachments: finest-log.txt, log.txt, RA.patch
>
>
> I've been trying to work through an issue with a NullPointerException run 
> using the JCA 1.5 resource adapter on Glassfish.  In the course of debugging, 
> Siva from the Glassfish team provided this information:
> "Thanks for trying out GlassFish. Since I have only the trace snippet above, 
> I tried to debug this problem by going through ActiveMQ RA's source available 
> at 
> https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/
> This is what I understand happens. Please correct me if there are errors. 
> When ActiveMQConnectionFactory 
> [https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionFactory.java]
>  is created at the createConnectionFactory method of 
> https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQManagedConnectionFactory.java,
>  the ConnectionManager is initialized to a *transient* variable "manager". 
> Since ConnectionFactory instances can be serialized/deserialized while 
> publishing to JNDI (as is the case in Project GlassFish), the 
> connectionManager reference is lost and hence the NPE. The fix ideally should 
> be in the ActiveMQRA's code. You could copy me [sivakumart AT sun DOT com] 
> while you are discussing this with ActiveMQ, if you wish. If you still have 
> any issues, please provide a copy of your domain.xml [connector connection 
> pool, resource configuratin information] and the entire trace in server.log." 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to