AnsweredAssumed Answered

Plugin stopped working in Spark2.6.0

Question asked by Aldoras on Jun 15, 2011
Latest reply on Jul 8, 2011 by Aldoras

Hello,

 

  i have written a plugin for spark 2.5.8 last year and it was working great, until i installed spark 2.6.0 yesterday.

There is a line where i want to get the current user directory:

 

private static String userDirectory = SparkManager.getUserDirectory().getPath();

 

since i installed 2.6.0 this one is causing me trouble with the following error:

 


15.06.2011 13:20:05 org.jivesoftware.spark.util.log.Log error
SCHWERWIEGEND: Unable to load plugin
java.lang.ExceptionInInitializerError
at org.[myPlugin].<clinit>(plugin.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.spark.PluginManager.loadPublicPlugin(PluginManager.java:347)
at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:692)
at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:237)
at org.jivesoftware.Spark.startup(Spark.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jivesoftware.launcher.Startup.start(Startup.java:94)
at org.jivesoftware.launcher.Startup.main(Startup.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)


Caused by: java.lang.NullPointerException
at org.jivesoftware.spark.SparkManager.getUserDirectory(SparkManager.java:366)
at org.[myPlugin].<clinit>(pluginSettings.java:20)
... 23 more

 

 

did anything change in the source for SparkManager that i have to adapt to, or is this a bug?

 

 

Thanks in advance

 

- Aldoras

15.06.2011 13:20:05 org.jivesoftware.spark.util.log.Log error
SCHWERWIEGEND: Unable to load plugin org.pidas.aci.client.ACIClient.
java.lang.ExceptionInInitializerError
at org.pidas.aci.client.ACIClient.<clinit>(ACIClient.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.spark.PluginManager.loadPublicPlugin(PluginManager.java:347)
at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:692)
at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:237)
at org.jivesoftware.Spark.startup(Spark.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jivesoftware.launcher.Startup.start(Startup.java:94)
at org.jivesoftware.launcher.Startup.main(Startup.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jivesoftware.spark.SparkManager.getUserDirectory(SparkManager.java:366)
at org.pidas.aci.client.resources.Settings.<clinit>(Settings.java:20)
... 23 more

 

Outcomes