we have been using the Java Protocol Driver for a while now and we keep on running in situations like this:
A Java Protocol Thread has been properly configured and is running smoothly for a while.
Then suddenly after a restart of the engine, we get Errors from the class loader, like this:
[java:init:ERR /0:t_mdmprinter_out:09/17/2015 10:47:36] Call to class loader for hc/cloverleaf/mdmprinterV2J/ToDatabaseLink had an exception
java.lang.NoClassDefFoundError: hc/cloverleaf/mdmprinterV2J/ToDatabaseLink
Caused by: java.lang.ClassNotFoundException: hc.cloverleaf.mdmprinterV2J.ToDatabaseLink
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java:init:ERR /0:t_mdmprinter_out:09/17/2015 10:47:36] Class loader returned null for class hc/cloverleaf/mdmprinterV2J/ToDatabaseLink
[java:init:ERR /0:t_mdmprinter_out:09/17/2015 10:47:36] Call to pdjSetClass failed.
[pd :pdtd:ERR /0:t_mdmprinter_out:09/17/2015 10:47:36] PD initialization FAILED!
But all the configured path are correct. The external jars and the .class file are still exactly where they are supposed to be. Even deleting and re-configuring the path isn’t helping the issue.
In most cases, we got so desperate that we deleted and recreated the whole process from scratch, wending up with the exact same configuration as before but suddenly it all works again.
We even checked and compared the .pni and .ini files but couldn’t find anything out of the ordinary.
Has anyone encountered similar issues ?
Regards,
Simone