Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4681

Generated Corba stub throws BAD_OPERATION on toString() when not connected to the ORB

    XMLWordPrintable

    Details

      Description

      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adrian.brock Adrian Brock
                Reporter:
                adrian.brock Adrian Brock
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: