cancel
Showing results for 
Search instead for 
Did you mean: 

MessagePoolEditor: NullPointerException in TranslatableTextProxy

0 Kudos

Hi,

i want to add new messages via the MessagePoolEditor

and am getting NPEs when pressing the OK button.

!MESSAGE Oct 7, 2006 5:18:03 PM com.sap.ide.metamodel.core.services.ServicesUI [Thread[main,5,main]] Error: Internal error

Plugin name: Web Dynpro Message Editor

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

Class : com.sap.ide.webdynpro.messageeditor.editor.MessageEditor

Method : setupTableData()

Message :

Exception : java.lang.NullPointerException: null

!STACK 0

java.lang.NullPointerException

at com.sap.ide.metamodel.core.i18n.TranslatableTextProxy.getResourceType(TranslatableTextProxy.java:199)

at com.sap.ide.webdynpro.messageeditor.model.TabData$MessageRowItem.<init>(TabData.java:326)

at com.sap.ide.webdynpro.messageeditor.model.TabData.getRowElements(TabData.java:140)

at com.sap.ide.webdynpro.messageeditor.model.MessageTableModel.getElements(MessageTableModel.java:41)

Is anyone else getting such errors?

The message seems to be added to the message pool but is not displayed in the message table.

When i close the dialog and reopen it and try to add a new message with the same key as before i'm told that it already exists.

What can i do to overcome this obstacle?

Comments are appreciated very much!

regards

Dirk

Accepted Solutions (1)

Accepted Solutions (1)

sridhar_k2
Active Contributor
0 Kudos

Hi Dirk,

I am not sure why you are getting that Null Pointer Exception. If Editor is not accepting to enter new Message, there is another way to add message to MessagePool.

In your NWDS - Go to Navigator Perspective ->

Project -> src -> Packages -> Go to your component.

<b>Define Message Type</b>

There you will find all the Messagepool related files. In that goto <ComponentName>MessagePool.wdmessagepool ,in that add ur message, like

<Message messageType="error" name="MISSING_INPUT">

</Message>

// messageType - standard/error

//name - your message name.

<b>Define Message</b>

Go to <ComponentName>MessagePool.wdmessagepool.xlf - file

Add ->

Select Resource Type - informationMessage/errorMessage.

Resource Name - "Message:MISSING_INPUT@content" and then define your message in the Text.

Re-load your project, then you can use this message in your program.

Seems to be complicated, but it is not.

If you dont want this solution, just try changing your workspace. Window -> Preferences -> Workbench -> Workspace -> give new workspace.

Regards,

Sridhar

0 Kudos

Thanks for your Suggestions!

I'll give it a try.

regards

Dirk

Answers (1)

Answers (1)

0 Kudos

I forgot to mention the version of NWDS i use:

2.0.14 SP 1, Build number 200604050416.

Dirk