Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with R extension #395

Closed
zyevelyn opened this issue Jul 22, 2013 · 2 comments
Closed

Problems with R extension #395

zyevelyn opened this issue Jul 22, 2013 · 2 comments
Labels

Comments

@zyevelyn
Copy link

My netlogo-r extension suddenly fails to work, I am not sure exactly what is going on because i run my models last week and they worked well. I updated R to the newest version this weekend, and I am not sure if this is the reason.

The error report is as below:

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 bugs@ccl.northwestern.edu, and paste the
contents of this window into your report.

java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1126)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1103)
at org.nlogo.awt.EventQueue$.invokeAndWait(EventQueue.scala:19)
at org.nlogo.swing.ModalProgressTask$Boss.run(ModalProgressTask.scala:50)
Caused by: java.lang.NoClassDefFoundError: org/rosuda/REngine/REngine
at org.nlogo.extension.r.Entry.runOnce(Entry.java:154)
at org.nlogo.workspace.ExtensionManager.importExtension(ExtensionManager.java:191)
at org.nlogo.compiler.StructureParser.parseImport(StructureParser.scala:459)
at org.nlogo.compiler.StructureParser.parse(StructureParser.scala:196)
at org.nlogo.compiler.CompilerMain$.compile(CompilerMain.scala:25)
at org.nlogo.compiler.Compiler$.compileProgram(Compiler.scala:28)
at org.nlogo.window.CompilerManager.compileProcedures(CompilerManager.java:107)
at org.nlogo.window.CompilerManager.compileAll(CompilerManager.java:87)
at org.nlogo.window.CompilerManager.handle(CompilerManager.java:71)
at org.nlogo.window.Events$LoadEndEvent.beHandledBy(Events.java:449)
at org.nlogo.window.Event.doRaise(Event.java:198)
at org.nlogo.window.Event.raise(Event.java:122)
at org.nlogo.window.ModelLoader$Loader$$anonfun$loadHelper$1.apply(ModelLoader.scala:101)
at org.nlogo.window.ModelLoader$Loader$$anonfun$loadHelper$1.apply(ModelLoader.scala:101)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at org.nlogo.window.ModelLoader$Loader.loadHelper(ModelLoader.scala:101)
at org.nlogo.window.ModelLoader$.load(ModelLoader.scala:16)
at org.nlogo.window.ModelLoader.load(ModelLoader.scala)
at org.nlogo.app.FileMenu$1.run(FileMenu.java:781)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at java.awt.Component.show(Component.java:1615)
at java.awt.Component.setVisible(Component.java:1567)
at java.awt.Window.setVisible(Window.java:843)
at java.awt.Dialog.setVisible(Dialog.java:984)
at org.nlogo.swing.ModalProgressTask$.apply(ModalProgressTask.scala:41)
at org.nlogo.swing.ModalProgressTask.apply(ModalProgressTask.scala)
at org.nlogo.app.FileMenu.openFromMap(FileMenu.java:791)
at org.nlogo.app.FileMenu.openFromSource(FileMenu.java:763)
at org.nlogo.app.FileMenu.openFromPath(FileMenu.java:717)
at org.nlogo.app.App$$anonfun$open$1.apply$mcV$sp(App.scala:801)
at org.nlogo.app.App$$anonfun$open$1.apply(App.scala:801)
at org.nlogo.app.App$$anonfun$open$1.apply(App.scala:801)
at org.nlogo.app.App.dispatchThreadOrBust(App.scala:1011)
at org.nlogo.app.App.open(App.scala:801)
at org.nlogo.app.MacHandlers$.org$nlogo$app$MacHandlers$$doOpen(MacHandlers.scala:39)
at org.nlogo.app.MacHandlers$.ready(MacHandlers.scala:31)
at org.nlogo.app.App.org$nlogo$app$App$$finishStartup(App.scala:450)
at org.nlogo.app.App$$anonfun$main$1.apply$mcV$sp(App.scala:157)
at org.nlogo.swing.Implicits$$anon$17.run(Implicits.scala:12)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.rosuda.REngine.REngine
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 68 more

NetLogo 5.0.4
main: org.nlogo.app.AppFrame
thread: AWT-EventQueue-0
Java HotSpot(TM) 64-Bit Server VM 1.6.0_51 (Apple Inc.; 1.6.0_51-b11-457-11M4509)
operating system: Mac OS X 10.7.5 (x86_64 processor)
Scala version 2.9.2
JOGL: (3D View not initialized)
OpenGL Graphics: (3D View not initialized)
model: diversity-example

05:55:48.041 RemoveAllJobsEvent (org.nlogo.window.CompilerManager) AWT-EventQueue-0
05:55:47.990 LoadEndEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.990 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.990 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.990 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.990 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.982 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.982 LoadSectionEvent (org.nlogo.window.ModelLoader$Loader (java.lang.Object)) AWT-EventQueue-0
05:55:47.980 WidgetAddedEvent (org.nlogo.widget.NoteWidget) AWT-EventQueue-0
05:55:47.977 WidgetAddedEvent (org.nlogo.window.ButtonWidget) AWT-EventQueue-0

@TheBizzle
Copy link
Member

Sorry this is a problem with the R extension and not NetLogo proper.

(I can, however, tell you that this is very likely linked to you reinstalling R on your computer recently. I'm not an authority on the matter, but I would suggest that you go through the R extension setup instructions again, with your new installation of R. I suspect that doing so would fix your problem.)

Please contact the authors of the R extension, or try asking on NetLogo Users for further assistance.

@zyevelyn
Copy link
Author

Thank you very much!

Yes, I reinstalled R recently, and the rJava package got changed.

I now find the solution, another package (CommonJavaJars) is needed in addition to rJava. :-)

Best,

~ Evelyn

On Monday, July 22, 2013 at 6:06 PM, Jason Bertsche wrote:

Sorry this is a problem with the R extension and not NetLogo proper.
(I can, however, tell you that this is very likely linked to you reinstalling R on your computer recently. I'm not an authority on the matter, but I would suggest that you go through the R extension setup instructions again, with your new installation of R. I suspect that doing so would fix your problem.)
Please contact the authors of the R extension (http://netlogo-r-ext.berlios.de/), or try asking on NetLogo Users (http://groups.yahoo.com/group/netlogo-users/) for further assistance.


Reply to this email directly or view it on GitHub (#395 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants