带有java.lang.NoSuchField异常的org.eclipse.persistence.exceptions.DescriptorException

时间:2012-09-07 12:52:33

标签: jpa jpa-2.0

我有一个名为TrainingMstr的实体。我从表中删除了一些字段并更新了实体。但我仍然收到以下错误:

Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions: 
---------------------------------------------------------
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngRevNo] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngRevNo
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngRevNo-->trimsdev.trimsdev.training_mstr.trng_rev_no]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngRefDocNo] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngRefDocNo
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngRefDocNo-->trimsdev.trimsdev.training_mstr.trng_ref_doc_no]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngAddLinks] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngAddLinks
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngAddLinks-->trimsdev.trimsdev.training_mstr.trng_add_links]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngNxtRevDt] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngNxtRevDt
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngNxtRevDt-->trimsdev.trimsdev.training_mstr.trng_nxt_rev_dt]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngInfo] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngInfo
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngInfo-->trimsdev.trimsdev.training_mstr.trng_info]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngEffctvDt] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngEffctvDt
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngEffctvDt-->trimsdev.trimsdev.training_mstr.trng_effctv_dt]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])
Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The instance variable [trngValidTill] is not defined in the domain class [com.discusit.trims.entity.TrainingMstr], or it is not accessible.
Internal Exception: java.lang.NoSuchFieldException: trngValidTill
Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[trngValidTill-->trimsdev.trimsdev.training_mstr.trng_valid_till]
Descriptor: RelationalDescriptor(com.discusit.trims.entity.TrainingMstr --> [DatabaseTable(trimsdev.trimsdev.training_mstr)])

我也删除了所有SessionBeans中的所有相关数据字段。

我该怎么做?

1 个答案:

答案 0 :(得分:0)

好像你没有正确地重新部署你的应用程序。确保您已重新启动服务器并重新编译并重新部署应用程序。