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 168089 - ClassCastException: org.netbeans.modules.form.RADConnectionPropertyEditor$RADConnectionDesignValue cannot be cast to java.net.URL
Summary: ClassCastException: org.netbeans.modules.form.RADConnectionPropertyEditor$RAD...
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
: 177584 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-03 13:48 UTC by Exceptions Reporter
Modified: 2012-04-16 15:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 134073


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-07-03 13:49:19 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.form.RADConnectionPropertyEditor$RADConnectionDesignValue cannot be cast to java.net.URL
        at org.netbeans.beaninfo.editors.URLEditor.getAsText(URLEditor.java:80)
        at org.netbeans.modules.form.FormPropertyEditor.getAsText(FormPropertyEditor.java:234)
        at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.reset(RendererFactory.java:967)
        at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.connect(RendererFactory.java:931)
        at org.openide.explorer.propertysheet.RendererFactory.prepareString(RendererFactory.java:372)
        at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:235)
Comment 1 Jan Stola 2009-10-04 17:46:03 UTC
I am sorry, I am not able to reproduce this issue and the attached stack-trace is not sufficient to track the problem 
down. Are you still able to reproduce it? If so, could you, please, provide exact steps to reproduce. Thank you in 
advance.
Comment 2 Jan Stola 2011-09-03 15:30:20 UTC
*** Bug 177584 has been marked as a duplicate of this bug. ***
Comment 3 stefan79 2012-04-16 10:03:04 UTC
Please have a look at http://statistics.netbeans.org/analytics/detail.do?id=134073.
Comment 4 stefan79 2012-04-16 11:04:26 UTC
To Reproduce:
-) Create a new JPanel
-) Add a JLabel and JTextField to the panel
-) Select the JLabel and the JTextField, go to Properties and set the name to "MYNAME".
-) Save the JPanel
-) Select the JLabel and the JTextField, go to Properties and set the name to "MYNAME2". -> Here the Exception occurs
Comment 5 Jan Stola 2012-04-16 15:08:37 UTC
I am sorry, but I am still not able to reproduce this issue. I tried the latest NB 7.1.2 build with JDK 7 update 3. Your steps work without any problem when I have Automatic Internationalization switched off. When I switch it on then I still don't get the exception though I get an ugly empty Information dialog as the result of the last step.

Do you have Automatic Internationalization switched on? Is there any other setting that you have modified and can be related? Are you able to reproduce this exception using an new/empty user-dir?