How to solve this error java.util.MissingResourceException

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

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

Similar Messages

  • How to solve this ERROR  --java.lang.OutOfMemoryError: Java heap space

    I am Trying to read one TEXT file line by line. file size is approx. 7 MB or it contain approx. 35000 line of text.
    i am processing that file and export data into another file.
    mean while after some line i get error like below,
    java.lang.OutOfMemoryError: Java heap space
    After this error process stop.
    my application is in Java Swing and i m using java 1.5 version of SDK and JRE.
    is it a JDK version Problem?
    please can any one give me appropriate solutions for this.
    give me answer please.............

    Are you able to post the code you use to read the file? Initially, I'd guess that you're stuck in a loop. Make sure you're getting out of all your loops. You can do this with breakpoints in your IDE's debugger, or by putting a println right after the loop.
    It may also be that your IDE isn't allotted enough of your system's memory, though I doubt that is the case. You can easily google how to increase the memory allotted to the IDE.
    For some reason, garbage collection isn't happening as you're expecting. Make sure you're not holding on to huge stuff any longer than you need to.
    Edited by: Caryy on Aug 14, 2010 5:57 PM

  • Error :  java.util.MissingResourceException

    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

    1. Place your  lang_en.properties, lang_ta.properties in dist/PORTAL-INF/classes
    2. In PORTALAPP.XML add this property to your Component config:
    <property name="ResourceBundleName" value="lang"/>
    3. In your message class use this modified method to get resources:
    public static String getString(IPortalComponentRequest request, String key) {
            try {
                return request.getResourceBundle().getString(key);
            } catch (MissingResourceException e) {
                return  key;

  • How to solve this error JBoss Server start time............

    How to solve this error JBoss Server start time............
    10:45:38,484 INFO [TomcatDeployer] deploy, ctxPath=/JobWorkInvoice, warUrl=.../deploy/JobWorkInvoice.war/
    10:45:38,640 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
    10:45:38,640 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
    10:45:38,640 ERROR [STDERR] log4j:ERROR [WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    java.net.FactoryURLClassLoader@d5f9b9
    ] whereas object of type
    10:45:38,640 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@5d173].
    10:45:38,687 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
    10:45:38,687 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:174)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:149)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:162)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:424)

    The error message suggests that your system is running out of memory. How much memory is available for OC4J on this box?
    You may also see problems like these when any of the following Jar files in your classpath :
    <li>$OH/jlib/repository.jar
    <li>$OH/j2ee/home/jazn.jar
    <li>$OH/j2ee/home/oc4j.jar
    <li>$OH/j2ee/home/jazncore.jar
    <li>$OH/jlib/infratool.jar
    Thanks,
    EJ

  • How to solve this error using OSX Server's bots

    Plz help me.
    My remote repository is SVN version controll system.
    when I started integration using bot in OSX Server. this error was pisplayed on a log.
    how to solve this error to integrate my project using OSX Server.
    Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:466 77537310 +61ms] Will NOT send email notifications because notifyCommitterOnFailure is NO Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:470 77537310 +0ms] Posting email notification for bot run with type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:471 77537310 +0ms] Sending email to committers = (null) Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:1033 77537310 +0ms] Posting notification of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:199 77537310 +0ms] Posting notification for bot run GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +45ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.postNotificationForBotGUID:andRunGUID:andNotificati onType:additionalEmails:(c6189ca0-0649-0649-c01e-81c4d0b52dd9,f87f0098-f8ca-4bfa -945e-cbb11a2f6abb,com.apple.notifications.BotFailed,( ))} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:601 77537310 +84ms] Deleting work queue item: cf7fe6b8-4df8-b723-4794-50fbf27955ed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCWorkQueueService.deleteWorkQueueItemWithGUID:(cf7fe6b8-4df8-b7 23-4794-50fbf27955ed)} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:929 77537310 +13ms] Marking build bundle complete with status failed and sub-status internal-checkout-error Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:97 77537310 +55ms] Updating bot run with GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:102 77537310 +0ms] Updating bot run (f87f0098-f8ca-4bfa-945e-cbb11a2f6abb): { guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBotRun:({ guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; })} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:108 77537310 +121ms] Updating bot with GUID c6189ca0-0649-0649-c01e-81c4d0b52dd9 Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:117 77537310 +0ms] Updating bot with latest bot run GUID key Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:124 77537310 +0ms] Updating bot (c6189ca0-0649-0649-c01e-81c4d0b52dd9): { guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBot:({ guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; })}

    Hello,
    You need to make sure both names match exactly

  • Ajax submit failed: error = 403, forbidden----how can solve this error

    Ajax submit failed: error = 403, Forbidden--how can solve this error to create a new eprintcenter account

    I am having the SAME problem.  This is so frustrating.   If i try to log on with teh user account I already have, I get the above message.  If i try to create a new accoutn it says the account is already existing.  If i click on forgot password, nnothing happens.  HELP!  I am stuck in a loop!!

  • How to solve this error from window phone 80073cf9 lumia 630.

    any one know how to solve this error from window phone 80073cf9  lumia 630.

    Hello Muhammad,
    We appreciate the post, but this forum is for Windows Store and Phone Developer related questions. Your question can best be answered through the
    Windows Phone support page.
    Thanks!
    -Jonathan
    Windows Store Developer Support
    Office Store Developer Support

  • When using nant i was told "excepted point(.) and coma(;)".how to solve this error

    hi
      i am using nant and for my code 
                var symmetricKey = new RijndaelManaged() { Mode = CipherMode.CBC, Padding = PaddingMode.Zeros };
              it is ok when i compile it  by visual studio,but when i use nant i was told"excepted point(.) and  coma(;)".
             how to solve this error?
          any help would be appreciated
    best regards
    martin

    anyway now i realized that since i used .Net Frame work 2.0, and i should use like this
     RijndaelManaged symmetricKey = newRijndaelManaged();
                symmetricKey.Mode = CipherMode.CBC;
                symmetricKey.Padding = PaddingMode.Zeros; and i cannot use "var" i've solved this problem and it could be helpful if some one who have the same problem

  • What cause this error: java.util.zip.ZipException: invalid literal/lengths?

    Hi all,
    Our application produces this error in the logs: (our JDEV is 11.1.1.4.0, WLS 10.3)
    org.apache.myfaces.trinidadinternal.renderkit.core.CoreResponseStateManager _restoreSerializedView
    SEVERE:
    java.util.zip.ZipException: invalid literal/lengths set
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
    at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
    at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
    I have googled this error for hours and search the forum here, but no luck. Can someone please shed some light on this error? Thanks in advance!
    Shawn

    Hi Shawn,
    Please refer the below thing i found. Hope this may help you in moving forward in resolving. I hope this issue has occured when you are deploying your application WAR.
    ======================================================================================
    Method: read()
    Class: at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
    The above class comes in your exception hierarchy above.
    Reads uncompressed data into an array of bytes. This method will block until some input can be decompressed.
    Throws:
    ZipException - if a ZIP format error has occurred
    ====================================
    This also points that your WAR file is corrupt.
    Class: GZIPInputStream
    IOException - if an I/O error has occurred or the compressed input data is corrupt
    Thanks,

  • How to solve this error 'This package is using an app name that hasn't been reserved for this app: "Matest"

    i already reserved app name as Ma_Test. But only one error showing "This package is using an app name that hasn't been reserved for this app: "Matest". how to solve?

    Hello,
    You need to make sure both names match exactly

  • How to solve this error in bdc

    Hi,
    i have downladed the format ...........its downloading correctly.......
    but i am getting this error.........how to solve that........
    what may be the reason for that error.
    EXCEL FILE FILE:// CANNOT BE PROCESSED

    i am using 2 file paths one is upload file and is download file.
    when i am using upload filr in bdc its working fine..
    when i am using both upload file and to download fileformat then also its working fine.
    but when i use only download format, file is downloading correctly
    but i am getting error
    file cannot be processed

  • How to solve this error in tasql

    hi all
    i used this code:
    SELECT GacFirstDetailAccountRef,
    [1] AS title1,
    GacSecondDetailAccountRef,
    [2] AS title2,
    GacThirdDetailAccountRef,
    [3] AS title3,
    GacFourthDetailAccountRef,
    [4] as title4,
    GacFifthDetailAccountRef,
    [5] as title5,
    GacSixthDetailAccountRef,
    [6] as title6,
    credit,
    debit
    FROM
    select vi.*,ar.DetailID,da.Title
    from VIBudjetCalc vi
    CROSS APPLY (VALUES (GacFirstDetailAccountRef,1),(GacSecondDetailAccountRef,2),(GacThirdDetailAccountRef,3),(GacFourthDetailAccountRef,4),(GacFifthDetailAccountRef,5),(GacSixthDetailAccountRef,6))ar(AcctRef,DetailID)
    INNER JOIN Gac.GacDetailAccount da
    ON da.Code = ar.AcctRef
    )t
    PIVOT (MAX(Title) FOR DetailID IN ([1],[2],[3],[4],[5],[6]))p
    but i see this error:
    Msg 325, Level 15, State 1, Line 23
    Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
    how to solve it.
    please help me
    thanks
    Name of Allah, Most Gracious, Most Merciful and He created the human

    The reason is because your compatibility level is less that 90
    Here's an alternative that works in all versions
    SELECT MAX(CASE WHEN DetailID = 1 THEN AcctRef END) AS GacFirstDetailAccountRef,
    MAX(CASE WHEN DetailID = 1 THEN Title END) AS title1,
    MAX(CASE WHEN DetailID = 2 THEN AcctRef END) AS GacSecondDetailAccountRef,
    MAX(CASE WHEN DetailID = 2 THEN Title END) AS title2,
    MAX(CASE WHEN DetailID = 3 THEN AcctRef END) AS GacThirdDetailAccountRef,
    MAX(CASE WHEN DetailID = 3 THEN Title END) AS title3,
    MAX(CASE WHEN DetailID = 4 THEN AcctRef END) AS GacFourthDetailAccountRef,
    MAX(CASE WHEN DetailID = 4 THEN Title END) as title4,
    MAX(CASE WHEN DetailID = 5 THEN AcctRef END) AS GacFifthDetailAccountRef,
    MAX(CASE WHEN DetailID = 5 THEN Title END) as title5,
    MAX(CASE WHEN DetailID = 6 THEN AcctRef END) AS GacSixthDetailAccountRef,
    MAX(CASE WHEN DetailID = 6 THEN Title END) as title6,
    credit,
    debit
    FROM
    SELECT v.credit,v.debit,v.AcctRef,v.DetailID,da.Title
    FROM
    select credit,debit,GacFirstDetailAccountRef AS AcctRef,1 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacSecondDetailAccountRef AS AcctRef,2 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacThirdDetailAccountRef AS AcctRef,3 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacFourthDetailAccountRef AS AcctRef,4 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacFifthDetailAccountRef AS AcctRef,5 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacSixthDetailAccountRef AS AcctRef,6 AS DetailID
    from VIBudjetCalc
    )v
    INNER JOIN Gac.GacDetailAccount da
    ON da.Code = v.AcctRef
    )t
    GROUP BY credit,debit
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    thanks deear
    i run your code but i see 2653 row
    when i run this code:
    select * from vibudjectcalc
    i see 5683 rows
    how to solve it
    Name of Allah, Most Gracious, Most Merciful and He created the human

  • How to solve this error :12170 TNS connection to timeout occured- req

    Hi
    I have 2 databases.They are source db and target db .i have created the database link source to target.The users report that when they try to connect the database source from target database using the database link they are getting the error
    ORA-12170: TNS: CONNECTION TO TIMEOUT OCCURED
    Note : Indpendently can be log on source database, target database from out of source db, But source db could'nt directly logon.
    so how can i solve the error
    pls reply urgently....
    regs
    RENGA

    ORA-12170: TNS: CONNECTION TO TIMEOUT OCCUREDWhen was last time this worked?
    What changed?
    What OS name & version involved on each system?
    12170, 00000, "TNS:Connect timeout occurred"
    // *Cause:  The server shut down because connection establishment or
    // communication with a client failed to complete within the allotted time
    // interval. This may be a result of network or system delays; or this may
    // indicate that a malicious client is trying to cause a Denial of Service
    // attack on the server.
    // *Action: If the error occurred because of a slow network or system,
    // reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT,
    // SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values.
    // If a malicious client is suspected, use the address in sqlnet.log to
    // identify the source and restrict access. Note that logged addresses may
    // not be reliable as they can be forged (e.g. in TCP/IP).Edited by: sb92075 on Oct 20, 2010 6:53 AM

  • Anyone know how to solve this error?

    http://i.imgur.com/RDwT47F.png
    I was cutting a video, then one day premiere decides it can't conform the video that was just working the day before.
    Anyone have experience with this error and how to solve it?
    Thanks!

    Delete the Render Cache files is a Menu Bar Option ( and safe to try)
    Delete those CFA's directly = find the two of them with a search ( from your error message) > DELETE

  • How to solve the error { java.lang.NumberFormatException: empty String }

    Sir,
    I am using the following code and get subjected error.
    {error}{
    java.lang.NumberFormatException: empty String
         at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
         at java.lang.Double.parseDouble(Double.java:540)
         at invoice.InvoiceController$4.changed(InvoiceController.java:192)
    }{error}
    and
    //wt ,  sValExlSt1 and sPrice1 are numbers
    wt1.textProperty().addListener(new ChangeListener<String>() {
                    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                        sValExlSt1.setText(String.valueOf(
                                Double.parseDouble(newValue)  * Double.parseDouble(sPrice1.getText())));
            } catch (NumberFormatException e1) {
    }Please help.

    One way is to check each input variable for valid numbers and if a blank or a text is detected, then make that variable zero.
    wt1.textProperty().addListener(new ChangeListener<String>() {
                    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                        final double doubleTXTValue = 0.0;
                        final double doubleNewValue = 0.0;
                        try {doubleTXTValue = Double.parseDouble(sPrice1.getText());} catch(Exception e) {}
                        try {doubleNewValue = Double.parseDouble(newValue);} catch(Exception e) {}
                        sValExlSt1.setText(String.valueOf(
                                doubleNewValue  * doubleTXTValue));
                });The above code will make sure the user does not enter invalid double values of any type.
    You can take this further by inserting the old value of the variables or presenting an error to the user.
    If only blank values need to be checked then you can use a more simplistic check by just checking for blanks.
    wt1.textProperty().addListener(new ChangeListener<String>() {
                    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                        final double doubleTXTValue = 0.0;
                        final double doubleNewValue = 0.0;
                        if (sPrice1.getText().trim().length() > 0) doubleTXTValue = Double.parseDouble(sPrice1.getText());
                        if (newValue.trim().length() > 0) doubleNewValue = Double.parseDouble(newValue);
                        sValExlSt1.setText(String.valueOf(
                                doubleNewValue  * doubleTXTValue));
                });

Maybe you are looking for