on 10-07-2006 4:35 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I forgot to mention the version of NWDS i use:
2.0.14 SP 1, Build number 200604050416.
Dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.