MobileFirst Operational Analytics javax.xml.transform.TransformerFactoryConfigurationError

时间:2015-01-30 10:41:16

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

我正在追踪为什么没有记录分析数据。我看到下面描述的错误消息,它们在尝试记录分析数据时发生。这些消息是否重要?我需要修理什么?

我将Operation Analytics EAR部署到专用的Liberty服务器

product = WebSphere Application Server 8.5.5.0 (wlp-1.0.3.20130510-0831)
wlp.install.dir = /home/virtuser/IBM/WebSphere/Liberty/
java.home = /home/virtuser/IBM/WebSphere/Liberty/java/java_1.7_64/jre
java.version = 1.7.0
java.runtime = Java(TM) SE Runtime Environment (pxa6470sr4fp1ifx-20130423_02    (SR4 FP1+IV38579+IV38399+IV40208))
 os = Linux (2.6.32-358.el6.x86_64; amd64) (en_GB)

当我尝试记录某些分析数据时,请在messages.log

中看到此错误
Uncaught.init.exception.thrown.by.servlet 
data
worklight-analytics-ear
javax.xml.transform.TransformerFactoryConfigurationError: Provider for
     javax.xml.transform.TransformerFactory cannot be found

[30/01/15 05:24:20:853 EST] 00000022 org.apache.wink.server.internal.log.Resources                I The server has registered the JAX-RS resource class com.ibm.elasticsearch.servlet.DataReceiver with @Path(/).
[30/01/15 05:24:20:854 EST] 00000022 org.apache.wink.server.internal.log.Providers                I There are no custom JAX-RS providers defined in the application.
[30/01/15 05:24:20:860 EST] 00000022 pache.wink.common.internal.application.ApplicationFileLoader E The runtime environment failed to instantiate the org.apache.wink.common.internal.providers.entity.SourceProvider$StreamSourceProvider class. Ensure that the class is not abstract, has a valid constructor, has the right visibility, and is not an inner member class.
java.lang.NoClassDefFoundError: org.apache.wink.common.internal.providers.entity.SourceProvider$StreamSourceProvider (initialization failure)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:176)
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:219)
        at org.apache.wink.common.internal.utils.ClassUtils$1.run(ClassUtils.java:73)
        at java.security.AccessController.doPrivileged(AccessController.java:229)
        at org.apache.wink.common.internal.utils.ClassUtils.loadClass(ClassUtils.java:66)

[30/01/15 05:25:09:342 EST] 0000001e 

com.ibm.ws.logging.internal.impl.IncidentImpl                I FFDC1015I: An FFDC Incident has been created: "org.elasticsearch.action.search.SearchPhaseExecutionException: 
Failed to execute phase [query], all shards failed; shardFailures {[beBqcnofT52DPVzgChWm_Q][worklight][1]: SearchParseException[[worklight][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"termsFacet":{"date_histogram":{"field":"gadgets.HybridApp.firstAccess","interval":"1h"},"facet_filter":{"bool":{"must":{"range":{"gadgets.HybridApp.firstAccess":{"from":1422527109262,"to":1422613509262,"include_lower":true,"include_upper":true}}}}}}}}]]]; nested: FacetPhaseExecutionException[Facet [termsFacet]: (key) field [gadgets.HybridApp.firstAccess] not found]; }{[beBqcnofT52DPVzgChWm_Q][worklight][2]: SearchParseException[[worklight][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"termsFacet":{"date_histogram":{"field":"gadgets.HybridApp.firstAccess","interval":"1h"},"facet_filter":{"bool":{"must":{"range":{"gadgets.HybridApp.firstAccess":{"from":1422527109262,"to":1422613509262,"include_lower":true,"include_upper":true}}}}}}}}]]]; nested: FacetPhaseExecutionException[Facet [termsFacet]: (key) field [gadgets.HybridApp.firstAccess] not found]; }{[beBqcnofT52DPVzgChWm_Q][worklight][3]: SearchParseException[[worklight][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"termsFacet":{"date_histogram":{"field":"gadgets.HybridApp.firstAccess","interval":"1h"},"facet_filter":{"bool":{"must":{"range":{"gadgets.HybridApp.firstAccess":{"from":1422527109262,"to":1422613509262,"include_lower":true,"include_upper":true}}}}}}}}]]]; nested: FacetPhaseExecutionException[Facet [termsFacet]: (key) field [gadgets.HybridApp.firstAccess] not found]; }{[beBqcnofT52DPVzgChWm_Q][worklight][4]: SearchParseException[[worklight][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"termsFacet":{"date_histogram":{"field":"gadgets.HybridApp.firstAccess","interval":"1h"},"facet_filter":{"bool":{"must":{"range":{"gadgets.HybridApp.firstAccess":{"from":1422527109262,"to":1422613509262,"include_lower":true,"include_upper":true}}}}}}}}]]]; nested: FacetPhaseExecutionException[Facet [termsFacet]: (key) field [gadgets.HybridApp.firstAccess] not found]; }{[beBqcnofT52DPVzgChWm_Q][worklight][0]: SearchParseException[[worklight][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"termsFacet":{"date_histogram":{"field":"gadgets.HybridApp.firstAccess","interval":"1h"},"facet_filter":{"bool":{"must":{"range":{"gadgets.HybridApp.firstAccess":{"from":1422527109262,"to":1422613509262,"include_lower":true,"include_upper":true}}}}}}}}]]]; nested: FacetPhaseExecutionException[Facet [termsFacet]: (key) field [gadgets.HybridApp.firstAccess] not found]; } com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters 1105" at ffdc_15.01.30_05.25.09.0.log

请注意:解析失败[无法在最后一条消息中解析来源

我的server.xml包含:

<featureManager>
        <feature>jsp-2.2</feature>
        <feature>jndi-1.0</feature>
        <feature>appSecurity-1.0</feature>
    </featureManager>

    <httpEndpoint id="defaultHttpEndpoint"
                  host="localhost"
                  httpPort="9082"
                  httpsPort="9445" />

<jndiEntry jndiName="analytics/httpport" value="9500" />
<jndiEntry jndiName="analytics/transportport" value="9600" />

<jndiEntry jndiName="analytics/masternodes" value="localhost:9600,anotherhost:9600" />
 <jndiEntry jndiName="analytics/shards" value="12" />


<application location="worklight-analytics.ear"
             name="worklight-analytics-ear"
             type="ear">
   ... registry and role entries here ...
<classloader delegation="parentLast"/>
</application>

1 个答案:

答案 0 :(得分:1)

您是否可以尝试从server.xml条目中删除以下内容以进行分析?

<classloader delegation="parentLast"/>

删除后,尝试重新启动分析控制台以查看它是否开始工作。