Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Migrating toplink to eclipselink(Unable to open the eclipselink.wmp in work bench)
Migrating toplink to eclipselink [message #659798] Tue, 15 March 2011 16:11 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
I am migrating from toplink 9 to eclipselink 2.1.
I used the rename pacakage to rename to convert toplink to eclipse link and done sucsessfully. When i am trying to open the project in eclipselink workbench i am getting following exception.


org.eclipse.persistence.tools.workbench.framework.OpenExcept ion: java.lang.IllegalStateException: 5.0
at org.eclipse.persistence.tools.workbench.mappingsplugin.Mappi ngsPlugin.open(MappingsPlugin.java:289)
at org.eclipse.persistence.tools.workbench.framework.internal.F rameworkApplication.open(FrameworkApplication.java:701)
at org.eclipse.persistence.tools.workbench.framework.internal.F rameworkNodeManager.openCallback(FrameworkNodeManager.java:3 54)
at org.eclipse.persistence.tools.workbench.framework.internal.R unnableProjectLoader.run2(RunnableProjectLoader.java:89)
at org.eclipse.persistence.tools.workbench.framework.internal.R unnableProjectLoader.run(RunnableProjectLoader.java:76)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: 5.0
at org.eclipse.persistence.tools.workbench.mappingsio.ProjectRe ader.readLegacyProject(ProjectReader.java:260)
at org.eclipse.persistence.tools.workbench.mappingsio.ProjectRe ader.read(ProjectReader.java:116)
at org.eclipse.persistence.tools.workbench.mappingsio.ProjectIO Manager.read(ProjectIOManager.java:71)
at org.eclipse.persistence.tools.workbench.mappingsplugin.Mappi ngsPlugin.open(MappingsPlugin.java:285)
... 5 more
Re: Migrating toplink to eclipselink [message #660827 is a reply to message #659798] Mon, 21 March 2011 19:39 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Not sure on the error, but you should probably first migrate the TopLink 9 project file to TopLink 10.1.3.


James : Wiki : Book : Blog : Twitter
Re: Migrating toplink to eclipselink [message #660984 is a reply to message #660827] Tue, 22 March 2011 14:57 Go to previous message
No real name is currently offline No real nameFriend
Messages: 4
Registered: March 2011
Junior Member
when i try to open the project in 10.3.1.5 workbench. I am getting the following exception.

oracle.toplink.workbench.framework.OpenException: Exception [TOPLINK-106] (Oracle TopLink - 10g Release 3 (10.1.3.5.0) (Build 090715)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacy50SetTypeNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[type-->type]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.meta.MW TypeDeclaration --> [DatabaseTable(type-declaration)])
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open( MappingsPlugin.java:290)
at oracle.toplink.workbench.framework.internal.FrameworkApplica tion.open(FrameworkApplication.java:689)
at oracle.toplink.workbench.framework.internal.FrameworkNodeMan ager.openCallback(FrameworkNodeManager.java:341)
at oracle.toplink.workbench.framework.internal.RunnableProjectL oader.run2(RunnableProjectLoader.java:76)
at oracle.toplink.workbench.framework.internal.RunnableProjectL oader.run(RunnableProjectLoader.java:63)
at java.lang.Thread.run(Thread.java:662)
Caused by: Exception [TOPLINK-106] (Oracle TopLink - 10g Release 3 (10.1.3.5.0) (Build 090715)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacy50SetTypeNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[type-->type]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.meta.MW TypeDeclaration --> [DatabaseTable(type-declaration)])
at oracle.toplink.exceptions.DescriptorException.targetInvocati onWhileSettingValueThruMethodAccessor(DescriptorException.ja va:1686)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor. setAttributeValueInObject(MethodAttributeAccessor.java:145)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInO bject(DatabaseMapping.java:1143)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1046)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeO bject(SDKAggregateObjectMapping.java:56)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMa pping.valueFromRow(AbstractCompositeObjectMapping.java:155)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1045)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.sdk.SDKAggregateCollectionMapping.buildCompos iteObject(SDKAggregateCollectionMapping.java:62)
at oracle.toplink.mappings.foundation.AbstractCompositeCollecti onMapping.valueFromRow(AbstractCompositeCollectionMapping.ja va:735)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1045)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:526)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:382)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObje ct(ObjectLevelReadQuery.java:457)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectL evelReadQuery(ReadObjectQuery.java:424)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDa tabaseQuery(ObjectLevelReadQuery.java:813)
at oracle.toplink.queryframework.DatabaseQuery.execute(Database Query.java:620)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(O bjectLevelReadQuery.java:781)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadOb jectQuery.java:388)
at oracle.toplink.publicinterface.Session.internalExecuteQuery( Session.java:2089)
at oracle.toplink.publicinterface.Session.executeQuery(Session. java:993)
at oracle.toplink.internal.indirection.NoIndirectionPolicy.valu eFromQuery(NoIndirectionPolicy.java:262)
at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow (ForeignReferenceMapping.java:1151)
at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOn eMapping.java:1032)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1045)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:526)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:382)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObje ct(ObjectLevelReadQuery.java:457)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectL evelReadQuery(ReadObjectQuery.java:424)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDa tabaseQuery(ObjectLevelReadQuery.java:813)
at oracle.toplink.queryframework.DatabaseQuery.execute(Database Query.java:620)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(O bjectLevelReadQuery.java:781)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadOb jectQuery.java:388)
at oracle.toplink.publicinterface.Session.internalExecuteQuery( Session.java:2089)
at oracle.toplink.publicinterface.Session.executeQuery(Session. java:993)
at oracle.toplink.internal.indirection.NoIndirectionPolicy.valu eFromQuery(NoIndirectionPolicy.java:262)
at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow (ForeignReferenceMapping.java:1151)
at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOn eMapping.java:1032)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1045)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:526)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:382)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec tsInto(ObjectBuilder.java:678)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanis m.buildObjectsFromRows(DatabaseQueryMechanism.java:142)
at oracle.toplink.queryframework.ReadAllQuery.executeObjectLeve lReadQuery(ReadAllQuery.java:483)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDa tabaseQuery(ObjectLevelReadQuery.java:813)
at oracle.toplink.queryframework.DatabaseQuery.execute(Database Query.java:620)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(O bjectLevelReadQuery.java:781)
at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQu ery.java:451)
at oracle.toplink.publicinterface.Session.internalExecuteQuery( Session.java:2089)
at oracle.toplink.publicinterface.Session.executeQuery(Session. java:993)
at oracle.toplink.internal.indirection.NoIndirectionPolicy.valu eFromQuery(NoIndirectionPolicy.java:262)
at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow (ForeignReferenceMapping.java:1151)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObjec t(DatabaseMapping.java:1045)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttri butesIntoObject(ObjectBuilder.java:245)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:526)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjec t(ObjectBuilder.java:382)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObje ct(ObjectLevelReadQuery.java:457)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectL evelReadQuery(ReadObjectQuery.java:424)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDa tabaseQuery(ObjectLevelReadQuery.java:813)
at oracle.toplink.queryframework.DatabaseQuery.execute(Database Query.java:620)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(O bjectLevelReadQuery.java:781)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadOb jectQuery.java:388)
at oracle.toplink.publicinterface.Session.internalExecuteQuery( Session.java:2089)
at oracle.toplink.publicinterface.Session.executeQuery(Session. java:993)
at oracle.toplink.publicinterface.Session.executeQuery(Session. java:950)
at oracle.toplink.publicinterface.Session.readObject(Session.ja va:2591)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools5 0.readMWProjectNamed(PersistenceTools50.java:322)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.re ad50Project(LegacyIOFacade.java:14)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacy Project(ProjectReader.java:243)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(Proje ctReader.java:102)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(Pr ojectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open( MappingsPlugin.java:286)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.toplink.internal.security.PrivilegedAccessController. invokeMethod(PrivilegedAccessController.java:501)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor. setAttributeValueInObject(MethodAttributeAccessor.java:126)
... 79 more
Caused by: java.lang.NullPointerException
at oracle.toplink.workbench.utility.ClassTools.classNamedIsArra y(ClassTools.java:1193)
at oracle.toplink.workbench.mappingsmodel.meta.MWTypeDeclaratio n.legacy50SetTypeNameForTopLink(MWTypeDeclaration.java:512)
... 84 more
Previous Topic:Be wary of transient nested inner class members
Next Topic:EclipseLink DBWS Deployment Dependencies
Goto Forum:
  


Current Time: Sat Dec 20 14:35:37 GMT 2014

Powered by FUDForum. Page generated in 0.01988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software