Hi .
I'm facing below null pointer exception sometimes.
2012-04-12 09:01:09,187 INFO [STDOUT] Configuring log4j from [jar:file:/usr/cdhs/adobe_livecycle_es3/tmp/adobejb_server1/ArchiveSt ore/5029/soapui-2.0.2.jar!/soapui-log4j.xml]
2012-04-12 09:01:09,188 INFO [STDOUT] Configuring log4j from [jar:file:/usr/cdhs/adobe_livecycle_es3/tmp/adobejb_server1/ArchiveSt ore/5029/soapui-2.0.2.jar!/soapui-log4j.xml]
2012-04-12 09:01:09,193 INFO [STDOUT] Configuring log4j from [jar:file:/usr/cdhs/adobe_livecycle_es3/tmp/adobejb_server1/ArchiveSt ore/5029/soapui-2.0.2.jar!/soapui-log4j.xml]
2012-04-12 09:01:09,202 INFO [STDOUT] Configuring log4j from [jar:file:/usr/cdhs/adobe_livecycle_es3/tmp/adobejb_server1/ArchiveSt ore/5029/soapui-2.0.2.jar!/soapui-log4j.xml]
2012-04-12 09:01:09,245 ERROR [STDERR] java.lang.NullPointerException
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.j ava:129)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.DefaultSoapUICore.getSettings(DefaultSoapUICore.ja va:192)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.SoapUI.getSettings(SoapUI.java:1019)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem.setConfig(Abstract WsdlModelItem.java:116)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.adobe.idp.dsc.webservice.MyWsdlProject.setConfig(WebServiceSoapUI Invoker.java:572)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.adobe.idp.dsc.webservice.MyWsdlProject.setConfig(WebServiceSoapUI Invoker.java:567)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:190)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:126)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:116)
2012-04-12 09:01:09,248 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:106)
2012-04-12 09:01:09,249 ERROR [STDERR] at com.adobe.idp.dsc.webservice.MyWsdlProject.<init>(WebServiceSoapUIInv oker.java:568)
And the line number 129 of DefaultSoapUICore.java is
log.warn( "Failed to load settings from [" + e.getMessage() + "], creating new" );
The only thing can be null is log object. Also you can see that livecycle is trying to initialize log4j before the exception. And as the log message, it seems like there are 4 threads to initialize the log4j instance.
I'm doubting some DefaultSoapUICore instance trying to access log instance before it's initialized.
My question is my doubtion is correct? If so, how can I avoid this problem?
Second, if I want to use my own soapui.jar file to avoid this problem after changing code of DefaultSoapUI.java then what I need to do? I generated new soapui.jar file but I don't know where I need to put it.
Regards
- Denis
North America
Europe, Middle East and Africa
Asia Pacific