0

尝试诊断 MobileFirst 服务器错误。v6.3,自由,Windows。

我们有两台据称相同的服务器,一台正常,一台失败。

症状:服务器启动但控制台在尝试填充初始运行时列表时报告服务器错误。进一步调查,我们看到有人尝试调用管理服务。

所以我们尝试直接从浏览器调用该服务。在我们看到的工作服务器上

{"projects":
 [{"name":"DM","link":"https://shqomfas01.dm.gov.ae:9443/wladmin/management- apis/1.0/runtimes/DM","numberOfAdapters":16,
 "numberOfApplications":2,"synchronizationStatus":"ok",
 "numberOfActiveDevices":0,"numberOfDecommissionedDevices":0,
 "running":true}],"productVersion":"6.3.0.00-20141127-1357"}

在另一台服务器上,我们收到错误响应并在日志中看到这些异常。

[6/16/15 11:42:23:284 GST] 000000ec RuntimeServic > RuntimeService getAllRuntimes ENTRY uri=https://shqomfas02.dm.gov.ae:9443/wladmin/management-apis/1.0/runtimes/ securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_83263026 httpRequest={Loc=en_US, Locs=(en_US,), User=admin, RemoteUser=admin} null
[6/16/15 11:42:23:284 GST] 000000ec SystemErr     R   1832175  WorklightManagementPU-oracle  INFO   [LargeThreadPool-thread-164] openjpa.Runtime - Starting OpenJPA 1.2.2
[6/16/15 11:42:23:284 GST] 000000ec SystemErr     R   1832175  WorklightManagementPU-oracle  INFO   [LargeThreadPool-thread-164] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.OracleDictionary".
[6/16/15 11:42:23:331 GST] 000000ec LibertyRuntim I   Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST
[6/16/15 11:42:24:097 GST] 000000ec RuntimeServic > ResponseUtil error ENTRY
[6/16/15 11:42:24:112 GST] 000000ec RuntimeServic E   FWLSE3000E: A server error was detected.
                                 com.ibm.worklight.admin.common.util.exceptions.SystemException: FWLSE3000E: A server error was detected.
    at com.ibm.worklight.admin.services.RuntimeService.addMBeanProperties(RuntimeService.java:1112)
    at com.ibm.worklight.admin.services.RuntimeService.getAllRuntimes(RuntimeService.java:306)

...

Caused by: java.io.IOException: CWWKX0214E: An unexpected Throwable object was returned from the server.
    at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.getAttribute(RESTMBeanServerConnection.java:758)
    at com.sun.jmx.mbeanserver.MXBeanProxy$GetHandler.invoke(Unknown Source)
    at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(Unknown Source)
    at javax.management.MBeanServerInvocationHandler.invoke(Unknown Source)
    at com.sun.proxy.$Proxy163.getDevicesSummary(Unknown Source)
    at com.ibm.worklight.admin.services.RuntimeService$RuntimeMBeanProperties.<init>(RuntimeService.java:1021)
    at com.ibm.worklight.admin.services.RuntimeService$3.call(RuntimeService.java:1050)
    at com.ibm.worklight.admin.services.RuntimeService$3.call(RuntimeService.java:1048)
    at com.ibm.worklight.admin.util.RuntimeMBeanRoutingCaller.call(RuntimeMBeanRoutingCaller.java:66)
    at com.ibm.worklight.admin.services.RuntimeService.addMBeanProperties(RuntimeService.java:1045)
    ... 73 more
Caused by: javax.management.RuntimeMBeanException: java.lang.RuntimeException: Runtime synchronization failed. Cannot get devices summary from runtime
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(Unknown Source)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(Unknown Source)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(Unknown Source)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(Unknown Source)

建议?

4

1 回答 1

3

我们今天看到了这个问题。我们最近对 server.xml 文件进行了配置更改,并且在登录到 Worklight Console 后收到了“服务器错误”消息。

重新安装运行时解决了我们的问题。

于 2015-06-17T11:45:50.967 回答