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.

Bug 7585 - java.lang.InstantiationException on customizing JavaDataObject without default construktor
Summary: java.lang.InstantiationException on customizing JavaDataObject without defaul...
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P4 minor (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-05 13:42 UTC by pzajac
Modified: 2008-12-23 11:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2000-09-05 13:42:56 UTC
When serializable class has not default construktor (without parameters), it
will raise exeption java.lang.InstantiotionException(showed bellow) on customize
bean action. It is not wrong behavior. But message about exception is wrong:
"Please report this exception to ....". It must show correct message:
"Object is not instantiated becouse it has not default contructor, etc."

Stack trace of exception:

java.lang.InstantiationException: examples/texteditor/About
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java, Compiled Code)
        at
org.netbeans.modules.java.JavaDataObject$JavaInstanceSupport.instanceCreate(JavaDataObject.java,
Compiled Code)
        at
org.openide.actions.CustomizeBeanAction.customize(CustomizeBeanAction.java,
Compiled Code)
        at
org.openide.actions.CustomizeBeanAction$1.run(CustomizeBeanAction.java, Compiled
Code)
        at org.openide.util.Task.run(Task.java, Compiled Code)
        at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java,
Compiled Code)
java.lang.ClassNotFoundException: examples/texteditor/About
        at
org.netbeans.modules.java.JavaDataObject$JavaInstanceSupport.instanceCreate(JavaDataObject.java,
Compiled Code)
        at
org.openide.actions.CustomizeBeanAction.customize(CustomizeBeanAction.java,
Compiled Code)
        at
org.openide.actions.CustomizeBeanAction$1.run(CustomizeBeanAction.java, Compiled
Code)
        at org.openide.util.Task.run(Task.java, Compiled Code)
        at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java,
Compiled Code)
Comment 1 Jesse Glick 2000-09-05 14:52:59 UTC
Just a matter of provided a localized exception annotation from
CustomizeBeanAction; fixed by jtulach on main trunk for #7275.

*** This bug has been marked as a duplicate of 7275 ***
Comment 2 pzajac 2000-09-05 15:32:59 UTC
It is not exactly the some exception but in main trunk it is fixed too.
Comment 3 Quality Engineering 2003-07-01 16:15:07 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.