Bugs item #663114, was opened at 2003-01-06 05:42
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=663114&group_id=22866

>Category: JBossTX
Group: v3.0 Rabbit Hole
Status: Open
>Resolution: Postponed
Priority: 5
Submitted By: Maxim (kimerinn)
Assigned to: Nobody/Anonymous (nobody)
Summary: MarshallException when accessing remote bean

Initial Comment:
Hi!
Scenario:

1) I have two session beans A and B, each of them have
remote interfaces. A obtains home & remote interface of
bean B and invokes method B.hello().
2) When both beans are locating on the same machine,
all works Ok.
3) When bean A is hosting on one computer and bean B on
second, bean A obtains home interface of bean B and
obtain <java.rmi.MarshalException: error marshalling
arguments;> exception when creating remote interface of
bean B.
4) When the bean B is accesed fom another computer
through application client, all works Ok.

Here is full stack trace:
=====================================================================================================================

13:16:12,169 ERROR [STDERR] java.rmi.MarshalException:
error marshalling arguments; nested exception is: 
        java.io.NotSerializableException:
org.jboss.tm.TransactionImpl

13:16:12,169 ERROR [STDERR]
java.io.NotSerializableException:
org.jboss.tm.TransactionImpl

13:16:12,169 ERROR [STDERR]     at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

13:16:12,169 ERROR [STDERR]     at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)

13:16:12,179 ERROR [STDERR]     at
org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:377)

13:16:12,179 ERROR [STDERR]     at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1172)

13:16:12,179 ERROR [STDERR]     at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)

13:16:12,179 ERROR [STDERR]     at
sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)

13:16:12,179 ERROR [STDERR]     at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)

13:16:12,179 ERROR [STDERR]     at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)

13:16:12,179 ERROR [STDERR]     at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:138)

13:16:12,179 ERROR [STDERR]     at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)

13:16:12,179 ERROR [STDERR]     at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)

13:16:12,179 ERROR [STDERR]     at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)

13:16:12,220 ERROR [STDERR]     at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)

13:16:12,220 ERROR [STDERR]     at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)

13:16:12,220 ERROR [STDERR]     at $Proxy25.create(Unknown
Source)

13:16:12,220 ERROR [STDERR]     at
aside.ABean.testB(ABean.java:46)

13:16:12,220 ERROR [STDERR]     at
java.lang.reflect.Method.invoke(Native Method)

13:16:12,220 ERROR [STDERR]     at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)

13:16:12,220 ERROR [STDERR]     at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)

13:16:12,230 ERROR [STDERR]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)

13:16:12,240 ERROR [STDERR]     at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)

13:16:12,240 ERROR [STDERR]     at
org.jboss.ejb.Container.invoke(Container.java:712)

13:16:12,240 ERROR [STDERR]     at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

13:16:12,240 ERROR [STDERR]     at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)

13:16:12,240 ERROR [STDERR]     at
java.lang.reflect.Method.invoke(Native Method)

13:16:12,240 ERROR [STDERR]     at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)

13:16:12,240 ERROR [STDERR]     at
sun.rmi.transport.Transport$1.run(Transport.java:152)

13:16:12,240 ERROR [STDERR]     at
java.security.AccessController.doPrivileged(Native Method)

13:16:12,240 ERROR [STDERR]     at
sun.rmi.transport.Transport.serviceCall(Transport.java:148)

13:16:12,240 ERROR [STDERR]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)

13:16:12,250 ERROR [STDERR]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)

13:16:12,250 ERROR [STDERR]     at
java.lang.Thread.run(Thread.java:484)

=====================================================================================================================

I have created demo, containing builded archives and
sources.
Unzip the errordemo.zip and place
errordemo\build\aside.jar to the JBoss deployment dir
on first computer, and bside.jar - to the JBoss
deployment dir on second computer.
Edit the classpathes in the client2ejb.bat and
ejb2ejb.bat, as it is described in it.
client2ejb.bat runs the working example, when bean on
remote computer is accessed through application client.
ejb2ejb.bat runs the nonworking example, when bean on
remote computer is accessed through another bean.

I am using JBoss3.0.4 on JDK1.4.1 on Windows 2000
Professional.


----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2003-01-12 01:34

Message:
Logged In: YES 
user_id=175228

It is a bug in how the failure is being reported, but this 
example should in fact not work because the transaction 
attributes are such that distributed transaction semantics are 
required for the transaction context created by the Required 
attribute of the aside.ABean.testB method, and the Required 
attribute of the bside.BBean home create and hello methods. 

However, if you changed the bside.BBean method to 
RequiresNew which should succeed, it will still fail with the 
same error. We are debating how to fix this case.

----------------------------------------------------------------------

Comment By: Maxim (kimerinn)
Date: 2003-01-06 05:48

Message:
Logged In: YES 
user_id=500469

here is archive:

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=663114&group_id=22866


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to