JDK-4067824 : Beans.instantiate hides exception details
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 1.1,1.1.2
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5,windows_nt
  • CPU: x86,sparc
  • Submitted: 1997-07-28
  • Updated: 1999-01-15
  • Resolved: 1999-01-15
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
1.2.0 1.2beta2Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
From ###@###.###  Thu Jul 24 13:17:19 1997
Date: Thu, 24 Jul 1997 16:16:22 -0400
From: Hayden Schultz <###@###.###>
Mime-Version: 1.0
To: ###@###.###, ###@###.###
Subject: I hate java.lang.NoClassDefFoundError


It's amazingly frustrating when you run the beanbox and get the
message:

	java.lang.NoClassDefFoundError

And it just hangs.

Can't you make it at least give the name of the class that it can't
find?

	Hayden Schultz
	Advanced Visual Systems

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2beta FIXED IN: 1.2beta INTEGRATED IN: 1.2beta2
14-06-2004

EVALUATION If Beans.instantiate catches any kind of error while instantiating the class it throws a ClassNotFoundException with no detail message. It was probably a mistake to use ClassNotFoundException for a range of errors, but we're definitely stuck with the existing set of exceptions thrown by Beans.instantiate. The right anser may be to add a more helpful detail message to the ClassNotFoundException. KGH 7/28/97 We now supply more information on the exact problem as part of the detail mesaage in the ClassNotFoundException. At the same time, I've also made sure that if we get an exception while deserialing an object we remember that exception and thow it if we can't find the class later. KGH 7/29/97
11-06-2004