org.mozilla.javascript.EcmaError: TypeError: Cannot read property "value" from null

标签: Java JavaScript 报表
116人阅读 评论(0) 收藏 举报
分类:

1、错误描述

version:	2017-09-14 16:13:04
packageinfo:	Branch_SmartbiV702_20170818 


Java查询对象类错误
	at smartbi.freequery.querydata.store.DBSQLResultStore.executeInJavaQuery(DBSQLResultStore.java:1924)
	at ...(...)
	at smartbi.JavaScriptJavaQuery.getGridData(JavaScriptJavaQuery.java:279)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "value" from null (Smartbi#118)
	at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3785)
	at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3763)
	at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3791)
	at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3810)
	at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3823)
	at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1508)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1398)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
	at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1204)
	at smartbi.JavaScriptJavaQuery.getGridData(JavaScriptJavaQuery.java:279)
	at smartbi.freequery.querydata.store.DBSQLResultStore.executeInJavaQuery(DBSQLResultStore.java:1708)
	at smartbi.freequery.querydata.store.DBSQLResultStore.executeInDatabase(DBSQLResultStore.java:1287)
	at smartbi.freequery.querydata.store.DBSQLResultStore.ensureGridDataInMemDB(DBSQLResultStore.java:4321)
	at smartbi.freequery.querydata.store.DBSQLResultStore.getGridDataInternal(DBSQLResultStore.java:3739)
	at smartbi.freequery.querydata.store.SQLResultStore.getGridData(SQLResultStore.java:143)
	at smartbi.decisionpanel.dashboard.TPDataUtil.getGridData(TPDataUtil.java:159)
	at smartbi.decisionpanel.dashboard.TPDataUtil.getGridDataWithFuture(TPDataUtil.java:131)
	at smartbi.decisionpanel.dashboard.TPDataUtil.getChartData(TPDataUtil.java:63)
	at smartbi.decisionpanel.dashboard.DashboardService.getChartOptionsInPage(DashboardService.java:1208)
	at smartbi.decisionpanel.dashboard.DashboardService.syncAndGetOptions(DashboardService.java:1248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at smartbi.framework.rmi.ClientService.execute(Smartbi:118)
	at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:197)
	at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:141)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:140)
	at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:129)
	at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:152)
	at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:55)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at smartbi.framework.rmi.TransactionFilter.doFilter(Smartbi:93)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:111)
	at smartbi.freequery.filter.Filter.doFilter(Filter.java:36)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:99)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:59)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

2、错误原因

     在使用报表工具创建仪表分析,出现了这个错误;由错误提示可知,是传输的参数有问题,需要检查一下参数。

这里,传了三个参数:组织ID、开始日期和结束日期

3、解决办法

查看评论

Uncaught TypeError: Cannot read property 'length' of null

1.可能是返回的datagrid数据格式有问题,比如{"total":0,"rows":null},改为{"total":0,"rows":"[]"}就可以了...
  • u012307002
  • u012307002
  • 2014-02-16 16:29:27
  • 1109

javascript位置错误导致Uncaught TypeError: Cannot read property 'elements' of null

在学习js的表单脚本的时候,写了一个取表单字段的demo: Title var form=document.getElementById("myFo...
  • hylbk
  • hylbk
  • 2018-01-21 20:50:41
  • 206

Cannot read property 'getElementsByTagName' of null

在调试JS代码的过程中遇到错误:Cannot read property ‘getElementsByTagName’ of null 如下图: 修改为:document.getElement...
  • DevilLittle
  • DevilLittle
  • 2016-05-02 09:19:25
  • 6926

【ExtJS】Uncaught TypeError: Cannot read property 'length' of null

若Form中有自定义field组件,则应注意,getRawValue方法不能返回null,应用空串''代替。 否则校验出错,报异常:Uncaught TypeError: Cannot read pr...
  • redvalley
  • redvalley
  • 2015-01-07 16:43:54
  • 9917

cocos2d-js-----Uncaught TypeError: Cannot read property 'style' of null

原因很简单,就是因为你代码里面用到这个js文件,但是project.json里面没有添加到jsList里面。 比如我注释了Alert.json "jsList" : [ "src/...
  • zwcwu31
  • zwcwu31
  • 2015-10-27 23:00:37
  • 2385

Uncaught TypeError: Cannot read property 'value' of null

在 Chrome 中使用document.getElementById("dd"),或者$("dd"); 可能会遇到如上错误,这不是是该语句或写法有问题,而是可能使用了不存在的 id,比如:$("id...
  • WeLoveSunFlower
  • WeLoveSunFlower
  • 2014-06-10 09:07:00
  • 5223

在使用renderTo中遇到的Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null

作为一个ExtJs的初学者,我会遇到很多错误,刚刚学习ExtJs我是一点没有接触过,不过感觉这个东西学着还是很有意思的 Uncaught TypeError: Cannot read propert...
  • liup10000
  • liup10000
  • 2013-07-17 09:18:32
  • 4467

discuz 出现了Uncaught TypeError: Cannot read property 'appendChild' of null

因为修改了模板里的header.htm,有一个DIV给你删除了,如下这句,,这句html代码加在你的header.htm的body下即可 from http://bbs.xiaozhumi.com...
  • wuxing164
  • wuxing164
  • 2016-03-14 11:10:38
  • 5525

JavaScript:Uncaught TypeError Cannot read property 'id' of null。

用JavaScript操作DOM时出现如下错误:    Uncaught TypeError Cannot read property 'id' of null。    Uncaught Type...
  • qq_27626333
  • qq_27626333
  • 2016-06-03 09:44:59
  • 12542

Uncaught TypeError: Cannot read property 'getItem' of null

WebSettings settings = mWebView.getSettings(); settings.setDomStorageEnabled(true);//开启DOM
  • yechaoa
  • yechaoa
  • 2017-09-04 17:25:33
  • 669
    个人资料
    专栏达人 持之以恒
    等级:
    访问量: 603万+
    积分: 7万+
    排名: 25
    新浪博客
    博客专栏
    FusionCharts

    文章:14篇

    阅读:72258
    Flex

    文章:13篇

    阅读:29794
    dojo

    文章:10篇

    阅读:31044
    Linux

    文章:47篇

    阅读:69007
    最新评论