1 Reply Latest reply on Dec 6, 2006 5:52 PM by Jeff Mattson

    java.lang.IllegalAccessException when invoking java.sql.Resu

    Zia Khan Newbie

      Hi,

      I am migrating my appplication to Jboss 4.0.2 from 3.2.6. I started getting this exception when invoking java.sql.ResultSet.getBlob(java.lang.String) method on 4.0.2, it worked fine on 3.2.6. Does anyone know why this is happening? I tried both Oracle and MySQL databases and i get the exact same exception when invoking java.sql.ResultSet.getBlob(java.lang.String) method.

      Thanks in advance,

      Zia

      [2005-Aug-05 02:25:25] INFO - Caused by: java.lang.IllegalAccessException: Method=public abstract java.sql.Blob java.sql.ResultSet.getBlob(java.lang.String) throws java.sql.SQLException does not return Serializable
      [2005-Aug-05 02:25:25] INFO - at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doResultSetMethod(WrapperDataSourceService.java:478)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:252)
      [2005-Aug-05 02:25:25] INFO - at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
      [2005-Aug-05 02:25:25] INFO - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [2005-Aug-05 02:25:25] INFO - at java.lang.reflect.Method.invoke(Method.java:324)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
      [2005-Aug-05 02:25:25] INFO - at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
      [2005-Aug-05 02:25:25] INFO - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [2005-Aug-05 02:25:25] INFO - at java.lang.reflect.Method.invoke(Method.java:324)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [2005-Aug-05 02:25:25] INFO - at java.security.AccessController.doPrivileged(Native Method)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [2005-Aug-05 02:25:25] INFO - at java.lang.Thread.run(Thread.java:534)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      [2005-Aug-05 02:25:25] INFO - at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:118)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
      [2005-Aug-05 02:25:25] INFO - at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
      [2005-Aug-05 02:25:25] INFO - ... 31 more

        • 1. Re: java.lang.IllegalAccessException when invoking java.sql.
          Jeff Mattson Newbie

          I am having the same problem. I've been working on it for two days and can't find anything or any help anywhere else on the internet. I think it has something to do with how my connection here is referred to as a Proxy, and I think that may have something to do with where the ojdbc14.jar is located. In our other application we get a similar error when it IS under server//lib while I can't even access this installtion if it is not under there.

          java.lang.reflect.UndeclaredThrowableException
          at $Proxy52.getConnection(Unknown Source)
          at com.hpc.dms2.dao.ByteArrayBlobType.nullSafeSet(ByteArrayBlobType.java:156)
          at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:140)
          at org.hibernate.persister.entity.BasicEntityPersister.dehydrate(BasicEntityPersister.java:1607)
          at org.hibernate.persister.entity.BasicEntityPersister.update(BasicEntityPersister.java:1953)
          at org.hibernate.persister.entity.BasicEntityPersister.updateOrInsert(BasicEntityPersister.java:189