Results 1 to 2 of 2
  1. #1
    aneuryzma is offline Member
    Join Date
    Aug 2008
    Posts
    46
    Rep Power
    0

    Default why my url string is changed in runtime ?

    I have a string

    String cameraStreaming = "h.ttp://142.22.58.150//axis-cgi/mjpg/video.cgi?camera=&showlength=1&resolution=704x480" ;

    (NB. I added the point after the h because the forum does not allow me to write links)

    I got the following error:

    java.io.FileNotFoundException: h.ttp:/142.22.58.150/axis-cgi/mjpg/video.cgi?camera=&showlength=1&resolution=704x480 (No such file or directory)

    I noticed that there is only one "/" after http: ... why ??? how can i solve this ?

    thanks

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,401
    Rep Power
    25

    Default

    Assigning that value to a String variable shouldn't be a problem.
    That wouldn't generate a FileNotFoundException
    What class and method are you using with the string variable that gives the error you display?
    When posting error messages, do NOT edit them, copy all of the text.

Similar Threads

  1. Why the panel text changed?
    By ottawalyli in forum AWT / Swing
    Replies: 1
    Last Post: 12-17-2007, 05:56 AM
  2. Why the panel text changed?
    By ottawalyli in forum SWT / JFace
    Replies: 0
    Last Post: 12-16-2007, 04:16 PM
  3. How to cast an Object into a specific type (Integer/String) at runtime
    By mailtogagan@gmail.com in forum Advanced Java
    Replies: 2
    Last Post: 12-03-2007, 01:04 PM
  4. Replies: 0
    Last Post: 11-20-2007, 04:59 PM
  5. Strings are immutable yet they can be changed ?
    By anjanesh in forum New To Java
    Replies: 4
    Last Post: 05-19-2007, 03:08 PM

Posting Permissions

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