Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 8.1.5 Java Problem

Re: Oracle 8.1.5 Java Problem

From: Urs Hunkeler <uhu_at_gmx.ch>
Date: Mon, 13 Dec 1999 09:15:29 +0100
Message-ID: <3854AB21.7FDA733E@gmx.ch>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US