cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create model in Web Dynpro

Former Member
0 Kudos
108

Hi all,

I want to create a model in a web dynpro project.

When i click the "models" --> "Create Model" in the , it appear below error.

===================================================

Internal error

Plugin name :Web Dynpro Model Editor

Plugin ID : com.sap.ide.webdynpro.modeleditor

Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback

Method : createModel

Exception : java.lang.NullPointerException: null

===================================================

In the log file :

======================================================

com.sap.ide.webdynpro.ui.service.ServicesUI [Thread[main,5,main]] Error: Internal error

Plugin name: Web Dynpro Model Editor

Plugin ID : com.sap.ide.webdynpro.modeleditor

Class : com.sap.ide.webdynpro.modeleditor.ModelEditorCallback

Method : createModel

Message : An error ocurred. See error log for more details.

Exception : java.lang.NullPointerException: null

!STACK 0

java.lang.NullPointerException

at com.sap.ide.jcb.core.service.SAPLogonHelper.<init>(SAPLogonHelper.java:48)

at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.fillUpLoadBalancingPaneSystems(SAPLogonPage.java:1003)

at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$MessageServerPane.show(SAPLogonPage.java:303)

at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.createControl(SAPLogonPage.java:91)

at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.createPageControls(ModelWizard.java:408)

at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:524)

at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:473)

at org.eclipse.jface.window.Window.create(Window.java:302)

at org.eclipse.jface.window.Window.open(Window.java:552)

at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)

at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)

at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)

at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)

at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)

at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)

at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)

at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)

at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)

at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)

at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)

at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)

at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)

at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)

at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)

at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)

at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)

at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)

at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)

at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)

at com.sap.ide.eclipse.startup.Main.run(Main.java:789)

at com.sap.ide.eclipse.startup.Main.main(Main.java:607)

=============================================================

NWDS

Version: 7.0.13

Build id: 200708072056

OS

Window Vista Home Basic 32bit

Could anyone help me?

Regards.

Wenjr

Message was edited by:

wenjr wu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

NWDS 2.0.16 works with Vista

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj ,

The SAP system version is NW7.0.

Does NWDS 2.0.16 program can run on it ?

Regards.

Wenjr

Former Member
0 Kudos

Hi,

You need to upgrade your NWDS too.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza,

Thanks for your help.

My NWDS is 7.0.13.

So far as I know, it is the newest version.

Do you have another idea about this problem ?

Regards.

Wenjr

Former Member
0 Kudos

Hi,

1. Close your NWDS.

2. try deleting the .registry file from the following location

C:\Documents and Settings\<username>\Documents\SAP\workspace\.metadata

3. Restart NWDS.

Hope this gives you some luck.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza,

I create a new workspace.

When i create the model again, the problem is still here.

Regrads.

Wenjr

Former Member
0 Kudos

Hi Wenjr

As per the link given by Mr.Ayyapparaj , only the versions above X.X.16 will work on MS Vista, but yours is X.X.13 , try to update your NWDS

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi Chaitanya.A ,

I install NWDS 2.0.19 now, but the error still appears.

NWDS 2.0.X is old version.

NWDS 7.0.X is new version.

Regards.

Wenjr

Former Member
0 Kudos

I encountered the same issue in all NWDS versions I tested on Windows Vista, while it works perfectly fine on Windows XP.

This issue is caused by com.sap.ide.jcb.core.service.SAPLogonHelper not being able to retrieve system environment variables on Windows Vista.

Fortunately the solution is simple: let NWDS think that it is running on Windows XP instead of Windows Vista. This can be achieved by adding the following parameter to "vm.parameters" in the NWDS installation directory (probably C:\Program Files\SAP\IDE\IDE70\eclipse):

-Dos.name='Windows XP'

(don't forget the single qoutes)

So your vm.parameters should look something like:


-Xmx1024m
-Xms256m
-XX:PermSize=32m
-XX:MaxPermSize=128m
-Dos.name='Windows XP'

Regards,

Hans de Boer

Edited by: Hans de Boer on Jun 25, 2008 1:17 PM

Former Member
0 Kudos

I ran into the same problem and was very much helped by the solution offered by Hans. Great!

Small comment: in my case I had to remove the quotes around Windows XP, otherwise NWDS didn't start at all... Now all works fine.

Former Member
0 Kudos

Dear All,

Thanks a lot for this thread. I resolved my issue by adding it in vn parameters.

Regards,

P188071

Former Member
0 Kudos

Great solution from Hans de Boer.

I am running NWDS 7.1 on Vista Home edition (64bit) and I had the same error but after modifying the vm file it works

Ram Gupta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

Just go to Service Market Place and check whether your NWDS version is supportable for Vistal Home 32 bit or not.

If not then download the appropriate version.

Reinstall your correct NWDS as this problem is regarding the plugin which is get corrupted.

Regards,

Roshan