Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #46
    Here is the RPCManager and RPCManagerResponse debug turned on for when I click on the node and it blows up:
    Code:
    10:45:48.756:pointerup5:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
    10:45:48.760:pointerup5:DEBUG:RPCManager:Grabbed prompt from first request that defined one: Loading...
    10:45:48.763:pointerup5:INFO:RPCManager:sendQueue[8]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://127.0.0.1:8080/tzw/com.anstca.tz.Main/sc/IDACall?isc_rpc=1&isc_v=v9.1p_2014-09-09&isc_xhr=1
    10:45:48.771:pointerup5:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
    10:45:48.774:pointerup5:DEBUG:RPCManager:XMLHttpRequest POST to http://127.0.0.1:8080/tzw/com.anstca.tz.Main/sc/IDACall?isc_rpc=1&isc_v=v9.1p_2014-09-09&isc_xhr=1 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->isc_tnum=8&_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">8</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"><pid>Y^|^ARGENTINA^|^USD</pid><spc xsi:type="xsd:List"><elem>1</elem><elem>2013-07-01</elem><elem>2013-07-31</elem><elem>POF</elem><elem>70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y</elem><elem>5:2^USD|6:2^ARGENTINA|16:2^Y</elem><elem>5|6|36|21|26|24|25|28|29|30</elem><elem>EDGE_OF_TREE</elem><elem>Y^|^ARGENTINA^|^USD</elem><elem>false</elem><elem>384</elem><elem>2321</elem><elem>682</elem><elem>postTradeEquitiesFactDataSource</elem></spc></criteria><operationConfig xsi:type="xsd:Object"><dataSource>pivot_table_tree_fact_POF_384_682</dataSource><operationType>fetch</operationType><textMatchStyle>exact</textMatchStyle></operationConfig><componentId>isc_PivotTableGrid_5_0</componentId><useStrictJSON xsi:type="xsd:boolean">true</useStrictJSON><appID>builtinApplication</appID><operation>pivot_table_tree_fact_POF_384_682_fetch</operation><oldValues xsi:type="xsd:Object"><pid>Y^|^ARGENTINA^|^USD</pid><spc xsi:type="xsd:List"><elem>1</elem><elem>2013-07-01</elem><elem>2013-07-31</elem><elem>POF</elem><elem>70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y</elem><elem>5:2^USD|6:2^ARGENTINA|16:2^Y</elem><elem>5|6|36|21|26|24|25|28|29|30</elem><elem>EDGE_OF_TREE</elem><elem>Y^|^ARGENTINA^|^USD</elem><elem>false</elem><elem>384</elem><elem>2321</elem><elem>682</elem><elem>postTradeEquitiesFactDataSource</elem></spc></oldValues><progressiveLoading xsi:type="xsd:boolean">false</progressiveLoading><resultTreeIdField>cid</resultTreeIdField><resultTreeParentIdField>pid</resultTreeParentIdField></elem></operations></transaction>&protocolVersion=1.0<--
    10:45:48.916:TMR0:INFO:RPCManager:transaction 8 arrived after 139ms
    10:45:48.920:TMR0:DEBUG:RPCManager:Result string for transaction 8: "isc.logWarn("java.lang.UnsatisfiedLinkError: com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;\r\n\tat com.smartgwt.client.util.JSOHelper.createObject(Native Method)\r\n\tat com.smartgwt.client.core.DataClass.<init>(DataClass.java:35)\r\n\tat com.smartgwt.client.core.RefDataClass.<init>(RefDataClass.java:32)\r\n\tat com.smartgwt.client.data.Record.<init>(Record.java:94)\r\n\tat com.anstca.tz.server.floater.pivottable.service.PivotTableServicesImpl.fetchPivotTableTreeData(PivotTableServicesImpl.java:42)\r\n\tat com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDataSource.executeFetch(PivotTableTreeDataSource.java:20)\r\n\tat com.isomorphic.datasource.DataSource.execute(DataSource.java:1582)\r\n\tat com.anstca.tz.server.post.mvc.servlet.TZWCall.handleDSRequest(TZWCall.java:65)\r\n\tat com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)\r\n\tat com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)\r\n\tat com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:647)\r\n\tat com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n");"
    10:45:48.923:TMR0:INFO:RPCManager:rpcResponse(unstructured) results -->"isc.logWarn("java.lang.UnsatisfiedLinkError: com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;\r\n\tat com.smartgwt.client.util.JSOHelper.createObject(Native Method)\r\n\tat com.smartgwt.client.core.DataClass.<init>(DataClass.java:35)\r\n\tat com.smartgwt.client.core.RefDataClass.<init>(RefDataClass.java:32)\r\n\tat com.smartgwt.client.data.Record.<init>(Record.java:94)\r\n\tat com.anstca.tz.server.floater.pivottable.service.PivotTableServicesImpl.fetchPivotTableTreeData(PivotTableServicesImpl.java:42)\r\n\tat com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDataSource.executeFetch(PivotTableTreeDataSource.java:20)\r\n\tat com.isomorphic.datasource.DataSource.execute(DataSource.java:1582)\r\n\tat com.anstca.tz.server.post.mvc.servlet.TZWCall.handleDSRequest(TZWCall.java:65)\r\n\tat com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)\r\n\tat com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)\r\n\tat com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:647)\r\n\tat com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n");"<--
    10:45:48.933:TMR0:WARN:Log:TypeError: Object doesn't support property or method 'getLength'
    Stack from error.stack:
        Arra.addList () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:426:145
        Tree._linkNodes () @ com.anstca.tz.Main/sc/modules/ISC_Grids.js?isc_version=9.1.js:68:126
        ResultTree.loadChildrenReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2047:346
        Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
        Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279
        DataSource.fireResponseCallbacks () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:733:1
        DataSource._completeResponseProcessing () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:730:1
        DataSource._handleSCServerReply () @ com.anstca.tz.Main/sc/modules/ISC_DataBinding.js?isc_version=9.1.js:2411:102
        Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:283:42
        Class.fireCallback () @ com.anstca.tz.Main/sc/modules/ISC_Core.js?isc_version=9.1.js:344:279

    Comment


      #47
      Great, as we expected, the response is actually a String. It looks like a stack trace coming from your server code crashing because you are trying to call GWT client-side classes over on the server-side (which is invalid).

      "isc.logWarn("java.lang.UnsatisfiedLinkError: com.smartgwt.client.util.JSOHelper.createObject()Lcom/google/gwt/core/client/JavaScriptObject;\r\n\tat com.smartgwt.client.util.JSOHelper.createObject(Native Method)\r\n\tat com.smartgwt.client.core.DataClass.<init>(DataClass.java:35)\r\n\tat com.smartgwt.client.core.RefDataClass.<init>(RefDataClass.java:32)\r\n\tat com.smartgwt.client.data.Record.<init>(Record.java:94)\r\n\tat com.anstca.tz.server.floater.pivottable.service.PivotTableServicesImpl.fetchPivotTableTreeData(PivotTableServicesImpl.java:42)\r\n\tat com.anstca.tz.server.floater.pivottable.ds.PivotTableTreeDataSource.executeFetch(PivotTableTreeDataSource.java:20)\r\n\tat com.isomorphic.datasource.DataSource.execute(DataSource.java:1582)\r\n\tat com.anstca.tz.server.post.mvc.servlet.TZWCall.handleDSRequest(TZWCall.java:65)\r\n\tat com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)\r\n\tat com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)\r\n\tat com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:647)\r\n\tat com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:728)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\r\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n");"<--

      Comment


        #48
        where do you see that in the stack trace?

        Comment


          #49
          Don't quite follow the question...

          This is clearly a stack trace from server code (org.apache.catalina is a give away if you don't recognize anything else). It goes into your code (com.anstca) then there's an attempt to use SmartGWT client-side APIs (com.smartgwt.client..).

          What is unclear?

          Comment


            #50
            Ok, now I see what you are referring to. So when I return an empty set, this is what I am returning:
            Code:
                        DSResponse dsResponse = new DSResponse();
                        dsResponse.setOperationType("update");
                        Record record = new Record();
                        record.setAttribute("cid", al.get(8));
                        record.setAttribute("children", 0);
                        List<Record> arrayList = new ArrayList<Record>();
                        arrayList.add(record);
                        dsResponse.setData(arrayList);
                        dsResponse.setStartRow(0);
                        dsResponse.setEndRow(arrayList.size());
                        dsResponse.setTotalRows(arrayList.size());
            
                        return dsResponse;
            So I think what you are referring to is the usage of the Record class? I should just return an empty array.

            Comment


              #51
              Great, thank you. This fixed the issue for returning an empty set:
              Code:
                          DSResponse dsResponse = new DSResponse();
                          dsResponse.setOperationType("update");
                          List<Record> arrayList = new ArrayList<Record>();
                          dsResponse.setData(arrayList.toArray());
                          dsResponse.setStartRow(0);
                          dsResponse.setEndRow(arrayList.size());
                          dsResponse.setTotalRows(arrayList.size());
              
                          return dsResponse;
              Now is there anything I can do to maintain the Opener to the '+' state when returning an empty set?

              Comment


                #52
                Take a look at the docs for DSResponse.data and JSTranslater for the rules on how data is delivered to the client, but yes, an empty ArrayList would become an empty Array.

                However, the code you've shown seems to be trying to return no an empty set, but a single node that has no children. In that case, one format would be an ArrayList containing a single Map.

                However, oddly this code returns 0 for "children" and "children" is presumably the childrenProperty. So an Array is expected here as well, not a number. Here again, an empty ArrayList would work.

                Comment


                  #53
                  Didn't we already cover this in post 26?

                  Comment


                    #54
                    The Opener remains on the leaf node, that is great. When I click on the leaf node, the Opener changes from a '+' to a '-' because there is no more data. We would like to maintain a '+' if there is no data because our tree can go deeper if the user changes the configuration of the tree (outside of the grid).

                    Comment


                      #55
                      Ah. The normal way of handling this would be that if the configuration changes, you apply new criteria and fetch a whole new tree.

                      If that doesn't apply here, we'd suggest just using the tree.closeFolder() API to put the folder back into the closed state. But you may want to notify the user in some way, because the behavior you're asking for here makes it look like nothing happened as a result of trying to open the node.

                      Comment


                        #56
                        How would I trigger a DSRequest (FETCH or UPDATE) to make the request w/o doing it manually via DataSource.fetchData(criteria)? Earlier in this thread it was suggested I invalidate the cache (DataSource.invalidateCache())? Using the cache invalidation method, a DSRequest of type DSOperationType.UPDATE would be triggered? Or would you suggest doing a manual DataSource.fetchData(criteria)?

                        I am basically doing a TreeGrid.getDataSource().fetchData(criteria) for a manual refresh.
                        Last edited by JLivermore; 11 Sep 2014, 06:29.

                        Comment


                          #57
                          I have my TreeGrid setup with my custom dynamic datasource. I also have the TreeGridRequestTransformer class by inserting the RequestTransformer when I load the DataSource. My TreeGrid is setup like this:
                          Code:
                          treeDataSource = DataSource.get(treeGridFactTableDataSource, new TreeGridRequestTransformer(), null);
                                  if (treeDataSource != null) {
                                      if(DEBUG) GWT.log("treeGrid DataSource set : " + treeDataSource);
                                      if(treeDataSource.getShowPrompt()) treeDataSource.setShowPrompt(Boolean.FALSE);
                                      treeGrid.setAutoFetchData(Boolean.TRUE);
                                      treeGrid.setLoadDataOnDemand(Boolean.TRUE);
                                      treeGrid.setAlwaysShowOpener(Boolean.TRUE);
                                      treeGrid.setDataSource(treeDataSource);
                                  }
                          When I go to do a manual fetch:

                          Code:
                          Criteria criteria = new Criteria();
                                  criteria.addCriteria("ListOfNodeExpansions", model.getView().getViewContext());
                                  GWT.log("ViewContext : " + model.getView().getViewContext().getNodeExpandedList().toString());
                                  treeGrid.getDataSource().fetchData(criteria);
                          My RequestTransformer is called, but the criteria I inserted into the code above does not appear in the criteria in my RequestTransformer?

                          My main issue is:

                          My Criteria I create and send with my manual fetch does not contain the criteria I added to it. Both at the time I create the Criteria:
                          Code:
                          Criteria criteria = new Criteria();
                                  criteria.addCriteria("ListOfNodeExpansions", model.getView().getViewContext());
                                  GWT.log("ViewContext : " + model.getView().getViewContext().getNodeExpandedList().toString());
                                  Map map = criteria.getValues();
                                  GWT.log("fetchDataReloadTree criteria : " + map.toString());
                                  treeGrid.getDataSource().fetchData(criteria);
                          Gives me this output:
                          Code:
                          INFO: ViewContext : [NodeExpanded{index=1, dimensionID=16, cId='null', pId='Y', value='Y', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 16:2^Y, 5|6|36|21|26|24|25|28|29|30, 6, Y, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}, NodeExpanded{index=2, dimensionID=6, cId='null', pId='Y^|^ARGENTINA', value='ARGENTINA', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 6:2^ARGENTINA|16:2^Y, 5|6|36|21|26|24|25|28|29|30, 5, Y^|^ARGENTINA, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}]
                          INFO: fetchDataReloadTree criteria : {}
                          You can see the last INFO statement prints out the map of the Criteria which is empty?

                          The Criteria I created and added is not in the Criteria being sent to the server?

                          Is there a limitation to Criteria.addCriteria(java.lang.String field, java.lang.Object value)? When I put my Object into there, the Criteria does not retain it as the example shows above? When I put in a simple criteria
                          Code:
                                  Criteria criteria = new Criteria();
                                  criteria.addCriteria("one", 1);
                                  criteria.addCriteria("ListOfNodeExpansions", model.getView().getViewContext());
                                  GWT.log("ViewContext : " + model.getView().getViewContext().getNodeExpandedList().toString());
                                  Map map = criteria.getValues();
                                  GWT.log("fetchDataReloadTree criteria : " + map.toString());
                                  treeGrid.getDataSource().fetchData(criteria);
                          Code:
                          INFO: ViewContext : [NodeExpanded{index=1, dimensionID=16, cId='null', pId='Y', value='Y', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 16:2^Y, 5|6|36|21|26|24|25|28|29|30, 6, Y, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}, NodeExpanded{index=2, dimensionID=6, cId='null', pId='Y^|^ARGENTINA', value='ARGENTINA', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 6:2^ARGENTINA|16:2^Y, 5|6|36|21|26|24|25|28|29|30, 5, Y^|^ARGENTINA, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}]
                          INFO: fetchDataReloadTree criteria : {one=1}
                          It works for Criteria.addCriteria(java.lang.String field, java.lang.Integer value)?

                          Another simple test yields the same results, adding an Object doesn't seem to work?
                          Code:
                                  Criteria criteria = new Criteria();
                                  criteria.addCriteria("one", 1);
                                  criteria.addCriteria("map", new HashMap<>());
                                  criteria.addCriteria("ListOfNodeExpansions", model.getView().getViewContext());
                                  GWT.log("ViewContext : " + model.getView().getViewContext().getNodeExpandedList().toString());
                                  Map map = criteria.getValues();
                                  GWT.log("fetchDataReloadTree criteria : " + map.toString());
                                  treeGrid.getDataSource().fetchData(criteria);
                          Code:
                          INFO: ViewContext : [NodeExpanded{index=1, dimensionID=16, cId='null', pId='Y', value='Y', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 16:2^Y, 5|6|36|21|26|24|25|28|29|30, 6, Y, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}, NodeExpanded{index=2, dimensionID=6, cId='null', pId='Y^|^ARGENTINA', value='ARGENTINA', rawFactQueryContext=[1, 2013-07-01, 2013-07-31, POF, 70:2^682|6:2^ARGENTINA~AUSTRALIA~BELGIUM~BERMUDA~BRAZIL~BRITAIN|16:2^Y, 6:2^ARGENTINA|16:2^Y, 5|6|36|21|26|24|25|28|29|30, 5, Y^|^ARGENTINA, false, 384, 2321, 682, postTradeEquitiesFactDataSource]}]
                          INFO: fetchDataReloadTree criteria : {one=1}
                          The last INFO statement above only contains the Integer added to the criteria, both Objects ("map" and "ListOfNodeExpansions") were not added?
                          Last edited by JLivermore; 11 Sep 2014, 07:48.

                          Comment


                            #58
                            Calling TreeGrid.getDataSource().fetchData() is the same as calling DataSource.fetchData() - as the docs for that method state, it has no effect on any UI components at all.

                            You were probably intending to call TreeGrid.fetchData() instead.

                            It's also nonsensical to make changes to your TreeGrid, such as setting loadOnDemand, inside a RequestTransformer. These setting affect how and when the TreeGrid issues requests to the DataSource, and it's both too late and invalid to make changes to such setting when a request from the TreeGrid has already been issued.

                            Comment


                              #59
                              I did not write that up correctly, I am not configuring the TreeGrid in side the RequestTransformer, that code snippet was from my TreeGrid creation method, not in the RequestTransformer. I changed the wording around that part of the previous post, I am not making any changes to the TreeGrid configuration in my RequestTransformer, it does not make sense to do that, I agree with you.

                              What about adding Objects to Criteria? Is that suppose to work OK? In the examples above, I cannot get a Criteria to retain an Object successfully?

                              All of my objects that I am trying to put into the Criteria implement Serializable.
                              Last edited by JLivermore; 11 Sep 2014, 07:51.

                              Comment


                                #60
                                Please please don't give us bogus sample code to analyze. It's hard enough to provide guidance based on partial code when the code is actually real.

                                We're not sure what's in that Object, but GWT as a whole cannot do general-purpose serialization of Java objects between client and server (which would be basically magic..). The docs for rpcRequest.data explain what Java Objects can be transmitted to the server - basically atomic types and most Collections.

                                Comment

                                Working...
                                X