Hibernate version:
3.1.3
Mapping documents:
Regulation.hbm.xml
<hibernate-mapping>
<class name="regulation.regulation.Regulation" table="regulations_tbl">
<id name="id" type="integer">
<column name="id" sql-type="Number(5)"/>
<generator class="assigned" />
</id>
<property name="no" type="integer"/>
<property name="rdate" type="date"/>
<property name="title" type="string"/>
<property name="dptname" type="string"/>
<property name="volumes" type="string"/>
<property name="edate" type="date"/>
<property name="reorganize" type="string"/>
<property name="supplement" type="string"/>
<property name="note" type="string"/>
<property name="filename" type="string"/>
<property name="type" column="class" type="string"/>
</class>
</hibernate-mapping>
Regulation.java
package regulation.regulation;
import java.util.Date;
public class Regulation
{
private Integer id;
private Integer no;
private Date rdate;
private String title;
private String dptname;
private String volumes;
private Date edate;
private String reorganize;
private String supplement;
private String note;
private String filename;
private String type;
public Regulation()
{
super();
}
public void setId(Integer id)
{
this.id = id;
}
public Integer getId()
{
return id;
}
public void setNo(Integer no)
{
this.no = no;
}
public Integer getNo()
{
return no;
}
public void setRdate(Date rdate)
{
this.rdate = rdate;
}
public Date getRdate()
{
return rdate;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setDptname(String dptname)
{
this.dptname = dptname;
}
public String getDptname()
{
return dptname;
}
public void setVolumes(String volumes)
{
this.volumes = volumes;
}
public String getVolumes()
{
return volumes;
}
public void setEdate(Date edate)
{
this.edate = edate;
}
public Date getEdate()
{
return edate;
}
public void setReorganize(String reorganize)
{
this.reorganize = reorganize;
}
public String getReorganize()
{
return reorganize;
}
public void setSupplement(String supplement)
{
this.supplement = supplement;
}
public String getSupplement()
{
return supplement;
}
public void setNote(String note)
{
this.note = note;
}
public String getNote()
{
return note;
}
public void setFilename(String filename)
{
this.filename = filename;
}
public String getFilename()
{
return filename;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
}
Full stack trace of any exception that occurs:
2006-05-29 18:14:39,375 ERROR [org.hibernate.property.BasicPropertyAccessor] - IllegalArgumentException in class: regulation.regulation.Regulation, getter method of property: id
2006-05-29 18:14:39,375 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] - Applying rules to determine whether transaction should rollback on org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of regulation.regulation.Regulation.id
2006-05-29 18:14:39,375 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] - Winning rollback rule is: null
2006-05-29 18:14:39,375 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] - No relevant rollback rule found: applying superclass default
2006-05-29 18:14:39,375 DEBUG [org.springframework.transaction.interceptor.TransactionInterceptor] - Invoking rollback for transaction on regulation.regulation.RegulationDao.getRegulationList due to throwable [org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of regulation.regulation.Regulation.id]
2006-05-29 18:14:39,375 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] - Triggering beforeCompletion synchronization
2006-05-29 18:14:39,375 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] - Initiating transaction rollback
2006-05-29 18:14:39,375 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] - Rolling back Hibernate transaction on Session [org.hibernate.impl.SessionImpl@1fc]
2006-05-29 18:14:39,390 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] - Triggering afterCompletion synchronization
2006-05-29 18:14:39,390 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] - Clearing transaction synchronization
2006-05-29 18:14:39,390 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] - Removed value [org.springframework.orm.hibernate3.SessionHolder@203] for key [org.hibernate.impl.SessionFactoryImpl@204] from thread [ApplicationServerThread-0]
2006-05-29 18:14:39,390 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] - Resetting read-only flag of JDBC Connection [512(oracle.jdbc.driver.T4CConnection@201)]
2006-05-29 18:14:39,390 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] - Closing Hibernate Session [org.hibernate.impl.SessionImpl@1fc] after transaction
2006-05-29 18:14:39,390 DEBUG [org.springframework.orm.hibernate3.SessionFactoryUtils] - Closing Hibernate Session
2006-05-29 18:14:39,390 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Cleared thread-bound request context: com.evermind.server.http.EvermindHttpServletRequest@1f9
2006-05-29 18:14:39,390 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Could not complete request
org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of regulation.regulation.Regulation.id
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171)
at org.hibernate.tuple.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:176)
at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3257)
at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:2983)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:215)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:77)
................................
................................
................................
Caused by: java.lang.IllegalArgumentException: this is not an instance of the method's owning class
Name and version of the database you are using:
oracle 9i
|