powered by Jive Software

MAIN_IMAGE not found

HI All.

i compiled a spark source. but the error is MAIN_IMAGE not found. i copied a images in C:\Documents and Settings\Administrator\Spark\resources\images.

Please help me!

Hi,

I’'m having the same problem here at the moment. I tried to build the example plugin as a start for my first plugin … but I am rewarded with the MAIN_IMAGE not found. error.

Maybe someone can give me a hint on what to do? (using eclipse, imported all the stuff described in the documentation).

MAIN_IMAGE not found.

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

at org.jivesoftware.LoginDialog$ImagePanel.getPreferredSize(LoginDialog.java:815)

at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source)

at java.awt.GridBagLayout.getLayoutInfo(Unknown Source)

at java.awt.GridBagLayout.preferredLayoutSize(Unknown Source)

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

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

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

at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)

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

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

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

at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)

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

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

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

at org.jivesoftware.LoginDialog.invoke(LoginDialog.java:155)

at org.jivesoftware.Spark.(Spark.java:39)

at org.jivesoftware.Spark$1.run(Spark.java:151)

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.pumpEvents(Unknown Source)

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

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

This is the third posting in this forum concerning this topic, I hope it is the first one that gets an answer

Thanks and bye,

Shukuyen

Nevermind, it works despite of the error message … I just didn’'t realize there was a new tray icon

Hi,

Did this issue of ‘MAIN_IMAGE Not Found’ get resolved? If so, I would appreciate any help in this matter, as I am having the same problem. I am running the plug kit on Eclipse. Thanks, Sundar

Below is the error message. I think same with the one posted by the other programmer.

I can paste myplugin.jar to plugins in another spark installation and see that it is working.

But I wanted to start running from eclipse, hoping that then I can trace the plugin code, put break points etc…

Any other recommendations about debugging plugins (or pointers) will be appreciated.

(This is my first plugin project.)

Thanks,

run:

[copy] Copying 1 file to C:\workspace\sparkplugs\spark\plugins

[java] MAIN_IMAGE not found.

[java] Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

[java] at org.jivesoftware.LoginDialog$ImagePanel.getPreferredSize(LoginDialog.java:815)

[java] at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source)

[java] at java.awt.GridBagLayout.getLayoutInfo(Unknown Source)

[java] at java.awt.GridBagLayout.preferredLayoutSize(Unknown Source)

[java] at java.awt.Container.preferredSize(Unknown Source)

[java] at java.awt.Container.getPreferredSize(Unknown Source)

[java] at javax.swing.JComponent.getPreferredSize(Unknown Source)

[java] at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)

[java] at java.awt.Container.preferredSize(Unknown Source)

[java] at java.awt.Container.getPreferredSize(Unknown Source)

[java] at javax.swing.JComponent.getPreferredSize(Unknown Source)

[java] at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)

[java] at java.awt.Container.preferredSize(Unknown Source)

[java] at java.awt.Container.getPreferredSize(Unknown Source)

[java] at java.awt.Window.pack(Unknown Source)

[java] at org.jivesoftware.LoginDialog.invoke(LoginDialog.java:155)

[java] at org.jivesoftware.Spark.(Spark.java:55)

[java] at org.jivesoftware.Spark.(Spark.java:39)

[java] at org.jivesoftware.Spark$1.run(Spark.java:151)

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

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

[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

[java] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

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

[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

[java] at java.awt.EventDispatchThread.run(Unknown Source)

[java] Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

[java] at org.jivesoftware.LoginDialog$ImagePanel.getPreferredSize(LoginDialog.java:815)

[java] at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source)

[java] at java.awt.GridBagLayout.getLayoutInfo(Unknown Source)

[java] at java.awt.GridBagLayout.ArrangeGrid(Unknown Source)

[java] at java.awt.GridBagLayout.arrangeGrid(Unknown Source)

[java] at java.awt.GridBagLayout.layoutContainer(Unknown Source)

[java] at java.awt.Container.layout(Unknown Source)

[java] at java.awt.Container.doLayout(Unknown Source)

[java] at java.awt.Container.validateTree(Unknown Source)

[java] at java.awt.Container.validateTree(Unknown Source)

[java] at java.awt.Container.validateTree(Unknown Source)

[java] at java.awt.Container.validateTree(Unknown Source)

[java] at java.awt.Container.validate(Unknown Source)

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

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

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

[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

[java] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

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

[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

[java] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

[java] at java.awt.EventDispatchThread.run(Unknown Source)

I also have the same problem - anyone knows what the problem might be ? thanks

Maybe it missing some jar

Which jar and how to point to it?

Since other people get it too, there must be something missing in the guide describing compiling plugins.

the how-to-build.txt file from sparkplug kit says:

  1. Place any dependencies (besides Spark) into the lib directory.

but I guess that is for additional libraries you use, and I don’t use any additional libraries.

Thanks in advance,

Ozgur

hi,Maybe I found the reason.You can check the spark.properties file in the package “/org/jivesoftware/resource” .You can find the key “MAIN_IMAGE” ,just verify the value with the file name in “image” package. I found some file’s extendName is changed from png to gif or vice verse.