环境:
Worklight Server的2个节点指向单个DB2实例。
我尝试登录时经常会提示直接更新。但是我的设备上运行了更新的版本。
即使我继续进行更新,设备构建也会回滚到之前的版本。
有些时候设备提示更新,这次新的构建已经更新。
我将以下内容作为日志。
[ERROR ] RuntimeMBeanCallable.call() exception
java.lang.reflect.UndeclaredThrowableException
[err] java.lang.reflect.UndeclaredThrowableException
[err] at com.sun.proxy.$Proxy137.deleteApplication(Unknown Source)
[err] at com.ibm.worklight.admin.actions.ApplicationDeletionTransaction.prepareMBean(ApplicationDeletionTransaction.java:160)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller$RuntimeMBeanCallable.call(RuntimeMBeanWorkerThreadCaller.java:75)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanWorkerThreadCaller.callSynchronously(RuntimeMBeanWorkerThreadCaller.java:182)
[err] at com.ibm.worklight.admin.actions.util.RuntimeMBeanPoolCaller.callRuntimeMBeans(RuntimeMBeanPoolCaller.java:91)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.prepare(BaseTransaction.java:364)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.internalRun(BaseTransaction.java:307)
[err] at com.ibm.worklight.admin.actions.BaseTransaction.run(BaseTransaction.java:227)
[err] at com.ibm.worklight.admin.services.ApplicationService.deleteApplication(ApplicationService.java:521)
.
.
.
.
.
.
[err] at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[err] at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:52)
[err] at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
[err] at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
[err] at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:133)
[err] at com.ibm.worklight.admin.services.RestServlet.service(RestServlet.java:39)
[err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[err] at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
[err] at [internal classes]
[err] Caused by: java.io.IOException: CWWKX0204E: Unable to parse Throwable from server error stream.
[err] at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.getServerThrowable(RESTMBeanServerConnection.java:1712)
[err] at [internal classes]
[err] ... 83 more
[err] Caused by: java.lang.ClassNotFoundException: com.worklight.twopc.exceptions.OutOfSyncException
[err] at com.ibm.ws.kernel.internal.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:96)
[err] at java.lang.ClassLoader.loadClass(Unknown Source)
[err] at com.ibm.ws.kernel.internal.classloader.BootstrapChildFirstJarClassloader.loadClass(BootstrapChildFirstJarClassloader.java:56)
[err] at java.lang.ClassLoader.loadClass(Unknown Source)
[err] at com.ibm.ws.serialization.DeserializationObjectInputStream.loadClass(DeserializationObjectInputStream.java:57)
[err] at [internal classes]
[err] ... 87 more
这是因为Worklight实例指向同一个DB2吗?我相信情况并非如此。
帮助我解决回滚构建的问题。
答案 0 :(得分:0)
这可能会发生,因为您正在使用两个独立的Libery配置文件应用程序服务器,它们都指向同一个数据库。
因为他们是独立的,所以他们没有同步"同步"何时发生直接更新 要启用此同步,必须将应用程序服务器部署为服务器场。
有关服务器场的详细信息,请查看以下文档主题:Defining a server farm for Worklight Server administration