cancel
Showing results for 
Search instead for 
Did you mean: 

how to solve this error java.util.MissingResourceException

Former Member
0 Kudos

Hi Friends,

I had developed one web dynpro application by using Internationalization - I18N of WebDynPro (Java) Application (Blog) but I got one error that is

<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>

Actually i created two properties file

1. lang_en.properties

2. lang_ta.properties

I stored this two properties file in this package com.sap.example.language

and this my code in DOInit()

sessionLocale = WDClientUser.getCurrentUser().getLocale();

resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);

}

catch (WDUMException e)

{

e.printStackTrace();

}

wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));

wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));

How to solve this error?

Guide me.

Advance Thanks,

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Friends,

I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is

<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>

Actually i created two properties file

1. lang_en.properties

2. lang_ta.properties

I stored this two properties file in this package com.sap.example.language

and this my code in DOInit()

sessionLocale = WDClientUser.getCurrentUser().getLocale();

resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);

}

catch (WDUMException e)

{

e.printStackTrace();

}

wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));

wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));

How to solve this error?

Guide me.

Advance Thanks,

Balaji

Former Member
0 Kudos

Hi Balaji,

Please check the blog

/people/prashant.patalay/blog/2006/12/20/internationalization--i18n-of-webdynpro-java-application

Regards

Muthu

Former Member
0 Kudos

...and especially the comment by Valery Silaev

Armin