Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?=
key=3DHB-557
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-557
Summary: IllegalArgumentException when using log4j.xml
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:=20
core
Versions:
2.1 final
Assignee:=20
Reporter: Kai Pr=C3=BCnte
Created: Tue, 16 Dec 2003 6:50 AM
Updated: Tue, 16 Dec 2003 6:50 AM
Environment: Windows 2000, Java 1.4.2-b28
Description:
After updateing from 2.0.2 to 2.2 I have got strange problems with joined s=
ubclasses. After creating some classes and insert it into a Hibernate sessi=
on, I get during commit an exception (see below).
However if I exchange my log4j.xml by a log4j.properties everything is work=
ing well!
I know it sounds strange, so I will attach the example to this issue.
DEBUG 13:40:26.200 Flushed: 6 (re)creations, 0 updates, 0 removals to 6 co=
llections =20
DEBUG 13:40:26.210 listing entities: =20
ERROR 13:40:26.220 IllegalArgumentException in class: Actor, getter method=
of property: id =20
Problems during configuring Hibernate!
net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred=
calling getter of Actor.id
net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred=
calling getter of Actor.id
=09at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(Basic=
PropertyAccessor.java:110)
=09at net.sf.hibernate.persister.AbstractEntityPersister.getIdentifier(Abst=
ractEntityPersister.java:303)
=09at net.sf.hibernate.proxy.HibernateProxyHelper.getIdentifier(HibernatePr=
oxyHelper.java:50)
=09at net.sf.hibernate.type.EntityType.toString(EntityType.java:84)
=09at net.sf.hibernate.type.PersistentCollectionType.toString(PersistentCol=
lectionType.java:81)
=09at net.sf.hibernate.impl.Printer.toString(Printer.java:49)
=09at net.sf.hibernate.impl.Printer.toString(Printer.java:82)
=09at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:22=
26)
=09at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2184)
=09at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.j=
ava:61)
=09at JoinedActor.testSearchUser(JoinedActor.java:45)
=09at JoinedActor.main(JoinedActor.java:84)
Caused by: java.lang.IllegalArgumentException: object is not an instance of=
declaring class
=09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
=09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
=09at java.lang.reflect.Method.invoke(Method.java:324)
=09at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(Basic=
PropertyAccessor.java:96)
=09... 11 more
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators=
.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|