-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: PropertyNotFoundException: Could not find a setter for prope
PostPosted: Thu Oct 14, 2004 3:08 pm 
Newbie

Joined: Thu Oct 14, 2004 2:33 pm
Posts: 2
I have looked but was not able to find a direct answer. I found others with very similar classes but not the same problem.

The problem is given the class heirarchy below, Hibernate can not find my setter method for my table key (setKey(Long key)).

Now, if I remove 'final' from the methods and include the method in each class it appears to work:

private void setKey(Long key) {
super.setKey(key);
}

however, without that, the subclasses can not see the setters.

Is anyone aware of a problem here? I have included class snippets and some mapping files. Thanks.

[Persistable] (abstract, has no table, not mapped -> has attributes and
| methods needed by subclasses)
|
+---Person (abstract, extends Persistable, has a table)
|
|
+---Parent (abstract, extends Person, has a table)
|
|
+---Father (concrete, extends Parent, has a table)

/****
The goal is to have every persistable class extend this class. It has the
key, version and all necessary methods. I made the methods final so
that subclasses can not override. There is not table for this class. I start
the Hibernate mapping with subclasses that extend this class.

I am using subclass per table mapping
*****/
public abstract class Persistable implements Serializable, Loggable {

// ..... some public static final stuff removed .... //

private Long key = null; // MSSQL Server identity column
private Timestamp version = null;
private String recordStatus = NEW;
private User lockedBy = null;
private Date dateLocked = null;

// required by Hibernate
protected Persistable() {
super();
}

public final Long getKey() {
return key;
}

public final Timestamp getVersion() {
return version;
}

protected final void setKey(Long key) {
this.key = key;
}

protected final void setVersion(Timestamp version) {
this.version = version;
}

public abstract int hashCode();

public abstract boolean equals(Object o);

// .... other getter/setter methods removed ... //
}

public abstract class Person extends Persistable {
// ... person specific stuff ...//
}

public abstract class Parent extends Person {
// ... parent specific stuff ... //
}

public class Father extends Parent {
// ... father specific stuff ... //
}

public class Mother extends Parent {
// ... mother specific stuff ... //
}

Hibernate version: 2.1.6

Mapping documents:

/*****
Mapping file for Person
****/
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<class name="nc.dhhs.WCS.businessObjects.persons.Person"
table="PERSONS"
dynamic-insert="true"
dynamic-update="true" >

<id name="key" column="PERSON_KEY" type="long" >
<generator class="identity" />
</id>

<timestamp name="version" column="PERSON_VERSION" />

<component name="name" class="nc.dhhs.common.demographics.Name" >
<property name="first" column="FIRST_NAME" type="string" />
<property name="middle" column="MIDDLE_NAME" type="string" />
<property name="last" column="LAST_NAME" type="string" />
<property name="maiden" column="NAME_MAIDEN" type="string" />
<property name="modifier" column="NAME_MODIFIER" type="string" />

<component name="salutation" class="nc.dhhs.common.enums.Salutation" >
<property name="code" column="NAME_SALUTATION" type="string" />
</component>
</component>

<component name="demographic" class="nc.dhhs.common.demographics.Demographic" >
<!-- <set name="races" inverse="true" cascade="all-delete-orphan" >
<key column="PERSON_KEY" />
<one-to-many class="nc.dhhs.WCS.businessObjects.Persons.PersonRace" />
</set>

<set name="ethnicities" inverse="true" cascade="all-delete-orphan" >
<key column="PERSON_KEY" />
<one-to-many class="nc.dhhs.WCS.businessObjects.Persons.PersonEthnicity" />
</set> -->

<component name="home" class="nc.dhhs.common.demographics.ContactPoint" >
<component name="address" class="nc.dhhs.common.demographics.Address" >
<component name="state" class="nc.dhhs.common.enums.CountryState" >
<property name="code" column="HOME_ADDRESS_STATE_CODE" type="string" />
</component>

<component name="zipcode" class="nc.dhhs.common.demographics.Zipcode" >
<property name="zip5" column="HOME_ADDRESS_ZIP5" type="string" />
<property name="zip4" column="HOME_ADDRESS_ZIP4" type="string" />
</component>

<component name="country" class="nc.dhhs.common.enums.Country" >
<property name="code" column="HOME_ADDRESS_COUNTRY_CODE" type="string" />
</component>

