users@glassfish.java.net

Re: ACC003: Couldn't establish a JMS Connection Factory

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Mar 2010 06:34:28 PDT

Hi Nigel,

Yes, I can confirm that both of these JMS Resources (Glassfish Resources => JMS Resources => Connection Factories => jms/customerQueueConnectionFactory & Glassfish Resources => JMS Resources => Destination Resources => jms/customerQueue) can be seen in Netbeans Services tab & Admin Console. Moreover, the project (Application Client only) has been deployed sucessfully but again encountered the following error when it is run:

Mar 15, 2010 09:30:29 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
WARNING: ACC003: Application threw an exception.
java.lang.NullPointerException
        at client.CustomerproducerApplicationClient.sendJMSMessageToCustomerQueue(CustomerproducerApplicationClient.java:99)
        at client.CustomerproducerApplicationClient.addCustomers(CustomerroducerApplicationClient.java:631)
        at client.CustomerproducerApplicationClient.main(CustomerproducerApplicationClient.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:266)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:449)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
        at com.sun.enterprise.appclient.Main.main(Main.java:200)
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:461)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
        at com.sun.enterprise.appclient.Main.main(Main.java:200)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:266)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:449)
        ... 2 more

I have tried using different sun-resources.xml that has worked with other application but once again encountered the same issue when trying to establish a connection with Connection Factory on line 99. Below is the content of GF server.log:

ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-added aor/jms/customerQueue]
CORE5004: Resource Deployed: [aor:jms/customerQueue].
ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-added cr/jms/customerQueueConnectionFactory]
MQJMSRA_MF1101: setAddressList:NOT setting default value=localhost
MQJMSRA_MF1101: setPassword:NOT setting default value
MQJMSRA_MF1101: setUserName:NOT setting default value=guest
CORE5004: Resource Deployed: [cr:jms/customerQueueConnectionFactory].
ADM1064:The upload file at [C:\Documents and Settings\Jack\Local Settings\Temp\s1astempdomain1server1142715591\CustomerProducer.jar] exists and will be overwritten.
ADM1006:Uploading the file to:[C:\Documents and Settings\Jack\Local Settings\Temp\s1astempdomain1server1142715591\CustomerProducer.jar]
Class [ org/jdom/JDOMException ] not found. Error while loading [ class client.CustomerproducerApplicationClient ]
Error in annotation processing: java.lang.NoClassDefFoundError: org/jdom/JDOMException
deployed with moduleid = CustomerProducer
Registering ad hoc servlet: WebPathPath: context root = "/CustomerProducer", path = "'
Java Web Start services started for stand-alone app client com.sun.enterprise.appclient.jws.AppclientContentOrigin_at_394c4d registration name=CustomerProducer, context root=/CustomerProducer, module name=
Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for context ''
JBIFW0012: JBI framework startup complete.
JSFT0006: WARNING: Failed to set property (rendered) with (null) value. This occured on the component named (registration) of type (com.sun.webui.jsf.component.TreeNode).
JSFT0004: The requested resource (/images/.png) is not available.
JSFT0006: WARNING: Failed to set property (rendered) with (null) value. This occured on the component named (sun_commonTask9) of type (com.sun.webui.jsf.component.CommonTask).

Thanks,

Jack
[Message sent by forum member 'htran_888' (htran_888_at_yahoo.com.au)]

http://forums.java.net/jive/thread.jspa?messageID=391933