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 -> java store procedure problem of oracle

java store procedure problem of oracle

From: <haining_at_my-deja.com>
Date: Fri, 26 Jan 2001 03:15:40 GMT
Message-ID: <94qq4m$ohr$1@nnrp1.deja.com>

When using System.arraycopy in java store procedure of Oracle, it give me NullPointerException error, but it is OK when I execute same program in Windows. Does oracle sure the JVM of oracle can be compatibility with JDK?? who can help me?

regards
haining

my test code is here:

import java.io.*;

public class Test
{
  public static void main(String args[])
{

    System.err.println(Testme1());
  }

  public static String Testme1()
{

    try
    {

      int a[][] = new int[5][];
      a[0] = new int[10];
      a[1] = new int[10];
      a[2] = new int[10];
      a[3] = new int[10];
      a[4] = new int[10];
      a[0][0] = 1;
      int b[][] = new int[a.length][];
      System.err.println("doarraycopy");
      System.arraycopy(a, 0, b, 0, a.length);
      System.err.println("arraycopy ok");
      return "ok" + b[0][0];

    }catch(Exception e)
    {
      e.printStackTrace(System.err);
      return "err";

    }
  }
}

Sent via Deja.com
http://www.deja.com/ Received on Thu Jan 25 2001 - 21:15:40 CST

Original text of this message

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