aspose file tools*
The moose likes BEA/Weblogic and the fly likes Getting WebLogic AssertionError on executing JAR file in windows box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Getting WebLogic AssertionError on executing JAR file in windows box" Watch "Getting WebLogic AssertionError on executing JAR file in windows box" New topic
Author

Getting WebLogic AssertionError on executing JAR file in windows box

Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 141

Hi, I have prepared a batch job. Through eclipse it is working perfectly fine but when I generate the JAR of my project, and execute it, it is giving me below issue:-

log4j:WARN Please initialize the log4j system properly.
log4j:WARN No such property [datePattern] in org.apache.log4j.ConsoleAppender.
Sat May 3 05:30:48 2014 : Batch Process STARTED at: Sat May 03 17:30:48 SGT 2014
Exception in thread "main" java.lang.AssertionError: Failed to generate class for weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_1033_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:213)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:207)
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:1056)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1784)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:598)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub.getConnection(Unknown Source)
at com.lta.framework.business.db.ConnectionFactory.getConnection(ConnectionFactory.java:61)
at com.lta.icms.business.facade.ICMSFacade.loadFeedbackDetails(ICMSFacade.java:55)
at com.lta.icms.business.service.ICMSBusinessServiceImpl.loadFeedbackDetails(ICMSBusinessServiceImpl.java:25)
at com.lta.icms.IncomingFeedbackAgent.main(IncomingFeedbackAgent.java:178)
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:328)
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:222)
at weblogic.rmi.internal.ClientRuntimeDescriptor.getInterfaces(ClientRuntimeDescriptor.java:138)
at weblogic.rmi.internal.StubInfo.getInterfaces(StubInfo.java:77)
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)
... 28 more




All the lib which I used to developed my project have been explicitly mentioned in CLASSPATH before I execute JAR.. But any idea, what is wrong with it? I'm using lot of JAR especially wlfullclient.jar and ojdbc14.jar.

Kindly suggest


Vinod Vijay Nair
Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 141

Any suggestions?
Abhinav Sonkar
Greenhorn

Joined: Nov 20, 2013
Posts: 16
How are you creating the JAR file? Can you post the contents of manifest.mf file?
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 191

Are you running this process inside of WLS ?
if so, remove ojdbc14.jar from your project.

(and any other jdbc driver, only use the one bundled with wls installation).

http://devwebcl.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting WebLogic AssertionError on executing JAR file in windows box