I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — How to create marshalel data of java.lang.Throwable instance?

  • Key: I2JAV11-18
  • Legacy Issue Number: 3267
  • Status: closed  
  • Source: Fujitsu ( Masayoshi Shimamura)
  • Summary:

    I don't understand that how to create marshaled data of
    java.lang.Throwable instance to set it to context_data in
    UnknownExceptionInfo.

    In CORBA 2.3.1, section "13.6.7 Object Service Context" on 13-25 page
    says:

    UnknownExceptionInfo identifies a CDR encapsulation of a marshaled instance
    of a java.lang.throwable or one of its subclasses as described in Java
    to IDL Language Mapping, Section 1.4.8.1, "Mapping of UnknownExceptionInfo
    Service Context," on page 1-32.

    In Java to IDL Language Mapping specification revised by RTF
    (ptc/99-03-09), section "28.4.8.1 Mapping of UnknownExceptionInfo
    Service Context" on page 28-32 says:

    CORBA UNKNOWN exceptions whose GIOP Reply message includes an
    UnknownExceptionInfo service context containing a marshaled
    instance of java.lang.Throwable or one of its subclasses are mapped
    to RMI exceptions according to the type of the object contained in
    the service context, as shown in follows:
    -------------------------------------------------------------------
    UnknownExceptionInfo RMI Exception
    -------------------------------------------------------------------
    java.lang.Error java.rmi.ServerError
    java.rmi.RemoteException java.rmi.ServerException
    java.lang.RuntimeException java.rmi.ServerRuntimeException(JDK 1.1)
    java.lang.RuntimeException(Java 2)
    -------------------------------------------------------------------

    It seems to me that these specifications above are not clear. How to
    create the context_data from java.lang.Throwable instance? I guess the
    context_data should be created by one of following two ways. Which way
    is correct? Or is there any other correct way?

    1. A instance of java.lang.Throwable or its subclasses should be
    serialized by Java language specific serialization function and then
    should be set to the context_data as sequence of octet.

    2. A instance of java.lang.Throwable or its subclasses should be
    marshaled as CORBA Value type data and then should be set to the
    context_data as sequence of octet.

  • Reported: I2JAV 1.0 — Tue, 1 Feb 2000 05:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    see revised text below

  • Updated: Fri, 6 Mar 2015 20:58 GMT