Skip to Content
author's profile photo Former Member
Former Member

Error

Hi Guys, sorry for asking so many question, but I am very new to this. What do the error message below means? I am very lost.

'java.util.MissingResourceException: Can't find bundle for base name com.sap.tc.webdynpro.tutorials.quiz.resources.Answers, locale en_US

at java.util.ResourceBundle.throwMissingResourceException

(ResourceBundle.java:839)'

Conrad

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2005 at 03:52 PM

    Hi, it's look like you are fighting with Quiz tutorial 😊

    The following error means that wd runtime can't find resource bundle called "com.sap.tc.webdynpro.tutorials.quiz.resources.Answers" for locale en_US. Resource bundle is a file that contains locale specific data like translated text.

    The code wich throws this exception located in the doInit method of your WD component controller, here it is:

    // Load the resource bundle "Questions.properties" located 
        // in the package "com.sap.tc.webdynpro.tutorials.quiz.resources.Questions"
        // for locale set in the resource handler. 
        resourceHandlerForQuestions.loadResourceBundle(
          "com.sap.tc.webdynpro.tutorials.quiz.resources.Questions",
          this.getClass().getClassLoader());
        resourceHandlerForAnswers.loadResourceBundle(
          "com.sap.tc.webdynpro.tutorials.quiz.resources.Answers",
          this.getClass().getClassLoader());
    

    In general this code simply can't find Answer.properties file which should be located in WebDynpro_Quiz/src/packages/com/sap/tc/webdynpro/tutorials/quiz/resources/ folder.

    Is this file exist?

    Victor.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Victor,

      The file is there. I have another problem, I did another Web Dynpro application tutorial and the image cannot be display. It seems to me that all the files in any folders cannot be seen. Is there a setting in the J2EE server or some other server that needs to be set?

      Conrad

  • Posted on Feb 08, 2005 at 09:38 AM

    Hi Conrad,

    I assume that you did not define exactly this package when developing the quiz tutorial application. Perhaps you defined a package

    com.sap.tc.webdynpro.<u>tutorial</u>.quiz.resources.Answers instead of com.sap.tc.webdynpro.<u>tutorial<b>s</b></u>.quiz.resources.Answers. In this case a MissingResourceException is thrown.

    Regards, Bertram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.