[jboss-as7-dev] Exception with connectionfactory lookup from remote client
Jason T. Greene
jason.greene at redhat.com
Fri Feb 3 11:44:41 EST 2012
You can't access a pooled-connection-factory remotely since it's a JCA
based pool (requires a local container to implement such a thing). You
need to retrieve a RemoteConnectionFactory instead.
(Note that you can use a pooled-connection-factory on a client, if you
use the app client container, which requires your client to be launched
by AS, and in which case you essentially have a mini server)
On 2/3/12 10:40 AM, Deshpande, Prasad wrote:
> Hi Guys,
>
> I’m trying to lookup connectionfactory which is usually bound to
> java:/JmsXA in remote standalone client & here is the stack I’m getting…
>
> _javax.naming.NamingException_: Failed to lookup [Root exception is
> _java.io.NotSerializableException_:
> org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManagerImpl]
>
> at
> org.jboss.naming.remote.client.ClientUtil.namingException(_ClientUtil.java:36_)
>
> at
> org.jboss.naming.remote.protocol.v1.Protocol$1.execute(_Protocol.java:101_)
>
> at
> org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1.lookup(_RemoteNamingStoreV1.java:73_)
>
> at
> org.jboss.naming.remote.client.RemoteContext.lookup(_RemoteContext.java:61_)
>
> at
> org.jboss.naming.remote.client.RemoteContext.lookup(_RemoteContext.java:65_)
>
> at javax.naming.InitialContext.lookup(_InitialContext.java:392_)
>
> at
> com.banctec.process.client.logviewer.helpers.JMSSubscription.setupSubscription(_JMSSubscription.java:100_)
>
> at
> com.banctec.process.client.logviewer.LogViewerController.setupJMS(_LogViewerController.java:195_)
>
> at
> com.banctec.process.client.logviewer.LogViewerController.loginProcess(_LogViewerController.java:176_)
>
> at
> com.banctec.process.client.logviewer.processroot.LoginDialog.okPressed(_LoginDialog.java:211_)
>
> at org.eclipse.jface.dialogs.Dialog.buttonPressed(_Dialog.java:365_)
>
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(_Dialog.java:506_)
>
> at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
>
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
>
> at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
>
> at org.eclipse.jface.window.Window.runEventLoop(_Window.java:668_)
>
> at org.eclipse.jface.window.Window.open(_Window.java:648_)
>
> at
> com.banctec.process.client.logviewer.LogViewerController.login(_LogViewerController.java:112_)
>
> at
> com.banctec.process.client.logviewer.processroot.ProcessRoot.initNode(_ProcessRoot.java:71_)
>
> at
> com.banctec.process.client.logviewer.MainFrame$TreeChangedListener.selectionChanged(_MainFrame.java:407_)
>
> at org.eclipse.jface.viewers.Viewer$2.run(_Viewer.java:159_)
>
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(_InternalPlatform.java:615_)
>
> at org.eclipse.core.runtime.Platform.run(_Platform.java:747_)
>
> at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(_Viewer.java:157_)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.updateSelection(_StructuredViewer.java:1394_)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleSelect(_StructuredViewer.java:693_)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(_StructuredViewer.java:718_)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(_OpenStrategy.java:180_)
>
> at org.eclipse.jface.util.OpenStrategy.access$3(_OpenStrategy.java:175_)
>
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(_OpenStrategy.java:324_)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
>
> at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
>
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
>
> at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
>
> at com.banctec.process.client.logviewer.MainFrame.run(_MainFrame.java:323_)
>
> at
> com.banctec.process.client.logviewer.LogViewerController.start(_LogViewerController.java:93_)
>
> at
> com.banctec.process.client.logviewer.LogViewerMain.<init>(_LogViewerMain.java:95_)
>
> at
> com.banctec.process.client.logviewer.LogViewerMain.main(_LogViewerMain.java:112_)
>
> Caused by: _java.io.NotSerializableException_:
> org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManagerImpl
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(_RiverMarshaller.java:885_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(_RiverMarshaller.java:1057_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(_RiverMarshaller.java:1013_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(_RiverMarshaller.java:992_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(_RiverMarshaller.java:879_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(_RiverMarshaller.java:1057_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(_RiverMarshaller.java:1013_)
>
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(_RiverMarshaller.java:879_)
>
> at
> org.jboss.marshalling.AbstractObjectOutput.writeObject(_AbstractObjectOutput.java:62_)
>
> at
> org.jboss.marshalling.AbstractMarshaller.writeObject(_AbstractMarshaller.java:119_)
>
> at
> org.jboss.naming.remote.protocol.v1.Protocol$1$2.write(_Protocol.java:135_)
>
> at org.jboss.naming.remote.protocol.v1.WriteUtil.write(_WriteUtil.java:61_)
>
> at
> org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(_Protocol.java:125_)
>
> at
> org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(_RemoteNamingServerV1.java:70_)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(_ThreadPoolExecutor.java:886_)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(_ThreadPoolExecutor.java:908_)
>
> at java.lang.Thread.run(_Thread.java:662_)
>
> Caused by: an exception which occurred:
>
> in field cachedConnectionManager
>
> in field cm
>
> in object org.hornetq.ra.HornetQRAConnectionFactoryImpl at 5126db0
> <mailto:org.hornetq.ra.HornetQRAConnectionFactoryImpl at 5126db0>
>
>
> ------------------------------------------------------------------------
>
> BancTec Limited.
> Registered Office: Jarman House, Mathisen Way, Poyle Road, Colnbrook,
> Berkshire SL3 0HF. Incorporated in England & Wales : 1283512. VAT : GB
> 228 4783 38.
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat
More information about the jboss-as7-dev
mailing list