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

Summary: ClassCastException: org.netbeans.modules.form.RADConnectionPropertyEditor$RADConnectionDesignValue cannot be cast to java.net.URL
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED INCOMPLETE    
Severity: blocker CC: stefan79
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=134073
Issue Type: DEFECT Exception Reporter: 134073

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?