Null pointer exception

I was making a mod and made some changes now I get this Null Pointer exception and it wont let me open the mod! Please Help! here is the error log file:

– OS Windows XP
– Java version 1.6.0_05
– VASSAL version 3.0.17
Unable to locate image
– Cowboy Cards version 1.0
java.lang.NullPointerException
at VASSAL.build.module.Map.getAttributeValueString(Map.java:393)
at VASSAL.build.module.PrivateMap.getAttributeValueString(PrivateMap.java:138)
at VASSAL.build.AbstractBuildable.getBuildElement(AbstractBuildable.java:171)
at VASSAL.build.AbstractBuildable.getBuildElement(AbstractBuildable.java:178)
at VASSAL.build.GameModule.buildString(GameModule.java:769)
at VASSAL.build.GameModule.init(GameModule.java:689)
at VASSAL.launch.EditModuleAction.loadModule(EditModuleAction.java:38)
at VASSAL.launch.LoadModuleAction.performAction(LoadModuleAction.java:46)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)

So I spent the last few hours re writing my module since my last one gave me a null pointer exception. Everything worked fine when I turned it off last night. Now I started on it this morning and bam…another null pointer exception! I can play the module but not edit it anymore. Someone please help me! Is it something Im doing wrong or is there something I am missing? I dont want to have to rewrite all that data again.

Also I notice it talks about a build file. How do I make one so i can easier edit my module. Again here is the error log created by this mod.

PS after it gives me the null pointer excetion it says that the mod is already opened, but i dont see it opened anywhere.

– OS Windows XP
– Java version 1.6.0_05
– VASSAL version 3.0.17
Unable to locate image
– Night At the Saloon version 0.1
java.lang.NullPointerException
at VASSAL.build.module.Map.getAttributeValueString(Map.java:393)
at VASSAL.build.module.PrivateMap.getAttributeValueString(PrivateMap.java:138)
at VASSAL.build.AbstractBuildable.getBuildElement(AbstractBuildable.java:171)
at VASSAL.build.AbstractBuildable.getBuildElement(AbstractBuildable.java:178)
at VASSAL.build.GameModule.buildString(GameModule.java:769)
at VASSAL.build.GameModule.init(GameModule.java:689)
at VASSAL.launch.EditModuleAction.loadModule(EditModuleAction.java:38)
at VASSAL.launch.LoadModuleAction.performAction(LoadModuleAction.java:46)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)
java.io.IOException: Module C:\Documents and Settings\Owner\Desktop\Cowboys\NAS is already open
at VASSAL.build.GameModule.init(GameModule.java:675)
at VASSAL.launch.EditModuleAction.loadModule(EditModuleAction.java:38)
at VASSAL.launch.LoadModuleAction.performAction(LoadModuleAction.java:46)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)
java.io.IOException: Module C:\Documents and Settings\Owner\Desktop\Cowboys\NAS is already open
at VASSAL.build.GameModule.init(GameModule.java:675)
at VASSAL.launch.EditModuleAction.loadModule(EditModuleAction.java:38)
at VASSAL.launch.LoadModuleAction.performAction(LoadModuleAction.java:46)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)
java.io.IOException: Module C:\Documents and Settings\Owner\Desktop\Cowboys\NAS is already open
at VASSAL.build.GameModule.init(GameModule.java:675)
at VASSAL.launch.LoadModuleAction.loadModule(LoadModuleAction.java:53)
at VASSAL.launch.LoadModuleAction.performAction(LoadModuleAction.java:46)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)
java.io.IOException: Module C:\Documents and Settings\Owner\Desktop\Cowboys\NAS is already open
at VASSAL.build.GameModule.init(GameModule.java:675)
at VASSAL.launch.CreateModuleAction.performAction(CreateModuleAction.java:34)
at VASSAL.launch.GameModuleAction.actionPerformed(GameModuleAction.java:57)
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.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.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)

I don’t know how to read a log file but the first thing I noticed right on top is the note “Unable to load image”. Have you included an image for whatever it is you’re trying to load?

Is it JPG, PNG or GIF?

I tend to use all PNG’s for my mod. I’ve found them to be the most trouble free.

I’ve had the same issue.

I found that if I open the module (for play, rather than editing) it opens.

Then, after I close it, it will open fine in edit mode.

Dave

On Tue, Jun 10, 2008 at 9:04 AM, Dr_Nostromo <messages@forums.vassalengine.org (messages@forums.vassalengine.org)> wrote:

Post generated using Mail2Forum (mail2forum.com)

tried it and it still gives me the same error[/i]

I dont think I included and image in player hand map could this be the problem? if so can i fix it or do I need to start over. IF i can fix it how?

It could be. It’s been my experience that usually Null Pointer Exceptions simply mean that you have something in your mod that is pointing to something that isn’t there. So, yes, it could be a missing image …although I haven’t seen it cause a problem where the mod didn’t load.

I don’t know how to go about fixing that. Best to let the Vassal gurus tackle this one.

Is your module available for download somewhere? I’d like to have a closer look at the NPE.

Thanks,
Brent.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Brent,

I have noticed too the same problem using the Last Tannhauser Module (available in the Module Section)

The error message appears with the 3.1, but not with the 3.0.17 …

Regards,

Grégory