异常 EclipseLink
我尝试部署从表中检索数据的服务,并使用 REST Jersey 和 Glassfish 通过 https 显示它 我所做的是我配置了 https 并且它也有效 我测试了一个 jpa 它可以从表中检索数据,但问题是当我合并时在 jpa 处理和服务 Jersey 之间,它会抛出下面的异常,所以如果有人有解决方案,请告诉我可以做什么来解决这个问题,谢谢:
java.lang.ExceptionInInitializerError
root cause
Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [] failed. Internal Exception: Exception [EclipseLink-7305] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException Exception Description: An exception was thrown while processing the mapping file from URL: [file:glassfish/domains/domain1/eclipseApps//WEB-INF/classes/META-INF/orm.xml], error using JPA 1.0 orm.xsd was [Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setCascade], [getCascade] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_cascade] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorColumn], [getDiscriminatorColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_discriminatorColumn] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorClasses], [getDiscriminatorClasses] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_discriminatorClasses] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setJoinColumns], [getJoinColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_joinColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setPrivateOwned], [getPrivateOwned] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_privateOwned-->orm:private-owned/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setSelectedColumns], [getSelectedColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_selectedColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setType], [getType] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_type-->@type] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setHints], [getHints] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_hints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setParameters], [getParameters] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_parameters] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setColumn], [getColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_column] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setTemporal], [getTemporal] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_temporal] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setConvert], [getConvert] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_convert-->orm:convert/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-86] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The instance variable [m_validation] in the class [org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata] is not accessible. Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_validation-->@validation] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setOrderBy], [getOrderBy] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_orderBy-->orm:order-by/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setQuery], [getQuery] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_query-->orm:query/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setGetMethodName], [getGetMethodName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_getMethodName-->@get-method] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDescription], [getDescription] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_description-->orm:description/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setStrategy], [getStrategy] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_strategy-->@strategy] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setXMLMappingMetadataComplete], [getXMLMappingMetadataComplete] in the object [org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_xmlMappingMetadataComplete-->orm:xml-mapping-metadata-complete/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setUniqueConstraints], [getUniqueConstraints] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_uniqueConstraints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata --> [])
java.lang.NullPointerException
java.lang.NullPointerException
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
I try to deploy service that retrieves data from table and diplay it over https using REST Jersey with Glassfish What I did is i configured the https and it works also I tested a jpa it can retrieves data from table, but the problem is when i merge between the jpa treatment and service Jersey, it throws exceptions below, so if anyone has a solution please tell me what ca do to solve this problem thanks:
java.lang.ExceptionInInitializerError
root cause
Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [] failed. Internal Exception: Exception [EclipseLink-7305] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException Exception Description: An exception was thrown while processing the mapping file from URL: [file:glassfish/domains/domain1/eclipseApps//WEB-INF/classes/META-INF/orm.xml], error using JPA 1.0 orm.xsd was [Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setCascade], [getCascade] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_cascade] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorColumn], [getDiscriminatorColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_discriminatorColumn] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorClasses], [getDiscriminatorClasses] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_discriminatorClasses] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setJoinColumns], [getJoinColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_joinColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setPrivateOwned], [getPrivateOwned] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_privateOwned-->orm:private-owned/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setSelectedColumns], [getSelectedColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_selectedColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setType], [getType] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_type-->@type] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setHints], [getHints] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_hints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setParameters], [getParameters] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_parameters] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setColumn], [getColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_column] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setTemporal], [getTemporal] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_temporal] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setConvert], [getConvert] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_convert-->orm:convert/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --> [])
Exception [EclipseLink-86] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The instance variable [m_validation] in the class [org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata] is not accessible. Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_validation-->@validation] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setOrderBy], [getOrderBy] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_orderBy-->orm:order-by/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setQuery], [getQuery] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_query-->orm:query/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setGetMethodName], [getGetMethodName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_getMethodName-->@get-method] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDescription], [getDescription] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_description-->orm:description/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setStrategy], [getStrategy] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_strategy-->@strategy] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setXMLMappingMetadataComplete], [getXMLMappingMetadataComplete] in the object [org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_xmlMappingMetadataComplete-->orm:xml-mapping-metadata-complete/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name-->@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata --> [])
Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setUniqueConstraints], [getUniqueConstraints] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_uniqueConstraints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata --> [])
java.lang.NullPointerException
java.lang.NullPointerException
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生该错误的原因是您在 JVM 中启用了安全管理器并禁用了反射权限。您需要向 eclipselink jar 或一般情况授予此权限。
EclipseLink 在 Glassfish 中没有这个问题,那么如何访问 JPA?您是否在远程客户端上使用 JPA?完整的异常堆栈将有助于确定这一点。
The error is occurring because you have security manager enabled in your JVM and have disabled the permission for reflection. You need to grant this permission to the eclipselink jar, or in general.
EclipseLink does not have this issue in Glassfish, so how are you accessing JPA? Are you using JPA on a remote client? The full exception stack would help determine this.