Forum Discussion

Todor_Mollov's avatar
Todor_Mollov
Occasional Contributor
17 years ago

the 7 services

Hi,

What is the meaning of this messages and why is it show.
There are currently 7 running soapUI MockServices
I mean beyond the obvious reason that I have more than 7 services running.
Is this is a limitation of SOAPUI to support up to 7 service?
If not how can I workaround it?
Thanks,
Todor

7 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    no, there is not limitation in the number of services.. when are you getting this? How is it a problem?

    regards!

    /Ole
    eviware.com
  • Todor_Mollov's avatar
    Todor_Mollov
    Occasional Contributor
    Hi Ole,

    I get this when I stop one of the service, update it, or add a new service and then start the new service.
    It apperars that when I stop one of the service, there is some problem with the rest of them.
    All of the services use this load script that you kindly advised me to use:
    for( ms in project.mockServiceList )
    {
        // open window
        def dp = com.eviware.soapui.support.UISupport.showDesktopPanel( ms )

        // start mockservice
        ms.start()

        // minimize window
        com.eviware.soapui.SoapUI.desktop.minimize( dp )
    }

    This is a different problem but I also noticed that the logs are full of:
    009-01-29 13:38:57,086 ERROR [errorlog] java.lang.NullPointerException: Cannot invoke method minimize() on null object
    java.lang.NullPointerException: Cannot invoke method minimize() on null object
    at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:784)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at Script1.run(Script1.groovy:10)
    at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:59)
    at com.eviware.soapui.impl.wsdl.WsdlProject.runAfterLoadScript(WsdlProject.java:1211)
    at com.eviware.soapui.impl.wsdl.WsdlProject.afterLoad(WsdlProject.java:416)
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:300)
    at com.eviware.soapui.impl.wsdl.WsdlProject.(WsdlProject.java:167)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:50)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:12)
    at com.eviware.soapui.impl.WorkspaceImpl.loadWorkspace(WorkspaceImpl.java:159)
    at com.eviware.soapui.impl.WorkspaceImpl.(WorkspaceImpl.java:78)
    at com.eviware.soapui.impl.WorkspaceFactoryImpl.openWorkspace(WorkspaceFactoryImpl.java:32)
    at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:515)
    at com.eviware.soapui.SoapUI.main(SoapUI.java:480)
  • Todor_Mollov's avatar
    Todor_Mollov
    Occasional Contributor
    I found a way to reproduce the problem.
    In my workspace there are 7 services. I remove one of the projects and create/start a new one - this involves stopping a service, removeing the old project, creating a new project and starting the new service.
    Then when I try to request some of the other projects I receive this error.

    This seems to me a serious problem and it is strange that nobody had it before. Maybe because we use lots of services.
  • Todor_Mollov's avatar
    Todor_Mollov
    Occasional Contributor
    Could it be that this option was NOT checked in my preferences:
    Leave MockEngine - Will leave the MockEngine running even when all MockServices have stopped resulting in much faster startup-times for new MockServices and 404 errors when trying to call a stopped MockService (instead of connection failure)
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm.. are all these services on the same port?

    Regarding the initial script I provided, please remove the minimize line:

    com.eviware.soapui.SoapUI.desktop.minimize( dp )

    This will get rid of the null-pointer but will probably cause some other issues.. let me know!

    regards,

    /Ole
    eviware.com
  • Todor_Mollov's avatar
    Todor_Mollov
    Occasional Contributor
    Hi,

    These services use the same port. We emulate ESB on which many services are deployed.
    What do you think of this config option: Leave MockEngine, could it be the key?

    Thanks,
    Todor
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    yes.. but it shouldn't be required.. I'll try to simulate this..

    regards!

    /Ole
    eviware.com