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 UI tries 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 that Soap 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 understand where Soap UI gets "true" for proxy.
Thank you
Rupert, thank you!
It seems the problem has gone away. I have reinstall Tomcat and JRE to:
Tomcat apache-tomcat-7.0.73
JDK 8u112-windows-i586
JRE1.8.0_112
and it worked!
P.S. about Tomcat 7 I read in your book https://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=false