Debbie Steigner created TEIIDDES-3130:
-----------------------------------------
Summary: Designer manually created REST War errors with large resultset
Key: TEIIDDES-3130
URL:
https://issues.jboss.org/browse/TEIIDDES-3130
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 11.1
Environment: Tested in Teiid 11.1, 11.0.1
Reporter: Debbie Steigner
Assignee: Barry LaFond
Attachments: REST_POC_1.war, myrestpoc.zip
Using "Generate REST War" on a VDB and deploying it with your VDB and testing
with a large resultset, gives the below error :
09:26:18,587 SEVERE [org.teiid.rest] (http-127.0.0.1:8080-1) Exception in execute: {0}:
java.lang.Throwable: java.sql.SQLException: java.lang.IllegalArgumentException: Null
charset name
at org.teiid.rest.services.TeiidRSProviderPost.execute(TeiidRSProviderPost.java:116)
[classes:]
at org.teiid.rest.services.REST_Views.MV_AUDIT(REST_Views.java:94) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_60]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:583)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:565)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:130)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.5.14.Final-redhat-2.jar:7.5.14.Final-redhat-2]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:656)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.sql.SQLException: java.lang.IllegalArgumentException: Null charset name
at org.teiid.rest.services.TeiidRSProviderPost.handleResult(TeiidRSProviderPost.java:167)
[classes:]
at org.teiid.rest.services.TeiidRSProviderPost.execute(TeiidRSProviderPost.java:112)
[classes:]
... 29 more
Caused by: java.lang.IllegalArgumentException: Null charset name
at java.nio.charset.Charset.lookup(Charset.java:457) [rt.jar:1.8.0_60]
at java.nio.charset.Charset.forName(Charset.java:528) [rt.jar:1.8.0_60]
at
org.teiid.query.function.source.XMLSystemFunctions.serialize(XMLSystemFunctions.java:1278)
[org.teiid.runtime.client_11.1.0.v20170906-1613.jar:]
at org.teiid.rest.services.TeiidRSProviderPost.handleResult(TeiidRSProviderPost.java:165)
[classes:]
... 30 more
09:26:18,591 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (http-127.0.0.1:8080-1)
RESTEASY000105: Failed to execute: javax.ws.rs.WebApplicationException
at
org.teiid.rest.services.TeiidRSProviderPost.createWebApplicationException(TeiidRSProviderPost.java:194)
[classes:]
at org.teiid.rest.services.TeiidRSProviderPost.execute(TeiidRSProviderPost.java:117)
[classes:]
at org.teiid.rest.services.REST_Views.MV_AUDIT(REST_Views.java:94) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_60]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:583)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:565)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:130)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.3.17.Final-redhat-1.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.5.14.Final-redhat-2.jar:7.5.14.Final-redhat-2]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:656)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
[jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
If the "Auto-generate WAR" box is checked instead it works.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)