0
我正試圖在glassfish v 3.1.2.2上部署和運行示例應用程序。我能夠成功部署它。但在某些過程中遇到一些問題。它與反思有關:在glassfish上使用反射問題v 3.1.2.2
Caused by: com.impetus.kundera.property.PropertyAccessException: java.lang.IllegalArgumentException: Can not set pt.lighthouselabs.sherlock.model.AuditRecordId field pt.lighthouselabs.sherlock.model.AuditRecord.id to pt.lighthouselabs.sherlock.model.AuditRecord
at com.impetus.kundera.property.PropertyAccessorHelper.getObject(PropertyAccessorHelper.java:139)
at com.impetus.kundera.property.PropertyAccessorHelper.getId(PropertyAccessorHelper.java:262)
at com.impetus.kundera.persistence.PersistenceValidator.isValidEntityObject(PersistenceValidator.java:51)
這是在容器外以及在tomcat上正常工作。所以想知道這是與班加載或可能是一些環境問題?我試圖調試這個問題,這是失敗的:
protected void ensureObj(Object paramObject)
{
if (!(this.field.getDeclaringClass().isAssignableFrom(paramObject.getClass())))
throwSetIllegalArgumentException(paramObject);
}
任何幫助嗎?
-Vivek