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.
Created attachment 115510 [details] Code segment of jdk 1.6.0 package creating exception. Exception occurred: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException at java.lang.Class.cast(Class.java:2990) at org.jdesktop.beansbinding.Binding.convertForward(Binding.java:1312) at org.jdesktop.beansbinding.Binding.getSourceValueForTarget(Binding.java:844) at org.jdesktop.beansbinding.Binding.refreshUnmanaged(Binding.java:1222) at org.jdesktop.beansbinding.Binding.refresh(Binding.java:1207) at org.jdesktop.beansbinding.AutoBinding.tryRefreshThenSave(AutoBinding.java:162) at org.jdesktop.beansbinding.AutoBinding.bindImpl(AutoBinding.java:199) at org.jdesktop.beansbinding.Binding.bindUnmanaged(Binding.java:959) at org.jdesktop.beansbinding.Binding.bind(Binding.java:944) at org.jdesktop.beansbinding.BindingGroup.bind(BindingGroup.java:143) at my.numberaddition.NumberAdditionUI.initComponents(NumberAdditionUI.java:154) at my.numberaddition.NumberAdditionUI.<init>(NumberAdditionUI.java:17) at my.numberaddition.NumberAdditionUI$4.run(NumberAdditionUI.java:214) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) I got this exception when trying to run a simple program using JForm. I've the attached the screenshot showing the code segment(boxed in red) creating this exception. Thank you.
I am sorry, I am not able to reproduce this problem. The attached stack-trace shows some problem during conversion of values during initial phase of binding, but without the complete source code of NumberAdditionUI class it is impossible to figure out where the problem is. Moreover, the exception is not thrown during design-time but in run-time. So, it is most likely problem of NumberAdditionUI, not a problem of GUI Builder/NetBeans.