RNetLogo: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double
RNetLogo: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double
I'm trying to run a looping of a Net Logo model into the R environment, through RNetLogo package, using a Slurm server.
However, after some runs, I'm getting the following error and I can't solve it. Can anybody help me with it?
Error in .jcall(nl.obj, "Ljava/lang/Object;", "report", .jnew("java/lang/String", :
java.text.ParseException: Java error in converting result: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double
Calls: NLReport -> .jcall -> .jcheck -> .Call
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Any code? Otherwise it is impossible to say more than what the error message already says: a String is not a Double.
– Poshi
Aug 31 at 23:18