Plugins conflict

Hi,

As a Servoy newbie I guess I need to know if it is normal for plugins to conflict with each other.

I have been using the SerialPort plugin from Prolific Axis, you can specify a function to be called when data is received. Tried for ages to get this to work, but with no joy. I had a line in the function called when data arrived that displayed the data with plugins.dialogs.showInfoDialog when I removed this line everything worked perfectly.

Is it normal to get conflicts like this or is it just peculiar to the SerialPort plugin?

Thanks.

Richard.

Hi Richard and welcome to Servoy!

Plugins can sometimes have conflicts in their dependencies (also called “jar hell” - look for it!), this will happen when a plugin is using (and deploying) one version of a jar while another one is deploying a different version. Which one will actually be picked by the class loader will depends on class loader implementations, and ultimately on the JVM.

Now in this particular case, the dialogs plugin has no dependency apart from java itself so this is not going to be the case here.

That being said, plugins.dialogs.showInfoDialog() is a blocking call, which might interrupt a process that shouldn’t be interrupt, probably like the one you have started with that SerialPort plugin. You should contact the vendor to see if they can fix this (using a background thread maybe) or think of a workaround…

Hope this helps,

Thanks for the info. Will chase up the vendor.

Richard