aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes abstract Class as an instance property of a method parameter in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "abstract Class as an instance property of a method parameter in EJB" Watch "abstract Class as an instance property of a method parameter in EJB" New topic
Author

abstract Class as an instance property of a method parameter in EJB

Raj Menon
Ranch Hand

Joined: Oct 18, 2005
Posts: 45
Hi,

I'm getting this Exception when passing a Class which has an abstract class as an instance property.
Plese see the Exception , class definitions and how i'm invoking the EJBs as shown below.

Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : C vmcid: IBM minor code: 897 completed: No
at com.ibm.rmi.iiop.CDRInputStream.read_value(CDRInputStream.java:1598)
at com.ibm.rmi.util.ProxyUtil.copyObjects(ProxyUtil.java:238)
.......
.......
Caused by: java.lang.InstantiationError: C
at sun.reflect.GeneratedSerializationConstructorAccessor200.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at com.ibm.rmi.io.IIOPInputStream.allocateNewObject(IIOPInputStream.java:2282)
at com.ibm.rmi.io.IIOPInputStream.allocateNewObject(IIOPInputStream.java:2262)
at com.ibm.rmi.io.IIOPInputStream.allocateNewSerializableObject(IIOPInputStream.java:2209)
at com.ibm.rmi.io.IIOPInputStream.readSerializable(IIOPInputStream.java:1032)
at com.ibm.rmi.io.IIOPInputStream.simpleReadObjectInternal(IIOPInputStream.java:326)
at com.ibm.rmi.io.IIOPInputStream.simpleReadObjectLoop(IIOPInputStream.java:403)
at com.ibm.rmi.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:357)
at com.ibm.rmi.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:201)
at com.ibm.rmi.iiop.CDRInputStream.read_value(CDRInputStream.java:1564)
... 30 more


I'm setting the properties and calling the remote method like below.

the test method signature in EJB is like below



I'm unable to figure out what actually the problem is,please help to resolve this
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"RK1981", please check your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract Class as an instance property of a method parameter in EJB