Community
Participate
Working Groups
Exception below occurs creating the JAXBContext with methods like this: private boolean equipment; public void setHasEquipment(boolean equipment) { this.equipment = equipment; } ///fails with or without isEquipment getter method present. Exception [EclipseLink-7198] (Eclipse Persistence Services - 2.1.4.qualifier): org.eclipse.persistence.exceptions.ValidationException Exception Description: Class: [boolean] was not found while converting from class names to classes. Internal Exception: java.lang.ClassNotFoundException: boolean at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:471) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:406) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:666) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:628) at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:213) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:336) at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:245) ... 4 more
A fix that was made to PrivilegedAccessHelper as part of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=221876 actually remedies this
Created attachment 201418 [details] Patch and test case
Attached patch checked to SVN
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink