Forum Discussion

lamikam's avatar
lamikam
New Contributor
8 years ago

mock service 500 error

Running a mock service.  Sending requests is returning 500 server error.  Nothing in log.  How to debug?

If I call soap mock serivce directly from soapui, get this:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<faultstring>java.lang.Exception: No signature of method: static java.lang.Math.Random() is applicable for argument types: () values: []
Possible solutions: random(), find(), any(), acos(double), tan(double), tanh(double)</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

 

apple.laf.useScreenMenuBar=true

awt.toolkit=sun.awt.windows.WToolkit

com.apple.mrj.application.apple.menu.about.name=SoapUI

exe4j.consoleCodepage=cp0
exe4j.isInstall4j=true
exe4j.launchName=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.3.0.exe
exe4j.moduleName=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.3.0.exe
exe4j.semaphoreName=Local\c:_program_files_(x86)_smartbear_soapui-5.2.1_bin_soapui-5.3.0.exe0
exe4j.tempDir=
exe4j.unextractedPosition=0

file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\

install4j.appDir=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\
install4j.exeDir=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\
install4j.launcherId=64
install4j.swt=false

java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\.install4j\i4jruntime.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\bin\soapui-5.3.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\activation-1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\analytics-core-5.3.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\animal-sniffer-annotations-1.11.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\bcprov-jdk15-144.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\binding-2.0.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\cajo-1.142.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-beanutils-1.7.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-cli-1.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-codec-1.3.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-collections-3.2.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-httpclient-3.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-io-2.4.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-lang-2.4.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\commons-logging-1.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\cssparser-0.9.5.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\dom4j-1.6.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\ezmorph-1.0.5.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\flex-messaging-common-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\flex-messaging-core-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\flex-messaging-opt-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\flex-messaging-proxy-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\flex-messaging-remoting-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\forms-1.0.7.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\google-http-client-1.21.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\google-oauth-client-1.21.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\groovy-all-2.1.7.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\guava-14.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\hamcrest-core-1.3.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\hermes-1.14.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\htmlunit-2.7.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\htmlunit-core-js-2.7.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\httpclient-4.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\httpclient-cache-4.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\httpcore-4.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\httpcore-nio-4.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\httpmime-4.1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\i4jruntime-5.1.14.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\javassist-3.16.1-GA.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jaxen-1.1-beta-8.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jcifs-1.2.9.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jdom-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jettison-1.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jetty-6.1.26.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jetty-util-6.1.26.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jms-1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\joda-time-1.6.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\js-1.7R2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\json-lib-2.2.2-jdk15.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\json-path-0.9.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\json-smart-1.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jsr173_api-1.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jsr305-1.3.9.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\jtidy-r872-jdk15.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\junit-4.11.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\l2fprod-common-directorychooser-7.3.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\l2fprod-common-fontchooser-7.3.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\log4j-1.2.14.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\looks-2.2.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\mail-1.4.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\maven-plugin-api-2.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\nekohtml-1.9.14.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\not-yet-commons-ssl-0.3.11.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\opensaml-2.5.1-1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\openws-1.4.2-1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\org.apache.oltu.oauth2.client-0.31.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\org.apache.oltu.oauth2.common-0.31.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\org.apache.oltu.oauth2.httpclient4-0.31.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\out-app-analytics-provider-5.3.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\proxy-vole-20131209.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\reflections-0.9.9-RC1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\rsyntaxtextarea-2.5.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\sac-1.3.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\saxon-9.1.0.8j.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\saxon-dom-9.1.0.8j.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\serializer-2.7.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\servlet-api-2.5-20081211.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\slf4j-api-1.6.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\swingx-soapui.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\ws-commons-util-1.0.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\wsdl4j-1.6.2-fixed.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\wss4j-1.6.16.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xalan-2.7.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xbean-fixed-2.4.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xbean_xpath-2.4.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xercesImpl-2.9.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xml-apis-1.3.04.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xml-apis-2.9.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xmlParserAPIs-2.6.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xmlpublic-2.4.0.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xmlsec-1.4.5.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xmltooling-1.3.2-1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xmlunit-1.2.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xom-1.1.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\..\lib\xstream-1.3.1.jar;;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\jre\lib\deploy.jar;C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\jre\lib\plugin.jar
java.class.version=51.0
java.endorsed.dirs=c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\endorsed
java.ext.dirs=c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home=c:\program files (x86)\smartbear\soapui-5.2.1\jre
java.io.tmpdir=C:\Users\amikaml\AppData\Local\Temp\
java.library.path=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/bin
java.rmi.server.hostname=0.0.0.0
java.rmi.server.useCodebaseOnly=true
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.7.0_55-b13
java.security.policy=server.policy
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.7
java.util.Arrays.useLegacyMergeSort=true
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.version=1.7.0_55
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.7
java.vm.vendor=Oracle Corporation
java.vm.version=24.55-b03
javafx.macosx.embedded=true
javafx.runtime.version=2.2.55-b13
javafx.version=2.2.55

line.separator=


org.mortbay.log.class=com.eviware.soapui.support.log.JettyLogger

os.arch=x86
os.name=Windows 7
os.version=6.1

path.separator=;

proxySet=false

soapui.ext.actions=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/bin/actions
soapui.ext.libraries=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/bin/ext
soapui.ext.listeners=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/bin/listeners
soapui.home=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/bin
soapui.properties=soapui.properties

sun.arch.data.model=32
sun.awt.enableExtraMouseButtons=true
sun.boot.class.path=c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\resources.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\rt.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\sunrsasign.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\jsse.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\jce.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\charsets.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\lib\jfr.jar;c:\program files (x86)\smartbear\soapui-5.2.1\jre\classes
sun.boot.library.path=c:\program files (x86)\smartbear\soapui-5.2.1\jre\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.3.0.exe
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=Service Pack 1

user.country=US
user.dir=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1\bin
user.home=C:\Users\amikaml
user.language=en
user.name=amikaml
user.script=
user.timezone=America/New_York
user.variant=

wsi.dir=C:\Program Files (x86)\SmartBear\SoapUI-5.2.1/wsi-test-tools

 

 

 

  • lamikam's avatar
    lamikam
    8 years ago

    It was my bad.  Had incorrect script. Works now. Sorry for the inconvenience. 

  • KarelHusa's avatar
    KarelHusa
    Champion Level 2

    Does the mock service contain any scripts? If so, can you please atach them? An error within a groovy script might cause such bevahior.

     

    Karel

     

    • lamikam's avatar
      lamikam
      New Contributor

      It was my bad.  Had incorrect script. Works now. Sorry for the inconvenience.