从jDev 10.1.3.4迁移到jDev 11.2.1时Toplink Map和Offline数据库文件中的错误

时间:2011-12-07 16:42:33

标签: java oracle migration jdeveloper toplink

我将应用程序从jDev 10.3.1.4(使用等效版本的OC4J和Toplink 3.0)迁移到最新的jDev 11.2.1。我遇到了很多问题 首先是一个普遍的问题,是否有一些深入的迁移指南?这看起来像是一个完全痛苦的屁股(对不起表达)
现在有一些更精确的问题。

  • 我在离线数据库文件中有错误。我收到消息:警告:文件不存在脱机数据库文件" TIPO_STAG.table"对于每个单个脱机数据库文件。我已经配置了数据库连接,但我不知道发生了什么。
  • 我在打开Toplink Map时显示以下异常:
  

本地异常堆栈:异常[TOPLINK-6044](Oracle TopLink - 11g   版本1(11.1.1.5.0)(Build 110305)):   oracle.toplink.exceptions.QueryException异常描述:   主键在执行期间从行[DatabaseRecord()]读取   检测到的查询为null。主键不得包含   空值。查询:   ReadAllQuery(oracle.toplink.workbench.mappingsmodel.database.MWLegacyTable)   在   oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:837)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:418)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:748)   在   oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:170)   在   oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:477)   在   oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)   在   oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)   在   oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)   在   oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)   在   oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)   在   oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)   在   oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)   在   oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:264)   在   oracle.toplink.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:1377)   在   oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:1306)   在   oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)   在   oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)   在   oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)   在   oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:584)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:441)   在   oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:391)   在   oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)   在   oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)   在   oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)   在   oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)   在   oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)   在   oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)   在   oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)   在   oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)   在   oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)   在   oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1022)   在   oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2827)   在   oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:331)   在   oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:29)   在   oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:296)   在   oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:110)   在   oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:64)   在   oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:60)   在   oracle.toplink.workbench.addin.application.ProjectContext.buildProject(ProjectContext.java:160)   在   oracle.toplink.workbench.addin.application.ProjectContext.initialize(ProjectContext.java:440)   在   oracle.toplink.workbench.addin.application.ProjectContext。(ProjectContext.java:106)   在   oracle.toplink.workbench.addin.application.ContextManager.openProject(ContextManager.java:1169)   在   oracle.toplink.workbench.addin.application.ContextManager.openTopLinkMap(ContextManager.java:1218)   在   oracle.toplink.workbench.addin.application.ContextManager.loadProjectContext(ContextManager.java:1068)   在   oracle.toplink.workbench.addin.application.ContextManager.getContext(ContextManager.java:657)   在   oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.topLinkContext(TopLinkContextViewContextBuilder.java:202)   在   oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.openDocument(TopLinkContextViewContextBuilder.java:187)   在   oracle.toplink.workbench.addin.ui.view.ViewContextManager $ OpenDocument.run(ViewContextManager.java:1081)

当然,旧版本中没有出现这些问题。谢谢你的帮助

0 个答案:

没有答案