My Oracle Support Banner

ORA-29532: Java call terminated by uncaught Java exception referencing an AWT component (Doc ID 277432.1)

Last updated on MARCH 04, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 9.0.1.0 and later
Information in this document applies to any platform.

Symptoms

Executing the following code within the 9i database fails with a "java.lang.NullPointerException" error.

 

import java.awt.*;

import java.awt.image.BufferedImage;

public class Hello{

public static String hello() {

int width = 500;

int height = 500;

int type = BufferedImage.TYPE_INT_BGR;

BufferedImage buf = new BufferedImage( width, height, type );

System.out.println("BEFORE encodeGif -> buf.createGraphics()");

Graphics2D gi = buf.createGraphics();

Graphics g = buf.createGraphics();

 

return "Hello World ";

}

}

 

 

Error:

-------

ERROR at line 1:

ORA-29532: Java call terminated by uncaught Java exception:

java.lang.NullPointerException

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.