12 Replies Latest reply on Dec 12, 2005 5:06 PM by 666705

    java.lang.reflect.InvocationTargetException

    3004

      Hi all.

      I have a little problem. I did a program that execute with a unix cron, this
      program gets a connection using a weblogic connection pools, but when I try to
      get a connection , java throws this exception :

      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
      05)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
      90)
      at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
      Replacer.java:237)
      at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
      1)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      655)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
      45)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
      bjectInputStream.java:119)
      at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
      va:112)
      at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:285)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:244)
      at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
      Unknown Source)
      at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
      own Source)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
      wn Source)
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown Source)
      ... 29 more
      --------------- nested within: ------------------
      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
      class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
      nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested exceptio
      n:
      [java.lang.reflect.InvocationTargetException - with target exception:
      [java.lang.ArrayIndexOutOfBoundsException: 57]]
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
      07)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
      90)
      at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
      Replacer.java:237)
      at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
      1)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      655)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
      45)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
      bjectInputStream.java:119)
      at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
      va:112)
      at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:285)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:244)
      at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
      Unknown Source)
      at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
      own Source)
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
      05)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
      90)
      at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
      Replacer.java:237)
      at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
      1)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      655)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
      45)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
      bjectInputStream.java:119)
      at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
      va:112)
      at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:285)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:244)
      at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
      Unknown Source)
      at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
      own Source)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
      wn Source)
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown Source)
      ... 29 more
      --------------- nested within: ------------------
      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
      class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
      nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested exceptio
      n:
      [java.lang.reflect.InvocationTargetException - with target exception:
      [java.lang.ArrayIndexOutOfBoundsException: 57]]
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
      07)
      at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
      90)
      at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
      at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
      Replacer.java:237)
      at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
      1)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      655)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
      45)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
      646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
      bjectInputStream.java:119)
      at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
      va:112)
      at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:285)
      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
      ef.java:244)
      at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
      Unknown Source)
      at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
      own Source)

      and WL console reports this:

      [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable: [Null
      ex
      ception passed, creating stack trace for offending caller]
      at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
      ava:28)
      at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
      a:104)
      at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

      Anybody can tell, how can I solve this?

      Thanks.
        • 1. Re: java.lang.reflect.InvocationTargetException
          3004
          Hi. What version of weblogic (what sp?). Also, can you verify that the classpath
          of the client is consistent with the classpath of the server? (At least does not
          contain any possibly conflicting weblogic or jdbc classes)?
          Can you verify at the server whether the pool you want actually succeeded in making
          connections?
          thanks,
          Joe

          Adrian Morales wrote:
          Hi all.

          I have a little problem. I did a program that execute with a unix cron, this
          program gets a connection using a weblogic connection pools, but when I try to
          get a connection , java throws this exception :

          java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
          orAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
          onstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
          05)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
          90)
          at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
          at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
          Replacer.java:237)
          at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
          1)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          655)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
          45)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
          bjectInputStream.java:119)
          at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
          va:112)
          at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
          at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:285)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:244)
          at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
          Unknown Source)
          at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
          own Source)
          Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
          at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
          onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
          wn Source)
          at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
          onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown Source)
          ... 29 more
          --------------- nested within: ------------------
          weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
          class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
          nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested exceptio
          n:
          [java.lang.reflect.InvocationTargetException - with target exception:
          [java.lang.ArrayIndexOutOfBoundsException: 57]]
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
          07)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
          90)
          at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
          at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
          Replacer.java:237)
          at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
          1)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          655)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
          45)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
          bjectInputStream.java:119)
          at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
          va:112)
          at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
          at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:285)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:244)
          at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
          Unknown Source)
          at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
          own Source)
          Exception in thread "main" java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
          orAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
          onstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
          05)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
          90)
          at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
          at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
          Replacer.java:237)
          at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
          1)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          655)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
          45)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
          bjectInputStream.java:119)
          at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
          va:112)
          at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
          at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:285)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:244)
          at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
          Unknown Source)
          at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
          own Source)
          Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
          at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
          onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
          wn Source)
          at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
          onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown Source)
          ... 29 more
          --------------- nested within: ------------------
          weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
          class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
          nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested exceptio
          n:
          [java.lang.reflect.InvocationTargetException - with target exception:
          [java.lang.ArrayIndexOutOfBoundsException: 57]]
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
          07)
          at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
          90)
          at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
          at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
          Replacer.java:237)
          at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
          1)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          655)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
          45)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
          646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
          bjectInputStream.java:119)
          at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
          va:112)
          at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
          at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:285)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
          ef.java:244)
          at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
          Unknown Source)
          at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
          own Source)

          and WL console reports this:

          [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable: [Null
          ex
          ception passed, creating stack trace for offending caller]
          at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
          ava:28)
          at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
          a:104)
          at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

          Anybody can tell, how can I solve this?

          Thanks.
          • 2. Re: java.lang.reflect.InvocationTargetException
            3004

            I have the similar problem with Weblogic 8.1 SP2.

            Pls let me know if you anyone have solutions for this fix ...
            java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
            at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
            at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
            at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
            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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:925)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
            at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
            at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
            at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown
            Source)
            at com.fanniemae.customersolutions.risknet.util.DBUtil.getConnection(DBUtil.java:123)
            at com.fanniemae.customersolutions.risknet.util.DBUtil.getConnection(DBUtil.java:206)
            at com.fanniemae.customersolutions.risknet.dao.CounterpartyFinderDAO.findCntrPrtyByName(CounterpartyFinderDAO.java:1777)
            at com.fanniemae.customersolutions.risknet.dao.CounterpartyFinderDAO.main(CounterpartyFinderDAO.java:5750)
            Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown
            Source)
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown
            Source)
            ... 32 more

            "Adrian Morales" <amorales@tvirtual.com.mx> wrote:
            >
            Hi all.

            I have a little problem. I did a program that execute with a unix cron,
            this
            program gets a connection using a weblogic connection pools, but when
            I try to
            get a connection , java throws this exception :

            java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
            Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
            orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
            onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
            05)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
            90)
            at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
            at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
            Replacer.java:237)
            at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
            1)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            655)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
            45)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
            bjectInputStream.java:119)
            at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
            va:112)
            at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:285)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:244)
            at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
            Unknown Source)
            at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
            own Source)
            Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
            onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
            wn Source)
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
            onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
            Source)
            ... 29 more
            --------------- nested within: ------------------
            weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
            generate
            class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
            nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
            exceptio
            n:
            [java.lang.reflect.InvocationTargetException - with target exception:
            [java.lang.ArrayIndexOutOfBoundsException: 57]]
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
            07)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
            90)
            at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
            at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
            Replacer.java:237)
            at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
            1)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            655)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
            45)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
            bjectInputStream.java:119)
            at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
            va:112)
            at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:285)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:244)
            at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
            Unknown Source)
            at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
            own Source)
            Exception in thread "main" java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
            Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
            orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
            onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
            05)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
            90)
            at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
            at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
            Replacer.java:237)
            at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
            1)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            655)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
            45)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
            bjectInputStream.java:119)
            at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
            va:112)
            at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:285)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:244)
            at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
            Unknown Source)
            at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
            own Source)
            Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
            onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
            wn Source)
            at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
            onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
            Source)
            ... 29 more
            --------------- nested within: ------------------
            weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
            generate
            class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
            nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
            exceptio
            n:
            [java.lang.reflect.InvocationTargetException - with target exception:
            [java.lang.ArrayIndexOutOfBoundsException: 57]]
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
            07)
            at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
            90)
            at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
            at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
            Replacer.java:237)
            at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
            1)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            655)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
            45)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            646)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
            at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
            bjectInputStream.java:119)
            at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
            va:112)
            at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:285)
            at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
            ef.java:244)
            at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
            Unknown Source)
            at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
            own Source)

            and WL console reports this:

            [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
            [Null
            ex
            ception passed, creating stack trace for offending caller]
            at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
            ava:28)
            at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
            a:104)
            at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

            Anybody can tell, how can I solve this?

            Thanks.
            • 3. Re: java.lang.reflect.InvocationTargetException
              3004


              Gopal wrote:
              I have the similar problem with Weblogic 8.1 SP2.

              Pls let me know if you anyone have solutions for this fix ...
              java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              Hi. Is there a chance that the classpath of the client contains a different version
              of either weblogic or jdbc driver than the server's?
              thanks,
              Joe

              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
              at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
              at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
              at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
              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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:925)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
              at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown
              Source)
              at com.fanniemae.customersolutions.risknet.util.DBUtil.getConnection(DBUtil.java:123)
              at com.fanniemae.customersolutions.risknet.util.DBUtil.getConnection(DBUtil.java:206)
              at com.fanniemae.customersolutions.risknet.dao.CounterpartyFinderDAO.findCntrPrtyByName(CounterpartyFinderDAO.java:1777)
              at com.fanniemae.customersolutions.risknet.dao.CounterpartyFinderDAO.main(CounterpartyFinderDAO.java:5750)
              Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown
              Source)
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown
              Source)
              ... 32 more

              "Adrian Morales" <amorales@tvirtual.com.mx> wrote:
              Hi all.

              I have a little problem. I did a program that execute with a unix cron,
              this
              program gets a connection using a weblogic connection pools, but when
              I try to
              get a connection , java throws this exception :

              java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
              Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
              orAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
              onstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
              05)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
              90)
              at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
              at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
              Replacer.java:237)
              at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
              1)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              655)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
              45)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              646)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
              bjectInputStream.java:119)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
              va:112)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:285)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:244)
              at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
              Unknown Source)
              at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
              own Source)
              Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
              onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
              wn Source)
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
              onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
              Source)
              ... 29 more
              --------------- nested within: ------------------
              weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
              generate
              class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
              nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
              exceptio
              n:
              [java.lang.reflect.InvocationTargetException - with target exception:
              [java.lang.ArrayIndexOutOfBoundsException: 57]]
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
              07)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
              90)
              at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
              at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
              Replacer.java:237)
              at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
              1)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              655)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
              45)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              646)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
              bjectInputStream.java:119)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
              va:112)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:285)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:244)
              at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
              Unknown Source)
              at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
              own Source)
              Exception in thread "main" java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
              Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
              orAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
              onstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
              05)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
              90)
              at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
              at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
              Replacer.java:237)
              at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
              1)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              655)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
              45)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              646)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
              bjectInputStream.java:119)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
              va:112)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:285)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:244)
              at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
              Unknown Source)
              at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
              own Source)
              Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
              onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
              wn Source)
              at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
              onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
              Source)
              ... 29 more
              --------------- nested within: ------------------
              weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
              generate
              class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
              nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
              exceptio
              n:
              [java.lang.reflect.InvocationTargetException - with target exception:
              [java.lang.ArrayIndexOutOfBoundsException: 57]]
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
              07)
              at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
              90)
              at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
              at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
              Replacer.java:237)
              at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
              1)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              655)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
              45)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
              646)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
              bjectInputStream.java:119)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
              va:112)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:285)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
              ef.java:244)
              at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
              Unknown Source)
              at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
              own Source)

              and WL console reports this:

              [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
              [Null
              ex
              ception passed, creating stack trace for offending caller]
              at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
              ava:28)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
              a:104)
              at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

              Anybody can tell, how can I solve this?

              Thanks.
              • 4. Re: java.lang.reflect.InvocationTargetException
                3004

                Joe,

                I too get the same problem with oracle thin driver. I verified that we use same
                driver ojdbc14.jar at server and client sides.

                Appreciate your response ...



                Joe Weinstein <joeNOSPAM@bea.com> wrote:
                Hi. What version of weblogic (what sp?). Also, can you verify that the
                classpath
                of the client is consistent with the classpath of the server? (At least
                does not
                contain any possibly conflicting weblogic or jdbc classes)?
                Can you verify at the server whether the pool you want actually succeeded
                in making
                connections?
                thanks,
                Joe

                Adrian Morales wrote:
                Hi all.

                I have a little problem. I did a program that execute with a unix
                cron, this
                program gets a connection using a weblogic connection pools, but when
                I try to
                get a connection , java throws this exception :

                java.lang.reflect.InvocationTargetException
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                orAccessorImpl.java:39)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                onstructorAccessorImpl.java:27)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                05)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                90)
                at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                Replacer.java:237)
                at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                1)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                655)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                45)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                646)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                bjectInputStream.java:119)
                at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                va:112)
                at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:285)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:244)
                at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                Unknown Source)
                at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                own Source)
                Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                wn Source)
                at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                Source)
                ... 29 more
                --------------- nested within: ------------------
                weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                to generate
                class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                exceptio
                n:
                [java.lang.reflect.InvocationTargetException - with target exception:
                [java.lang.ArrayIndexOutOfBoundsException: 57]]
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                07)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                90)
                at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                Replacer.java:237)
                at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                1)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                655)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                45)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                646)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                bjectInputStream.java:119)
                at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                va:112)
                at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:285)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:244)
                at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                Unknown Source)
                at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                own Source)
                Exception in thread "main" java.lang.reflect.InvocationTargetException
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                orAccessorImpl.java:39)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                onstructorAccessorImpl.java:27)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                05)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                90)
                at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                Replacer.java:237)
                at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                1)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                655)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                45)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                646)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                bjectInputStream.java:119)
                at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                va:112)
                at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:285)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:244)
                at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                Unknown Source)
                at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                own Source)
                Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                wn Source)
                at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                Source)
                ... 29 more
                --------------- nested within: ------------------
                weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                to generate
                class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                exceptio
                n:
                [java.lang.reflect.InvocationTargetException - with target exception:
                [java.lang.ArrayIndexOutOfBoundsException: 57]]
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                07)
                at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                90)
                at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                Replacer.java:237)
                at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                1)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                655)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                45)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                646)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                bjectInputStream.java:119)
                at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                va:112)
                at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:285)
                at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                ef.java:244)
                at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                Unknown Source)
                at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                own Source)

                and WL console reports this:

                [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
                [Null
                ex
                ception passed, creating stack trace for offending caller]
                at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
                ava:28)
                at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
                a:104)
                at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
                at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

                Anybody can tell, how can I solve this?

                Thanks.
                • 5. Re: java.lang.reflect.InvocationTargetException
                  3004


                  Gopal wrote:
                  Joe,

                  I too get the same problem with oracle thin driver. I verified that we use same
                  driver ojdbc14.jar at server and client sides.

                  Appreciate your response ...
                  Ok, and can you verify that the pool actually succeeded in making connections?
                  thnks

                  >
                  >
                  >
                  Joe Weinstein <joeNOSPAM@bea.com> wrote:
                  Hi. What version of weblogic (what sp?). Also, can you verify that the
                  classpath
                  of the client is consistent with the classpath of the server? (At least
                  does not
                  contain any possibly conflicting weblogic or jdbc classes)?
                  Can you verify at the server whether the pool you want actually succeeded
                  in making
                  connections?
                  thanks,
                  Joe

                  Adrian Morales wrote:

                  Hi all.

                  I have a little problem. I did a program that execute with a unix
                  cron, this
                  program gets a connection using a weblogic connection pools, but when
                  I try to
                  get a connection , java throws this exception :

                  java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                  Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                  orAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                  onstructorAccessorImpl.java:27)
                  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                  05)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                  90)
                  at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                  at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                  Replacer.java:237)
                  at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                  java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                  1)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  655)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                  45)
                  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  646)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                  at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                  bjectInputStream.java:119)
                  at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                  va:112)
                  at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:285)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:244)
                  at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                  Unknown Source)
                  at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                  own Source)
                  Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                  at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                  onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                  wn Source)
                  at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                  onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                  Source)
                  ... 29 more
                  --------------- nested within: ------------------
                  weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                  to generate
                  class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                  nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                  exceptio
                  n:
                  [java.lang.reflect.InvocationTargetException - with target exception:
                  [java.lang.ArrayIndexOutOfBoundsException: 57]]
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                  07)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                  90)
                  at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                  at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                  Replacer.java:237)
                  at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                  java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                  1)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  655)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                  45)
                  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  646)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                  at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                  bjectInputStream.java:119)
                  at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                  va:112)
                  at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:285)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:244)
                  at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                  Unknown Source)
                  at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                  own Source)
                  Exception in thread "main" java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                  Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                  orAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                  onstructorAccessorImpl.java:27)
                  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                  05)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                  90)
                  at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                  at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                  Replacer.java:237)
                  at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                  java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                  1)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  655)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                  45)
                  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  646)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                  at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                  bjectInputStream.java:119)
                  at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                  va:112)
                  at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:285)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:244)
                  at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                  Unknown Source)
                  at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                  own Source)
                  Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                  at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                  onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                  wn Source)
                  at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                  onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                  Source)
                  ... 29 more
                  --------------- nested within: ------------------
                  weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                  to generate
                  class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                  nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                  exceptio
                  n:
                  [java.lang.reflect.InvocationTargetException - with target exception:
                  [java.lang.ArrayIndexOutOfBoundsException: 57]]
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                  07)
                  at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                  90)
                  at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                  at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                  Replacer.java:237)
                  at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                  java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                  1)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  655)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                  45)
                  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                  646)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                  at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                  bjectInputStream.java:119)
                  at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                  va:112)
                  at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:285)
                  at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                  ef.java:244)
                  at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                  Unknown Source)
                  at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                  own Source)

                  and WL console reports this:

                  [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
                  [Null
                  ex
                  ception passed, creating stack trace for offending caller]
                  at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
                  ava:28)
                  at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
                  a:104)
                  at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
                  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

                  Anybody can tell, how can I solve this?

                  Thanks.
                  • 6. Re: java.lang.reflect.InvocationTargetException
                    3004


                    Joe,

                    Yes .. Connections are successfully created in the pool ... Also, The client could
                    successfully get connections in weblogic 7.0SP2 ... But when we created the pool
                    in 8.1 sp2, client cannot obtain the connections ....

                    Joe Weinstein <joeNOSPAM@bea.com> wrote:
                    >
                    >
                    Gopal wrote:
                    Joe,

                    I too get the same problem with oracle thin driver. I verified that
                    we use same
                    driver ojdbc14.jar at server and client sides.

                    Appreciate your response ...
                    Ok, and can you verify that the pool actually succeeded in making connections?
                    thnks
                    Joe Weinstein <joeNOSPAM@bea.com> wrote:
                    Hi. What version of weblogic (what sp?). Also, can you verify that
                    the
                    classpath
                    of the client is consistent with the classpath of the server? (At least
                    does not
                    contain any possibly conflicting weblogic or jdbc classes)?
                    Can you verify at the server whether the pool you want actually succeeded
                    in making
                    connections?
                    thanks,
                    Joe

                    Adrian Morales wrote:

                    Hi all.

                    I have a little problem. I did a program that execute with a unix
                    cron, this
                    program gets a connection using a weblogic connection pools, but when
                    I try to
                    get a connection , java throws this exception :

                    java.lang.reflect.InvocationTargetException
                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                    Method)
                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                    orAccessorImpl.java:39)
                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                    onstructorAccessorImpl.java:27)
                    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                    05)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                    90)
                    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                    at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                    Replacer.java:237)
                    at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                    java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                    1)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    655)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                    45)
                    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    646)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                    bjectInputStream.java:119)
                    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                    va:112)
                    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:285)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:244)
                    at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                    Unknown Source)
                    at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                    own Source)
                    Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                    onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                    wn Source)
                    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                    onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                    Source)
                    ... 29 more
                    --------------- nested within: ------------------
                    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                    to generate
                    class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                    nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                    exceptio
                    n:
                    [java.lang.reflect.InvocationTargetException - with target exception:
                    [java.lang.ArrayIndexOutOfBoundsException: 57]]
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                    07)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                    90)
                    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                    at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                    Replacer.java:237)
                    at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                    java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                    1)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    655)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                    45)
                    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    646)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                    bjectInputStream.java:119)
                    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                    va:112)
                    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:285)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:244)
                    at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                    Unknown Source)
                    at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                    own Source)
                    Exception in thread "main" java.lang.reflect.InvocationTargetException
                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
                    Method)
                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
                    orAccessorImpl.java:39)
                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
                    onstructorAccessorImpl.java:27)
                    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                    05)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                    90)
                    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                    at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                    Replacer.java:237)
                    at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                    java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                    1)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    655)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                    45)
                    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    646)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                    bjectInputStream.java:119)
                    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                    va:112)
                    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:285)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:244)
                    at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                    Unknown Source)
                    at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                    own Source)
                    Caused by: java.lang.ArrayIndexOutOfBoundsException: 57
                    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                    onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.ensureInitialized(Unkno
                    wn Source)
                    at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
                    onnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub.<init>(Unknown
                    Source)
                    ... 29 more
                    --------------- nested within: ------------------
                    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed
                    to generate
                    class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                    nnection_com_sybase_jdbc2_jdbc_SybConnection_812_WLStub ] - with nested
                    exceptio
                    n:
                    [java.lang.reflect.InvocationTargetException - with target exception:
                    [java.lang.ArrayIndexOutOfBoundsException: 57]]
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                    07)
                    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7
                    90)
                    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                    at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObject
                    Replacer.java:237)
                    at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                    java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:91
                    1)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    655)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
                    45)
                    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
                    646)
                    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
                    bjectInputStream.java:119)
                    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
                    va:112)
                    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:285)
                    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
                    ef.java:244)
                    at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(
                    Unknown Source)
                    at tvirtual.teanani6.cliente.ordenesrastreo.agenda.ReplicaInfo.main(Unkn
                    own Source)

                    and WL console reports this:

                    [ConnectionImpl] : Detected Connection Leak!!!!! : java.lang.Throwable:
                    [Null
                    ex
                    ception passed, creating stack trace for offending caller]
                    at weblogic.utils.StackTraceUtils.throwable2StackTrace(StackTraceUtils.j
                    ava:28)
                    at weblogic.jdbc.rmi.internal.ConnectionImpl.peerGone(ConnectionImpl.jav
                    a:104)
                    at weblogic.rjvm.RJVMImpl$PeerGoneDeliverer.execute(RJVMImpl.java:1394)
                    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

                    Anybody can tell, how can I solve this?

                    Thanks.
                    • 7. Re: java.lang.reflect.InvocationTargetException
                      666705
                      Hi

                      We are using WebLogic 8.1 SP 2 and we are getting this error. This error is generated when connection is being created.

                      Any help would be appreciated.

                      Thanks
                      vinaY

                      Starting process in C:\bea\user_projects\Utopia
                      C:\bea\jdk141_05\bin\javaw.exe -classpath "C:\bea\user_projects\Utopia\APP-INF\lib\authorization.jar;C:\bea\user_projects\Utopia\APP-INF\lib\jdom.jar;C:\bea\user_projects\Utopia\APP-INF\lib\log4j-1.2.8.jar;C:\bea\user_projects\Utopia\APP-INF\lib\VersionSchemas.jar;C:\bea\user_projects\Utopia\APP-INF\lib\xercesImpl.jar;C:\bea\user_projects\Utopia\APP-INF\lib\Schemas.jar;C:\bea\user_projects\Utopia\APP-INF\lib\ManualCalc.jar;C:\bea\user_projects\Utopia\APP-INF\lib\ojdbc14_g.jar;C:\bea\jdk141_05\jre\lib\rt.jar;C:\bea\jdk141_05\lib\tools.jar;C:\Utopia\rfp2\properties;C:\bea\weblogic81\server\lib\knex.jar;C:\bea\weblogic81\common\lib\log4j.jar;C:\bea\weblogic81\server\lib\debugging.jar;C:\bea\weblogic81\javelin\lib\javelin.jar;C:\bea\weblogic81\server\lib\wlw-lang.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbserver44.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbclient44.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\weblogic81\server\lib\webserviceclient.jar;C:\bea\weblogic81\server\lib\webserviceclient+ssl.jar;C:\bea\weblogic81\server\lib\xbean.jar;C:\bea\weblogic81\server\lib\wlxbean.jar;C:\bea\weblogic81\server\lib\xqrl.jar;C:\bea\weblogic81\server\lib\netui\netui-compiler.jar" Tester
                      Process started
                      java.class.pathC:\bea\user_projects\Utopia\APP-INF\lib\authorization.jar;C:\bea\user_projects\Utopia\APP-INF\lib\jdom.jar;C:\bea\user_projects\Utopia\APP-INF\lib\log4j-1.2.8.jar;C:\bea\user_projects\Utopia\APP-INF\lib\VersionSchemas.jar;C:\bea\user_projects\Utopia\APP-INF\lib\xercesImpl.jar;C:\bea\user_projects\Utopia\APP-INF\lib\Schemas.jar;C:\bea\user_projects\Utopia\APP-INF\lib\ManualCalc.jar;C:\bea\user_projects\Utopia\APP-INF\lib\ojdbc14_g.jar;C:\bea\jdk141_05\jre\lib\rt.jar;C:\bea\jdk141_05\lib\tools.jar;C:\Utopia\rfp2\properties;C:\bea\weblogic81\server\lib\knex.jar;C:\bea\weblogic81\common\lib\log4j.jar;C:\bea\weblogic81\server\lib\debugging.jar;C:\bea\weblogic81\javelin\lib\javelin.jar;C:\bea\weblogic81\server\lib\wlw-lang.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbserver44.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbclient44.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\weblogic81\server\lib\webserviceclient.jar;C:\bea\weblogic81\server\lib\webserviceclient+ssl.jar;C:\bea\weblogic81\server\lib\xbean.jar;C:\bea\weblogic81\server\lib\wlxbean.jar;C:\bea\weblogic81\server\lib\xqrl.jar;C:\bea\weblogic81\server\lib\netui\netui-compiler.jar
                      path.separator;
                      FILE =true
                      Entered NYcomm Validator
                      Entering NYComm CalcTransformer
                      java.lang.reflect.InvocationTargetException
                           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                           at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                           at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                           at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                           at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                           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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                           at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                           at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                           at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                           at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                           at com.gefa.esg.connection.IASConnectionGetter.getDBConnection(IASConnectionGetter.java:77)
                           at com.gefa.esg.connection.IASConnectionGetter.getConnection(IASConnectionGetter.java:45)
                           at com.gefa.esg.connection.ConnectionFactory.getIConnection(ConnectionFactory.java:120)
                           at com.gefa.esg.connection.ConnectionFactory.getTransaction(ConnectionFactory.java:103)
                           at com.genworth.ebg.utopia.calcs.manual.dao.AbstractDBDAO.execute(AbstractDBDAO.java:51)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getDBRates(RateCacheHandler.java:40)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.addToContainer(RateCacheHandler.java:93)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.product.NYCommRateCache.processRates(NYCommRateCache.java:43)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.populateContainer(RateCacheHandler.java:64)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getRates(RateCacheHandler.java:31)
                           at com.genworth.ebg.utopia.calcs.manual.calculators.product.nycomm.v1_0.NYCommCalculator.calculate(NYCommCalculator.java:54)
                           at com.genworth.ebg.utopia.calcs.manual.ManualCalculator.calculate(ManualCalculator.java:63)
                           at Tester.main(Tester.java:14)
                      Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
                           at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown Source)
                           at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
                           ... 41 more
                      --------------- nested within: ------------------
                      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exception:
                      [java.lang.reflect.InvocationTargetException - with target exception:
                      [java.lang.ArrayIndexOutOfBoundsException: 159]]
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                           at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                           at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                           at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                           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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                           at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                           at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                           at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                           at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                           at com.gefa.esg.connection.IASConnectionGetter.getDBConnection(IASConnectionGetter.java:77)
                           at com.gefa.esg.connection.IASConnectionGetter.getConnection(IASConnectionGetter.java:45)
                           at com.gefa.esg.connection.ConnectionFactory.getIConnection(ConnectionFactory.java:120)
                           at com.gefa.esg.connection.ConnectionFactory.getTransaction(ConnectionFactory.java:103)
                           at com.genworth.ebg.utopia.calcs.manual.dao.AbstractDBDAO.execute(AbstractDBDAO.java:51)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getDBRates(RateCacheHandler.java:40)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.addToContainer(RateCacheHandler.java:93)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.product.NYCommRateCache.processRates(NYCommRateCache.java:43)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.populateContainer(RateCacheHandler.java:64)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getRates(RateCacheHandler.java:31)
                           at com.genworth.ebg.utopia.calcs.manual.calculators.product.nycomm.v1_0.NYCommCalculator.calculate(NYCommCalculator.java:54)
                           at com.genworth.ebg.utopia.calcs.manual.ManualCalculator.calculate(ManualCalculator.java:63)
                           at Tester.main(Tester.java:14)
                      java.lang.reflect.InvocationTargetException
                           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                           at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                           at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                           at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                           at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                           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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                           at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                           at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                           at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                           at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                           at com.gefa.esg.connection.IASConnectionGetter.getDBConnection(IASConnectionGetter.java:77)
                           at com.gefa.esg.connection.IASConnectionGetter.getConnection(IASConnectionGetter.java:45)
                           at com.gefa.esg.connection.ConnectionFactory.getIConnection(ConnectionFactory.java:120)
                           at com.gefa.esg.connection.ConnectionFactory.getTransaction(ConnectionFactory.java:103)
                           at com.genworth.ebg.utopia.calcs.manual.dao.AbstractDBDAO.execute(AbstractDBDAO.java:51)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getDBRates(RateCacheHandler.java:40)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.addToContainer(RateCacheHandler.java:93)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.product.NYCommRateCache.processRates(NYCommRateCache.java:43)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.populateContainer(RateCacheHandler.java:64)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getRates(RateCacheHandler.java:31)
                           at com.genworth.ebg.utopia.calcs.manual.calculators.product.nycomm.v1_0.NYCommCalculator.calculate(NYCommCalculator.java:54)
                           at com.genworth.ebg.utopia.calcs.manual.ManualCalculator.calculate(ManualCalculator.java:63)
                           at Tester.main(Tester.java:14)
                      Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
                           at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown Source)
                           at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
                           ... 41 more
                      --------------- nested within: ------------------
                      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exception:
                      [java.lang.reflect.InvocationTargetException - with target exception:
                      [java.lang.ArrayIndexOutOfBoundsException: 159]]
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
                           at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                           at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                           at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                           at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                           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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                           at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                           at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                           at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                           at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                           at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                           at com.gefa.esg.connection.IASConnectionGetter.getDBConnection(IASConnectionGetter.java:77)
                           at com.gefa.esg.connection.IASConnectionGetter.getConnection(IASConnectionGetter.java:45)
                           at com.gefa.esg.connection.ConnectionFactory.getIConnection(ConnectionFactory.java:120)
                           at com.gefa.esg.connection.ConnectionFactory.getTransaction(ConnectionFactory.java:103)
                           at com.genworth.ebg.utopia.calcs.manual.dao.AbstractDBDAO.execute(AbstractDBDAO.java:51)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getDBRates(RateCacheHandler.java:40)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.addToContainer(RateCacheHandler.java:93)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.product.NYCommRateCache.processRates(NYCommRateCache.java:43)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.populateContainer(RateCacheHandler.java:64)
                           at com.genworth.ebg.utopia.calcs.manual.ratecache.RateCacheHandler.getRates(RateCacheHandler.java:31)
                           at com.genworth.ebg.utopia.calcs.manual.calculators.product.nycomm.v1_0.NYCommCalculator.calculate(NYCommCalculator.java:54)
                           at com.genworth.ebg.utopia.calcs.manual.ManualCalculator.calculate(ManualCalculator.java:63)
                           at Tester.main(Tester.java:14)
                      Exception in thread "main"
                      • 8. Re: java.lang.reflect.InvocationTargetException
                        666705
                        I am having the same problems. Have you found a solution? please let me know.
                        My code used to be working fine on Weblogic 8.1 SP1. And no one has made any changes to code. And suddenly, I got the following error
                        weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
                        class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
                        nnection_oracle_jdbc_driver_OracleConnection_814_WLStub ] - with nested exceptio
                        n:
                        [java.lang.reflect.InvocationTargetException - with target exception:
                        [java.lang.IllegalAccessError: tried to access method weblogic.rmi.internal.Stub
                        Info.getInterfaces(Ljava/lang/ClassLoader;)[Ljava/lang/Class; from class weblogi
                        c.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_j
                        dbc_driver_OracleConnection_814_WLStub]]
                        at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:8
                        07)
                        • 9. Re: java.lang.reflect.InvocationTargetException
                          666705
                          Has anybody got any solution for the problem then please let me know as i am too struggling with the same.

                          Thanks
                          Pramod
                          • 10. Re: java.lang.reflect.InvocationTargetException
                            666705
                            Hi

                            The Target Invocation Error is solved for me and the solution for this problem is incompatible type of packages in the project/application.

                            See if there is a conflict in the version of the Jars which you have in your application.


                            Thanks
                            vinaY
                            vinaY
                            • 11. Re: java.lang.reflect.InvocationTargetException
                              666705
                              Hi All
                              I fould the reason for this error,
                              it happens when a method you are calling is not available.
                              the weblogic.jar is the main culprit in this case.

                              please make sure that you compile your code with the same version of weblogic.jar which you have on the server.

                              thanks
                              regards
                              ravi
                              • 12. Re: java.lang.reflect.InvocationTargetException
                                666705
                                Hi,
                                I am also getting the same exception as given below
                                We had applied SP2 for Weblogic 8.1 recently and this exception started occuring after that.I changed my build script which is used to create the application jar file so that I use the same weblogic.jar as there in the server,but still I am getting this exception.

                                Any help is greatly appreciated.

                                Thanks
                                Jay


                                java.lang.reflect.InvocationTargetException
                                     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                                     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                                     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                                     at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                                     at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                                     at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                                     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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                                     at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                                     at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                                     at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                                     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                                     at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                                     at hibbertgroup.confirmationService.helpers.JDBCStaticHelper.init(JDBCStaticHelper.java:43)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.init(ConfirmationGenerator.java:267)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.generate(ConfirmationGenerator.java:58)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.main(ConfirmationGenerator.java:47)
                                Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
                                     at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown Source)
                                     at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
                                     ... 32 more
                                --------------- nested within: ------------------
                                weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exception:
                                [java.lang.reflect.InvocationTargetException - with target exception:
                                [java.lang.ArrayIndexOutOfBoundsException: 159]]
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                                     at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                                     at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                                     at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                                     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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                                     at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                                     at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                                     at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                                     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                                     at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                                     at hibbertgroup.confirmationService.helpers.JDBCStaticHelper.init(JDBCStaticHelper.java:43)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.init(ConfirmationGenerator.java:267)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.generate(ConfirmationGenerator.java:58)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.main(ConfirmationGenerator.java:47)
                                Exception in thread "main" java.lang.reflect.InvocationTargetException
                                     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                                     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                                     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                                     at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                                     at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                                     at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                                     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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                                     at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                                     at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                                     at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                                     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                                     at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                                     at hibbertgroup.confirmationService.helpers.JDBCStaticHelper.init(JDBCStaticHelper.java:43)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.init(ConfirmationGenerator.java:267)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.generate(ConfirmationGenerator.java:58)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.main(ConfirmationGenerator.java:47)
                                Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
                                     at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unknown Source)
                                     at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
                                     ... 32 more
                                --------------- nested within: ------------------
                                weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exception:
                                [java.lang.reflect.InvocationTargetException - with target exception:
                                [java.lang.ArrayIndexOutOfBoundsException: 159]]
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
                                     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
                                     at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
                                     at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:237)
                                     at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
                                     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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
                                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
                                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
                                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
                                     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
                                     at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
                                     at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
                                     at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
                                     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285)
                                     at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
                                     at weblogic.jdbc.common.internal.RmiDataSource_812_WLStub.getConnection(Unknown Source)
                                     at hibbertgroup.confirmationService.helpers.JDBCStaticHelper.init(JDBCStaticHelper.java:43)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.init(ConfirmationGenerator.java:267)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.generate(ConfirmationGenerator.java:58)
                                     at hibbertgroup.confirmationService.ConfirmationGenerator.main(ConfirmationGenerator.java:47)