java.lang.IllegalArgumentException: Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V

Hibernate JIRA | Shawn Samuel | 1 decade ago
  1. 0

    Take two classes: com.acme.Foo and com.acme.Bar. Bar has a protected method doSomething() which Foo uses. If Foo attempts to call Bar.doSomething() on a Bar instance that has been read using Hibernate, you will get an IllegalArgumentException because Hibernate is attempting to invoke a protected method that is not in its package. For example: Traceback (innermost last): File "fixAligmentSpans.py", line 10, in ? java.lang.IllegalArgumentException: Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V at net.sf.cglib.proxy.MethodProxy$1.invoke(MethodProxy.java:95) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at calhoun.bean.AlignmentSegment$$EnhancerByCGLIB$$185d0627.setSpan(<generated>) at calhoun.bean.AlignmentSpan.removeSegment(AlignmentSpan.java:80) at calhoun.bean.AlignmentSpan$$FastClassByCGLIB$$4c63552f.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:183) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at calhoun.bean.AlignmentSpan$$EnhancerByCGLIB$$62302948.removeSegment(<generated>) 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) ...

    Hibernate JIRA | 1 decade ago | Shawn Samuel
    java.lang.IllegalArgumentException: Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V
  2. 0

    Take two classes: com.acme.Foo and com.acme.Bar. Bar has a protected method doSomething() which Foo uses. If Foo attempts to call Bar.doSomething() on a Bar instance that has been read using Hibernate, you will get an IllegalArgumentException because Hibernate is attempting to invoke a protected method that is not in its package. For example: Traceback (innermost last): File "fixAligmentSpans.py", line 10, in ? java.lang.IllegalArgumentException: Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V at net.sf.cglib.proxy.MethodProxy$1.invoke(MethodProxy.java:95) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at calhoun.bean.AlignmentSegment$$EnhancerByCGLIB$$185d0627.setSpan(<generated>) at calhoun.bean.AlignmentSpan.removeSegment(AlignmentSpan.java:80) at calhoun.bean.AlignmentSpan$$FastClassByCGLIB$$4c63552f.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:183) at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108) at calhoun.bean.AlignmentSpan$$EnhancerByCGLIB$$62302948.removeSegment(<generated>) 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) ...

    Hibernate JIRA | 1 decade ago | Shawn Samuel
    java.lang.IllegalArgumentException: Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V
  3. 0

    java.cglib.devel - Accessing Protected Members from a Subclass Constructor - msg#00028 - Recent Discussion OSDir.com

    osdir.com | 6 months ago
    net.sf.cglib.core.CodeGenerationException: java.lang.IllegalArgumentException-->Protected method: createPersistenceBrokerTemplate()Lorg/springframework/orm/ojb/PersistenceBrokerTemplate;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Users forum - Accessing prototype scoped panel beans using @SpringBean annotation

    nabble.com | 1 week ago
    java.lang.IllegalArgumentException: Protected method: onBeforeRender()V
  6. 0

    Exception when creating an instance of MongoDbFactory

    Stack Overflow | 1 year ago | S V
    java.lang.IllegalStateException: Failed to load ApplicationContext

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Protected method: setSpan(Lcalhoun/bean/AlignmentSpan;)V

      at net.sf.cglib.proxy.MethodProxy$1.invoke()
    2. IDEA
      MethodProxy$1.invoke
      1. net.sf.cglib.proxy.MethodProxy$1.invoke(MethodProxy.java:95)
      1 frame
    3. net.sf.hibernate
      CGLIBLazyInitializer.intercept
      1. net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)
      1 frame
    4. calhoun.bean
      AlignmentSpan$$FastClassByCGLIB$$4c63552f.invoke
      1. calhoun.bean.AlignmentSegment$$EnhancerByCGLIB$$185d0627.setSpan(<generated>)
      2. calhoun.bean.AlignmentSpan.removeSegment(AlignmentSpan.java:80)
      3. calhoun.bean.AlignmentSpan$$FastClassByCGLIB$$4c63552f.invoke(<generated>)
      3 frames
    5. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:183)
      1 frame
    6. net.sf.hibernate
      CGLIBLazyInitializer.intercept
      1. net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:108)
      1 frame
    7. calhoun.bean
      AlignmentSpan$$EnhancerByCGLIB$$62302948.removeSegment
      1. calhoun.bean.AlignmentSpan$$EnhancerByCGLIB$$62302948.removeSegment(<generated>)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames