Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21834

Re: How to remove this issue about NumberFormatException?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe18.iad.POSTED!not-for-mail
From Arved Sandstrom <asandstrom2@eastlink.ca>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: How to remove this issue about NumberFormatException?
References <5d71bb47-c763-403a-8405-89708b399442@sb6g2000pbb.googlegroups.com> <50fa3023-1503-4c5b-853f-ff529b26734b@d8g2000pbm.googlegroups.com> <f38fg85vnq3cjno9jbu25mq0n0p3vh2bbi@4ax.com>
In-Reply-To <f38fg85vnq3cjno9jbu25mq0n0p3vh2bbi@4ax.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 24
Message-ID <vENNs.28482$O02.26239@newsfe18.iad> (permalink)
X-Complaints-To abuse@newsgroups-download.com
NNTP-Posting-Date Tue, 29 Jan 2013 10:38:19 UTC
Organization Public Usenet Newsgroup Access
Date Tue, 29 Jan 2013 06:38:18 -0400
X-Received-Bytes 1740
Xref csiph.com comp.lang.java.programmer:21834

Show key headers only | View raw


On 01/29/2013 06:15 AM, Roedy Green wrote:
> On Tue, 29 Jan 2013 01:09:06 -0800 (PST), bluestar
> <bluestar8783@gmail.com> wrote, quoted or indirectly quoted someone
> who said :
>
>> mdata.intValue()&0xFF);<---occur error when
>
> You want to see what mdata is.  use .getClass()
>
> from there drill down to find the data.
>
> As far as I know, NumberFormatExceptions only happen when you convert
> from String to binary.
> I can't see why or where you would be doing that.
>
Number objects are more binary than String objects? Who knew?

An NFE is simply if the String format expected by a conversion to a 
numeric type is not correct.

As for where it's happening, it's in the error message. I'd want to see 
more of the program myself.

AHS

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to remove this issue about NumberFormatException? bluestar <bluestar8783@gmail.com> - 2013-01-29 00:09 -0800
  Re: How to remove this issue about NumberFormatException? bluestar <bluestar8783@gmail.com> - 2013-01-29 01:09 -0800
    Re: How to remove this issue about NumberFormatException? Roedy Green <see_website@mindprod.com.invalid> - 2013-01-29 02:15 -0800
      Re: How to remove this issue about NumberFormatException? Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-29 06:38 -0400
        Re: How to remove this issue about NumberFormatException? Roedy Green <see_website@mindprod.com.invalid> - 2013-01-30 04:55 -0800
          Re: How to remove this issue about NumberFormatException? Lew <lewbloch@gmail.com> - 2013-01-30 08:35 -0800
            Re: How to remove this issue about NumberFormatException? Roedy Green <see_website@mindprod.com.invalid> - 2013-01-31 04:21 -0800

csiph-web