I am getting the following exception in the client when I call a piece of
code that used to work fine until I added another entity bean to my program:

>>>>

java.lang.ClassCastException: java.rmi.MarshalledObject

 at $Proxy5.deposit(Unknown Source)

 at
uk.co.spektra.bank.client.BankClientTest.testAggregateEntities(BankClientTes
t.java:129)

 at java.lang.reflect.Method.invoke(Native Method)

 at junit.framework.TestCase.runTest(TestCase.java:155)

 at junit.framework.TestCase.runBare(TestCase.java:129)

 at junit.framework.TestResult$1.protect(TestResult.java:100)

 at junit.framework.TestResult.runProtected(TestResult.java:117)

 at junit.framework.TestResult.run(TestResult.java:103)

 at junit.framework.TestCase.run(TestCase.java:120)

 at junit.framework.TestSuite.run(TestSuite.java:144)

 at junit.textui.TestRunner.doRun(TestRunner.java:61)

 at junit.textui.TestRunner.run(TestRunner.java:181)

 at uk.co.spektra.bank.client.BankClientTest.main(BankClientTest.java:229)F

<<<<<

I create an Account bean, which is OK, and call deposit( 11.0 ) on it. jBoss
shows the UPDATE statement being run and affecting one row, as it should.
Why is the client getting an error when jBoss is fine?

Jar available on request!! ;-J

Peter.


Reply via email to