<component name="county" class="nc.dhhs.common.enums.County" >
<property name="code" column="HOME_ADDRESS_COUNTY_CODE" type="string" />
</component>

<property name="line1" column="HOME_ADDRESS_LINE1" type="string" />
<property name="line2" column="HOME_ADDRESS_LINE2" type="string" />
<property name="city" column="HOME_ADDRESS_CITY" type="string" />
</component>

<component name="phoneNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="HOME_PHONE_AREA_CODE" type="string" />
<property name="exchange" column="HOME_PHONE_EXCHANGE" type="string" />
<property name="number" column="HOME_PHONE_NUMBER" type="string" />
</component>

<component name="faxNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="HOME_FAX_AREA_CODE" type="string" />
<property name="exchange" column="HOME_FAX_EXCHANGE" type="string" />
<property name="number" column="HOME_FAX_NUMBER" type="string" />
</component>

<component name="cellNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="HOME_CELL_AREA_CODE" type="string" />
<property name="exchange" column="HOME_CELL_EXCHANGE" type="string" />
<property name="number" column="HOME_CELL_NUMBER" type="string" />
</component>

<property name="email" column="HOME_EMAIL" type="string" />
<property name="status" column="HOME_CONTACT_STATUS" type="string" />
</component>

<component name="work" class="nc.dhhs.common.demographics.ContactPoint" >
<component name="address" class="nc.dhhs.common.demographics.Address" >
<component name="state" class="nc.dhhs.common.enums.CountryState" >
<property name="code" column="WORK_ADDRESS_STATE_CODE" type="string" />
</component>

<component name="zipcode" class="nc.dhhs.common.demographics.Zipcode" >
<property name="zip5" column="WORK_ADDRESS_ZIP5" type="string" />
<property name="zip4" column="WORK_ADDRESS_ZIP4" type="string" />
</component>

<component name="country" class="nc.dhhs.common.enums.Country" >
<property name="code" column="WORK_ADDRESS_COUNTRY_CODE" type="string" />
</component>

<component name="county" class="nc.dhhs.common.enums.County" >
<property name="code" column="WORK_ADDRESS_COUNTY_CODE" type="string" />
</component>

<property name="line1" column="WORK_ADDRESS_LINE1" type="string" />
<property name="line2" column="WORK_ADDRESS_LINE2" type="string" />
<property name="city" column="WORK_ADDRESS_CITY" type="string" />
</component>

<component name="phoneNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="WORK_PHONE_AREA_CODE" type="string" />
<property name="exchange" column="WORK_PHONE_EXCHANGE" type="string" />
<property name="number" column="WORK_PHONE_NUMBER" type="string" />
<property name="extension" column="WORK_PHONE_EXTENSION" type="string" />
</component>

<component name="faxNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="WORK_FAX_AREA_CODE" type="string" />
<property name="exchange" column="WORK_FAX_EXCHANGE" type="string" />
<property name="number" column="WORK_FAX_NUMBER" type="string" />
</component>

<component name="cellNumber" class="nc.dhhs.common.demographics.PhoneNumber" >
<property name="areaCode" column="WORK_CELL_AREA_CODE" type="string" />
<property name="exchange" column="WORK_CELL_EXCHANGE" type="string" />
<property name="number" column="WORK_CELL_NUMBER" type="string" />
</component>

<property name="email" column="WORK_EMAIL" type="string" />
<property name="status" column="WORK_CONTACT_STATUS" type="string" />
</component>

<component name="sex" class="nc.dhhs.common.enums.Sex" >
<property name="code" column="SEX" type="string" />
</component>

<component name="incomeGroup" class="nc.dhhs.common.enums.IncomeGroup" >
<property name="code" column="INCOME_GROUP" type="string" />
</component>

<property name="hispanicOrigin" column="HISPANIC_ORIGIN" type="string" />
<property name="dateOfBirth" column="DATE_OF_BIRTH" type="date" />
<property name="dateOfDeath" column="DATE_OF_DEATH" type="date" />
</component>

<component name="ssn" class="nc.dhhs.common.identifiers.SocialSecurityNumber" >
<property name="number" column="SOCIAL_SECURITY_NUMBER" type="string" />
</component>

