Error ClassNotFoundException

134 views
Skip to first unread message

Andrea Checchia

unread,
Dec 13, 2017, 6:41:47 AM12/13/17
to iDempiere

Hello to all.
I am using the 5.1 version of "idempiere-server".
I have a plug-in with a custom process and called via OSGI using the "IProcessFactory" service; tested with the old version of the core, it works well.
In Eclipse, with 5.1 core version, it works correctly; instead when I export the plug-in to "server-id" 5.1, I get this error:


java.lang.ClassNotFoundException: it.cnet.idempiere.LIT_RIBA.process.LIT_RIBAGenerateFile cannot be found by org.adempiere.base_5.1.0.v20171127-1717
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.adempiere.base.DefaultProcessFactory.newProcessInstance(DefaultProcessFactory.java:64)
at org.adempiere.base.Core.getProcess(Core.java:134)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:159)
at org.compiere.apps.AbstractProcessCtl.startProcess(AbstractProcessCtl.java:466)
at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:234)
at org.adempiere.webui.apps.WProcessCtl.process(WProcessCtl.java:197)
at org.adempiere.webui.apps.AbstractProcessDialog$ProcessDialogRunnable.doRun(AbstractProcessDialog.java:1083)
at org.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)
at org.adempiere.webui.apps.DesktopRunnable.run(DesktopRunnable.java:40)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Can you tell me how to solve this problem, please?

Thanks in advance
Andrea

Nicolas Micoud

unread,
Dec 13, 2017, 9:32:45 AM12/13/17
to iDempiere
Hi,

Just to be sure, did you fill the plugin.xml file from the plugin ?

Andrea Checchia

unread,
Dec 13, 2017, 10:11:41 AM12/13/17
to iDempiere
Hi Nicolas.

Yes I did; but in the test attempts, I realized then that in the "build.properties" file, in "bin.includes" there was no ".", for the path of the plug-in.

Thank you for your answer. I managed to solve.
Reply all
Reply to author
Forward
0 new messages