ContributionsMost RecentMost LikesSolutionsRe: Executing external program with groovy I solved modifying the return code from the external files: (1=OK, 2=KO) Executing external program with groovy In a groovy teststep I add the execution of a teraterm macro to connect on remote host: def teraterm_path = "C:\\Program Files (x86)\\teraterm" def process = "$teraterm_path\\ttpmacro.exe SNODO-TestAut-UM-iSSW_IMCS-CP-1.TTL".execute() process.waitFor() def value = process.exitValue() Inside the macro file I set the exitvalue (0=OK, 1=KO). All works fine, but I have the following problem: if the macro file is not present the exitValue is still 0; there is a way to identify that the external program was not executed ? Re: PermGen space error In soapui.bat I modify the JAVA_OPTS as follow: set JAVA_OPTS=-d64 -Xms512m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\" -splash:SoapUI-Spashscreen.png Nothing change. After the PermGen spce error I create a dump file with the command: jmap.exe -J-d64 -dump:format=b,file="C:\Max\Dump\dump_soapui" <pid> With Eclipse Memory Analizer I have the following leaks: 2.908 instances of "com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep", loaded by "sun.misc.Launcher$AppClassLoader @ 0xe0192260" occupy 67.045.640 (35,76%) bytes. These instances are referenced from one instance of "java.util.HashMap$Entry[]", loaded by "<system class loader>" Keywords sun.misc.Launcher$AppClassLoader @ 0xe0192260 java.util.HashMap$Entry[] com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep 701 instances of "groovy.lang.MetaClassImpl", loaded by "sun.misc.Launcher$AppClassLoader @ 0xe0192260" occupy 20.116.784 (10,73%) bytes. Keywords groovy.lang.MetaClassImpl sun.misc.Launcher$AppClassLoader @ 0xe0192260 16.366 instances of "java.lang.String", loaded by "<system class loader>" occupy 18.764.088 (10,01%) bytes. Keywords java.lang.String Re: PermGen space error The error is: 2015-11-16 09:42:13,692 ERROR [errorlog] cannot get error line number! 2015-11-16 09:42:13,692 ERROR [errorlog] java.lang.IllegalStateException: No match found java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Unknown Source) at com.eviware.soapui.support.GroovyUtils.extractErrorLineNumber(GroovyUtils.java:132) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:163) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2015-11-16 09:42:13,693 ERROR [errorlog] java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Re: PermGen space error I add the following options to JAVA_OPTS in soapui.bat but the problem is still present: -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled Massimo PermGen space error I have a soapui test that contains more than 20 project; each project contain different groovy test case If execute all the project, after the execution of same projects I have the following error: An error occurred [PermGen space]. I modify the soapui.bat file adding the "-XX:MaxPermSize=512m" parameter to JAVA_OPTS but the problem is still present. Any suggestion on how fix the problem ? Regards Massimo Re: LDAPS connection Thanks. After I imported the server CA certificate into SoapUI cacerts ldaps works. Regards Massimo Re: LDAPS connection I just try and I have the following error: Tue Nov 10 14:19:35 CET 2015:ERROR:javax.naming.CommunicationException: simple bind failed: 172.24.40.11:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target] javax.naming.CommunicationException: simple bind failed: 172.24.40.11:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target] at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source) at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source) at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.ldap.InitialLdapContext.<init>(Unknown Source) at org.apache.directory.groovyldap.LDAP.performWithContext(Unknown Source) at org.apache.directory.groovyldap.LDAP.exists(Unknown Source) at org.apache.directory.groovyldap.LDAP$exists.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script1.run(Script1.groovy:5) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at sun.security.ssl.AppInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.jndi.ldap.Connection.run(Unknown Source) ... 1 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(Unknown Source) at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at sun.security.validator.Validator.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ... 13 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source) at java.security.cert.CertPathBuilder.build(Unknown Source) ... 19 more LDAPS connection I have a groovy script to connect to LDAP server; the code is: import org.apache.directory.groovyldap.LDAP import org.apache.directory.groovyldap.Search import org.apache.directory.groovyldap.SearchScope ldap = LDAP.newInstance('ldap://<Ip address>:389/', 'cn=Manager,dc=telecom,dc=it', 'italtel123') result = ldap.exists('uid=TstAut01,ou=People,dc=telecom,dc=it') log.info result It's possible to use the ldaps protocol instead of ldap (ldaps://<Ip address>:636/) ? Regards Massimo Solved