<property name="personStatus" column="PERSON_STATUS" type="string" not-null="true" />
<property name="genoType" column="GENO_TYPE" type="string" />
<property name="createdByApp" column="CREATED_BY_APP" type="string" not-null="true" />

<!-- <set name="previousLastNames" inverse="true" cascade="all-delete-orphan" >
<key column="PERSON_KEY" />
<one-to-many class="nc.dhhs.WCS.businessObjects.Persons.PersonLastName" />
</set> -->
</class>
</hibernate-mapping>

/*****
Mapping file for Parent
*****/
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<joined-subclass name="nc.dhhs.WCS.businessObjects.persons.Parent"
extends="nc.dhhs.WCS.businessObjects.persons.Person"
table="PARENTS">
<key column="PARENT_KEY" />
</joined-subclass>
</hibernate-mapping>


/***
Mapping file for father
****/
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<joined-subclass name="nc.dhhs.WCS.businessObjects.persons.Father"
extends="nc.dhhs.WCS.businessObjects.persons.Parent"
table="FATHERS">
<key column="FATHER_KEY" />
</joined-subclass>
</hibernate-mapping>

/****
session factory section
****/
try {
Configuration cfg = new Configuration();

cfg.setProperty("hibernate.factory_class","net.sf.hibernate.transaction.JTATransactionFactory");
cfg.setProperty("hibernate.transaction.manager_lookup_class","net.sf.hibernate.transaction.WeblogicTransactionManagerLookup");
cfg.setProperty("hibernate.connection.provider_class","net.sf.hibernate.connection.DatasourceConnectionProvider");
cfg.setProperty("hibernate.connection.datasource","jdbc/MSSQLDataSource");
cfg.setProperty("hibernate.show_sql","true");
cfg.setProperty("hibernate.dialect","net.sf.hibernate.dialect.SQLServerDialect");
cfg.addResource("Person.hbm.xml");
cfg.addResource("Parent.hbm.xml");
cfg.addResource("Mother.hbm.xml");
cfg.addResource("Father.hbm.xml");

return cfg.buildSessionFactory();

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
net.sf.hibernate.PropertyNotFoundException: Could not find a setter for property key in class nc.dhhs.WCS.businessObjects.persons.Person
at net.sf.hibernate.property.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:131)
at net.sf.hibernate.mapping.Property.getSetter(Property.java:178)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:581)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:716)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:42)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:136)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
at nc.dhhs.servlets.InitServlet.getFactory(InitServlet.java:143)
at nc.dhhs.servlets.InitServlet.initializeHibernateSession(InitServlet.java:104)
at nc.dhhs.servlets.InitServlet.init(InitServlet.java:79)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3238)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3224)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)

Name and version of the database you are using:
MS SQL Server 2000

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


