JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   Forums 
January 17, 2019, 01:27:07 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: PLEASE HELP ME IN THIS.. I DONT KNOW WHY I AM GETTING THIS ERROR.  (Read 42 times)

Gaurav007

  • JPPF Padawan
  • *
  • Posts: 1

java.lang.AssertionError: Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_1036_WLStub
   at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
   at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786)
   at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74)
   at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:254)
   at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:199)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1761)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
   at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
   at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:599)
   at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:204)
   at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
   at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:243)
   at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
   at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
   at weblogic.jdbc.common.internal.RmiDataSource_1036_WLStub.getConnection(Unknown Source)
   at data.common.DBConnectionManager.getConnection(DBConnectionManager.java:61)
   at com.iberia.negocio.test.TestEstimacionValoracion.connectionDatabase(TestEstimacionValoracion.java:38)
   at com.iberia.negocio.test.TestEstimacionValoracion.testing(TestEstimacionValoracion.java:64)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at junit.framework.TestCase.runTest(TestCase.java:176)
   at junit.framework.TestCase.runBare(TestCase.java:141)
   at junit.framework.TestResult$1.protect(TestResult.java:122)
   at junit.framework.TestResult.runProtected(TestResult.java:142)
   at junit.framework.TestResult.run(TestResult.java:125)
   at junit.framework.TestCase.run(TestCase.java:129)
   at junit.framework.TestSuite.runTest(TestSuite.java:255)
   at junit.framework.TestSuite.run(TestSuite.java:250)
   at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
   at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
   at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: java.lang.SecurityException: sealing violation: can't seal package oracle.jdbc.internal: already loaded
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:242)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
   at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
   at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:215)
   at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:135)
   at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:305)
   at weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntimeDescriptor.java:232)
   at weblogic.rmi.internal.ClientRuntimeDescriptor.getInterfaces(ClientRuntimeDescriptor.java:147)
   at weblogic.rmi.internal.StubInfo.getInterfaces(StubInfo.java:80)
   at weblogic.rmi.internal.StubGenerator.<init>(StubGenerator.java:85)
   at weblogic.rmi.internal.StubGenerator.hotCodeGenClass(StubGenerator.java:782)
   at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:766)
   at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:793)
   ... 46 more
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2246
    • JPPF Web site
Re: PLEASE HELP ME IN THIS.. I DONT KNOW WHY I AM GETTING THIS ERROR.
« Reply #1 on: December 14, 2018, 04:40:30 AM »

Hello,

According to this stackoverflow thread, it means that, in your classpath, you have two jar files that contain the "oracle.jdbc.internal" package. Remove one of them from your classpath and the problem should go away.

This being said, I do not see how this issue relates to JPPF, would you mind enlightening us on this?

Sincerely,
-Laurent
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads