Forum Discussion

mkrausem's avatar
mkrausem
Occasional Contributor
5 years ago

soapUI 5.6.0. java.lang.NoSuchMethodError with Java12

Hi,

 

sind last week we used soapUI 5.4. with Java8

Now we made a update to soapUI 5.6.0. After installation of Java12 AdoptOpenJdK soapUI writes an error:

 

[exec] SoapUI 5.6.0 TestCase Runner
    [exec] Configuring log4j from [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/soapui-log4j.xml]
    [exec] 12:54:18,641 INFO  [SoapUI] Adding [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/ext/mariadb-java-client-2.6.1.jar] to extensions classpath
    [exec] 12:54:18,642 INFO  [SoapUI] Adding [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/ext/ojdbc6.jar] to extensions classpath
    [exec] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()Z
    [exec]     at org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70)
    [exec]     at org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3073)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259)
    [exec]     at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
    [exec]     at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
    [exec]     at com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.parse(SoapuiSettingsDocumentConfig.java:59)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:259)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:132)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.createSoapUICore(AbstractSoapUIRunner.java:216)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:192)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
    [exec]     at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)

 

SoapUI runs on Redhat 7.8 and

 

openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.2+10, mixed mode, sharing)

 

 

The Fix in https://community.smartbear.com/t5/SoapUI-Open-Source/Soap-UI-5-6-0-tgz-on-Linux-is-broken-FIX-INSIDE/m-p/204960#M30957 don't work - and I don't know why the normal release of soapUI has this bug.

 

Can you help me?

 

Best Regards from Germany, Michael

  • Unga-bunga's avatar
    Unga-bunga
    Regular Visitor

    I got same issue when deploying mock as a .war to a tomcat on another host. Tried to change xmlbeans to 3.0.2 , 4.0.0, 3.1.0. Issue still was present.

     

    So with xmlbeans-3.1.0.jar tomcat throw following exception:

    javax.servlet.ServletException: Servlet.init() for servlet [SoapUIMockServlet] threw exception
    	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
    	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
    	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
    	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
    	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	java.base/java.lang.Thread.run(Thread.java:835)
    Root Cause 
    java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()Z org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70) org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46) org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3066) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259) org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) com.eviware.soapui.config.SoapuiActionsDocumentConfig$Factory.parse(SoapuiActionsDocumentConfig.java:71) com.eviware.soapui.support.action.SoapUIActionRegistry.addConfig(SoapUIActionRegistry.java:142) com.eviware.soapui.support.action.SoapUIActionRegistry.<init>(SoapUIActionRegistry.java:136) com.eviware.soapui.DefaultSoapUICore.initActionRegistry(DefaultSoapUICore.java:584) com.eviware.soapui.DefaultSoapUICore.getActionRegistry(DefaultSoapUICore.java:576) com.eviware.soapui.DefaultSoapUICore.loadPlugins(DefaultSoapUICore.java:166) com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:145) com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:126) 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:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)

    When I changed xmlbeans-3.1.0.jar to xmlbeans-4.0.0.jar, then tomcat throw following exception:

    javax.servlet.ServletException: Servlet.init() for servlet [SoapUIMockServlet] threw exception
    	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
    	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
    	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
    	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
    	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	java.base/java.lang.Thread.run(Thread.java:835)
    Root Cause
    java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.getUseSameLocale()Ljava/lang/Object; org.apache.xmlbeans.impl.store.Locale.getLocale(Locale.java:124) org.apache.xmlbeans.impl.store.Locale.newInstance(Locale.java:458) org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(SchemaTypeLoaderBase.java:129) com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.newInstance(SoapuiSettingsDocumentConfig.java:45) com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:253) com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141) com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:126) 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:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)

     

     

    • sivabalan19's avatar
      sivabalan19
      New Contributor

      Any resolution for this issue ? I am still facing this. It would be nice if someone shares the fix.

      • Figrol's avatar
        Figrol
        New Contributor

        Hello,

         

        I am getting this issue with Java-11, is anyone able to share the fix that you found?

         

        Cheers ๐Ÿ™‚