-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.2.1.GA
-
None
The generated Corba stub throws a BAD_OPERATION for toString()
when the stub has no delegate.
e.g. This stacktrace from the testsuite with TRACE enabled for org.jboss.ejb
17:03:48,917 ERROR [LogInterceptor] EJBException in method: public abstract java.lang.Object javax.ejb.EJBObject.getPrimaryKey() throws java.rmi.RemoteException, causedBy:
org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0 minor code: 0 completed: No
at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53)
at org.omg.CORBA.portable.ObjectImpl._orb(ObjectImpl.java:295)
at org.jboss.test.bankiiop.interfaces._Account_Stub.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2615)
at java.util.AbstractCollection.toString(AbstractCollection.java:454)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader$AbstractResultSetReader.get(JDBCResultSetReader.java:494)