I didn't know about the Integer thing, I'll change it right away thanks. Here is the Exception Code : error (RuntimeException) while observer running _asm_procedurecollecttuioeventscuserscoatdesktopdemo260314circulationtuioinputnls_setprocedurevariable_2 called by procedure COLLECT-TUIOEVENTS (C:\Users\Coat\Desktop\Demo 26-03-14\circulation\tuio-input.nls) called by procedure GO called by Button 'go'
NetLogo is unable to supply you with more details about this error. Please report the problem at https://github.com/NetLogo/NetLogo/issues, or to [email protected], and paste the contents of this window into your report. java.lang.RuntimeException: java.lang.Integer: 0 at scala.sys.package$.error(package.scala:27) at org.nlogo.api.Dump$.logoObject(Dump.scala:43) at org.nlogo.api.Dump$.logoObject(Dump.scala:31) at org.nlogo.api.Dump.logoObject(Dump.scala) at org.nlogo.nvm.Argument.getExceptionMessage(Argument.java:192) at org.nlogo.nvm.Argument.getIntValue(Argument.java:99) at SocketExtension$getTouchCoordX.report(SocketExtension.java:398) at org.nlogo.prim._externreport.report(_externreport.java:50) at org.nlogo.nvm.Instruction.argEvalString(Instruction.java:443) at org.nlogo.prim.etc._readfromstring.report(_readfromstring.java:25) at org.nlogo.prim._asm_procedurecollecttuioeventscuserscoatdesktopdemo260314circulationtuioinputnls_setprocedurevariable_2.perform() at org.nlogo.nvm.Context.stepConcurrent(Context.java:91) at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.java:82) at org.nlogo.job.JobThread.org$nlogo$job$JobThread$$runPrimaryJobs(JobThread.scala:143) at org.nlogo.job.JobThread$$anonfun$run$1.apply$mcV$sp(JobThread.scala:78) at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76) at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76) at scala.util.control.Exception$Catch.apply(Exception.scala:88) at org.nlogo.util.Exceptions$.handling(Exceptions.scala:41) at org.nlogo.job.JobThread.run(JobThread.scala:75) Le mardi 25 mars 2014 16:50:10 UTC+1, Seth Tisue a écrit : > > >>>>> "Chris" == Chris Coat <[email protected] <javascript:>> writes: > > Chris> public synchronized Object report(Argument args[], Context > Chris> context) throws ExtensionException, LogoException { Set<Integer> > Chris> keyset = manager.getObjectInput().keySet(); return > Chris> LogoList.fromJava(keyset); } } > > I'm not sure if it's where your exception is coming from, but one > problem I see with this code is that NetLogo uses only java.lang.Double > to represent numbers, never java.lang.Integer. > > -- > Seth Tisue | Northwestern University | http://tisue.net > developer, NetLogo: http://ccl.northwestern.edu/netlogo/ > -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
