环境详情: 操作系统RHEL 6.8 64位 IBM MobileFirst Platform Server版本 - 7.0.0.00.20160526-2153 Project WAR Version - 7.0.0.00.20161114-0240 应用程序版本 - 7.0.0.00.20160526-2153 IBM Websphere Liberty Verison - 8.5.5.4 Java - IBM JRE 1.7.0
在IBM Knowledge Center MobileFirst 7.0 Configure Farm之后创建了一个服务器场配置,其中包含jndiName =“ibm.worklight.admin.serverid”,farm_member_1和farm_member_2的唯一值。 一开始,两个服务器都将这些显示在messages.log中:
[1/8/17 18:53:14:313 CST] 00000034 SystemErr R 1111 WorklightManagementPU-db2 INFO [LargeThreadPool-thread-10] openjpa.Runtime - Starting OpenJPA 1.2.2
[1/8/17 18:53:14:315 CST] 00000034 SystemErr R 1113 WorklightManagementPU-db2 INFO [LargeThreadPool-thread-10] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary" (DB2/LINUXX8664 SQL10053 ,IBM Data Server Driver for JDBC and SQLJ 4.17.29).
[1/8/17 18:53:14:364 CST] 00000034 SystemErr R 1162 WorklightManagementPU-db2 INFO [LargeThreadPool-thread-10] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
几乎每次将应用程序上传到运行时,服务器2(farm_member_2)都会无响应(Web控制台主页 - >运行时 - >服务器场节点)。当发生这种情况时,服务器2正在更新所有资源,就像重新启动一样,从运行时加载所有应用程序和适配器。完成加载所有应用程序后,会再次显示这些错误:
[1/9/17 1:43:19:868 CST] 00000b05 com.ibm.worklight.admin.jmx.ManagementMXBeanImpl I runtime01: server01///10.77.230.146: 2017-01-09T07:43:19.850Z: Transaction handler reset
[1/9/17 1:43:19:869 CST] 0000005e com.worklight.core.auth.impl.AuthenticationFilter I FWLSE0273I: Set sync required to 'false' [project runtime01]
[1/9/17 1:43:19:872 CST] 00000a86 SystemErr R 16601596 WorklightManagementPU-db2 INFO [LargeThreadPool-thread-1589] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
[1/9/17 1:43:19:880 CST] 00000a86 SystemErr R 16601604 WorklightManagementPU-db2 INFO [LargeThreadPool-thread-1589] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
这种配置是常见的吗?如果没有,关于如何避免这种想法?
答案 0 :(得分:1)
这些是警告,可以安全地忽略。这些是由OpenJPA包记录的。