JDK-4676248 : JDK 1.3.1/1.4 interop failure for all exceptions
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:orb
  • Affected Version: 1.3.1
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-04-29
  • Updated: 2008-11-05
  • Resolved: 2004-12-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other Other
1.3.1Fixed 1.4.0 03Fixed 1.4.1Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
See bug 4615605 for extra information.

java.lang.Throwable evolved in J2SE 1.4 to add a stack trace and a cause Throwable.  While 4615605 fixed interop between 1.3.1_04 and Hopper in the sense that Hopper will now receive the correct exceptions (and vice versa), the detailMessage is getting lost -- it gets set to null.  Unfortunately, this means that the toString method of Throwable in 1.3.1_04 generates NullPointerExceptions.

The problem comes from two issues with the ValueHandler:

1.  On the 1.3.1_04 side, the switch statements for reading class data based on FVD typecodes do not have tk_value.  They only have tk_value_box.

2.  On the Hopper side, the UnknownExceptionInfo service context is being encoded with GIOP 1.2 CDR even though 1.3.1_04 can only speak 1.0 CDR.

NOTE:  The fix for 4615605 did not cause these problems.  They were there, behind the problems addressed in 4615605.  The test case didn't print the exceptions, so didn't detect the error.

Expanded test case attached.


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.3.1_05 1.4.0_03 hopper-beta FIXED IN: 1.3.1_05 1.4.0_03 hopper-beta INTEGRATED IN: 1.4.0_03 hopper-beta
14-06-2004

EVALUATION See evaluation in the description section. Note again that this problem was not caused by the 1.3.1_04 fixes. Even if these changes cannot go into 1.3.1_04, 1.3.1_04 is an improvement over 1.3.1_01. Please see the webrevs at http://javaweb.sfbay.sun.com/~eea1/eea1_patch2 The above are the necessary fixes for 1.3.1_04. I will provide the webrevs for the necessary changes to Hopper (plus the above changes) shortly. ###@###.### 2002-04-28
28-04-2002