【问题标题】:Operational Analytics - ZERO Client and Server logs document运营分析 - 零客户端和服务器日志文档
【发布时间】:2016-04-05 21:22:31
【问题描述】:

服务器版本:7.1.0.00.20160229-1240 WebSphere ND 8.5.5.9

移动应用通过调用WL.Logger.send()方法通过WLClientLogReceiver适配器向服务器发送日志;我确实通过终端在应用服务器 SystemOut.log 中看到了来自移动应用程序的日志。

但 Operational Analytics 控制台未加载任何客户端和服务器日志。它在管理选项卡中显示零文档。但它有其他事务的文档,如会话、适配器调用、设备等。

在尝试使用某些关键字搜索日志时,在 Application Server 的 SystemOut.log 文件中出现以下错误。

[4/5/16 16:05:31:029 CDT] 000000fb JavaScriptInt I com.worklight.integration.js.JavaScriptIntegrationLibraryImplementation info 收到的设备日志 [project metlifepoc] [4/5/16 16:05:55:428 CDT] 0000011e RequestProces E org.apache.wink.server.internal.RequestProcessor handleRequest 发生未处理的异常,该异常将传播到容器。 [4/5/16 16:05:55:429 CDT] 0000011e ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper 服务 SRVE0068E:应用程序中的 servlet [数据] 的服务方法之一引发了异常[基金组织运作分析]。异常创建:[org.elasticsearch.action.search.SearchPhaseExecutionException:无法执行阶段[查询],所有分片都失败; shardFailures {[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][0]: SearchParseException[[worklight][0]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0, "size":10,"query":{"filtered":{"query":{"query_string":{"query":"message:met* ","default_operator":"and","analyzer":"规范化","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000", "to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}] ]];嵌套:NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter(初始化失败)];嵌套:RuntimeException[java.io.IOException:ICU数据文件错误:头认证失败,请检查是否有有效的ICU数据文件];嵌套:IOException[ICU数据文件错误:Header认证失败,请检查是否有有效的ICU数据文件]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight]1: SearchParseException[[worklight]1: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0, "size":10,"query":{"filtered":{"query":{"query_string":{"query":"message:met* ","default_operator":"and","analyzer":"规范化","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000", "to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}] ]];嵌套:NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter(初始化失败)];嵌套:RuntimeException[java.io.IOException:ICU数据文件错误:头认证失败,请检查是否有有效的ICU数据文件];嵌套:IOException[ICU数据文件错误:Header认证失败,请检查是否有有效的ICU数据文件]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][2]: SearchParseException[[worklight][2]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0, "size":10,"query":{"filtered":{"query":{"query_string":{"query":"message:met* ","default_operator":"and","analyzer":"规范化","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000", "to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}] ]];嵌套:NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter(初始化失败)];嵌套:RuntimeException[java.io.IOException:ICU数据文件错误:头认证失败,请检查是否有有效的ICU数据文件];嵌套:IOException[ICU数据文件错误:Header认证失败,请检查是否有有效的ICU数据文件]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][3]: SearchParseException[[worklight][3]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0, "size":10,"query":{"filtered":{"query":{"query_string":{"query":"message:met* ","default_operator":"and","analyzer":"规范化","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000", "to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}] ]];嵌套:NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter(初始化失败)];嵌套:RuntimeException[java.io.IOException:ICU数据文件错误:头认证失败,请检查是否有有效的ICU数据文件];嵌套:IOException[ICU数据文件错误:Header认证失败,请检查是否有有效的ICU数据文件]; }{[Kdo8LGq9QTy-ghZsOC-8Xw][worklight][4]: SearchParseException[[worklight][4]: from[0],size[10]: Parse Failure [Failed to parse source [{"from":0, "size":10,"query":{"filtered":{"query":{"query_string":{"query":"message:met* ","default_operator":"and","analyzer":"规范化","lowercase_expanded_terms":true,"analyze_wildcard":true}},"filter":{"bool":{"must":{"range":{"timestamp":{"from":"1459310400000", "to":"1459915199999","include_lower":true,"include_upper":true}}}}}}},"sort":[{"timestamp":{"order":"desc"}}]}] ]];嵌套:NoClassDefFoundError[org.apache.lucene.analysis.icu.ICUFoldingFilter(初始化失败)];嵌套:RuntimeException[java.io.IOException:ICU数据文件错误:头认证失败,请检查是否有有效的ICU数据文件];嵌套:IOException[ICU数据文件错误:Header认证失败,请检查是否有有效的ICU数据文件]; } 在 org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:276) 在 org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$3.onFailure(TransportSearchTypeAction.java:224) 在 org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:205) 在 org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80) 在 org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216) 在 org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203) 在 org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186) 在 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 在 java.lang.Thread.run(Thread.java:790) ] [4/5/16 16:05:55:443 CDT] 0000011e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I:在 /metlife/runtime/installed/WebSphere/AppServer/profiles/AppSrv01 上发出 FFDC 事件/logs/ffdc/MobileFirstAppServer_4475157a_16.04.05_16.05.55.4322080935388977381237.txt com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters -RE 1123

【问题讨论】:

  • 您好 PVR,a) 您在调用 WL.Analytics.send() b) 您是否设置了 JNDI 属性,以便您的 MFP 服务器将您的日志转发到您的 Analytics 服务器? ibm.com/support/knowledgecenter/SSHS8R_7.1.0/… c) 另外,您能否扩展此评论“它在管理选项卡中显示零文档。但它具有其他事务的文档,例如会话、适配器调用、设备等。”
  • 是的。我有 WL.Analytics.send() 和 WL.Logger.send();在我的移动客户端应用程序中。所有必需的 JNDI 属性均已设置。如果您看到屏幕截图,总文档数为 12。12 是设备、事务等。但没有用于客户端和服务器的文档。

标签: ibm-mobilefirst mobilefirst-server mobilefirst-analytics


【解决方案1】:

通过将 analytics-service.war 的 classLoader 设置为 parentLast 已解决此问题。

在此处找到这样做的说明: https://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/monitor/t_installing_op_analytics_websphere.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-26
    • 1970-01-01
    • 2012-01-25
    • 2013-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-16
    相关资源
    最近更新 更多