0 Replies Latest reply on Oct 29, 2014 5:20 AM by Amrish Kumar

    Getting Error in My Application Using Jboss EAP 6.2

    Amrish Kumar Newbie

      Hi,

       

      I am using Jboss EAP 6.2. Here I am using ComplexLong for Age. I have implemented this class

      public class ComplexLong extends Presentable implements com.tiscon.util.db.ComplexLong {

          public ComplexLong() {

              setLongValue( null );

          }

       

       

          public ComplexLong( Long value ) {

              setLongValue( value );

          }

       

       

          public ComplexLong( long value ) {

              setLongValue( new Long( value ) );

          }

       

       

          public int compareTo( Object obj ){

              return this.getLongValue().compareTo( ((ComplexLong)obj).getLongValue() );

          }

       

      I am getting error message:

      29.10.14 14:27:43.035 [1:8080-1] [ERROR] db.populateValueObject - IllegalArgumentException:

      java.lang.IllegalArgumentException: java.lang.ClassCastException@1ee9a09

        at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at com.tiscon.util.db.SqlStatementHandler.populateValueObject(SqlStatementHandler.java:70)

        at com.tiscon.util.db.Persister.select(Persister.java:326)

        at com.tiscon.util.db.Persister.select(Persister.java:313)

        at com.hp.tiscon.eclaims.logistics.service.persistence.ReverseOrderPersisterBean.loadReverseOrderSearchResult(ReverseOrderPersisterBean.java:109)

        at com.hp.tiscon.eclaims.logistics.service.persistence.ReverseOrderPersisterBean.loadReverseOrderSearchResult(ReverseOrderPersisterBean.java:88)

        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:597)

        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      com.tiscon.util.db.PersisterReflectionException: Wrong parameter type for 'getAge' method in class (this should not happen, we are not providing any parameters)'com.hp.tiscon.eclaims.logistics.model.reverse.ReverseOrderSearch'.