14 Oct 2004 14:30:54,453 INFO Environment : Hibernate 2.1.6
14 Oct 2004 14:30:54,453 INFO Environment : hibernate.properties not found
14 Oct 2004 14:30:54,468 INFO Environment : using CGLIB reflection optimizer
14 Oct 2004 14:30:54,484 INFO Configuration : Mapping resource: Person.hbm.xml
14 Oct 2004 14:30:54,875 INFO Binder : Mapping class: nc.dhhs.WCS.businessObjects.persons.Person -> PERSONS
14 Oct 2004 14:30:55,765 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.enums.Salutation, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:55,906 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.demographics.Zipcode, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:55,937 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.enums.Country, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,093 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.demographics.Zipcode, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,093 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.enums.Country, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,140 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.enums.Sex, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,171 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.enums.IncomeGroup, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,203 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.demographics.Demographic, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,265 INFO ReflectHelper : reflection optimizer disabled for: nc.dhhs.common.identifiers.SocialSecurityNumber, IllegalArgumentException: Cannot find matching method/constructor
14 Oct 2004 14:30:56,265 INFO Configuration : processing one-to-many association mappings
14 Oct 2004 14:30:56,265 INFO Configuration : processing one-to-one association property references
14 Oct 2004 14:30:56,265 INFO Configuration : processing foreign key constraints
14 Oct 2004 14:30:56,312 INFO Dialect : Using dialect: net.sf.hibernate.dialect.SQLServerDialect
14 Oct 2004 14:30:56,328 INFO SettingsFactory: Use outer join fetching: true
14 Oct 2004 14:30:56,328 INFO ConnectionProviderFactory: Initializing connection provider: net.sf.hibernate.connection.DatasourceConnectionProvider
14 Oct 2004 14:30:56,343 INFO NamingHelper : JNDI InitialContext properties:{}
14 Oct 2004 14:30:56,343 INFO DatasourceConnectionProvider: Using datasource: jdbc/MSSQLDataSource
14 Oct 2004 14:30:56,359 INFO TransactionManagerLookupFactory: instantiating TransactionManagerLookup: net.sf.hibernate.transaction.WeblogicTransactionManagerLookup
14 Oct 2004 14:30:56,375 INFO TransactionManagerLookupFactory: instantiated TransactionManagerLookup
14 Oct 2004 14:30:56,531 WARN SettingsFactory: Could not obtain connection metadata
java.sql.SQLException: This JDBC 2.0 method is not implemented
at weblogic.jdbc.mssqlserver4.TdsDatabaseMetaData.supportsResultSetType(TdsDatabaseMetaData.java:3198)
at weblogic.jdbc.wrapper.DatabaseMetaData_weblogic_jdbc_mssqlserver4_MicrosoftDatabaseMetaData.supportsResultSetType(Unknown Source)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
at nc.dhhs.servlets.InitServlet.getFactory(InitServlet.java:143)
at nc.dhhs.servlets.InitServlet.initializeHibernateSession(InitServlet.java:104)
at nc.dhhs.servlets.InitServlet.init(InitServlet.java:79)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3238)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3224)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
14 Oct 2004 14:30:56,531 INFO SettingsFactory: Use scrollable result sets: false
14 Oct 2004 14:30:56,531 INFO SettingsFactory: Use JDBC3 getGeneratedKeys(): false
14 Oct 2004 14:30:56,531 INFO SettingsFactory: Optimize cache for minimal puts: false
14 Oct 2004 14:30:56,531 INFO SettingsFactory: echoing all SQL to stdout
14 Oct 2004 14:30:56,531 INFO SettingsFactory: Query language substitutions: {}
14 Oct 2004 14:30:56,531 INFO SettingsFactory: cache provider: net.sf.hibernate.cache.EhCacheProvider
14 Oct 2004 14:30:56,546 INFO Configuration : instantiating and configuring caches
14 Oct 2004 14:30:56,609 INFO SessionFactoryImpl: building session factory


Top
 Profile  
 
 Post subject: net.sf.hibernate.PropertyAccessException:
PostPosted: Fri Oct 15, 2004 10:11 am 
Newbie

Joined: Thu Oct 14, 2004 2:33 pm
Posts: 2
<b>New Information:

I found that by removing the 'final' and creating methods inside the top persistence class, e.g. Person, I did not get the error. In fact, any class that extends this class does not get the error.

Modifications:

I added the following to Person:</b>

public Long getKey() {
return super.getKey();
}

public Timestamp getVersion() {
return super.getVersion();
}

protected void setKey(Long key) {
super.setKey(key);
}

protected void setVersion(Timestamp t) {
super.setVersion(t);
}

<b>These changes allowed Hibernate to configure properly; however, when I attempted to use I received the following exception:</b>


JDIProxy attached

nc.dhhs.WCS.exceptions.PersistenceException: net.sf.hibernate.PropertyAccessException: Exception occurred inside getter of nc.dhhs.WCS.businessObjects.persons.Person.version

at nc.dhhs.WCS.framework.DAO.save(DAO.java:188)
at Controller.addPerson(Controller.jpf:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:1498)
at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:1433)
at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:764)
at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:211)
at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:594)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: net.sf.hibernate.PropertyAccessException: Exception occurred inside getter of nc.dhhs.WCS.businessObjects.persons.Person.version
at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:99)
at net.sf.hibernate.persister.AbstractEntityPersister.getPropertyValues(AbstractEntityPersister.java:246)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:896)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:775)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
at nc.dhhs.WCS.framework.DAO.save(DAO.java:183)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:96)
... 34 more
Caused by: java.lang.NoSuchMethodError: nc.dhhs.WCS.framework.Persistable.getVersion()Ljava/sql/Timestamp;
at nc.dhhs.WCS.businessObjects.persons.Person.getVersion(Person.java:125)
... 39 more

<b>When the getter was called, it appears not to be able to find the superclass setter.</b>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.