SmartClient Version: v9.1p_2014-06-25/PowerEdition Deployment (built 2014-06-25)
I've got a dataSource IMA_MATCH which includes a field of another table (JPC_STAGIONI) using tableName and nativeName.
The field from the other table is a primaryKey and has got the same nativeName of the primaryKey of the first dataSource.
Other than that, I don't see anything particular.
When I try to add a record:
I got this error:
The error is the same with or without the fields of the actual values to be inserted.
I've got a dataSource IMA_MATCH which includes a field of another table (JPC_STAGIONI) using tableName and nativeName.
The field from the other table is a primaryKey and has got the same nativeName of the primaryKey of the first dataSource.
Other than that, I don't see anything particular.
When I try to add a record:
Code:
IMA_MATCH.addData({ ID_EVENTO_FK: 483279, ID_RISERVA_FK: 717766, NICKNAME:"Maura49", ID_ABBONAMENTO_FK:1, STATO:"C" })
Code:
2014-06-27 12:30:50,872 DEBUG RPCManager Processing 1 requests. 2014-06-27 12:30:50,873 DEBUG RPCManager Request #1 (DSRequest) payload: { values:{ ID_EVENTO_FK:483279, ID_RISERVA_FK:717766, NICKNAME:"Maura49", ID_ABBONAMENTO_FK:1, STATO:"C" }, operationConfig:{ dataSource:"IMA_MATCH", operationType:"add", textMatchStyle:"exact" }, appID:"builtinApplication", operation:"IMA_MATCH_add", oldValues:{ ID_EVENTO_FK:483279, ID_RISERVA_FK:717766, NICKNAME:"Maura49", ID_ABBONAMENTO_FK:1, STATO:"C" }, criteria:{ } } 2014-06-27 12:30:50,873 INFO IDACall Performing 1 operation(s) 2014-06-27 12:30:50,874 INFO SQLValuesClause [builtinApplication.IMA_MATCH_add] Ignored data for non-existent or included columns: [ID_EVENTO_FK, ID_RISERVA_FK, NICKNAME, ID_ABBONAMENTO_FK, STATO] 2014-06-27 12:30:50,876 WARN RequestContext dsRequest.execute() failed: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String at com.isomorphic.sql.SQLDataSource.getFieldNameFromColumnName(SQLDataSource.java:383) at com.isomorphic.sql.SQLValuesClause.getSQLStringForInsert(SQLValuesClause.java:157) at com.isomorphic.sql.SQLDataSource.getClausesContext(SQLDataSource.java:3130) at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1797) at com.isomorphic.sql.SQLDataSource.processRequest(SQLDataSource.java:444) at com.isomorphic.sql.SQLDataSource.executeAdd(SQLDataSource.java:397) at com.isomorphic.datasource.DataSource.execute(DataSource.java:1544) at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:723) at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658) at com.isomorphic.application.AppBase.execute(AppBase.java:491) at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2553) at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215) at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172) at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137) at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 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$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) 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:260) 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:242) 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:222) 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:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 2014-06-27 12:30:50,882 DEBUG RPCManager Content type for RPC transaction: text/plain; charset=UTF-8 2014-06-27 12:30:50,882 DEBUG RPCManager non-DMI response, dropExtraFields: false 2014-06-27 12:30:50,885 DEBUG ExceptionTranslationFilter Chain processed normally 2014-06-27 12:30:50,885 DEBUG SecurityContextPersistenceFilter SecurityContextHolder now cleared, as request processing completed 2014-06-27 12:30:50,886 INFO Compression /IMA/isomorphic/IDACall: 190 -> 164 bytes
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="IMA_MATCH" tableName="IMA_MATCH" schema="DBSALES" dbName="dbJpcEP" serverType="sql" > <fields> <field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true"> <sequenceName>SEQUENCE_ID_REC</sequenceName> </field> <field name="ID_STAGIONE_FK" nativeName="ID_REC" type="integer" tableName="JPC_STAGIONI"/> <!-- ...other fields to be actually inserted, but the error is raised even without them --> </fields> <!-- ...operation binding to define the join --> </DataSource>
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:fmt="urn:jsptld:/WEB-INF/fmt.tld" xmlns="http://www.smartclient.com/schema" ID="JPC_STAGIONI" tableName="JPC_STAGIONI" schema="DBSALES" dbName="dbJpcEP" serverType="sql" dropExtraFields="false" > <fields> <field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true"> <sequenceName>SEQUENCE_ID_REC</sequenceName> </field> <!-- other fields --> </fields> </DataSource>
Comment