Worklight v6 iwap [英] Worklight v6 iwap

查看:130
本文介绍了Worklight v6 iwap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了Worklight V6 Server和IWAP。
我发现我的worklight应用程序控制台有分析选项卡,还有IWAP控制台。
有dashboad视图,搜索视图,搜索日志视图,地理分析视图。

I set up Worklight V6 Server and IWAP. I found my worklight app console has analytics tab and there is IWAP console. there is dashboad view, search view, search log view, geo analytics view.

然后我放了WL.Logger.error和WL.Analytics.log代码在我的应用程序中发出这些日志
但我在IWAP控制台上找不到任何数据。
,我的IWAP日志中有以下NumberFormatException。我能解决这个问题吗?

then I put WL.Logger.error and WL.Analytics.log code in my app and issued these logs but I cannot find any data on my IWAP console. and there is following NumberFormatException in my IWAP logs. can I fix this?

[2013-06-24 18:02:35,998][DEBUG][action.search.type       ] [Rattler] [worklight][7], node[M8YymIEGQbae4fbtkc2cyA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@465651a2]
org.elasticsearch.search.SearchParseException: [worklight][7]: from[0],size[-1],sort[<custom:"worklight_data.timestamp": org.elasticsearch.index.field.data.longs.LongFieldDataType$1@79b8644>!]: Parse Failure [Failed to parse source [{"sort": {"worklight_data.timestamp": {"order": "desc"}}, "from": 0, "script_fields": {}, "facets": {}, "query": {"query_string": {"query": "worklight_data.log.message:* AND worklight_data.timestamp:[NaN TO * ]"}}, "size": 1000}]]
        at org.elasticsearch.search.SearchService.parseSource(SearchService.java:566)
        at org.elasticsearch.search.SearchService.createContext(SearchService.java:481)
        at org.elasticsearch.search.SearchService.createContext(SearchService.java:466)
        at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:236)
        at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:141)
        at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
        at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
        at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
        at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.lang.Thread.run(Thread.java:779)
Caused by: java.lang.NumberFormatException: For input string: "NaN"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:76)
        at java.lang.Long.parseLong(Long.java:452)
        at java.lang.Long.parseLong(Long.java:494)
        at org.elasticsearch.index.mapper.core.LongFieldMapper.rangeQuery(LongFieldMapper.java:176)
        at org.apache.lucene.queryParser.MapperQueryParser.getRangeQuerySingle(MapperQueryParser.java:342)
        at org.apache.lucene.queryParser.MapperQueryParser.getRangeQuery(MapperQueryParser.java:331)
        at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1496)
        at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1319)
        at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1275)
        at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1234)
        at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
        at org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:212)
        at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:188)


推荐答案

请检查以下内容:

1 - 您使用的是开发者版吗?在Worklight v6中,Analytics控制台无法在开发人员版本中运行。这可能会在将来的版本中更改。我之前从未见过这个例外,但我想知道它是否是因为尝试使用开发人员版本而发生的。

1 - Are you using the developer edition? In Worklight v6, the Analytics console will not function in the developer edition. This may be changed in future releases. I have never seen that exception before, but I wonder if it occurs as a result of trying to run with the developer edition.

2 - 在你的initOptions.js中,分析设置为true:

2 - In your initOptions.js, analytics has been set to true:


analytics:{enabled:true}

analytics : { enabled: true }

3 - 在worklight.properties中,您应该将队列大小设置为1,以便在控制台上立即看到分析

3 - In worklight.properties, you should set the queue size to 1 so that analytics are immediately seen on the console


wl.analytics.queue.size = 1

wl.analytics.queue.size=1

重要提示队列大小应该只在测试模式下设置为1,因为使用1将无法在生产模式下缩放。

Important Note The queue size should only be set to 1 in testing mode, as using 1 will not scale in production mode.

如果您仍然遇到问题,请发布更多信息,例如您的电话制作WL.Analytics.log和您的worklight.properties进行分析。

If you continue to have issues, please post more information such as the calls you are making to WL.Analytics.log and your worklight.properties for the analytics.

编辑

如果你是在开发模式下运行Worklight 6.0,您需要在worklight.properties中使用以下标志:

If you are running Worklight 6.0 in development mode, you will need the following flag in worklight.properties:

wl.analytics.debug=true

这篇关于Worklight v6 iwap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