java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Simple method invocation problems
    via by 843798,
  • Reflection API: Simple method invocation problems
    via by Neil Robinson,
  • Surprised By Source Code Annotation Behavior
    via by Unknown author,
  • IllegarlArgumentException Error
    via by Unknown author,
  • IllegarlArgumentException Error
    via by ANDRES FELIPE RINCON ZAPATA,
  • After updateing from 2.0.2 to 2.2 I have got strange problems with joined subclasses. After creating some classes and insert it into a Hibernate session, I get during commit an exception (see below). However if I exchange my log4j.xml by a log4j.properties everything is working 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 collections DEBUG 13:40:26.210 listing entities: ERROR 13:40:26.220 IllegalArgumentException in class: Actor, getter method of property: id 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 at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110) at net.sf.hibernate.persister.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:303) at net.sf.hibernate.proxy.HibernateProxyHelper.getIdentifier(HibernateProxyHelper.java:50) at net.sf.hibernate.type.EntityType.toString(EntityType.java:84) at net.sf.hibernate.type.PersistentCollectionType.toString(PersistentCollectionType.java:81) at net.sf.hibernate.impl.Printer.toString(Printer.java:49) at net.sf.hibernate.impl.Printer.toString(Printer.java:82) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2226) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2184) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at JoinedActor.testSearchUser(JoinedActor.java:45) at JoinedActor.main(JoinedActor.java:84) Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class 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) ... 11 more
    via by Kai Prünte,
  • IllegalArgumentException
    via by 3004,
    • java.lang.IllegalArgumentException: object is not an instance of declaring class 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 JarClassLoader.invokeClass(JarClassLoader.java:62) at JarRunner.main(JarRunner.java:42)

    Users with the same issue

    PilleoPilleo
    1 times, last one,
    kjhdofjosvskjhdofjosvs
    2 times, last one,
    tyson925tyson925
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    94 more bugmates