Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4385541

User exception should not throw UNKNOWN in DSI-based servants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • other-libs
    • merlin
    • sparc
    • solaris_7
    • Not verified

      When a user exception is thrown in DSI-based servants, it should be communicated to the PI as it is. Instead it is throwing org.omg.CORBA.UNKNOWN exception.

      <STACK-TRACE>
      Got Any: id: IDL:omg.org/CORBA/UNKNOWN:1.0 name: org.omg.CORBA.UNKNOWN
      java.lang.Exception: User exception in DSI-based servants should be thrown as is.
              at examples.SRInterceptorImpl_DSI.send_exception(SRInterceptorImpl_DSI.java:66)
              at com.sun.corba.ee.internal.Interceptors.InterceptorInvoker.invokeServerInterceptorEndingPoint(InterceptorInvoker.java:506)
              at com.sun.corba.ee.internal.Interceptors.PIORB.invokeServerPIEndingPoint(PIORB.java:742)
              at com.sun.corba.ee.internal.iiop.ServerResponseImpl.<init>(ServerResponseImpl.java:58)
              at com.sun.corba.ee.internal.iiop.ServerResponseImpl.<init>(ServerResponseImpl.java:39)
              at com.sun.corba.ee.internal.iiop.ServerRequestImpl.createUserExceptionResponse(ServerRequestImpl.java:117)
              at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:382)
              at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:265)
              at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:89)
              at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:91)
      <STACK-TRACE)
      Got sumdsiEx expected exception

      A test case to reproduce the problem is attached.

      ********************************************************************************
      Ramshankar Rajha: 2001-08-15

      -Fix verified ok
       1) with build: j2sdk-1_4_0-beta_refresh-bin-b75-solsparc-09_arg_2001
       2) with test:
         tests/product/pi/bugs/bug_4385541

      -I am using muthu's bugtraq id to close the bugs. while i am waiting for my id to get activated.
      ********************************************************************************

            mrothsunw Mark Roth (Inactive)
            arungup Arun Gupta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: