首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Worklight 6.2迁移工具错误

Worklight 6.2迁移工具错误
EN

Stack Overflow用户
提问于 2015-05-21 12:10:06
回答 1查看 130关注 0票数 0

我正在将数据从WL 5.0.6.2迁移到6.2。在这样做的时候,我遇到了运行数据迁移工具的问题。

背景:方法:我们将WRKLGHT表从5062DB导出到中间DB以进行数据迁移,因此正在运行的DB不会受到影响。

代码语言:javascript
复制
DBs:
   1. schema: proj
     its storing 5062 runtime data, upgrade-worklight-506-60-oracle.sql, upgrade-worklight-60-61-oracle.sql upgrade sql are executed.
   2. schema: proj6
     its blank DB at first, "create-worklightadmin-oracle.sql"  is executed to prepare WLADMIN tables.

WL Project existing:
    1. wlProj 
        its the app running on 5062 WL server
    2. wlProj6
        its the target project running on 6.2 WL, and data will be migrated to be used by this project

Steps:
1. recreate proj6 schema
    1.1 SQLPlus -> connect as SYSTEM -> "drop user proj6 cascade"
    1.2. -> "create user proj6 identified by {password}" -> "grant all privileges to proj6"

2. execute "create-worklightadmin-oracle.sql" on proj6 schema
     2.1 SQLDeveloper -> connect as user proj6
     2.2 run @"{ WL server install dir}/databases/create-worklightadmin-oracle.sql";
     2.3 commit

3. Open cmd and run the following command
    java -cp ojdbc6.jar;worklight-ant-deployer.jar com.ibm.worklight.config.dbmigration62.MigrationTool -p /wlProj   -sourceurl jdbc:oracle:thin:@//192.168.0.**:1521/xe   -sourcedriver oracle.jdbc.driver.OracleDriver   -sourceuser proj   -sourcepassword ***  -targeturl jdbc:oracle:thin:@//192.168.0.***:1521/xe   -targetdriver oracle.jdbc.driver.OracleDriver   -targetuser proj6   -targetpassword *** 2>out.txt

‘迁移wlProj-{ios,android}’&‘迁移wlProj的访问数据记录-.....’在cmd中显示。

out.txt中,将显示以下错误。

代码语言:javascript
复制
15  WorklightManagementPU-oracle  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.2
15  WorklightManagementPU-oracle  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.OracleDictionary".
com.ibm.worklight.config.dbmigration62.exceptions.MigrationException: FWLSE3406E: The applications migration failed with error The field "description" of instance "ApplicationEntity[id=51, name=wlProj, displayName=, description=null, thumbnail=null, platformVersion=null]" contained a null value; the metadata for this field specifies that nulls are illegal..
    at com.ibm.worklight.config.dbmigration62.MigrationTool.run(MigrationTool.java:195)
    at com.ibm.worklight.config.dbmigration62.MigrationTool.main(MigrationTool.java:128)
Caused by: <openjpa-1.2.2-r422266:898935 fatal user error> org.apache.openjpa.persistence.InvalidStateException: The field "description" of instance "ApplicationEntity[id=51, name=wlProj, displayName=, description=null, thumbnail=null, platformVersion=null]" contained a null value; the metadata for this field specifies that nulls are illegal.
    at org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:540)
    at org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:478)
    at org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2829)
    at org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:39)
    at org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:960)
    at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1967)
    at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1927)
    at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1845)
    at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81)
    at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1369)
    at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:877)
    at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:512)
    at com.ibm.worklight.config.dbmigration62.ApplicationMigration.migrateApplication(ApplicationMigration.java:138)
    at com.ibm.worklight.config.dbmigration62.ApplicationMigration.migrate(ApplicationMigration.java:63)
    at com.ibm.worklight.config.dbmigration62.AbstractMigration.run(AbstractMigration.java:66)
    at com.ibm.worklight.config.dbmigration62.MigrationTool.run(MigrationTool.java:183)
    ... 1 more
ERROR 20 : FWLSE3406E: The applications migration failed with error The field "description" of instance "ApplicationEntity[id=51, name=wlProj, displayName=, description=null, thumbnail=null, platformVersion=null]" contained a null value; the metadata for this field specifies that nulls are illegal..
EN

回答 1

Stack Overflow用户

发布于 2015-06-02 23:15:44

这被记录为IBM PMR #77138,999,738,并且被识别为当前正在处理的缺陷。

除了通过支持票证等待修复之外,没有其他本地修复可做。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30364428

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档