Bug 385834 - [nls tooling] NPE during string externalization
Summary: [nls tooling] NPE during string externalization
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-07-24 06:28 EDT by Matthieu Decorde CLA
Modified: 2012-07-25 06:25 EDT (History)
1 user (show)

See Also:


Attachments
The error log (7.04 KB, text/x-log)
2012-07-24 06:28 EDT, Matthieu Decorde CLA
no flags Details
A project that reproduced the same error log (101.17 KB, application/x-gzip)
2012-07-24 10:35 EDT, Matthieu Decorde CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Decorde CLA 2012-07-24 06:28:23 EDT
Hi,

I'm having troubles with the String Externalization Wizard.

I've merged all my Messages.java and messages.properties files into one Messages.java and one messages.properties. For now all is OK.

When I open the Wizard, a default accessor class is set, then I change to the right one.
First the warning message "Entry is missing in property file." remains displayed. Secondly, when I click on the "Next" Button I've got an "Internal Error" message log and can't finalize the externalization. (See attached file)

Has someone already encountered this problem and solved it ?

Best regards,
Matthieu Decorde
Comment 1 Matthieu Decorde CLA 2012-07-24 06:28:50 EDT
Created attachment 219098 [details]
The error log
Comment 2 Dani Megert CLA 2012-07-24 09:09:43 EDT
I cannot reproduce this. Please attach a test case/project that allows to reproduce the NPE.

Also note that the stack trace does not match with the indicated version. Please adjust it accordingly.
Comment 3 Matthieu Decorde CLA 2012-07-24 10:35:11 EDT
Created attachment 219115 [details]
A project that reproduced the same error log

I managed to reproduce the same error log with a new RCP project (from the mail template) :

- I've separated the class in 2 packages
- externalized all the Strings.
- merged the 2 Messages.java and the 2 messages.properties.

The first time I tried it was all OK and I cannot reproduce the error log.

Next I tried to malformed a bit my Messages.java file by changing the BUNDLE_NAME value with a wrong package name (line 8). And then the same error log appears.


Back to my true project, I've check my Messages.java but the BUNDLE_NAME is OK
Comment 4 Dani Megert CLA 2012-07-25 06:25:53 EDT
Sorry, but I can't reproduce the NPE. You have to provide more detailed/exact steps.

Note, that it is not supported to manually fiddle around with the BUNDLE_NAME. If you do so, it is you responsibility to know what you're doing ;-).