AnsweredAssumed Answered

Exceptions Occured When Running Spark

Question asked by lwu on Sep 1, 2010

When I run the Spark from startup.bat, I got the following exceptions in log viewer:

 

Sep 1, 2010 7:05:26 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at org.jivesoftware.spark.plugin.flashing.FlashingPreference.<init>(FlashingPrefer ence.java:38)
    at org.jivesoftware.spark.plugin.flashing.FlashingPlugin.initialize(FlashingPlugin .java:34)
    at org.jivesoftware.spark.PluginManager$2.run(PluginManager.java:510)
    at java.awt.event.InvocationEvent.dispatch(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)
Sep 1, 2010 7:06:52 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at org.jivesoftware.spark.plugin.flashing.FlashingPreference.<init>(FlashingPrefer ence.java:38)
    at org.jivesoftware.spark.plugin.flashing.FlashingPlugin.initialize(FlashingPlugin .java:34)
    at org.jivesoftware.spark.PluginManager$2.run(PluginManager.java:510)
    at java.awt.event.InvocationEvent.dispatch(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)
Sep 1, 2010 7:06:53 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at org.jivesoftware.spellchecker.SpellcheckerPreference.<init>(SpellcheckerPrefere nce.java:41)
    at org.jivesoftware.spellchecker.SpellcheckManager.<init>(SpellcheckManager.java:5 8)
    at org.jivesoftware.spellchecker.SpellcheckManager.getInstance(SpellcheckManager.j ava:46)
    at org.jivesoftware.spellchecker.SpellcheckerPlugin.initialize(SpellcheckerPlugin. java:38)
    at org.jivesoftware.spark.PluginManager$2.run(PluginManager.java:510)
    at java.awt.event.InvocationEvent.dispatch(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)
Sep 1, 2010 8:11:25 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at org.jivesoftware.spark.plugin.flashing.FlashingPreference.<init>(FlashingPrefer ence.java:38)
    at org.jivesoftware.spark.plugin.flashing.FlashingPlugin.initialize(FlashingPlugin .java:34)
    at org.jivesoftware.spark.PluginManager$2.run(PluginManager.java:510)
    at java.awt.event.InvocationEvent.dispatch(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 followed the tutorial to setup Eclipse and SVN, and downloaded the latest spark trunk 11779. Instead of using Install4j, I'm using izpack and lanuch4j. With these exceptions in the runtime, I cannot make the program "Launch on Startup" through Preferences -> Login settings.

 

I highly appreciate if anyone can tell what's going on and help me fix this.

Outcomes