Forum Discussion

hbjastad's avatar
hbjastad
Contributor
9 years ago

NullPointerException from logger when generating mock war file

When generating mock war file, I get the following NPE:

 

java.lang.NullPointerException

        at com.eviware.soapui.SoapUI.logError(SoapUI.java:950)

        at com.eviware.soapui.SoapUI.logError(SoapUI.java:946)

        at com.eviware.soapui.support.UISupport.showErrorMessage(UISupport.java:739)

        at com.eviware.soapui.tools.MockAsWar.createMockAsWarArchive(MockAsWar.java:122)

 

The war file is generated, so it looks like it's just the logging that causes a NPE. When doing this from the UI, it's not important - but when running in another process (e.g. Maven) it's bad because it will terminate the current thread.

  • Just to show that this happens from both UI and command line:

     

    java.lang.NullPointerException

                    at com.eviware.soapui.SoapUI.logError(SoapUI.java:950)

                    at com.eviware.soapui.SoapUI.logError(SoapUI.java:946)

                    at com.eviware.soapui.support.UISupport.showErrorMessage(UISupport.java:739)

                    at com.eviware.soapui.tools.MockAsWar.createMockAsWarArchive(MockAsWar.java:122)

                    at com.smartbear.servicev.action.project.VirtAsWarAction.perform(VirtAsWarAction.java:102)

                    at com.smartbear.servicev.action.project.VirtAsWarAction.perform(VirtAsWarAction.java:1)

                    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:130)

     

    java.lang.NullPointerException

            at com.eviware.soapui.SoapUI.logError(SoapUI.java:950)

            at com.eviware.soapui.SoapUI.logError(SoapUI.java:946)

            at com.eviware.soapui.support.UISupport.showErrorMessage(UISupport.java:739)

            at com.eviware.soapui.tools.MockAsWar.createMockAsWarArchive(MockAsWar.java:122)

            at com.smartbear.ready.cmd.runner.pro.SoapUIProMockAsWarGenerator.runRunner(SoapUIProMockAsWarGenerator.java:79)

            at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:257)

            at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:160)

            at com.smartbear.ready.cmd.runner.pro.SoapUIProMockAsWarGenerator.main(SoapUIProMockAsWarGenerator.java:29)

      • hbjastad's avatar
        hbjastad
        Contributor
        Thank you for submitting your request! The request details have been sent to SmartBear Customer Care. The following unique identifier was assigned to your request: 00183446