colinsheppard / time

A NetLogo extension that brings date/time utilities and discrete event scheduling to NetLogo
12 stars 13 forks source link

Error message with "import-world" #33

Open nellReduan opened 10 years ago

nellReduan commented 10 years ago

Hello,

With the time extension, I obtain an error message when I import the state of the model with "import-world" in Netlogo:

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(Unknown Source) at java.awt.EventQueue.invokeAndWait(Unknown Source) at org.nlogo.awt.EventQueue$.invokeAndWait(EventQueue.scala:19) at org.nlogo.swing.ModalProgressTask$Boss.run(ModalProgressTask.scala:50) Caused by: java.lang.IllegalStateException: readExtensionObject not implemented for TimeExtension@dc45b95 at org.nlogo.api.DefaultClassManager.readExtensionObject(DefaultClassManager.scala:46) at org.nlogo.workspace.ExtensionManager.readExtensionObject(ExtensionManager.java:513)

Thanks very much for your help.

colinsheppard commented 10 years ago

Unfortunately, import/export world capability has not been enabled for the time extension. This is something that might be added for future versions, but it's non-trivial because the discrete event schedule contains references to agents and tasks which would need to be restored during import. It may not actually be possible. In any case, work on this won't be possible in the near term unless someone else contributes to the extension.

On Wed, May 28, 2014 at 8:32 AM, nellReduan notifications@github.comwrote:

With the time extension, I obtain an error message when I import the state of the model with "import-world" in Netlogo:

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(Unknown Source) at java.awt.EventQueue.invokeAndWait(Unknown Source) at org.nlogo.awt.EventQueue$.invokeAndWait(EventQueue.scala:19) at org.nlogo.swing.ModalProgressTask$Boss.run(ModalProgressTask.scala:50) Caused by: java.lang.IllegalStateException: readExtensionObject not implemented for TimeExtension@dc45b95https://github.com/TimeExtension/time/commit/dc45b95 at org.nlogo.api.DefaultClassManager.readExtensionObject(DefaultClassManager.scala:46) at org.nlogo.workspace.ExtensionManager.readExtensionObject(ExtensionManager.java:513)

Thanks very much for your help.

— Reply to this email directly or view it on GitHubhttps://github.com/colinsheppard/time/issues/33 .