Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Suggestion Box (http://www.alice.org/community/forumdisplay.php?f=26)
-   -   Bug when explode a fighter plane (http://www.alice.org/community/showthread.php?t=2830)

petros 07-01-2009 04:27 AM

Bug when explode a fighter plane
 
When i go to explode a fighter plane in an alice world ihave this bug.
Error during simulation.




Alice version: 2.2 6/10/2009



Throwable that caused the error:

java.lang.NullPointerException

at edu.cmu.cs.stage3.alice.core.question.SubjectObjectQuestion.getValue(SubjectObjectQuestion.java:46)

at edu.cmu.cs.stage3.alice.core.question.SubjectQuestion.getValue(SubjectQuestion.java:35)

at edu.cmu.cs.stage3.alice.core.Property.evaluateIfNecessary(Property.java:379)

at edu.cmu.cs.stage3.alice.core.Property.getValue(Property.java:406)

at edu.cmu.cs.stage3.alice.core.property.NumberProperty.getNumberValue(NumberProperty.java:33)

at edu.cmu.cs.stage3.alice.core.property.NumberProperty.doubleValue(NumberProperty.java:36)

at edu.cmu.cs.stage3.alice.core.property.NumberProperty.doubleValue(NumberProperty.java:44)

at edu.cmu.cs.stage3.alice.core.response.MoveAnimation$RuntimeMoveAnimation.getVector(MoveAnimation.java:42)

at edu.cmu.cs.stage3.alice.core.response.MoveAnimation$RuntimeMoveAnimation.prologue(MoveAnimation.java:59)

at edu.cmu.cs.stage3.alice.core.response.DoTogether$RuntimeDoTogether.prologue(DoTogether.java:53)

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.childPrologueIfNecessary(DoInOrder.java:52)

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.update(DoInOrder.java:97)

at edu.cmu.cs.stage3.alice.core.response.CallToUserDefinedResponse$RuntimeCallToUserDefinedResponse.update(CallToUserDefinedResponse.java:86)

at edu.cmu.cs.stage3.alice.core.behavior.TriggerBehavior.internalSchedule(TriggerBehavior.java:69)

at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Behavior.java:226)

at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehaviors(Sandbox.java:70)

at edu.cmu.cs.stage3.alice.core.World.scheduleBehaviors(World.java:444)

at edu.cmu.cs.stage3.alice.core.World.schedule(World.java:486)

at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.schedule(DefaultClock.java:99)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool$7.run(AuthoringTool.java:702)

at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.simulateOnce(DefaultScheduler.java:115)

at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.run(DefaultScheduler.java:76)

at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run(AbstractScheduler.java:45)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.Dialog$1.run(Unknown Source)

at java.awt.Dialog$2.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at edu.cmu.cs.stage3.swing.DialogManager.showModalDialog(DialogManager.java:60)

at edu.cmu.cs.stage3.swing.DialogManager.showDialog(DialogManager.java:128)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool.play(AuthoringTool.java:5159)

at edu.cmu.cs.stage3.alice.authoringtool.Actions$15.actionPerformed(Actions.java:168)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

arevira 07-01-2009 02:05 PM

[QUOTE=petros;10868]java.lang.NullPointerException[/quote]

On the face of it, it could be a method expecting an object argument that currently is set to None, but it is kind of hard to tell with that error message.
Can you upload the file to take a look at it?

petros 07-01-2009 02:21 PM

This is the file.

DrJim 07-01-2009 08:14 PM

[QUOTE=petros;10885]This is the file.[/QUOTE]

It wasn't attached.

petros 07-01-2009 11:28 PM

1 Attachment(s)
Sorry

shaydon 12-10-2009 02:33 PM

you have to edit it where it says distance above<none>
you have to change it to the ground


All times are GMT -5. The time now is 12:40 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.