Exception with connectionfactory lookup from remote client

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception with connectionfactory lookup from remote client

Deshpande, Prasad

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 [hidden email]

 




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
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception with connectionfactory lookup from remote client

jtgreene
Administrator
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@5126db0
> <mailto:org.hornetq.ra.HornetQRAConnectionFactoryImpl@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
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


--
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev