Hi, we have a stable Smartclient application and we wanted to experiment the new REST APIs with the existing datasource in the application using the 13.0 release of smartclient.
After upgrading Smartclient in the application to "isomorphic-13.0.7.19.21.zip", and mapping the RESTHandler servlet in web.xml like this:
<servlet>
<servlet-name>RESTHandler</servlet-name>
<servlet-class>com.isomorphic.servlet.RESTHandler</servlet-class>
<init-param>
<param-name>defaultDataFormat</param-name>
<param-value>json</param-value>
</init-param>
<init-param>
<param-name>wrapJSONResponses</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>RESTHandler</servlet-name>
<url-pattern>/restapi/*</url-pattern>
</servlet-mapping>
We get the following error when trying to access the openAPI documentation in the URL {DOMAIN}/restapi/openapi.yaml
13:21:27,083 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /dev/restapi/openapi.yaml: java.lang.NoSuchFieldError: VERSION_2_3_28
at deployment.dev.war//com.isomorphic.servlet.RESTHandler.init(RESTHandler.java:458)
at javax.servlet.api@2.0.0.Final//javax...icServlet.java:180)
at deployment.dev.war//com.isomorphic.servlet.BaseServlet.init(BaseServlet.java:137)
at io.undertow.servlet@2.1.3.Final//io....nvocation.java:117)
at org.wildfly.extension.undertow@20.0....terceptor.java:78)
at io.undertow.servlet@2.1.3.Final//io....nvocation.java:103)
at io.undertow.servlet@2.1.3.Final//io....edServlet.java:305)
at io.undertow.servlet@2.1.3.Final//io....edServlet.java:212)
at io.undertow.servlet@2.1.3.Final//io....vletChain.java:130)
at io.undertow.servlet@2.1.3.Final//io....vletChain.java:63)
at io.undertow.servlet@2.1.3.Final//io....ngHandler.java:36)
at org.wildfly.extension.undertow@20.0....onHandler.java:78)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io....irHandler.java:68)
at io.undertow.servlet@2.1.3.Final//io....onHandler.java:132)
at io.undertow.servlet@2.1.3.Final//io....llHandler.java:57)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.core@2.1.3.Final//io.und...tyHandler.java:46)
at io.undertow.servlet@2.1.3.Final//io....ntHandler.java:64)
at io.undertow.core@2.1.3.Final//io.und...msHandler.java:60)
at io.undertow.servlet@2.1.3.Final//io....onHandler.java:77)
at io.undertow.core@2.1.3.Final//io.und...erHandler.java:50)
at io.undertow.core@2.1.3.Final//io.und...onHandler.java:43)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at org.wildfly.extension.undertow@20.0....IdHandler.java:61)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at org.wildfly.extension.undertow@20.0....erHandler.java:68)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:269)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:133)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:130)
at io.undertow.servlet@2.1.3.Final//io....tupAction.java:48)
at io.undertow.servlet@2.1.3.Final//io....tupAction.java:43)
at org.wildfly.extension.undertow@20.0....tupAction.java:105)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:249)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:99)
at io.undertow.core@2.1.3.Final//io.und...onnectors.java:370)
at io.undertow.core@2.1.3.Final//io.und...rExchange.java:830)
at org.jboss.threads@2.3.3.Final//org.j...gRunnable.java:35)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1982)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1486)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
Any thoughts?
After upgrading Smartclient in the application to "isomorphic-13.0.7.19.21.zip", and mapping the RESTHandler servlet in web.xml like this:
<servlet>
<servlet-name>RESTHandler</servlet-name>
<servlet-class>com.isomorphic.servlet.RESTHandler</servlet-class>
<init-param>
<param-name>defaultDataFormat</param-name>
<param-value>json</param-value>
</init-param>
<init-param>
<param-name>wrapJSONResponses</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>RESTHandler</servlet-name>
<url-pattern>/restapi/*</url-pattern>
</servlet-mapping>
We get the following error when trying to access the openAPI documentation in the URL {DOMAIN}/restapi/openapi.yaml
13:21:27,083 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /dev/restapi/openapi.yaml: java.lang.NoSuchFieldError: VERSION_2_3_28
at deployment.dev.war//com.isomorphic.servlet.RESTHandler.init(RESTHandler.java:458)
at javax.servlet.api@2.0.0.Final//javax...icServlet.java:180)
at deployment.dev.war//com.isomorphic.servlet.BaseServlet.init(BaseServlet.java:137)
at io.undertow.servlet@2.1.3.Final//io....nvocation.java:117)
at org.wildfly.extension.undertow@20.0....terceptor.java:78)
at io.undertow.servlet@2.1.3.Final//io....nvocation.java:103)
at io.undertow.servlet@2.1.3.Final//io....edServlet.java:305)
at io.undertow.servlet@2.1.3.Final//io....edServlet.java:212)
at io.undertow.servlet@2.1.3.Final//io....vletChain.java:130)
at io.undertow.servlet@2.1.3.Final//io....vletChain.java:63)
at io.undertow.servlet@2.1.3.Final//io....ngHandler.java:36)
at org.wildfly.extension.undertow@20.0....onHandler.java:78)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io....irHandler.java:68)
at io.undertow.servlet@2.1.3.Final//io....onHandler.java:132)
at io.undertow.servlet@2.1.3.Final//io....llHandler.java:57)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.core@2.1.3.Final//io.und...tyHandler.java:46)
at io.undertow.servlet@2.1.3.Final//io....ntHandler.java:64)
at io.undertow.core@2.1.3.Final//io.und...msHandler.java:60)
at io.undertow.servlet@2.1.3.Final//io....onHandler.java:77)
at io.undertow.core@2.1.3.Final//io.und...erHandler.java:50)
at io.undertow.core@2.1.3.Final//io.und...onHandler.java:43)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at org.wildfly.extension.undertow@20.0....IdHandler.java:61)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at org.wildfly.extension.undertow@20.0....erHandler.java:68)
at io.undertow.core@2.1.3.Final//io.und...teHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:269)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:133)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:130)
at io.undertow.servlet@2.1.3.Final//io....tupAction.java:48)
at io.undertow.servlet@2.1.3.Final//io....tupAction.java:43)
at org.wildfly.extension.undertow@20.0....tupAction.java:105)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at org.wildfly.extension.undertow@20.0....foService.java:1530)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:249)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io....alHandler.java:99)
at io.undertow.core@2.1.3.Final//io.und...onnectors.java:370)
at io.undertow.core@2.1.3.Final//io.und...rExchange.java:830)
at org.jboss.threads@2.3.3.Final//org.j...gRunnable.java:35)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1982)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1486)
at org.jboss.threads@2.3.3.Final//org.j...eExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
Any thoughts?
Comment