SAP Knowledge Base Article - Preview

2588897 - Refactor and Renaming an object in HANA Studio gives a NullPointerException

Symptom

When trying to refactor a view and rename it, the execution fails and returns the following error:

Message :

Error occured during the refactoring of <view_name>: while trying to invoke the method com.sap.ndb.studio.repository.model.resource.IResourceObject.getMetadata() of a null object loaded from field com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.mainObjectModel of an object loaded from local variable 'this': while trying to invoke the method com.sap.ndb.studio.repository.model.resource.IResourceObject.getMetadata() of a null object loaded from field com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.mainObjectModel of an object loaded from local variable 'this'
java.lang.NullPointerException: while trying to invoke the method com.sap.ndb.studio.repository.model.resource.IResourceObject.getMetadata() of a null object loaded from field com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.mainObjectModel of an object loaded from local variable 'this'
at com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.load(MDResourceController.java:720)
at com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.getModelObject(MDResourceController.java:172)
at com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.getRequiredRepositoryObject(MDResourceController.java:1589)
at com.sap.ndb.studio.sdk.resource.repository.core.impl.MDResourceController.getRequiredObject(MDResourceController.java:1520)
at com.sap.ndb.studio.sdk.resource.bi.core.impl.BIResourceController.getRequiredObject(BIResourceController.java:582)
at com.sap.ndb.studio.modeler.job.type.copymodels.MoveModelsHandler.updateUsedByReferences(MoveModelsHandler.java:430)
at com.sap.ndb.studio.modeler.job.type.copymodels.MoveModelsHandler.updateReferences(MoveModelsHandler.java:407)
at com.sap.ndb.studio.modeler.job.type.copymodels.MoveModelsHandler.moveModels(MoveModelsHandler.java:301)
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.refactor(RefactorModelsJob.java:757)
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.moveModels(RefactorModelsJob.java:553)
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.refactor(RefactorModelsJob.java:203)
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.run(RefactorModelsJob.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Read more...

Environment

SAP HANA Platform 1.0

Product

SAP HANA, platform edition 2.0

Keywords

HANA Studio, NullPointerException , KBA , HAN-STD-DEV-MOD , SAP HANA Analytical Modeling , HAN-DB , SAP HANA Database , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.