Error: Unable to load annotation processor factory '/org.adempiere.base/lib/classindex.jar' for project org.adempiere.base

556 views
Skip to first unread message

Nicolas Micoud

unread,
Oct 5, 2021, 10:23:09 AM10/5/21
to iDempiere
Hi,

Since I've updated my local sources, run mvn verify + refresh on Eclipse (2021-03), I can't get rid of this error in Eclipse:

Unable to load annotation processor factory '/org.adempiere.base/lib/classindex.jar' for project org.adempiere.base


nb: I'm still able to launch the server.
nb2: I'm using Windows

Any idea?

Thanks

Nicolas

Heng Sin Low

unread,
Oct 5, 2021, 10:29:51 AM10/5/21
to idem...@googlegroups.com
find .factorypath and remove it.

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/961fd687-80f4-4e6c-a006-9abbac9d88c2n%40googlegroups.com.

Nicolas Micoud

unread,
Oct 5, 2021, 11:17:10 AM10/5/21
to iDempiere
I can't find this file in the main directory or in org.adempiere.base
any idea where it can be found?

Carlos Antonio Ruiz Gomez

unread,
Oct 5, 2021, 1:08:20 PM10/5/21
to idem...@googlegroups.com
better to run with eclipse 2021-06 or 09


El 5/10/21 a las 17:17, Nicolas Micoud escribió:

Heng Sin Low

unread,
Oct 5, 2021, 6:17:40 PM10/5/21
to idem...@googlegroups.com
org.adempiere.base/.factorypath, if you get the error message in eclipse, it should be there (it is probably a hidden file so you might have just miss it).

Heng Sin Low

unread,
Oct 5, 2021, 6:19:59 PM10/5/21
to idem...@googlegroups.com
hmm ... perhaps you need to remove org.adempiere.base/.settings/org.eclipse.jdt.apt.core.prefs too.

Nicolas Micoud

unread,
Oct 6, 2021, 4:29:21 AM10/6/21
to iDempiere
Hi,

I double check and those files (.factorypath and org.eclipse.jdt.apt.core.prefs) are not present.

Then I download Eclipse 2021-09 and sources in a new directory and redo the full install.

No more error in Eclipse, but when starting server.product, I got this non blocker error (which was not present in my previous environnment (2021-03)).

10:24:01.677-----------> EMail.setFrom: you @ company.org: javax.mail.internet.AddressException: Local address contains control or whitespace in string ``you @ company.org'' [45]
10:24:01.679-----------> EMail.addTo: you @ company.org: javax.mail.internet.AddressException: Local address contains control or whitespace in string ``you @ company.org'' [45]
10:24:01.679-----------> EMail.isValid: From is invalid=null [45]
10:24:01.679-----------> EMail.isValid: From is invalid=null [45]
10:24:01.679-----------> MClient.sendEMail: Could NOT Send Email: Server started: iDempiere (DESKTOP-MBE012N:192.168.56.1) to you @ company.org: Invalid Data (System) [45]
10:24:01.679 WebEnv.initWeb: Servlet Init Parameter: idempiereMonitor [45]
10:24:01.679 AdempiereMonitor.init:  [45]
2021-10-06 10:24:01.681:INFO:oejsh.ContextHandler:Start Level: Equinox Container: e12cb9c7-86ef-4feb-a35f-12119480afea: Started o.e.j.w.WebAppContext@1d41c96a{iDempiere Root,/,file:///C:/Src/idempiere_nmd_test/org.adempiere.server/,AVAILABLE}{file:/C:/Src/idempiere_nmd_test/org.adempiere.server/}
2021-10-06 10:24:02.132:WARN:oeja.ClassInheritanceHandler:qtp1542646366-129:
java.lang.NullPointerException
    at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
    at org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:75)
    at org.eclipse.jetty.annotations.ClassInheritanceHandler.handle(ClassInheritanceHandler.java:62)
    at org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor.visit(AnnotationParser.java:488)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:536)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:394)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:933)
    at org.eclipse.jetty.osgi.annotations.AnnotationParser.parse(AnnotationParser.java:227)
    at org.eclipse.jetty.osgi.annotations.AnnotationConfiguration$BundleParserTask.call(AnnotationConfiguration.java:64)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:455)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
    at java.base/java.lang.Thread.run(Thread.java:834)
