Hi,
I'm trying to do a simple game in J2ME using just two simple .png for a
sprite and a tile background. It all works fine on the J2ME Wireless Toolkit
but when i go to download it onto my Nokia 3220 i just get application
error - Null Pointer java/lang/NullPointerException msg's
any simple solution - assuming its probs with loading picys.
Thanks
Roedy Green - 08 Nov 2005 03:14 GMT
On Mon, 07 Nov 2005 21:52:59 GMT, "Andrew O'Regan"
<andrew.oregan@ntlworld.com> wrote, quoted or indirectly quoted
someone who said :
>I'm trying to do a simple game in J2ME using just two simple .png for a
>sprite and a tile background. It all works fine on the J2ME Wireless Toolkit
>but when i go to download it onto my Nokia 3220 i just get application
>error - Null Pointer java/lang/NullPointerException msg's
>
>any simple solution - assuming its probs with loading picys.
somebody else is having this exact same problem in another newsgroup.
Try looking up the thread there.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 08 Nov 2005 21:27 GMT
> Hi,
>
[quoted text clipped - 5 lines]
>
> any simple solution - assuming its probs with loading picys.
Does your Nokia print out a stack trace with file names and line
numbers?
- Oliver
Darryl L. Pierce - 12 Nov 2005 13:22 GMT
> Does your Nokia print out a stack trace with file names and line
> numbers?
Handsets generally don't do that: not enough screen real estate.

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard
Oliver Wong - 14 Nov 2005 16:19 GMT
>> Does your Nokia print out a stack trace with file names and line
>> numbers?
>
> Handsets generally don't do that: not enough screen real estate.
Not being familiar with handsets, I was thinking maybe the OP could
reproduce the error in some sort of emulated environment, or perhaps the
error log would be saved to a file that could be downloaded later or
something like that.
- Oliver
Andrew O'Regan - 14 Nov 2005 20:02 GMT
problem got solved by changing
Image.createImage("/alien3.png");
to
Image.createImage("/alien3.PNG");
mad
>>> Does your Nokia print out a stack trace with file names and line
>>> numbers?
[quoted text clipped - 7 lines]
>
> - Oliver
Darryl L. Pierce - 12 Nov 2005 13:22 GMT
> I'm trying to do a simple game in J2ME using just two simple .png for a
> sprite and a tile background. It all works fine on the J2ME Wireless Toolkit
> but when i go to download it onto my Nokia 3220 i just get application
> error - Null Pointer java/lang/NullPointerException msg's
>
> any simple solution - assuming its probs with loading picys.
Did you check your JAR file to make sure the images are there?

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard