Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject java.lang.NullPointerException for WebSphere 5.0

jcyoo

Location : Monroe/USA
Member since : Nov 11, 2005
Messages : 1
 Nov 11, 2005 at 5:26 PM
Hi,
I got the following error:

java.lang.NullPointerException
Acme/JPM/Encoders/GifEncoder.GIFEncode(Ljava/io/OutputStream;IIZBII[B[B[B)V+0 (GifEncoder.java:219)
Acme/JPM/Encoders/GifEncoder.encodeDone()V+0 (GifEncoder.java:112)
Acme/JPM/Encoders/ImageEncoder.imageComplete(I)V+36 (ImageEncoder.java:261)
com/eteks/awt/PJAImage$NBProducer.addConsumer(Ljava/awt/image/ImageConsumer;)V+293 (PJAImage.java:430)
com/eteks/awt/PJAImage$NBProducer.startProduction(Ljava/awt/image/ImageConsumer;)V+2 (PJAImage.java:451)
Acme/JPM/Encoders/ImageEncoder.encode()V+17 (ImageEncoder.java:111)
...
...
..
..
.

Anyone knows how to fix it??
---
Thank you

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Nov 11, 2005 at 8:00 PM
Your line numbers doesn't match the ones in GIFEncoder source, maybe because of JIT optimization. To get the good line numbers, you should try to run your program in interpreted mode with the -Xint Java option.
Anyway, I would bet that the output stream you gave in GIFEncoder constructor is null...
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation