1 Reply Latest reply on Sep 28, 2005 3:14 PM by 666705

    java.lang.reflect.InvocationTargetException

    666705
      Hi,
      I am trying to run my application under a clustered environment using weblogic 8.1. However, this error message occurs when the getConnection() method is being called. The application runs well in weblogic 6.1. I have also tried to recompile my application using weblogic 8.1 jar, but the error still occur. Anybody has any idea what might went wrong. Thank you.

      Error Message
      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 TestConnection.getConnection(TestConnection.java:36)
      at TestConnection.main(TestConnection.java:14)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unkno
      wn Source)
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
      ... 30 more
      --------------- nested within: ------------------
      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
      class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
      nnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exceptio
      n:
      [java.lang.reflect.InvocationTargetException - with target exception:
      [java.lang.ArrayIndexOutOfBoundsException: 159]]
      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 TestConnection.getConnection(TestConnection.java:36)
      at TestConnection.main(TestConnection.java:14)
      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 TestConnection.getConnection(TestConnection.java:36)
      at TestConnection.main(TestConnection.java:14)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 159
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_oracle_jdbc_driver_OracleConnection_812_WLStub.ensureInitialized(Unkno
      wn Source)
      at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolC
      onnection_oracle_jdbc_driver_OracleConnection_812_WLStub.<init>(Unknown Source)
      ... 30 more
      --------------- nested within: ------------------
      weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
      class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolCo
      nnection_oracle_jdbc_driver_OracleConnection_812_WLStub ] - with nested exceptio
      n:
      [java.lang.reflect.InvocationTargetException - with target exception:
      [java.lang.ArrayIndexOutOfBoundsException: 159]]
      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 TestConnection.getConnection(TestConnection.java:36)
      at TestConnection.main(TestConnection.java:14)