<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JMS createConnection on ConnectionFactory failed for NPE
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/aparnaralla">Aparna Rallabandi</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/628848#628848">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I have a JMS producer on Jboss 6.0.0.M2.</p><p>Used the Producer from the example below in my application running on Jboss.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p id=":15c">I use the docs\examples\jms\examples\queue\...\QueueExample.java and modified it to be a MessageListener (Modified file is attached) and that works with my JMS producer.<br/> <br/>Now we have a standalone J2SE Swing application which need to be the listener and show popups for each event it receives.<br/>When this standalone app tries to create a connection it fails at createConnection with the following StackTrace. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any pointers or direction you could give will be very helpful.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,<br/>Aparna</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/>INFO  line:54 file:JmsConsumer.java method:setup()<br/>"Queue /queue/testQueue exists"<br/>DEBUG line:615 file:Client.java method:connect()<br/> "Client[19176986:3j001-srvfa8-gt1udu6a-1-gt1uduu1-4].connect(null)"<br/>TRACE line:616 file:Client.java method:connect()<br/>"Client[19176986:3j001-srvfa8-gt1udu6a-1-gt1uduu1-4]: metadata = null"<br/>TRACE line:320 file:PropertyEditors.java method:mapJavaBeanProperties()<br/> "Mapping properties for bean: SocketClientInvoker[ee558f, bisocket://localhost.localdomain:4457]"<br/>TRACE line:365 file:PropertyEditors.java method:mapJavaBeanProperties()<br/>"Property editor found for: marshaller, editor: java.beans.PropertyDescriptor@17ff5aaf, setter: public void org.jboss.remoting.MicroRemoteClientInvoker.setMarshaller(org.jboss.remoting.marshal.Marshaller)"<br/> TRACE line:373 file:PropertyEditors.java method:mapJavaBeanProperties()<br/>"Failed to find property editor for: marshaller"<br/>TRACE line:384 file:PropertyEditors.java method:mapJavaBeanProperties()<br/>"Failed to write property"<br/> java.lang.NullPointerException<br/>    at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:377)<br/>    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.mapJavaBeanProperties(MicroSocketClientInvoker.java:1359)<br/>     at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:533)<br/>    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:292)<br/>     at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:78)<br/>    at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.<init>(BisocketClientInvoker.java:166)<br/>     at org.jboss.remoting.transport.bisocket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:44)<br/>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>    at java.lang.reflect.Method.invoke(Method.java:597)<br/>    at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:453)<br/>     at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:352)<br/>    at org.jboss.remoting.Client.connect(Client.java:632)<br/>    at org.jboss.remoting.Client.connect(Client.java:582)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:333)<br/>     at <a class="jive-link-external-small" href="http://org.jboss.jms.client.delegate.clientconnectionfactorydelegate.org/" target="_blank">org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org</a>$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:243)<br/>     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)<br/>    at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)<br/>     at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)<br/>    at rt.controller.JmsConsumer.setup(JmsConsumer.java:56)<br/>     at rt.controller.JmsConsumer.<init>(JmsConsumer.java:44)</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/628848#628848">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>