Results 1 to 8 of 8
  1. #1
    seristee is offline Member
    Join Date
    Jan 2012
    Posts
    8
    Rep Power
    0

    Default netbeans problem

    I keep getting this error when i run the program. this is the error i get..
    java.lang.IllegalArgumentException: Context already contains a binding with name ""
    and i cant for the life of me figure out whats goin on

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,183
    Rep Power
    20

    Default 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.

    ** This space for rent **

  3. #3
    seristee is offline Member
    Join Date
    Jan 2012
    Posts
    8
    Rep Power
    0

    Default 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)

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,183
    Rep Power
    20

    Default 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.

    ** This space for rent **

  5. #5
    seristee is offline Member
    Join Date
    Jan 2012
    Posts
    8
    Rep Power
    0

    Default 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

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,183
    Rep Power
    20

    Default 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.

    ** This space for rent **

  7. #7
    seristee is offline Member
    Join Date
    Jan 2012
    Posts
    8
    Rep Power
    0

    Default 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

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,183
    Rep Power
    20

    Default Re: netbeans problem

    Which is what the exception was telling you.
    Good you got it sorted.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. NetBeans 7 problem
    By Levian in forum NetBeans
    Replies: 4
    Last Post: 06-06-2014, 06:50 PM
  2. Netbeans javadoc problem! Help please
    By WACman in forum NetBeans
    Replies: 6
    Last Post: 03-06-2011, 07:33 AM
  3. Replies: 2
    Last Post: 11-09-2010, 10:44 PM
  4. Netbeans Problem
    By amitabh in forum NetBeans
    Replies: 9
    Last Post: 07-01-2010, 02:51 PM
  5. Some Netbeans Problem
    By MuslimCoder in forum New To Java
    Replies: 0
    Last Post: 04-04-2010, 06:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •