Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 8.1.5 Java Problem
When did your problem occure? While installing, or does the installation
run allright, but your own program in Java doesn't? How does the code
look like which throws the NumberException (or do you mean
NumberFormatException)?
Maybe I had the same problem as you. I tried to parse the value of a
field as Integer like:
int n = Integer.parseInt(oraField.toString());
which doesn't work because Oracle returns an Integer as number plus a period (i.e. "1."). I could solve the problem by using the following Statement:
int n = ((Number)oraField).intValue();
which is much nicer anyway.
Michael Smith schrieb:
>
> I had this problem attempting to use Oracle 8.1.5's dbassist on Linux
> Slackware 7.0 and I was wondering if anyone had solved it. I get a
> java.lang.NumberException error. Any ideas? Oracle 8.1.5 installed without
> a problem on Redhat 6.0.
Received on Mon Dec 13 1999 - 02:15:29 CST