Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

why i am getting the java.lang.ExceptionInInitializerError ?

843838Dec 21 2006 — edited Dec 23 2006
hi .,
i am running a jwsdp web service program.,
i don't know why jvm is throwing this exception..
and how can i solve this problem !..

the build.xml file
<project name="Test" default="compileClient" basedir=".">

	<property file="build.properties"/>

	 <path id="compile.classpath">

	 	<pathelement location="classes"/>

	    <pathelement location="${javamail.jar}"/>

	    <pathelement location="${jaf.jar}"/>

	    <pathelement location="${jaxp-api.jar}"/>

	    <pathelement location="${dom.jar}"/>

	    <pathelement location="${sax.jar}"/>

	    <pathelement location="${xalan.jar}"/>

	    <pathelement location="${xercesImpl.jar}"/>

	    <pathelement location="${jaxrpc-api.jar}"/>

	    <pathelement location="${jaxrpc-spi.jar}"/>

	    <pathelement location="${jaxrpc-impl.jar}"/>

	    <pathelement location="${saaj-api.jar}"/>

	    <pathelement location="${saaj-impl.jar}"/>

	    <pathelement location="${relaxngDatatype.jar}"/>

	    <pathelement location="${xsdlib.jar}"/>

	    <pathelement location="${jax-qname.jar}"/>

	    <pathelement location="${FastInfoset.jar}" />

	    <pathelement location="${jsr173_api.jar}" />

  </path>



	<target name="compileClient" >

		<javac srcdir="." destdir="classes" >

			<classpath refid="compile.classpath"/>

		</javac>

	</target>

	

	<target name="runClient" >

		<java classname="TestClient">

			<classpath refid="compile.classpath"/>

		</java>

	</target>

	

</project>	
----
i can successfully build the file.,
but when i run the target named "runClient"
i am getting this error..
$ ant runClient
Buildfile: build.xml

runClient:
[java] java.lang.ExceptionInInitializerError
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.run (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.UnknownElement.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Task.perform (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.performTasks (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeSortedTargets (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeTarget (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets (ant-1.6.5.jar.s o)
[java] at org.apache.tools.ant.Project.executeTargets (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.runBuild (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.startAnt (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.run (ant-launcher-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.main (ant-launcher-1.6.5.jar.so)
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at java.lang.Class.initializeClass (libgcj.so.7)
[java] at java.lang.Class.newInstance (libgcj.so.7)
[java] at javax.xml.soap.FactoryFinder.newInstance (Unknown Source)
[java] at javax.xml.soap.FactoryFinder.find (Unknown Source)
[java] at javax.xml.soap.SAAJMetaFactory.getInstance (Unknown Source)
[java] at javax.xml.soap.MessageFactory.newInstance (Unknown Source)
[java] at javax.xml.soap.MessageFactory.newInstance (Unknown Source)
[java] at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory (SOAPMess ageContext.java:200)
[java] at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage (SOAPMessageC ontext.java:131)
[java] at com.sun.xml.rpc.client.StreamingSenderState.<init> (StreamingSenderState.ja va:30)
[java] at com.sun.xml.rpc.client.StubBase._start (StubBase.java:92)
[java] at test.service.TestServiceIFC_Stub.sayHi (TestServiceIFC_Stub.java:54)
[java] at TestClient.main (Unknown Source)
[java] at java.lang.reflect.Method.invoke (libgcj.so.7)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute (ant-1.6.5.jar.so)
[java] ...15 more
[java] Caused by: java.util.MissingResourceException: Bundle com.sun.xml.messaging.saaj. soap.LocalStrings not found
[java] at java.util.ResourceBundle.getBundle (libgcj.so.7)
[java] at java.util.ResourceBundle.getBundle (libgcj.so.7)
[java] at java.util.logging.Logger.<init> (libgcj.so.7)
[java] at java.util.logging.Logger.getLogger (libgcj.so.7)
[java] at com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit> (SAAJMetaFacto ryImpl.java:16)
[java] at java.lang.Class.initializeClass (libgcj.so.7)
[java] ...30 more
[java] --- Nested Exception ---
[java] java.lang.ExceptionInInitializerError
[java] at java.lang.Class.initializeClass (libgcj.so.7)
[java] at java.lang.Class.newInstance (libgcj.so.7)
[java] at javax.xml.soap.FactoryFinder.newInstance (Unknown Source)
[java] at javax.xml.soap.FactoryFinder.find (Unknown Source)
[java] at javax.xml.soap.SAAJMetaFactory.getInstance (Unknown Source)
[java] at javax.xml.soap.MessageFactory.newInstance (Unknown Source)
[java] at javax.xml.soap.MessageFactory.newInstance (Unknown Source)
[java] at com.sun.xml.rpc.soap.message.SOAPMessageContext.getMessageFactory (SOAPMess ageContext.java:200)
[java] at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage (SOAPMessageC ontext.java:131)
[java] at com.sun.xml.rpc.client.StreamingSenderState.<init> (StreamingSenderState.ja va:30)
[java] at com.sun.xml.rpc.client.StubBase._start (StubBase.java:92)
[java] at test.service.TestServiceIFC_Stub.sayHi (TestServiceIFC_Stub.java:54)
[java] at TestClient.main (Unknown Source)
[java] at java.lang.reflect.Method.invoke (libgcj.so.7)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.run (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.taskdefs.Java.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.UnknownElement.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Task.perform (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.execute (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Target.performTasks (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeSortedTargets (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Project.executeTarget (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets (ant-1.6.5.jar.s o)
[java] at org.apache.tools.ant.Project.executeTargets (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.runBuild (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.Main.startAnt (ant-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.run (ant-launcher-1.6.5.jar.so)
[java] at org.apache.tools.ant.launch.Launcher.main (ant-launcher-1.6.5.jar.so)
[java] Caused by: java.util.MissingResourceException: Bundle com.sun.xml.messaging.saaj. soap.LocalStrings not found
[java] at java.util.ResourceBundle.getBundle (libgcj.so.7)
[java] at java.util.ResourceBundle.getBundle (libgcj.so.7)
[java] at java.util.logging.Logger.<init> (libgcj.so.7)
[java] at java.util.logging.Logger.getLogger (libgcj.so.7)
[java] at com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit> (SAAJMetaFacto ryImpl.java:16)
[java] at java.lang.Class.initializeClass (libgcj.so.7)
[java] ...30 more

Thank you for your greatful reply..
have a joyous day..

Message was edited by:
shivakumar.t
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2007
Added on Dec 21 2006
1 comment
477 views