Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

IOUtils.readFully(InputStream) line 68 exception NullPointerException

3 replies [Last post]
gthornejr
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 04/14/2010

Hello,

I am trying to use the BlackBerry sample WrappedMapDemo from library maps-lib-rim_1_0_2 with my Eclipse 3.4 project. I am set up to use the BlackBerry JDE 4.5, so I removed the Touch* classes. When I run the sample app, I receive the following exception immediately at startup :

IOUtils.readFully(InputStream) line 68 exception NullPointerException

I am running the MDS Simulator for network support. I tried running Wireshark to look for network traffic and I didn't see any. The emulator is the BlackBerry 8300 series. I tried using both the tutorial key and my developer key.

Can you please give me some help?

Thanks,
Gary Thorne

jaak
User offline. Last seen 1 day 11 hours ago. Offline
Joined: 06/19/2008

Have you tried other possible values for DefaultDownloadStreamOpener?

More probably you get NullPointerException when library tries to open a file which is not in the build package for some reason.

/JaakL

gthornejr
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 04/14/2010

Thank you for the direction. I had not included the image files in the /src folder in the Eclipse project. Also, one of the image files in the sample file UserInterface.java is not available in the download. It is /us.png. I just renamed it to nutiteq.png for the demo to run.

Gary Thorne

Bickey
User offline. Last seen 38 weeks 6 days ago. Offline
Joined: 04/18/2011

I have same technical problem in my blackberry and I have tried every possible way to fix it, but I want to know is that, is it due to a new Mobile Analytics software I downloaded recently or some other API error. Before it was working all fine, but after the download it has stopped working. If, anyone can help me out here what might be the reason for it.