2021-10-06 10:24:02.183:WARN:oeja.ClassInheritanceHandler:qtp1542646366-127:
java.lang.NullPointerException
    at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
    at org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:75)
    at org.eclipse.jetty.annotations.ClassInheritanceHandler.handle(ClassInheritanceHandler.java:62)
    at org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor.visit(AnnotationParser.java:488)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:536)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:394)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:933)
    at org.eclipse.jetty.osgi.annotations.AnnotationParser.parse(AnnotationParser.java:227)
    at org.eclipse.jetty.osgi.annotations.AnnotationConfiguration$BundleParserTask.call(AnnotationConfiguration.java:64)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:455)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
    at java.base/java.lang.Thread.run(Thread.java:834)
2021-10-06 10:24:06.347:INFO:oeja.AnnotationConfiguration:Start Level: Equinox Container: e12cb9c7-86ef-4feb-a35f-12119480afea: Scanning elapsed time=4236ms
10:24:06.530           LoggedSessionListener.contextInitialized: context initialized [45]
10:24:06.893-----------> DefaultAnnotationProcessor.warn: Unable to detect annotations. Application may fail to deploy. [45]


But I'm able to log in.

Any idea where to look ?

Thanks,

Nicolas

Nicolas Micoud

unread,
Oct 12, 2021, 8:33:54 AM10/12/21
to iDempiere
"Reopening" this as initial error "Unable to load annotation processor factory '/org.adempiere.base/lib/classindex.jar' for project org.adempiere.base" has come back (and using Eclipse 2021-09).

Still not a blocker as I'm able to launch the project.

Nobody else has the issue ?

Regards,

Nicolas

Heng Sin Low

unread,
Oct 12, 2021, 8:49:29 AM10/12/21
to idem...@googlegroups.com
I didn't have the error and I just did a fresh checkout to double confirm that all configuration files that's using classindex.jar have been removed from the repository.


Nicolas Micoud

unread,
Oct 12, 2021, 11:16:12 AM10/12/21
to iDempiere
Thanks ; so is probably a Windows error

Heng Sin Low

unread,
Oct 12, 2021, 11:21:57 AM10/12/21
to idem...@googlegroups.com
No, it is not a windows error.

Saulo Gil

unread,
Oct 12, 2021, 11:50:45 AM10/12/21
to idem...@googlegroups.com

Hello Nicolas,

This problem is preventing the new model factory to work properly, but the default/legacy factory is still there working as usual. That's why you might not notice changes at runtime.

I confirm there are no issues with the current setup on my environment. However, my copy of org.adempiere.base/lib/classgraph.jar is version 4.8.116 which is not the latest. Please make sure you don't have any version with conflicts such as the v4.8.117 (see https://github.com/classgraph/classgraph/releases where they suggest to use versions equal to or above 4.8.123).

Best regards,

Saulo Gil | Orbital Software  | +54 911 3049 4237

Saulo Gil

unread,
Oct 12, 2021, 12:03:16 PM10/12/21
to idem...@googlegroups.com

As a test, I just changed org.adempiere.base/pom.xml to use ClassGraph v4.8.126 and haven't noticed any problems.

Nicolas maybe this can be an option for you to explore, assuming the version you have might be giving problems in your particular environment.

On 12/10/21 12:50, Saulo Gil wrote:

Hello Nicolas,

This problem is preventing the new model factory to work properly, but the default/legacy factory is still there working as usual. That's why you might not notice changes at runtime.

I confirm there are no issues with the current setup on my environment. However, my copy of org.adempiere.base/lib/classgraph.jar is version 4.8.116 which is not the latest. Please make sure you don't have any version with conflicts such as the v4.8.117 (see https://github.com/classgraph/classgraph/releases where they suggest to use versions equal to or above 4.8.123).

Best regards,

Nicolas Micoud

unread,
Oct 13, 2021, 2:16:15 AM10/13/21
to iDempiere
Hi,

I've tried to change the version from 4.8.116 to 4.8.126, but error was still there.

Then I downloaded fresh sources from main repo and do the full install stuff.
No more error, so I think issue is because of "something" from the current local repo and/or from https://github.com/nmicoud/idempiere.

I'll make some tests but if can't any solution, I'll delete my fork and recreate a new one.

Thanks for guidance

Regards,

Nicolas
Reply all
Reply to author
Forward
0 new messages