Problem in spring rich client with numeric value

I am facing a problem in spring rich client.
I have a text field of NumericJTextField type which extends JTextField and it is storing value of long type.
In one constructor of this NumericJTextField ,we are creating new instance of NumericDocument which extends PlainDocument.
We are alos using document filter.
My problem is that,when i enter a numeric value starting with 0 for ex: 0123 then at the time of saving,
it automatically converts this numeric value into something else like 83 or 9 etc.
I dont know how and where this is happenning?
can anyone help mme in this?
Thanks!

It's happening somewhere in the Spring code, where it translates a string into a number. Apparently it treats strings of digits which start with a zero as octal. (You know what that means now, right?)
I don't know much about Spring, but this isn't a Spring forum so I'm free to post my uneducated wild guesses here. Quite possibly this is a Spring FAQ which you would find on the Spring website.

Similar Messages

  • Import Purchase orders failing with numeric/value error issue

    Import Purchase orders failing with numeric/value error issue

    Hi All,
    Import Purchase Orders program is failing with PL/SQL Numeric or Value Error.
    DECLARE
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 55
    Kindly help me to get the issue fixed

  • Question regarding creation of xml-elements with numerical values

    When i create xml-documents from xml stored in the database (xmltype table based on an xml-schema), i find that numerical values which were stored as 0.395 (with the "." as the decimal separator) are retrieved as .395.
    Is it possible to apply a format mask so that the numerical value is retrieved as 0.395?
    thanks, Bart
    N.b. Note that i select a complete xml-fragment. So my problem seems related to the storage or retreival of 'schredded' XML. I do not use SQL/XML-functions with relational data, in which case i know how to apply a format mask.

    I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
    I have posted a simple example over here Re: Is it possible to influence the creation of empty elements?

  • How can I concatenate a currency field (eg: 12.25) with numeric values

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25  with  "+"  and  "0".
    Regard,
    Divya

    Hi,
    I ma working in ECC6.0.
    How can I concatenate a currency field (eg: 12.25) with numeric and character values into a variable.
    I want to concatenate 12.25 with "+" and "0".
    Regard,
    Divya
    ==================================
    data: l_string type string.
    move l_curr_field to l_string.
    condense l_string no-gaps.     "if needed
    concatenate l_string '+' '0' into l_string.
    now your l_string will have all the values.

  • Problem in run remote client with appclient

    I am having problems to execute remote clients (remote machines) using script of client conteiner: appclient. Local it functions perfectly, however when executed in a remote machine, the application not run wheel.
    Thanks!

    Have you looked at the Developer's Guide?
    http://docs.sun.com/app/docs?q=clients&p=doc%2F819-0079
    Specifically the section on creating clients with and without the app client container?
    http://docs.sun.com/source/819-0079/dgacc.html

  • Problem in Web Service Client with JDeveloper 11 r2

    I have a problem while make WS client in JDeveloper 11g R2... It's WS makes in .net
    I get the next error:
    *"An error occurred while opening"*
    after
    *"java.lang.IlegalStatementException: getReader(): null text buffer"*
    Whit can help my?

    Were you able to test the WS using SOAP UI or the like ?

  • How to put 'NA' in text filed with numeric value

    Dear fellows,
    I need to do one think in my forms, and that is I want to put value 'NA' instead of null values in numeric field in my forms, when no number is inserted than NA will be written there.
    Could it is possible or not, if so kindly help me in this regard I will be thankful.

    Dear Gerd Volberg
    Thanks dear for your reply, one think more, if I need to do like this that in one form data is entered and on second form I just need to display the numeric value but when a null value occur just NA is shown. Could it possible.
    If so please help me.

  • Guid Downloading Character field with numeric value

    Hi All,
    I am downloading one table through gui_download, file type is asc. While downloading the internal table contains one field
    w_lif(20) type c, which contains the value '1234545567' all numeric value, now in excel it is displaying as exadecimal , here i need to convert the type of the column in excel to see the actual value.
    could you please tell me ,  how to get actuall value directly to excel
    your valuable help is appreciated.
    Regards,
    Siddivinesh Jogu

    Hi,
    You can try the File Type as DBF. This retains the format of all the columns as Data.
    Please let me know if this help,
    Regards,
    Janani

  • Problems with numeric values in the barcode

    Hi
    I have a problem with the data from a numeric field, when it is encoded in the barcode the validation pattern seems to be ignored.
    I have set the validation pattern of the numeric field to be
    num{9999}
    And when I enter a value like "0200" it is displayed in the form as "0200", which is correct.
    BUT in the barcode the value is captured as "200", which i NOT what I want. I need all four characters to be in the barcode. Even when the first one i 0 (zero).
    How can I do that?
    Kirstine

    Can you send the form to [email protected] and I will have a look. Please include a description of the issue in the email as the email and this forum are not tied together.
    paul

  • Export from ALV to Excel - problem with numeric values

    hi folks,
    when exporting from alv to excel and we have negative values (and using an u.s.a. setting where . and , are different to r/3) negetive values are not shown correctly in excel.
    when changing in win nt the regional settings to europe one's (e.g. germany) everything works fine.
    any hints welcome,
    kind regards
    oliver

    I guess this has something to do with the excel settings. In the control panel you have regional settings.try some options there. It might work.
    Regards
    Sudhi

  • User profile creation problem for windows 7 clients with eap-fast

    Hi All,
    In our clients locations we implemented eap-fast authentication with domain integration in ACS for wlan users.Every thing working fine.We are facing problem with windows 7 laptops, in which client utility is not available to configure the user profiles.
      In xp laptops client utility softwares are available with all makes, but with win 7 utilitys are not coming by default......
    So what are options and available sourses for creating user profile with EAP-FAST in windows 7 laptops.
    Any free univarsal client utility is available for windows 7 laptop.
    Please guide me..............
    -Subhash

    Windows 7 should be able to do EAP-fast by default. If not you could download the latest Anyconnect client that also has the Cisco wireless supplicant in it.
    HTH,
    Steve
    Sent from Cisco Technical Support iPad App

  • [dev tools] ID starting with numeric value crashes the DOM inspector

    Hello,
    I posted a bug on bugzilla without any answer and like to ask if anybody is able to reproduce the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1002280.
    This is quite annoying since I'm working on old code falling into the test case of my report.
    Thank you in advance for answers.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Keep checking your bug report . Your problem will be solved soon .
    Thank you.

  • Different values between Rich Client and Web Intelligence

    Hi all,
    our landscape is BO Edge 4.1 SP2 Patch 5
    we just create a report in Web Intelligence with a query bics from BW
    We discovered that sometimes the report retrives fake values from BW: the same report refreshed in Rich Client shows correct values.
    BW data are frozen (updated only once a day)
    We tried to:
    - save report with Rich Client and published it in the public folder (but Web Intelligence still shows wrong data)
    - upgrade Java Virtuale Machine to the latest release
    - looking for system and BO log without any clue
    - looking for SAP note (some info only related to BI 3.1)
    Workaround: issue disappear only restarting BO SIA
    Can you help us?
    Any idea?
    Regards.

    Have you seen Web Intelligence and Oracle Java Runtime Environment Known Issues
    There is a wiki inside the blog
    I wonder too if you might get a faster, better response in the Web Intelligence space

  • Rich client & web services, how to avoid unnecessary bloat

    Hi!
    Im creating a rich client with java. From this rich client I need to consume web services. Now im wondering which web services framework to use in the client. It seems that almost all (axis, xfire, jax-ws) frameworks require 10+ dependency jars.
    This I dont like of course because the rich client is going to be distrubuted over network and I would like to keep it as slim as possible. 5-10 MB in dependencies is not ok when rest of the program is 100k...
    I guess that everything is going to be different in Mustang (it should include all the needed jars) but i need to support older versions for next x years.
    So if anyone knows any suitable solutions please post here. Thanks.

    The problem here is the SOAP engine running on Oracle9iAS 1.0.2.2 is a lower version than that running on Oracle9iAS 9.0.3/OC4J 9.0.3.
    To get them to interoperate (e.g. 1.0.2.2 calling 9.0.3), you would have to do the following:
    1. Build your Web service in OC4J 9.0.3/JDev 9.0.3
    2. Deploy to 9.0.3 environment
    3. Build a Web service client on the 1.0.2.2 environment, not using any 9.0.3 libraries (see below for a link to a paper to do this)
    Conversely if you wanted to call from a OC4J 9.0.3 Web service client to a Oracle9iAS 1.0.2.2 Web service, you would have to do the following:
    1. Build your Web service on 1.0.2.2 using 1.0.2.2 libraries
    2. Deploy this to a 1.0.2.2 environment
    3. Build a client to the 1.0.2.2 Web service using the 9.0.3 libraries
    The reason it likely is not working is that it looks like you are mixing two different generations of SOAP libraries.
    See the link below for how to build and consume Web services using Oracle9iAS 1.0.2.2:
    http://otn.oracle.com/tech/webservices/htdocs/soapr1/ExploreSOAP1022.html
    At the end of that paper is a link to another paper showing how to use JDeveloper 3.2 to build a Web service for 1.0.2.2 - it shows how to use its libraries versus the libraries that came with 9.0.3.
    Mike.

  • Numeric Value error 1426

    Hi,
    How to retrive the value of below query.
    I am encountered with numeric value error.
    select power(10,333333333333) from dual;Thanks in advance

    You did look up the error in the online documentation?
    Why not?
    If you would have done so you would have gotten
    Cause: Evaluation of an value expression causes an overflow/underflow.
    Action: Reduce the operands.
    Looks clear to me.
    Looks like you should have done this first in order to avoid redundant questions.
    Sybrand Bakker
    Senior Oracle DBA
    Edited by: sybrand_b on 25-jun-2009 2:49

Maybe you are looking for