Forum Discussion
ITAbteilung
15 years agoContributor
Hi Robert,
thanks for the update. I tried the nightly build on friday and the one of today. For all projects that worked with the wargenerator before, there is now an exception. Here is the INFO stack followed by the exception:
It neither works with .xml project files, nor with composite projects and it has nothing to do with the external script option. It also seems that the content of the project doesn't matter because it appears on all my projects and I also tried to set up a dummy project with very basic content, too.
Please take a look at that,
thanks in advance,
Pat
thanks for the update. I tried the nightly build on friday and the one of today. For all projects that worked with the wargenerator before, there is now an exception. Here is the INFO stack followed by the exception:
test@testmachine:~/Mocks/sim03> ../SoapUI/soapui-pro-4.0.2-nightly/bin/wargenerator.sh -w true -d TomcatInstance/webapps/TEST/ SoapMocks/ContactManagement-soapui-project.xml
================================
=
= SOAPUI_HOME = /appfolder/Mocks/SoapUI/soapui-pro-4.0.2-nightly
=
================================
soapUI Pro 4.0.2-SNAPSHOT MockAsWar Generator
11:47:48,962 INFO [DefaultSoapUICore] Creating new settings at [/appfolder/soapui-settings.xml]
11:47:49,544 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/appfolder/Mocks/sim03/scripts]
11:47:49,546 INFO [DefaultSoapUICore] Adding listeners from [/appfolder/Mocks/SoapUI/soapui-pro-4.0.2-nightly/bin/listeners/demo-listeners.xml]
11:47:50,436 INFO [WsdlProject] Loaded project from [file:/appfolder/Mocks/sim03/SoapMocks/ContactManagement-soapui-project.xml]
11:47:50,726 INFO [WsdlProject] Saved project [ContactManagement] to [/tmp/ContactManagement-project.xml - 57980 bytes
11:47:50,726 INFO [SoapUIProMockAsWarGenerator] Creating WAR file with endpoint [ContactManagement]
11:47:50,735 INFO [MockAsWar] Creating WAR directory in [/appfolder/Mocks/sim03/TomcatInstance/webapps/TEST]
11:47:50,738 INFO [JarPackager] Coping files from /appfolder/Mocks/SoapUI/soapui-pro-4.0.2-nightly/bin/../lib to /appfolder/Mocks/sim03/TomcatInstance/webapps/TEST/WEB-INF/lib
11:47:50,901 INFO [WsdlProject] Loaded project from [file:/appfolder/Mocks/sim03/TomcatInstance/webapps/TEST/WEB-INF/soapui/ContactManagement-project.xml]
Exception in thread "SwingWorker" java.lang.NullPointerException
at java.io.File.<init>(File.java:194)
at com.eviware.soapui.tools.MockAsWarPro.copyProjectFile(SourceFile:63)
at com.eviware.soapui.tools.MockAsWar.prepareWarFile(MockAsWar.java:228)
at com.eviware.soapui.tools.MockAsWarPro.prepareWarFile(SourceFile:35)
at com.eviware.soapui.tools.MockAsWar$1.construct(MockAsWar.java:90)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Thread.java:595)
It neither works with .xml project files, nor with composite projects and it has nothing to do with the external script option. It also seems that the content of the project doesn't matter because it appears on all my projects and I also tried to set up a dummy project with very basic content, too.
Please take a look at that,
thanks in advance,
Pat