You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/19 12:14:49 UTC
[GitHub] [netbeans] FiruzzZ opened a new issue, #5123: not generating the StaticMetaModel: Annotation processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor Failed
FiruzzZ opened a new issue, #5123:
URL: https://github.com/apache/netbeans/issues/5123
### Apache NetBeans version
Apache NetBeans 16
### What happened
Trying to move on to the newest version of NB, I noticed some errors warning in a backend project where I have Eclipselink (2.6.1), without validation-api or jakarta.validation-api dependencies and make use of Static Meta model (SMM) entities, for some entities (not all of them) the IDE is not generating the SMM and showing the following:
Annotation processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor failed with an exception: Could not initialize class org.eclipse.persistence.internal.helper.ClassConstants
org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap.getDefaultIdentityMapClass(AbstractIdentityMap.java:339)
org.eclipse.persistence.sessions.Project.<init>(Project.java:109)
org.eclipse.persistence.sessions.Project.<init>(Project.java:208)
org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:361)
org.netbeans.modules.java.source.indexing.APTUtils$ErrorToleratingProcessor.process(APTUtils.java:984)
com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1008)
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:924)
com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2300(JavacProcessingEnvironment.java:113)
com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1252)
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1367)
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1234)
org.netbeans.lib.nbjavac.services.NBJavaCompiler.processAnnotations(NBJavaCompiler.java:62)
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1133)
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:348)
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:28...
the same project works fine in NB 12 and 12.6
### How to reproduce
_No response_
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10
### JDK
OpenJDK 11 Travis
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists