Results 1 to 9 of 9
  1. #1
    m0dus is offline Member
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    3
    Rep Power
    0

    Default Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:

    Hi,
    Please, help me. I do not understand what i am doing wrong here,

    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: Transaktion.setBelopp(I)V
    at KontoSystem.behandlaTrans(KontoSystem.java:66)
    at KontoSystem.actionPerformed(KontoSystem.java:38)
    at javax.swing.JComboBox.fireActionEvent(Unknown Source)
    at javax.swing.JComboBox.setSelectedItem(Unknown Source)
    at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
    at javax.swing.plaf.basic.BasicComboPopup$Handler.mou seReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at javax.swing.plaf.basic.BasicComboPopup$1.processMo useEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    one little program banksystem or something like that, i Eclipse.

    Thank you in advance!

  2. #2
    StormyWaters is offline Senior Member
    Join Date
    Feb 2009
    Posts
    305
    Rep Power
    6

    Default

    Java Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: Transaktion.setBelopp(I)V
    Where is the class Transaktion? Either it can't find the class or the class doesn't contain the method setBelopp(I)V.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,251
    Rep Power
    25

    Default

    Do you have mis-matched versions of that class? You compiled with the version that has that method and then tried to execute with another version that did not.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by StormyWaters View Post
    Where is the class Transaktion? Either it can't find the class or the class doesn't contain the method setBelopp(I)V.
    Check this first of all in your code, exist or not?

  5. #5
    m0dus is offline Member
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    3
    Rep Power
    0

    Default

    Hi again

    thank you for your answers!
    IŽll try to solv this problem..in some way. :)


    Regards

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    What you mean? If you still not find the solution, let us know with what you've try out. We can help you.

  7. #7
    m0dus is offline Member
    Join Date
    Jun 2010
    Location
    Sweden
    Posts
    3
    Rep Power
    0

    Default

    Hello,

    I am sorry, It takes time with my answers. I am not at home right now, I am traveling..:)

    no, I did not find out some solution yet, but I will recur later, (if it is OK), because I have to check this class with name Transaktion. It is exist any way..hmm

    thank you for your attention, I am very appreciate that.

    Regards,
    MK :)

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  9. #9
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,303
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by StormyWaters View Post
    Java Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: Transaktion.setBelopp(I)V
    Where is the class Transaktion? Either it can't find the class or the class doesn't contain the method setBelopp(I)V.
    That is not true: if the JVM couldn't find the class itself it would have said so; it just can't find the method void setBelopp(int) in that class. It's probably a class version mixup; a recompilation of all the classes will solve the problem or shows a bug: a missing method.

    kind regards,


    Jos

Similar Threads

  1. Replies: 3
    Last Post: 04-30-2010, 07:44 PM
  2. Replies: 4
    Last Post: 06-07-2009, 12:59 AM
  3. Replies: 3
    Last Post: 06-07-2009, 12:14 AM
  4. Replies: 12
    Last Post: 05-26-2009, 01:48 PM
  5. Replies: 10
    Last Post: 01-29-2009, 08:00 AM

Posting Permissions

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