Jump to content

[SOLVED]NoSuchMethodError


Recommended Posts

Posted (edited)

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
Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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