[WLW10.3] - Export EAR fails with java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Doc ID 1347209.1)

Last updated on JULY 03, 2017

Applies to:

Oracle Workshop for Weblogic - Version 10.3 and later
Information in this document applies to any platform.

Symptoms

Exporting EAR from WLW IDE fails randomly in some workspaces and shutsdown
the workspace. However it works fine in some workspaces.


java.lang.ExceptionInInitializerError
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.bea.workshop.controls.core.publish.AssemblyRunner.runAssembly(AssemblyRunner.java:119)
at com.bea.workshop.controls.core.publish.WlwControlsAssemblyRunner.run0(WlwControlsAssemblyRunner.java:143)
at com.bea.workshop.controls.core.publish.WlwControlsAssemblyRunner.access$000(WlwControlsAssemblyRunner.java:34)
at com.bea.workshop.controls.core.publish.WlwControlsAssemblyRunner$1.run(WlwControlsAssemblyRunner.java:49)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at com.bea.workshop.controls.core.publish.WlwControlsAssemblyRunner.run(WlwControlsAssemblyRunner.java:59)
at com.bea.workshop.controls.core.publish.AssemblyPublishTask$AssemblyTask.assembleEar(AssemblyPublishTask.java:99)
at com.bea.workshop.controls.core.publish.AssemblyPublishTask$AssemblyTask.processWebModule(AssemblyPublishTask.java:75)
at com.bea.workshop.wls.core.server.model.WeblogicWebPublishOperation.processRootChildModule(WeblogicWebPublishOperation.java:127)
at com.bea.workshop.wls.core.server.model.WeblogicWebPublishOperation.processRootModule(WeblogicWebPublishOperation.java:93)
at com.bea.workshop.wls.core.server.model.WeblogicPublishOperation.execute(WeblogicPublishOperation.java:92)
at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1189)
at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:744)
at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:607)
at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:503)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassFormatError: org/apache/log4j/helpers/OptionConverter : invalid constant string at 148 (Caused by java.lang.ClassFormatError: org/apache/log4j/helpers/OptionConverter : invalid constant string at 148)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at com.bea.wlw.util.internal.WlwLoggerCommons.<init>(WlwLoggerCommons.java:33)
at com.bea.wlw.util.internal.WlwLogger.getInstance(WlwLogger.java:87)
at com.bea.control.assembly.internal.AssemblerImpl.<clinit>(AssemblerImpl.java:37)
... 25 more
Caused by: java.lang.ClassFormatError: org/apache/log4j/helpers/OptionConverter : invalid constant string at 148
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.bea.workshop.common.util.classloader.JarClassLoader.findClass(JarClassLoader.java:146)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms