Contributions
Getting XmlException error while loading composite project
Hi All, we are getting "XmlException: error: Unexpected element: CDATA" while loading composite project using maven. We are able to load same project in soapUI without any error. please find below the complete error trace. org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:193) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:155) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:32) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16) at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:337) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158) at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:119) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454) ... 31 more 20:59:41,922 ERROR [SoapUI] An error occured [Failed to load project from file [file:/C:/Jenkins/F3/Ivee+ve/soapUI/]], see error log for details com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Jenkins/F3/Ivee+ve/soapUI/] at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:314) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:155) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:32) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16) at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:337) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158) at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:119) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:193) ... 26 more Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454) ... 31 more Anticipating quick response. Regards Deepak Rawat11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes3CommentsGetting OutOfMemoryError while importing project in SoapUI
Hi All, We are getting "Out of Memory error" while importing project in SoapUI Pro 4.5.2., please find error trace below. java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at com.eviware.soapui.impl.support.loadsave.SplitProject.a(SourceFile:768) at com.eviware.soapui.impl.support.loadsave.SplitProject.load(SourceFile:689) at com.eviware.soapui.impl.support.wsdl.UrlWsdlLoaderPro.handleFile(SourceFile:42) at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:124) at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:98) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:193) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:244) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:180) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:53) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16) at com.eviware.soapui.impl.WorkspaceImpl.loadWorkspace(WorkspaceImpl.java:175) at com.eviware.soapui.impl.WorkspaceImpl.<init>(WorkspaceImpl.java:87) at com.eviware.soapui.impl.WorkspaceFactoryImpl.openWorkspace(WorkspaceFactoryImpl.java:32) at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:795) at com.eviware.soapui.SoapUIPro.a(SourceFile:214) at com.eviware.soapui.SoapUIPro$SoapUIProRunner.run(SourceFile:1611) at com.eviware.soapui.SoapUIPro.main(SourceFile:276) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.exe4j.runtime.WinLauncher.main(Unknown Source) Project size which we are trying to import is of 147 MB Anticipating quick response. Regards Deepak Rawat11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentgetTestStepsOfType() method is not working for rest request
Hi All, We are trying to capture request and response of failed test step in an excel file. we tried below code to get list of steps of type restRequest but nothing is printed in the log. def testSteps= tc.getTestStepsOfType(com.eviware.soapui.impl.rest.RestRequest.class); testSteps.each(){ log.info testSteps.getName() } Any help will be appreciated. Regards Deepak Rawat11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes1CommentRe: Urgent! Socket time out exception
Request work with smaller file size, however it fails when the same requests are run concurrently with more than 15 users No issue with server connection, Request do not reach to the server itself.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsUrgent! Socket time out exception
Soap request contains an MTOM attachment of file size more than 20MB, it throws socket time out error, request do not reach to server. Tried changing time out settings in options to 15 mins, but still the issue is same. Please help12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes3Comments- 12 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes0Comments
- 12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0Comments
Re: Request working with Jmeter but failing in soapUI
HI Erik, We executed the request with the matching headers to Jmeter and we are able to get the response in Raw tab, but no audio file is downloaded/ attached in the response. Even tried with HTTP request with download resources check-box selected but couldn't find any luck. Please find the request response and log details below. Request: POST https://api.foundry.att.com/a1/speechalpha/texttospeech HTTP/1.1 X-Arg: VoiceName= crystal,ClientApp=NoteTaker,ClientVersion=1.0.1 Accept-Language: en-US Authorization: Bearer sb1kiyzefzb0tmuaqrwub1r7zsieexob Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; Zune 4.7; USPortal) Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Content-Type: text/plain Connection: keep-alive Content-Length: 26 Host: api.foundry.att.com Hello Deepak, How are you? Response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=pa+j9dCh4G5KZY1z5gNiLhmj; Path=/3 x-arg-deviceip: 167.219.52.10 X-PostProcessTime: 0 accept-language: en-US X-Forwarded-For: 10.0.240.22 accept: audio/x-wav X-NLUProcessTime: 0 X-TTSProcessTime: 299 authorization: Bearer sb1kiyzefzb0tmuaqrwub1r7zsieexob Date: Mon, 25 Feb 2013 12:12:49 GMT Cache-Control: no-cache X-Watson-Version: watson-6.7.8278 X-Watson-Server: ewr1alp2002wt:8880 X-PreProcessTime: 0 X-Watson-Session: ewr1alp2002wt-201302251212-47852 X-Watson-AppId: enabler.tts.v1-0-3 Content-Disposition: inline; filename=tts.wav x-arg: VoiceName= crystal,ClientApp=NoteTaker,ClientVersion=1.0.1 X-Watson-Req-AppId: enabler.tts.v2proda Content-Type: audio/x-wav Content-Length: 54444 Debug_productid: Sudheer test Debug_applicationid: 632b1dfb-441b-4d36-af79-2ca090b16d76 Debug_content_length: 54444 RIFF¤Ô SoapUI Log: Mon Feb 25 17:42:47 IST 2013:DEBUG:Attempt 1 to execute request Mon Feb 25 17:42:47 IST 2013:DEBUG:Sending request: POST /a1/speechalpha/texttospeech HTTP/1.1 Mon Feb 25 17:42:49 IST 2013:DEBUG:Receiving response: HTTP/1.1 200 OK Mon Feb 25 17:42:49 IST 2013:DEBUG:Connection can be kept alive indefinitely Mon Feb 25 17:42:53 IST 2013:ERROR:com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Internal Server Error for https://api.foundry.att.com/a1/speechalpha/texttospeech Mon Feb 25 17:42:53 IST 2013:ERROR:An error occured [Cannot create Mozilla Browser instance on Windows 7, 6.1, Service Pack 1, CPU arch: x86, Java Oracle Corporation 1.7.0_02, 32-bit], see error log for details Mon Feb 25 17:42:53 IST 2013:INFO:Got response for [Text2SpeechRequest] in 5610ms (54444 bytes) Mon Feb 25 17:43:24 IST 2013:DEBUG:Connection closed Error Log: Mon Feb 25 17:42:53 IST 2013:ERROR:java.lang.RuntimeException: Cannot create Mozilla Browser instance on Windows 7, 6.1, Service Pack 1, CPU arch: x86, Java Oracle Corporation 1.7.0_02, 32-bit java.lang.RuntimeException: Cannot create Mozilla Browser instance on Windows 7, 6.1, Service Pack 1, CPU arch: x86, Java Oracle Corporation 1.7.0_02, 32-bit at com.teamdev.jxbrowser.BrowserFactory.createBrowser(Unknown Source) at com.eviware.soapui.support.components.BrowserComponent.initBrowser(BrowserComponent.java:549) at com.eviware.soapui.support.components.BrowserComponent.setContent(BrowserComponent.java:669) at com.eviware.soapui.impl.rest.panels.request.views.html.HttpHtmlResponseView.setEditorContent(HttpHtmlResponseView.java:177) at com.eviware.soapui.impl.rest.panels.request.views.html.HttpHtmlResponseView.propertyChange(HttpHtmlResponseView.java:242) at java.beans.PropertyChangeSupport.fire(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:85) at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:716) at com.eviware.soapui.impl.wsdl.teststeps.HttpTestRequest.setResponse(HttpTestRequest.java:119) at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:606) at com.eviware.soapui.impl.wsdl.panels.teststeps.HttpTestRequestDesktopPanel.afterSubmit(HttpTestRequestDesktopPanel.java:402) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:157) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(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) Caused by: org.mozilla.xpcom.XPCOMInitializationException: Must call Mozilla.getInstance().initialize() before using this method at org.mozilla.xpcom.Mozilla.getComponentManager(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.ProxyObjectManager.<init>(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.ProxyObjectManager.getInstance(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread.<init>(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.impl.a.e.<init>(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.XPCOMThreadFactory.createThread(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.XPCOM.<init>(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.XPCOM.initialize(Unknown Source) at com.teamdev.jxbrowser.gecko.xpcom.XPCOM.initialize(Unknown Source) at com.teamdev.jxbrowser.mozilla.MozillaBrowserFactory.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.teamdev.jxbrowser.BrowserFactory$a.a(Unknown Source) ... 20 more Caused by: java.lang.NullPointerException ... 37 more Regards Deepak Rawat12 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes0Comments