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

Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC execute statement with Brackets - NullPointerException

Re: JDBC execute statement with Brackets - NullPointerException

From: Steve Howard <stevedhoward_at_gmail.com>
Date: 23 Jan 2007 09:13:58 -0800
Message-ID: <1169572438.580028.270800@m58g2000cwm.googlegroups.com>


Olivier Guyot wrote:
> CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "SystemUtil" AS
> import java.lang.*;
> import java.util.*;
> import java.io.*;
>
> public class SystemUtil {
> ....
> ....
> }
> ;
> ----
>
> The JDBC Command :
>
> try {
> Stmt = Conn.getOracleConnection().createStatement();
> Stmt.executeUpdate(SQLStmt);
> } catch (SQLException E) {
> throw new EStmtException (Constante.ERROR_EXECUTE ,Conn,SQLStmt,E);
>
> I have tested executeUpdate and execute with the same Error :
> NullPointerException.
>
> Regs,
>
> Olivier
>
>

Where do you define Stmt? Received on Tue Jan 23 2007 - 11:13:58 CST

Original text of this message

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