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 208139 - Exception due to flaw in source code of jdk 1.6.0 package
Summary: Exception due to flaw in source code of jdk 1.6.0 package
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 17:19 UTC by santosh.sivam
Modified: 2012-04-04 15:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code segment of jdk 1.6.0 package creating exception. (230.07 KB, image/png)
2012-02-07 17:19 UTC, santosh.sivam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description santosh.sivam 2012-02-07 17:19:14 UTC
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.
Comment 1 Jan Stola 2012-04-04 15:14:11 UTC
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.