Can't find a solution to this error

Can someone help me in solving this error…

java.lang.RuntimeException: mouseEvent() already added for this instance of interfascia.IFButton
at processing.core.PApplet.die(PApplet.java:3735)
at processing.core.PApplet$RegisteredMethods.add(PApplet.java:1469)
at processing.core.PApplet.registerWithArgs(PApplet.java:1586)
at processing.core.PApplet.registerMethod(PApplet.java:1540)
at interfascia.IFButton.initWithParent(Unknown Source)
at interfascia.GUIController.add(Unknown Source)
at rfidReadWrite.checkUIDAlreadyExists(rfidReadWrite.java:131)
at rfidReadWrite.draw(rfidReadWrite.java:106)
at processing.core.PApplet.handleDraw(PApplet.java:2475)
at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1547)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:313)

Good day Jithin,

It’s a tad hard for us to help you without seeing any code. What I suggest you to do is copying your sketch to a new file, and keep removing parts of code to figure out what code is causing it. Once you’ve got that narrowed down, post that minified version of your sketch :slight_smile:

2 Likes

Also, please do not post the same question three times in the forum. Continue to follow up here, in this thread. If we can help, people will answer here.

1 Like