从 jDev 10.1.3.4 迁移到 jDev 11.2.1 时,Toplink 映射和脱机数据库文件中出现错误

发布于 2024-12-19 22:38:55 字数 5766 浏览 4 评论 0原文

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

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

本地异常堆栈:异常 [TOPLINK-6044] (Oracle TopLink - 11g 版本 1 (11.1.1.5.0)(内部版本 110305)): oracle.toplink.exceptions.QueryException 异常描述: 执行期间从行 [DatabaseRecord()] 读取主键 检测到查询为空。主键不得包含 无效的。询问: 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)

当然,旧版本中不存在这些问题。感谢您的帮助

i'm migrating an application from jDev 10.3.1.4 (Using Equivalent version of OC4J and Toplink 3.0) to the latest to jDev 11.2.1. I'm encountering a lot of problems.
First of all a general question, are there some in depth migration guides?This looks like is gonna be a total pain in the ass (Sorry for the expression)
Now some more precise question.

  • i have errors in offline database files. I get the message: WARNING: Offline Database file does not exist for file "TIPO_STAG.table" for every single offline database file. I have configured my database connection, but i don't know what is happening.
  • i have the following exception shown when i open the Toplink Map:

Local Exception Stack: Exception [TOPLINK-6044] (Oracle TopLink - 11g
Release 1 (11.1.1.5.0) (Build 110305)):
oracle.toplink.exceptions.QueryException Exception Description: The
primary key read from the row [DatabaseRecord()] during the execution
of the query was detected to be null. Primary keys must not contain
null. Query:
ReadAllQuery(oracle.toplink.workbench.mappingsmodel.database.MWLegacyTable)
at
oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:837)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:418)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:748)
at
oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:170)
at
oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:477)
at
oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at
oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
at
oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at
oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)
at
oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
at
oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
at
oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
at
oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:264)
at
oracle.toplink.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:1377)
at
oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:1306)
at
oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
at
oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at
oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at
oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:584)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:441)
at
oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:391)
at
oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at
oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at
oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at
oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
at
oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at
oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at
oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
at
oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
at
oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
at
oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1022)
at
oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2827)
at
oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:331)
at
oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:29)
at
oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:296)
at
oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:110)
at
oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:64)
at
oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:60)
at
oracle.toplink.workbench.addin.application.ProjectContext.buildProject(ProjectContext.java:160)
at
oracle.toplink.workbench.addin.application.ProjectContext.initialize(ProjectContext.java:440)
at
oracle.toplink.workbench.addin.application.ProjectContext.(ProjectContext.java:106)
at
oracle.toplink.workbench.addin.application.ContextManager.openProject(ContextManager.java:1169)
at
oracle.toplink.workbench.addin.application.ContextManager.openTopLinkMap(ContextManager.java:1218)
at
oracle.toplink.workbench.addin.application.ContextManager.loadProjectContext(ContextManager.java:1068)
at
oracle.toplink.workbench.addin.application.ContextManager.getContext(ContextManager.java:657)
at
oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.topLinkContext(TopLinkContextViewContextBuilder.java:202)
at
oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.openDocument(TopLinkContextViewContextBuilder.java:187)
at
oracle.toplink.workbench.addin.ui.view.ViewContextManager$OpenDocument.run(ViewContextManager.java:1081)

Of course non of those problems were present in the old version. Thanks for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文