Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> java store procedure problem of oracle
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];
e.printStackTrace(System.err); return "err";
Sent via Deja.com
http://www.deja.com/
Received on Thu Jan 25 2001 - 21:15:40 CST