Results 1 to 8 of 8
Thread: netbeans problem
- 02-23-2012, 07:02 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
- 02-24-2012, 09:16 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: netbeans problem
You'll need the stack trace and see where that is being thrown.
Please do not ask for code as refusal often offends.
- 02-24-2012, 09:47 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
Re: netbeans problem
this is what i get when i print the stack trace
java.lang.IllegalArgumentException: Context already contains a binding with name ""
at org.jdesktop.beansbinding.BindingGroup.addBinding( BindingGroup.java:53)
at fpapp.main.initComponents(main.java:601)
at fpapp.main.<init>(main.java:27)
at fpapp.login.loginbuttonActionPerformed(login.java: 177)
at fpapp.login.access$100(login.java:19)
at fpapp.login$2.actionPerformed(login.java:84)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.jav a:6505)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3321)
at java.awt.Component.processEvent(Component.java:627 0)
at java.awt.Container.processEvent(Container.java:222 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:4861)
at java.awt.Container.dispatchEventImpl(Container.jav a:2287)
at java.awt.Component.dispatchEvent(Component.java:46 87)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4422)
at java.awt.Container.dispatchEventImpl(Container.jav a:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713 )
at java.awt.Component.dispatchEvent(Component.java:46 87)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:707)
at java.awt.EventQueue.access$000(EventQueue.java:101 )
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 677)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:90)
- 02-24-2012, 10:24 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: netbeans problem
There you go.
You're doing something wrong on line 601 of main.java.
Inside the initComponents() method.
It seems to involve addBinding() of the BindGroup class, and adding a binding for "" which already exists.
So stop it.Please do not ask for code as refusal often offends.
- 02-24-2012, 10:28 AM #5
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
Re: netbeans problem
600 binding = org.jdesktop.beansbinding.Bindings.createAutoBindi ng(org.jdesktop.beansbinding.AutoBinding.UpdateStr ategy.READ_WRITE, reportsTable, org.jdesktop.beansbinding .ELProperty.create("${selectedElement.review}"), sreviewfield, org.jdesktop.beansbinding.BeanProperty.create("dat e"), "");
601 bindingGroup.addBinding(binding);
602 binding = org.jdesktop.beansbinding.Bindings.createAutoBindi ng(org.jdesktop.beansbinding.AutoBinding.UpdateStr ategy.READ_WRITE, reportsTable, org.jdesktop.beansbinding .ELProperty.create("${selectedElement != null}"), sreviewfield, org.jdesktop.beansbinding.BeanProperty.create("ena bled"));
603 bindingGroup.addBinding(binding);
i have removed the binding and i still get the same error
- 02-24-2012, 10:47 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: netbeans problem
You're binding multiple properties with the same blank name.
There's no way anyone here can debug that.
You'll need to either step through the code with a debugger or stick lots of logging in there to see what's going on.
And when you post code please use [code] tags [/code].
That's unreadable...Please do not ask for code as refusal often offends.
- 02-24-2012, 10:58 AM #7
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
Re: netbeans problem
thanks for the info I managed to find the problem. in netbeans bindings I never put in an identifier for the bindings. I have now rectified the problem and program working again.. thanks for the help
- 02-24-2012, 11:12 AM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
NetBeans 7 problem
By Levian in forum NetBeansReplies: 2Last Post: 06-21-2011, 04:17 AM -
Netbeans javadoc problem! Help please
By WACman in forum NetBeansReplies: 6Last Post: 03-06-2011, 06:33 AM -
Not sure if this is actually a NetBEans problem...
By Neiladin in forum NetBeansReplies: 2Last Post: 11-09-2010, 09:44 PM -
Netbeans Problem
By amitabh in forum NetBeansReplies: 9Last Post: 07-01-2010, 01:51 PM -
Some Netbeans Problem
By MuslimCoder in forum New To JavaReplies: 0Last Post: 04-04-2010, 05:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks