Contributions
Re: SOAP UI removes Carriage Returns and Line Feeds
Thank you very much! The ${="\r"} - helps me a lot! I have mocked response, and it is like yours, I mean my response also containsboundaries. My problem wasthat SoapUI saves mock xml file, and as a break-line it uses "\n" (LF), at least in Windows 10, but I need normal windows "\r\n" (my response is consuming by some another service, and this service is looking for "\r\n", bot not for only "\n"). So, I go to SoapUI [Preferences] - [UI Settings] and checked there "Normalize line-break". After that Soap UI began using"\r\n" (CR LF) as a line-break. But it didnot solve my problem, because my Soap UI mock service (which was deployed to the Tomcat server) continued to reply me the xml with ONLY"\n". And only when I added${="\r\n"} - it started reply with correct line-break (that is precedes "\n")! I don't know whether it is a bug or just some magic, but I spent three days trying to solve it. And I would like to wish nobody will face this problem, or if they will, they can find my message. P.S. I checked line-breaks with the help of Notepad++ ([View] - [Show Symbol] check Show All Characters)6.3KViews0likes0CommentsRe: NullPointerException with mock and TomCat
Rupert, thank you! It seems the problem has gone away. I have reinstall Tomcat and JREto: Tomcatapache-tomcat-7.0.73 JDK 8u112-windows-i586 JRE1.8.0_112 and itworked! P.S. aboutTomcat 7 I read in your bookhttps://books.google.com.ua/books?id=QUXfBgAAQBAJ&pg=PA3&lpg=PA3&dq=soap+ui+tomcat+version&source=bl&ots=pb0R0RElzn&sig=lp2inXC_1hR2j5BiL0c8dmfVZrw&hl=uk&sa=X&ved=0ahUKEwiAqICv3azQAhXFiSwKHfbIDaYQ6AEISjAG#v=onepage&q=soap%20ui%20tomcat%20version&f=false3.7KViews1like1CommentRe: NullPointerException with mock and TomCat
I'm using the last version of TomCat (9 version) and the last one of JRE. More accurately about Java I would be able to write tomorrow. About other errors during the first request- tomorrow I will provide stack trace. You should see SoapUI startup in the logs You mean TomCat log file? Or Soap UI has it own logs? Thank you!3.7KViews0likes3CommentsRe: NullPointerException with mock and TomCat
Hi, thank you for your reply. About "soapui-settings.xml": I have created many variants of war file, with checked "Include Global Settings" and without, but I can't get rid of this error. If I check"Include Global Settings" then the settings file is appears in "\WEB-INF\soapui" otherwise not. I mean eventually, in any case, in the local and in the global settings files there are everywhere "proxyEnabled" is set to false, but the error still occurs. Another interesting point is that when I'm opening mocked service web interface for the first time, then I can see an error I have written. And when I refresh the page, then error text is changing to: exception javax.servlet.ServletException: Servlet.init() for servlet SoapUIMockServlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:745) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: Could not initialize class com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:361) com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:129) com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:114) com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.<init>(MockAsWarServlet.java:317) com.eviware.soapui.mockaswar.MockAsWarServlet.init(MockAsWarServlet.java:71) javax.servlet.GenericServlet.init(GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:745) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Unknown Source) P.S. I have also tried to deploy another mock from the example on thesmartbear site (about currency exchange), but got the same problem. P.S.P.S.it could be not a proxy problem, but anyway I need to fix it, and I would be appreciated for any help. Thank you!3.7KViews0likes5Comments- 3.7KViews0likes7Comments
NullPointerException with mock and TomCat
Hi, could anybody please help me? About my problem- I have created mock project, after that I have deployed it as a war file to the TomCat server. But when I'm trying to open mock web application I'm getting an error -java.lang.NullPointerException. On my machine proxy is disabled and I also have disabled proxy in the mock project, but the stack trace shows another info: at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.createPacSelector(IEProxySearchStrategy.java:70) at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.getProxySelector(IEProxySearchStrategy.java:44) at com.btr.proxy.search.desktop.win.WinProxySearchStrategy.getProxySelector(WinProxySearchStrategy.java:37) at com.btr.proxy.search.desktop.DesktopProxySearchStrategy.getProxySelector(DesktopProxySearchStrategy.java:34) at com.btr.proxy.search.ProxySearch.getProxySelector(ProxySearch.java:193) at com.eviware.soapui.impl.wsdl.support.http.ProxyUtils.setGlobalProxy(ProxyUtils.java:176) at com.eviware.soapui.model.propertyexpansion.PropertyExpander.<clinit>(PropertyExpander.java:71) And I can't figure out why Soap UItries to use proxy when I have disabled it. I have disassembled "soapui-5.2.1.jar", and found that place, where null point exception occurs. Also I have noticed thatSoap UI will use the proxy only if a flag named "proxyEnabled" is equals to"true". The value for this flag is stored in "soapui-settings.xml", where I already set it to "false". And I really don't understandwhere Soap UI gets "true" for proxy. Thank youSolved3.7KViews0likes8Comments