This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Editor showing error said an Exception subclass is not Throwable | ||
---|---|---|---|
Product: | java | Reporter: | jimmod <jimmod> |
Component: | Source | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | 1avi |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | sample project |
Description
jimmod
2007-12-19 02:48:25 UTC
The described problem is only unclear error message. The additional jar have to be added to classpath - commons-lang.jar, ConfigurationException extends NestableException which is located in the commons-lang.jar On the blog there is described more serious problem - if one of the jars is located in project directory the error annotation does not go away. Sample project is attached, Steps to reproduce: 1) create new library containing only jars from lib folder 2) add it to the project. if the jars are move elsewhere and definition of library is updated to new locatino, all works fine Created attachment 54600 [details]
sample project
It's look like the Editor showing error if commons-configuration-x.jar & commons-lang-x.jar on different directory. The editor cannot recognize that ConfigurationException is a Throwable if the jars on different directory. Throwable | Exception | NestableException (commons-lang-x.jar) | ConfigurationException (commons-configuration-x.jar) May be related to issue #116645. I've bumped into this as well when using the Jakarta HTTPClient library with the Jackrabbit WebDav libraries. Please fix, this ugly bug has forced me to switch to Eclipse to get any real progress made, as it fills netbeans up with all kinds of errors. Almost certainly the same problem as in issue #116645 - please check build with fix for that issue. Thanks. |