From: Westerhof, E. <eug...@wu...> - 2011-11-15 12:53:26
|
Hi, Every time I add a display to my model, upon running the model the warning below occurs. Anyone any idea why this happens? Regards WARN [AWT-EventQueue-0] 2011-11-15 13:32:02,576 repast.simphony.scenario.ObjectActionLoader - Error loading information from data. Continuing with model loading. com.thoughtworks.xstream.converters.ConversionException: Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor ---- Debugging information ---- message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException cause-message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor class : repast.simphony.visualization.engine.DefaultDisplayDescriptor required-type : repast.simphony.engine.schedule.ScheduleParameters path : /repast.simphony.visualization.engine.DefaultDisplayDescriptor/schedParams line number : 29 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:234) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:206) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:150) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at repast.simphony.scenario.ObjectActionLoader.performLoad(ObjectActionLoader.java:35) at repast.simphony.scenario.AbstractActionLoader.loadAction(AbstractActionLoader.java:35) at repast.simphony.scenario.ScenarioFileLoader.createActions(ScenarioFileLoader.java:90) at repast.simphony.scenario.ScenarioFileLoader.load(ScenarioFileLoader.java:66) at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:192) at repast.simphony.ui.RSApplication.open(RSApplication.java:361) at repast.simphony.ui.RSAppConfigurator.postWindowOpen(RSAppConfigurator.java:39) at saf.core.ui.GUICreatorDelegate.runDisplay(GUICreatorDelegate.java:188) at saf.core.ui.GUICreator$1.run(GUICreator.java:18) at simphony.util.ThreadUtilities$Runner.run(ThreadUtilities.java:33) at simphony.util.ThreadUtilities.runInEventThread(ThreadUtilities.java:47) at saf.core.ui.GUICreator.runDisplay(GUICreator.java:16) at repast.simphony.ui.RSUIPlugin$1.run(RSUIPlugin.java:92) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) |
From: Nick C. <nic...@ve...> - 2011-11-15 14:02:15
|
Can you send me the display xml file, and the scenario.xml file? They will be in your scenario rs directory. The display file will look something like: repast.simphony.action.display_3.xml although the number there may be different. Nick On Nov 15, 2011, at 7:53 AM, Westerhof, Eugene wrote: > Hi, > > Every time I add a display to my model, upon running the model the warning below occurs. Anyone any idea why this happens? > > Regards > > WARN [AWT-EventQueue-0] 2011-11-15 13:32:02,576 repast.simphony.scenario.ObjectActionLoader - Error loading information from data. Continuing with model loading. > com.thoughtworks.xstream.converters.ConversionException: Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > ---- Debugging information ---- > message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException > cause-message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > class : repast.simphony.visualization.engine.DefaultDisplayDescriptor > required-type : repast.simphony.engine.schedule.ScheduleParameters > path : /repast.simphony.visualization.engine.DefaultDisplayDescriptor/schedParams > line number : 29 > ------------------------------- > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) > at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:234) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:206) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:150) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) > at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) > at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) > at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) > at repast.simphony.scenario.ObjectActionLoader.performLoad(ObjectActionLoader.java:35) > at repast.simphony.scenario.AbstractActionLoader.loadAction(AbstractActionLoader.java:35) > at repast.simphony.scenario.ScenarioFileLoader.createActions(ScenarioFileLoader.java:90) > at repast.simphony.scenario.ScenarioFileLoader.load(ScenarioFileLoader.java:66) > at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:192) > at repast.simphony.ui.RSApplication.open(RSApplication.java:361) > at repast.simphony.ui.RSAppConfigurator.postWindowOpen(RSAppConfigurator.java:39) > at saf.core.ui.GUICreatorDelegate.runDisplay(GUICreatorDelegate.java:188) > at saf.core.ui.GUICreator$1.run(GUICreator.java:18) > at simphony.util.ThreadUtilities$Runner.run(ThreadUtilities.java:33) > at simphony.util.ThreadUtilities.runInEventThread(ThreadUtilities.java:47) > at saf.core.ui.GUICreator.runDisplay(GUICreator.java:16) > at repast.simphony.ui.RSUIPlugin$1.run(RSUIPlugin.java:92) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > at java.awt.EventQueue.access$000(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
From: Nick C. <nic...@ve...> - 2011-11-15 15:11:37
|
Eugene, It looks like this is probably an issue with the xstream library that we use for serialization and Java 7. Are you using Java 7? If so, can you try with Java 6? Apparently the latest xstream fixes the issue so you could also download that replace the xstream jar in X/eclipse/plugins/repast.simphony.runtime_2.0.0/lib with the new on. X here is wherever you've installed repast. Nick On Nov 15, 2011, at 7:53 AM, Westerhof, Eugene wrote: > Hi, > > Every time I add a display to my model, upon running the model the warning below occurs. Anyone any idea why this happens? > > Regards > > WARN [AWT-EventQueue-0] 2011-11-15 13:32:02,576 repast.simphony.scenario.ObjectActionLoader - Error loading information from data. Continuing with model loading. > com.thoughtworks.xstream.converters.ConversionException: Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > ---- Debugging information ---- > message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException > cause-message : Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor > class : repast.simphony.visualization.engine.DefaultDisplayDescriptor > required-type : repast.simphony.engine.schedule.ScheduleParameters > path : /repast.simphony.visualization.engine.DefaultDisplayDescriptor/schedParams > line number : 29 > ------------------------------- > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) > at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:234) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:206) > at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:150) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) > at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) > at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) > at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) > at repast.simphony.scenario.ObjectActionLoader.performLoad(ObjectActionLoader.java:35) > at repast.simphony.scenario.AbstractActionLoader.loadAction(AbstractActionLoader.java:35) > at repast.simphony.scenario.ScenarioFileLoader.createActions(ScenarioFileLoader.java:90) > at repast.simphony.scenario.ScenarioFileLoader.load(ScenarioFileLoader.java:66) > at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:192) > at repast.simphony.ui.RSApplication.open(RSApplication.java:361) > at repast.simphony.ui.RSAppConfigurator.postWindowOpen(RSAppConfigurator.java:39) > at saf.core.ui.GUICreatorDelegate.runDisplay(GUICreatorDelegate.java:188) > at saf.core.ui.GUICreator$1.run(GUICreator.java:18) > at simphony.util.ThreadUtilities$Runner.run(ThreadUtilities.java:33) > at simphony.util.ThreadUtilities.runInEventThread(ThreadUtilities.java:47) > at saf.core.ui.GUICreator.runDisplay(GUICreator.java:16) > at repast.simphony.ui.RSUIPlugin$1.run(RSUIPlugin.java:92) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > at java.awt.EventQueue.access$000(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.awt.EventQueue$3.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
From: Westerhof, E. <eug...@wu...> - 2011-11-15 15:51:47
|
Hi Nick, Thank you. You are correct. I am using java 7 and switching back to Java 6 does solve the issue. Replacing xstream-1.3 with its latest stable version causes all sorts of other issues, unless I am doing something wrong here. So it look like I will not be able to use java 7, unfortunately. Eugene From: Nick Collier [mailto:nic...@ve...] Sent: dinsdag 15 november 2011 16:11 To: Westerhof, Eugene Cc: 'rep...@li...' Subject: Re: [Repast-interest] Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor Eugene, It looks like this is probably an issue with the xstream library that we use for serialization and Java 7. Are you using Java 7? If so, can you try with Java 6? Apparently the latest xstream fixes the issue so you could also download that replace the xstream jar in X/eclipse/plugins/repast.simphony.runtime_2.0.0/lib with the new on. X here is wherever you've installed repast. Nick |