I've found a regression using RESTHandler in SmartClient Version: v9.0p_2013-08-20/EVAL Development Only
and also with latest
SmartClient Version: v9.0p_2013-08-24/EVAL Development Only
instead SmartClient Version: v9.0p_2013-08-07/EVAL Development Only
works right.
RESTHandler receives this request:
strangely enough, the error isn't always raised...
when works, the log is:
this is the dataSource JPC_CONTRATTI, with custom fields used in the operation binding:
which inherits all fields from JPC_CONTRATTI_BASE. Used fields are:
with a blob column encoded in response
EDIT: actually if I use a simpler dataSource, with only the required fields, not marked as customSql, and without inheritance, the problem disappear. So maybe it's only related to the inheritance and not to the RESTHandler at all?
and also with latest
SmartClient Version: v9.0p_2013-08-24/EVAL Development Only
instead SmartClient Version: v9.0p_2013-08-07/EVAL Development Only
works right.
RESTHandler receives this request:
Code:
2013-08-24 19:12:17,941 INFO [ ] RequestContext URL: '/Legend/isomorphic/RESTHandler', User-Agent: 'Apache-HttpClient/4.2.5 (java 1.5)': Unsupported WITHOUT Accept-Encoding header 2013-08-24 19:12:17,941 WARN [ ] LegendRestHandler entra in doPost 2013-08-24 19:12:17,941 WARN [ ] LegendRestHandler entra in processRequest, metodo = POST 2013-08-24 19:12:17,941 DEBUG [ ] RestRequestParser Parsing json object: '{ "transaction": { "operations": [ { "dataSource": "JPC_CONTRATTI", "operationType": "fetch", "operationId": "getPdfOrdine", "data": { "CONTRATTO_NUM": 4753 } } ] } }' 2013-08-24 19:12:17,942 DEBUG [ ] ProcessedFileCache STALE object for file '/usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0154/shared/ds/JPC_CONTRATTI.ds.xml', reloading (file timestamp 1377364318000, cache timestamp 1377360964000) 2013-08-24 19:12:17,944 DEBUG [ ] XML Parsed XML from /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0154/shared/ds/JPC_CONTRATTI.ds.xml: 2ms 2013-08-24 19:12:17,944 DEBUG [ ] BasicDataSource Validating a 'DataSource' at path '' 2013-08-24 19:12:17,944 DEBUG [ ] BasicDataSource Validating 37 'OperationBinding's at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings' 2013-08-24 19:12:17,944 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/0' 2013-08-24 19:12:17,945 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/1' 2013-08-24 19:12:17,945 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/2' 2013-08-24 19:12:17,945 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/3' 2013-08-24 19:12:17,945 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/3/operationBinding/serverObject' 2013-08-24 19:12:17,945 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/3/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/4' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/4/operationBinding/serverObject' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/4/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/5' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/5/operationBinding/serverObject' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/5/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/6' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/6/operationBinding/serverObject' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/6/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/7' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/7/operationBinding/serverObject' 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/7/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,946 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/8' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/8/operationBinding/serverObject' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/8/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/9' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/9/operationBinding/serverObject' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/9/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/10' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/11' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/12' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/12/operationBinding/serverObject' 2013-08-24 19:12:17,947 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/12/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/13' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/13/operationBinding/serverObject' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/13/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/14' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/14/operationBinding/serverObject' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/14/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/15' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/15/operationBinding/serverObject' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/15/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/16' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/16/operationBinding/serverObject' 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/16/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,948 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/17' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/17/operationBinding/serverObject' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/17/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/18' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/18/operationBinding/serverObject' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/18/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/19' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/19/operationBinding/serverObject' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/19/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/20' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/20/operationBinding/serverObject' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/20/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/21' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/21/operationBinding/serverObject' 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/21/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,949 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/22' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/23' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/24' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/24/operationBinding/serverObject' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/24/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/25' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/25/operationBinding/serverObject' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/25/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/26' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/27' 2013-08-24 19:12:17,950 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/27/operationBinding/serverObject' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/27/operationBinding/serverObject': 1ms 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/28' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/28/operationBinding/serverObject' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/28/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/29' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/29/operationBinding/serverObject' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/29/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/30' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/30/operationBinding/serverObject' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/30/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/31' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/31/operationBinding/serverObject' 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/31/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,951 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/32' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/32/operationBinding/serverObject' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/32/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/33' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/34' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/35' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/35/operationBinding/serverObject' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/35/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'OperationBinding' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/36' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/36/operationBinding/serverObject' 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Done validating a 'ServerObject' at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings/36/operationBinding/serverObject': 0ms 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Done validating 37 'OperationBinding's at path '/DataSource[@ID=JPC_CONTRATTI]/operationBindings': 8ms (avg 0) 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Done validating a 'DataSource' at path '': 8ms 2013-08-24 19:12:17,952 DEBUG [ ] BasicDataSource Looking up superDS of DataSource JPC_CONTRATTI: 'JPC_CONTRATTI_BASE' 2013-08-24 19:12:17,953 ERROR [ ] LegendRestHandler RESTHandler - Top-level servlet error: java.lang.NullPointerException at com.isomorphic.sql.SQLDataSource.buildSQLTable(SQLDataSource.java:311) at com.isomorphic.sql.SQLDataSource.init(SQLDataSource.java:272) at com.isomorphic.datasource.DataSource.initialize(DataSource.java:452) at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:166) at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:437) at com.isomorphic.datasource.FileSystemDSRepo.loadDS(FileSystemDSRepo.java:110) at com.isomorphic.datasource.DataSource.forName(DataSource.java:228) at com.isomorphic.datasource.DataSource.forName(DataSource.java:220) at com.isomorphic.datasource.DataSource.forName(DataSource.java:209) at com.isomorphic.datasource.PoolableDataSourceFactory.makeUnpooledObject(PoolableDataSourceFactory.java:130) at com.isomorphic.datasource.PoolableDataSourceFactory.makeObject(PoolableDataSourceFactory.java:138) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:964) at com.isomorphic.pool.PoolManager.borrowObject(PoolManager.java:84) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:95) at com.isomorphic.datasource.DataSourceManager.getDataSource(DataSourceManager.java:86) at com.isomorphic.datasource.DataSourceManager.get(DataSourceManager.java:118) at com.isomorphic.rpc.RestRequestParser.parseRequest(RestRequestParser.java:378) at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:308) at com.isomorphic.servlet.RESTHandler.processRequest(RESTHandler.java:306) at com.juve.legend.rest.LegendRestHandler.processRequest(LegendRestHandler.java:64) at com.isomorphic.servlet.RESTHandler.doPost(RESTHandler.java:258) at com.juve.legend.rest.LegendRestHandler.doPost(LegendRestHandler.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:65) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:163) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:246) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:241) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)
when works, the log is:
Code:
2013-08-24 19:12:26,377 INFO [ ] RequestContext URL: '/Legend/isomorphic/RESTHandler', User-Agent: 'Apache-HttpClient/4.2.5 (java 1.5)': Unsupported WITHOUT Accept-Encoding header 2013-08-24 19:12:26,377 WARN [ ] LegendRestHandler entra in doPost 2013-08-24 19:12:26,377 WARN [ ] LegendRestHandler entra in processRequest, metodo = POST 2013-08-24 19:12:26,377 DEBUG [ ] RestRequestParser Parsing json object: '{ "transaction": { "operations": [ { "dataSource": "JPC_CONTRATTI", "operationType": "fetch", "operationId": "getPdfOrdine", "data": { "CONTRATTO_NUM": 4753 } } ] } }' 2013-08-24 19:12:26,378 DEBUG [ ] BasicDataSource Looking up superDS of DataSource JPC_CONTRATTI: 'JPC_CONTRATTI_BASE' 2013-08-24 19:12:26,379 DEBUG [ ] BasicDataSource Looking up superDS of DataSource JPC_CONTRATTI: 'JPC_CONTRATTI_BASE' 2013-08-24 19:12:26,379 DEBUG [ ] DSRequest Caching instance 192 of DS JPC_CONTRATTI from DSRequest.getDataSource() 2013-08-24 19:12:26,380 INFO [ ] LegendRestHandler Performing 1 operation(s) 2013-08-24 19:12:26,380 WARN [ ] LegendRestHandler entra in handleDSRequest 2013-08-24 19:12:26,380 WARN [ ] LegendRestHandler Richiesta REST, metodo = POST 2013-08-24 19:12:26,380 DEBUG [ ] LegendRestHandler NICKNAME: mezmart2 2013-08-24 19:12:26,380 DEBUG [ ] DeclarativeSecurity Processing security checks for DataSource null, field null 2013-08-24 19:12:26,380 DEBUG [ ] DeclarativeSecurity DataSource JPC_CONTRATTI is not in the pre-checked list, processing... 2013-08-24 19:12:26,380 DEBUG [ ] AppBase [builtinApplication.getPdfOrdine] No userTypes defined, allowing anyone access to all operations for this application 2013-08-24 19:12:26,380 DEBUG [ ] AppBase [builtinApplication.getPdfOrdine] No public zero-argument method named '_getPdfOrdine' found, performing generic datasource operation 2013-08-24 19:12:26,380 INFO [ ] SQLDataSource [builtinApplication.getPdfOrdine] Performing fetch operation with criteria: {CONTRATTO_NUM:4753} values: {CONTRATTO_NUM:4753} 2013-08-24 19:12:26,396 INFO [ ] SQLDataSource [builtinApplication.getPdfOrdine] derived query: SELECT JPC_CONTRATTI.ID_REC, JPC_CONTRATTI.CONTRATTO_NUM, JPC_CONTRATTI.FILE_TEMP, JPC_CONTRATTI.FILE_TEMP_filename, JPC_CONTRATTI.FILE_TEMP_filesize, JPC_CONTRATTI.FILE_TEMP_date_created FROM JPC_CONTRATTI WHERE $defaultWhereClause 2013-08-24 19:12:26,396 INFO [ ] SQLDataSource [builtinApplication.getPdfOrdine] 192: Executing SQL query on 'dbJpcEP': SELECT JPC_CONTRATTI.ID_REC, JPC_CONTRATTI.CONTRATTO_NUM, JPC_CONTRATTI.FILE_TEMP, JPC_CONTRATTI.FILE_TEMP_filename, JPC_CONTRATTI.FILE_TEMP_filesize, JPC_CONTRATTI.FILE_TEMP_date_created FROM JPC_CONTRATTI WHERE (JPC_CONTRATTI.CONTRATTO_NUM=4753) 2013-08-24 19:12:26,396 DEBUG [ ] PoolableSQLConnectionFactory [builtinApplication.getPdfOrdine] Executing pingTest 'select 1 from dual' on connection 441883931 2013-08-24 19:12:26,397 DEBUG [ ] SQLConnectionManager [builtinApplication.getPdfOrdine] Borrowed connection '441883931' 2013-08-24 19:12:26,397 DEBUG [ ] SQLTransaction [builtinApplication.getPdfOrdine] Started new dbJpcEP transaction "441883931" 2013-08-24 19:12:26,397 DEBUG [ ] SQLDriver [builtinApplication.getPdfOrdine] About to execute SQL query in 'dbJpcEP' using connection '441883931' 2013-08-24 19:12:26,397 INFO [ ] SQLDriver [builtinApplication.getPdfOrdine] Executing SQL query on 'dbJpcEP': SELECT JPC_CONTRATTI.ID_REC, JPC_CONTRATTI.CONTRATTO_NUM, JPC_CONTRATTI.FILE_TEMP, JPC_CONTRATTI.FILE_TEMP_filename, JPC_CONTRATTI.FILE_TEMP_filesize, JPC_CONTRATTI.FILE_TEMP_date_created FROM JPC_CONTRATTI WHERE (JPC_CONTRATTI.CONTRATTO_NUM=4753) 2013-08-24 19:12:26,464 INFO [ ] DSResponse [builtinApplication.getPdfOrdine] DSResponse: List with 1 items 2013-08-24 19:12:26,464 DEBUG [ ] RPCManager Content type for RPC transaction: text/html; charset=UTF-8 2013-08-24 19:12:26,464 DEBUG [ ] SQLTransaction Committing dbJpcEP transaction "441883931" 2013-08-24 19:12:26,587 DEBUG [ ] RPCManager non-DMI response, dropExtraFields: false 2013-08-24 19:12:26,635 DEBUG [ ] SQLTransaction Returning transactional connection for dbJpcEP with hashcode "441883931" 2013-08-24 19:12:26,635 DEBUG [ ] SQLTransaction Ending dbJpcEP transaction "441883931" 2013-08-24 19:12:26,636 DEBUG [ ] SQLConnectionManager About to close PoolableConnection with hashcode "441883931" 2013-08-24 19:12:26,636 DEBUG [ ] PoolableSQLConnectionFactory Executing pingTest 'select 1 from dual' on connection 441883931
Code:
<!-- <%@page pageEncoding="UTF-8" contentType="text/xml; charset=UTF-8"%> <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %> <fmt:setBundle basename="i18nMessages_${locale}" var="i18n"/> --> <DataSource xmlns="http://www.smartclient.com/schema" ID="JPC_CONTRATTI" tableName="JPC_CONTRATTI" schema="DBSALES" dbName="dbJpcEP" serverType="sql" dropExtraFields="false" requiresAuthentication="false" inheritsFrom="JPC_CONTRATTI_BASE" > <operationBindings> <operationBinding operationType="fetch" operationId="getPdfOrdine" customFields="FILE_TEMP, FILE_TEMP_filename, FILE_TEMP_filesize, FILE_TEMP_date_created"> <selectClause>JPC_CONTRATTI.ID_REC, JPC_CONTRATTI.CONTRATTO_NUM, JPC_CONTRATTI.FILE_TEMP, JPC_CONTRATTI.FILE_TEMP_filename, JPC_CONTRATTI.FILE_TEMP_filesize, JPC_CONTRATTI.FILE_TEMP_date_created </selectClause> <tableClause>JPC_CONTRATTI</tableClause> <whereClause>$defaultWhereClause</whereClause> </operationBinding> </operationBindings> </DataSource>
Code:
<field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true"> <sequenceName>SEQUENCE_ID_REC</sequenceName> </field> <field sqlType="decimal" sqlLength="0" name="CONTRATTO_NUM" type="integer"> <title> <fmt:message key="nContratto" bundle="${i18n}"/> </title> </field> <field sqlType="blob" name="FILE_TEMP" type="binary" customSQL="true" encodeInResponse="true"> <title> <fmt:message key="contratto" bundle="${i18n}"/> </title> </field> <field sqlType="varchar" name="FILE_TEMP_FILENAME" type="text" hidden="true" customSQL="true"></field> <field sqlType="decimal" name="FILE_TEMP_FILESIZE" type="integer" hidden="true" customSQL="true"></field> <field sqlType="timestamp" name="FILE_TEMP_DATE_CREATED" type="datetime" hidden="true" customSQL="true"></field>
EDIT: actually if I use a simpler dataSource, with only the required fields, not marked as customSql, and without inheritance, the problem disappear. So maybe it's only related to the inheritance and not to the RESTHandler at all?
Comment