Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2005

Tip: Looking for answers? Try searching our database.

j2me

Thread view: 
Andrew O'Regan - 07 Nov 2005 21:52 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.