×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    27

    Angry Problem: illegal argument no ':' in url

    Hi guys, I'm having a problem with my Java code...
    I'm developing an app which can create/write/read text files in the cellphone... and do a Http Request (GET) and have the response back.... the thing is.. it works great in the emulator, it even creates the files in a folder so the next time I start the emulator the file does still exist. or it can PrintOut the responses of the php server I request to access via HTTP... now...

    When I deploy the MIDlet to a Nokia 6300 the following error shows up everytime I try to do any of those two functions...

    Code:
    illegal argument java/lang/IlegalArgumentException no ':' in url
    Note: CLDC and MIDP settings are configured to that exact model. And the urls are stored on a variable (String) as: "http://myserver.com/myphp.php?var=value" which echoes something that can be PrintedOut as soon as the app gets it.

    BTW, a side note, a Nokia XM 5800 could run older CLDC/MIDP MIDlets right?

    thanks in advance, cya

    Armando Leon
    Last edited by lparmy; 2010-06-03 at 16:17.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Problem: illegal argument no ':' in url

    Hello Armando Leon,

    your issue sounds similar to the one included in this Technical Solution:

    TSJ000993 - Limitation on using ':' character in Series 40

    However, your use case seems to be a bit different one. Can you run the application without the problem on other real devices?

    BTW, a side note, a Nokia XM 5800 could run older CLDC/MIDP MIDlets right?
    The generic answer would be: yes.

    As follow up, could you provide more details on these older CLDC/MIDP MIDlets?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    27

    Question Re: Problem: illegal argument no ':' in url

    First of all thanks for the quick reply..

    Well, I've tried the file creation process on a Nokia XM 5320 which has S60 and that would help your theory about the S40 issue. The thing is.. I tried an older code with the XM so I don't know if that problem would persist.

    Taking in consideration your 'tech problem' doc what would you propose?.. setting the url as: "www.server.com:80/script.php?var=value" instead?

    Btw, when I tested the FileCreation code with the XM 5320 i used
    Code:
    System.getProperty("fileconn.dir.photos")
    to get the directory path... on the newer piece of code (Nokia 6300) i've tried
    Code:
    System.getProperty("fileconn.dir.private")
    would that be a problem? Because I'm thinking.. after connecting to the server it tries to save the response on a file too! so I should try (as soon as I get home later tonight) to just check the HttpConn thing isolated from the File Writting function.. What do you think?

    Thanks again for the quick response. Looking forward on fixing the issue.

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Problem: illegal argument no ':' in url

    to get the directory path... on the newer piece of code (Nokia 6300) i've tried
    Code:
    System.getProperty("fileconn.dir.private")
    would that be a problem?
    That could be so, as that File Connection API specific System Property string is supported by Symbian platform devices only. More about:

    Java Developer's Library 3.5 > Implementation notes > (JSR-75) FileConnection API (Optional Package) > Runtime environment notes > System properties

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    27

    Exclamation Re: Problem: illegal argument no ':' in url

    Quote Originally Posted by r2j7 View Post
    As follow up, could you provide more details on these older CLDC/MIDP MIDlets?
    Now, answering that.. could phones with CLDC 1.1/MIDP 2.1 run midlets configured for CLDC 1.0/MIDP 2.0? I don't know if newer smartphones/cellphones might implement different standards/APIs...

    sorry for so many replies on my side xD

  6. #6
    Registered User
    Join Date
    Nov 2009
    Posts
    27

    Talking Re: Problem: illegal argument no ':' in url

    Think I've found it...
    Check the System Properties for both.. S60 and S40... S40 table does not show any fileconn.dir.private. I'll try this and I'll post a bit of explanation for anyone who run in to this like me... kind of basic mistake but... never checked on the S40's System Prop.

    thanks again, for your extensive replay. Is there any way to give thumbs up on a user or starts or something? xD
    Thanks again..

    Regards,

    Armando Leon

  7. #7
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Problem: illegal argument no ':' in url

    could phones with CLDC 1.1/MIDP 2.1 run midlets configured for CLDC 1.0/MIDP 2.0?
    Based on my testing with Nokia devices (although I have not tested all the over 220+ different Nokia models enabled with Java Runtimes , this should be possible at least on Nokia device platforms (Series 40 and Symbian). But other way around (CLDC 1.0/MIDP 2.0 devices trying to run CLDC 1.1/MIDP 2.1 MIDlets) results in an error prompt when trying to install the application.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Take an argument of a URL
    By jmv_ in forum Mobile Web Server
    Replies: 1
    Last Post: 2007-11-21, 13:38
  2. Replies: 1
    Last Post: 2007-02-23, 12:00
  3. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06

Posting Permissions

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