×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jun 2009
    Posts
    179

    Exclamation null pointer exception

    i am trying to hit an url with date from "datefield" and it is displaying null pointer exception , when i am trying it on emulator (SUN WTK 3.0) application is working fine , it is hitting the url, but when i tryed on s40 and nokia 3110c it is showing null pointer exception , where i am wrong .

    thanks and regards
    Arunesh

  2. #2
    Super Contributor
    Join Date
    Apr 2009
    Posts
    572

    Re: null pointer exception

    can u explain ur problem bit more
    Regards,
    Saurabh

  3. #3
    Regular Contributor
    Join Date
    Jun 2009
    Posts
    179

    Exclamation Re: null pointer exception

    i am trying to hit this url:

    http://www.virtuosos.in/sms/gprs/pus...h&msg=INNOLABS SMARTCOMM GROUP SHD NO DATEDUE message||15,1,2010,16,33

    (i have replaced username and password)

    when i use emulator i get the following value

    SMS has been schedule to sent to all the member of the group DATEDUE Total recipients: 1

    which is correct

    i tried this on sony erricson w700i it worked well their , but null pointer exception is cumming on nokia phones

    only thing new in this application is use of datefield .

    thanks and regards
    Arunesh
    Last edited by Arunesh; 2010-01-15 at 11:24.

  4. #4
    Regular Contributor
    Join Date
    Jun 2009
    Posts
    179

    Exclamation Re: null pointer exception

    please some one reply i m mot able to get where the error is ....

    thanks and regards

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: null pointer exception

    Are you sure this has anything to do with the DateField?

    NullPointerExceptions often result from having ignored some other exception (by catching it, but allowing the code to continue).

    You have illegal characters in that URL... are you URL encoding it before you try to open the connection?

    Graham.

  6. #6
    Regular Contributor
    Join Date
    Jun 2009
    Posts
    179

    Exclamation Re: null pointer exception

    if it would have been some thing to do with illegal characters then how come it is working with emulator and with sony erricson mobile ....

    this is the exact url (apart from pass and username )

    http://www.virtuosos.in/sms/gprs/pus...5,1,2010,18,15


    i think in nokia mobile date value is not able to come , yes i have encoded my url for space charecters

    thanks and regards
    Arunesh
    Last edited by Arunesh; 2010-01-15 at 13:01.

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: null pointer exception

    You should encode the "|" characters.

    Graham.

Similar Threads

  1. Null pointer error in read video files
    By souhomura in forum Streaming and Video
    Replies: 0
    Last Post: 2009-07-28, 09:34
  2. Client exit when new sms(general sms, not related with APP) comes,
    By sanjeevmehtaubi in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-04-22, 16:06
  3. 6131NFC SDK1.1 Class cast exception on Custom Data Source
    By steview in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2007-08-13, 22:07
  4. System.getProperty() results in null pointer exception
    By artemg in forum Mobile Java General
    Replies: 2
    Last Post: 2005-02-28, 17:04
  5. global root overflow(please help)
    By sushant_125 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2004-05-14, 08:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •