Jump to content

[SOLVED]NoSuchMethodError


Chicken Wing

Recommended Posts

Can anyone explain what this stacktrace actually means?

[ERROR][09/09 05:21:38 PM]: Uncaught exception!
java.lang.NoSuchMethodError: core.Node.<init>(Lcore/Fletcher;)V
	at nodes.cut.OpenBank.<init>(OpenBank.java:12)
	at core.Fletcher.onStart(Fletcher.java:85)
	at org.osbot.rs07.event.ScriptExecutor.onStart(ni:197)
	at org.osbot.rs07.event.ScriptExecutor.start(ni:46)
	at org.osbot.com2.run(dn:246)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

My script was working fine, and compiles fine, but now even if I make a new project in eclipse and copy over .java files which i know are fine and run the jar I get this error, even when I use the same .java files which are used in the script on the sdn (and the sdn script works). 

Edited by Chicken Wing
Link to comment
Share on other sites

Refactor node to something like _Node, it's a problem because osbot thinks you're trying to initalise an OSBot node.

You could also specify it's a core.Node rather than just a Node

 

 

Refactoring does nothing, as I said the script was working with the exact same code I have right now, I think its some sort of build path error

Ever try "cleaning" your workspace? Aka deleting all the binaries and recompiling?

 

Yes, I did that twice, I even deleted the whole project, made a new one and copied over .java files which were uploaded to the sdn

 

 

EDIT: I FIXED IT, NVM GUYS

Edited by Chicken Wing
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...