Binding UserException support does not handle uninitialized data correctly
--------------------------------------------------------------------------

                 Key: YOKO-330
                 URL: https://issues.apache.org/jira/browse/YOKO-330
             Project: Yoko - CORBA Server
          Issue Type: Bug
          Components: CorbaBinding
    Affects Versions: v1.0-incubating-M2
            Reporter: Darren Middleman
         Assigned To: Darren Middleman


UserException support in the binding does not handle the case where a servant 
throws a CXF implementation of a CORBA user exception and does not initialize 
the schema exception definition object contained within the UserException.

For example, CORBA UserException such as :

    exception MyException {
        string message;
    };

results in two classes being generated on the CXF side: MyException.java and 
MyException_Exception.java.  The MyException_Exception class is the throwable 
object which contains a reference the the MyException class, which represents 
the schema definition of the UserException.  If a MyException_Exception is 
created without initializing the MyException reference within it, the binding 
is unable to propagate the exception correctly.

Also, if the 'message' attribute is not initialized within the exception, then 
a null pointer exception can be thrown when the object is written to the CORBA 
output stream.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to