URL in 1.4 vs 1.3

I have this code:
try {
prefs.load(getUserURL().openStream());
} catch (Exception e) {
e.printStackTrace();
Where getUserURL() will return a URL that looks something like this: ftp://user:password@host///path/filename
Using java 1.3 this works fine. With 1.4 it seems to run fine, but I keep getting a FileNotFound exception. The only difference in the execution is the version of java I am using. Any clues as to what could be wrong?

Hello,
I am currently having this same issue with JSDK 1.4.0, and have been unable to find a real answer in the forums (some forum hits look interesting, but they are archived, and continually time out on me).
My code works great on JSDK 1.3.1, but throws a "FileNotFoundException" when run on JSDK 1.4 (same Win2000 machine - the JVM version is the only difference).
The code is as follows:
URL url = new URL("ftp://username:password@host/path/file");
try {
   InputStreamReader isr =
       new InputStreamReader(url.openStream());
   int value = isr.read();
...I don't actually use the "isr.read()" method, but it alos throws the same exception, and is easier to post here.
Any ideas? I can always install the older JSDK on the machine, but that seems like a band-aid solution.
Thanks,
Andrew

Similar Messages

  • Can no longer enter data in the address bar {url Bar}, it correctly follows data from google search bar. It was a 1 month old installation so not a lot of complications

    I was not adding anything to Firefox. I Refused tool bars embedded in several application installs on this new computer. Was working fine. Then had a problem with Google search, restored default values and re-tooled Firefox. At this point all worked fine. Then my url, address bar changed color to the same color as the program shell, a grey brown as opposed to the white it was before. With the change in color it no longer allows me to change the data showing in the bar. I can not delete or add data. I used to add a url and navigate to the domain. Now I can not

    Greetings,
    TY for the reply, the information was enlightening to be sure. I never knew safe mode was an option with Firefox. I have so many tasks running that I didn't want to shut things down. What I did is turn off some of the last plug-ins I installed. That did not fix the problem at least in the first look. What happened next was very interesting none the less. I had a moment of mouse spastic wrist syndrome and accidentally moved a tab in such a way that it opened in a new window. The URL bar was white and editable. So I moved all my tabs to the new window and everything works as it should. I have restarted Firefox this morning and it came back with the bar editable and I am speechless to understand what I may have done to correct the problem if anything ??

  • IIS 7.5 URL Rewrite: Hit specific page of a web application but should be redirected to another application's page

    I have deployed 2 different web application on IIS 7.5 running on Windows Server 2008 R2 but on different port numbers i.e. one application deployed on port no. 1776 and another on 8091. I want to rewrite URL in such a way that if i hit any page of first
    application such as default.aspx then it will be redirected to particular page of another application along with some changes in url.
    Example: if i access any page from first application like:
    http://g2wv126rbsc:1776/sites/main/commercial/commercial-solutions/financing/default1.aspx
    then it should redirect to specific page of another application along with some changes in url:
    http://g2wv126rbsc:8091/main/commercial/commercial-solutions/financing/default2.aspx
    Note: In above mentioned url, also removed "sites".
    I tried to create a inbound rule through URL Rewrite module (installed on IIS 7.5) by selecting Action as "Rewrite" but didn't find any success.
    I need some examples if anyone has come across same kind of issue.
    Thanks in advance.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • How do I use Sun Web Server 7.0u1 reverse proxy to change public URLs?

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)
    for hosting some of the public resource and reverse-proxying other parts
    of the URI namespace from other backend servers (content, application
    and other types of servers).
    So far every type of backend server served a unique part of the namespace
    and there was no collision of names, and the backend resources were
    published in a one-to-one manner. That is, a backend resource like, say,
    http://appserver:8080/content/page.html would be published in the internet
    as http://www.publicsite.com/content/page.html
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.
    Another quest, possibly related in solution, was to make a tidy url for the
    first page the user opens of the site. That is, in the current solution when
    a visitor types the url "www.publicsite.com" in his or her browser, our web
    server returns an HTTP-302 redirect to the actual first page URL, so the
    browser sends a second request (and changes the URL in its location bar).
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    So far I found that I can't solve these problems. I believe these problems
    share a solution because it relies on ability to control the actual URI strings
    requested by Sun Web Server from backend servers.
    Some details follow, now:
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    [04/Mar/2009:21:45:34] finest (25095) www.publicsite.com: for host xx.xx.xx.83
    trying to GET /content/MainPage.html while trying to GET /test, func_exec reports:
    fn="service-passthrough" rewrite-host="true" rewrite-location="true"
    servers="http://10.16.2.127:8080" Directive="Service" DaemonPool="2b1348"
    returned 0 (REQ_PROCEED)My obj.conf file currently has simple clauses like this:
    # this causes /content/* to be taken from another (backend) server
    NameTrans fn="assign-name" from="/content" name="content-test" nostat="/content"
    # this causes requests to site root to be HTTP-redirected to a certain page URI
    <If $uri =~ '^/$'>
        NameTrans fn="redirect"
            url="http://www.publicsite.com/content/MainPage.html"
    </If>
    <Object name="content-test">
    ### This maps http://public/content/* to http://10.16.2.127:8080/content/*
    ### Somehow the desired solution should instead map http://public/data/* to http://10.16.2.127:8080/content/*
        Service fn="service-passthrough" rewrite-host="true" rewrite-location="true" servers="http://10.16.2.127:8080"
        Service fn="set-variable" set-srvhdrs="host=www.publicsite.com:80"
    </Object>
    I have also tried "restart"ing the request like this:
        NameTrans fn="restart" uri="/data"or desperately trying to set the new request uri like this:
        Service fn="set-variable"  uri="/magnoliaPublic/Main.html"Thanks for any ideas (including a statement whether this can be done at all
    in some version of Sun Web Server 7.0 or its opensourced siblings) ;)
    //Jim

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)please plan on installing the latest service pack - 7.0 Update 4. these updates addresses potentially critical bug fixes.
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.> now, if all the resources are under say /data, then how will you know which pages need to be sent to which back end resources. i guess, you probably meant to check for /data/page.html should go to <back-end>/content/page.html
    yes, you could do something like
    - edit your corresponding obj.conf (<hostname>-obj.conf or obj.conf depending on your configuration)
    <Object name=¨default¨>
    <If $uri = ¨/page/¨>
    #move this nametrans SAF (for map directive - which is for reverse proxy within <if> clause)
    NameTrans.. fn=map
    </If
    </Object>
    and you could do https-<hostname>/bin/reconfig (dynamic reconfiguration) to check out if this is what you wanted. also, you might want to move config/server.xml <log-level> to finest and do your configuration . this way, you would get enough information on what is going on within your server logs.
    finally,when you are satisfied, you might have to run the following command to make your manual change into admin config repository.
    <install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    you might want to check out this for more info on how you could use <if> else condition to handle your requirement.
    http://docs.sun.com/app/docs/doc/820-6599/gdaer?a=view
    finally, you might want to refer to this doc - which explains on ws7 request processing overview. this should provide you with some pointers as to what these different directives mean
    http://docs.sun.com/app/docs/doc/820-6599/gbysz?a=view
    >
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    please check out the rewrite / restart SAF. this should help you.
    http://docs.sun.com/app/docs/doc/820-6599/gdada?a=view
    pl. understand that - like with more web servers - ordering of directives is very important within obj.conf. so, you might want to make sure that you verify the obj.conf directive ordering is what you want it to do..
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    now, you are in the totally wrong direction. web server 7 includes a highly integrated reverse proxy solution compared to 6.1. unlike 6.1, you don´t have to download a separate plugin . however, you will need to manually migrate your 6.1 based reverse proxy settings into 7.0. please check out this blog link on how to set up a reverse proxy
    http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy
    feel free to post to us if you need any futher help
    you are probably better off - starting fresh
    - install ws7u4
    - use gui or CLI to create a reverse proxy and map one on one - say content
    http://docs.sun.com/app/docs/doc/820-6601/create-reverse-proxy-1?a=view
    if you don´t plan on using ws7 integrated web container (ability to process jsp/servlet), then you could disable java support as well. this should reduce your server memory footprint
    <install-root>/bin/wadm disable-java user=admin config=<hostname>
    <install-root>/bin/wadm create-reverse-proxy user=admin uri-prefix=/content server=<http://your back end server/ config=<hostname> --vs=<hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    now, you can check out the regular express processing and <if> syntax from our docs and try it out within <https-<hostname>/config/<hostname>-obj.conf> file and restart the server. pl. note that once you disable java, ws7 admin server creates <vs>-obj.conf and you need to edit this file and not default obj.conf for your changes to be read by server.
    >
    I have also tried "restart"ing the request like this:
    NameTrans fn="restart" uri="/data"
    ordering is very important here... you need to do this some thing like
    <Object name=default>
    <If not $restarted>
    NameTrans fn=restart uri from=/¨ uri=/foo.
    </If>

  • My iphone wont let me play songs that I bought from iTunes. It says "The requested URL was not found on this server" How can i play my music also my music videos again?

    I bought a few songs and music videos from iTunes, then all of a sudden it wouldn't play and would just skip to the next song. With the music videos it would do the same. Also, this message would show up " The Requested URL could not be found on this server" What does that exactly mean? And what do I need to do to play my music/videos again?

    This previous discussion has a solution:
    https://discussions.apple.com/message/16527576#16527576

  • Delete File from URL located on HTTP Server.

    Hello All, could you anybody help me with my Problem. I need to delete some File in URL located on HTTP Server. The File was created via using of the Function 'DP_CONTROL_SEND_STREAM_TO_URL'. Any Times I need to delete this File from the url Location, but I cann't find any Functions or Method of any Class (GUI 6.20) to realise that. I read lot of very good Blogs from Thomas Jung about HTTP classes, but I cann't find somthing relevant for me...
    Sincerely Yours,
    Lubomir

    Hi,
    You can try with GUI_DELETE_FILE and give http location in FILE_NAME
    or WS_FILE_DELETE.
    I am not getting any CNDP function module for your purpose.
    Hope you will get sucess..
    Thanks,
    Chetan Shah

  • SQL Report data Open link in URL

    Hi,
    Select 'Google' from dual
    My requirement is when i click on Google Lable //http://www.google.com url must populate how to proive this using sql in apex please suggest.
    Thanks
    Sudhir.

    Change the item to 'Display as text (does not save state)'.
    Under 'Source' section, use 'static assignment'.
    If you want 'Google' in seperate new window then put
    <a href="http://www.google.com" target="_blank"> Google </a>as source value.
    Or if you want 'Google' as Pop-up window then put
    <a href="#" onclick="javascript:popupURL('http://www.google.com'); return false;" >Google </a>as source value.
    This will do the trick :-)
    Cheers,
    Hari
    Edited by: Hari_639 on Oct 9, 2009 12:36 PM

  • Open URL from a report

    Hi, I need to make a connection to URL from a report. Is it posible? thanks.

    hi jose,
    please try the following.
    CALL FUNCTION 'GUI_RUN'
      EXPORTING
      command ='IEXPLORE.EXE'
      PARAMETER ='WWW.YAHOOMAIL.COM'.
    CD =
    IMPORTING
    RETURNCODE =
    and if u want hyperlink then,
    *REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.

  • Safari doesn't open his own .URL files

    Hello
    I've adopted Safari for Windows at work due to the good experience I had with Safai on my Mac at home, but I almost immediately I found a serious bug:
    Safari for Windows creates ".URL" files perfectly like IE7, by dragging the icon on the left of the address into a folder (or the desktop). Everything' fine here. I use this functionality a lot!
    I just opened the .URL file and looks nice. Here's an example:
    \[InternetShortcut\]
    URL=http://discussions.apple.com/forum.jspa?forumID=1188
    The PROBLEM is that when I double click the ".URL" file Safari for Windows just created, Safari NEVER opens, instead opening IE7 !
    There must be a registry fix for this, because if I drag the icon into an opened Safari, it opens the link perfectly.
    Please tell me what I must change on the Windows Registry to fix this.
    Thank you in advance for your support, and keep up the good work!

    Replying to my own problem, I think I finally fixed it... by accident!
    After a lot of juggling with Control Panel->Add/Remove Programs->Set predefined browser, I finally managed to get IE7 out of the way, but only after deactivating access to Internet Explorer, and a lot of random checks and reboots along the way.
    I have no idea why Safari for Windows can't make himself the default browser on URL opening, but I believe you are missing some settings somewhere in the Windows Registry.
    Happy bug hunting!

  • Xml publisher  report genarate through Url.

    Hi All,
    I need to call the XML Publisher report through url Please anyone help this .

    is it ebs?
    if yes i can not be sure what it is work for ebs
    for ebs related bip you can ask in General EBS Discussion

  • How to retrieve elements from 3 different xml file in one url

    Hi all,
    Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
    i just can only do it with one file only, any help would very appreciate.
    Thank in advance
    Jim

    Hi Philip
    Thanks for replying me.
    I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
    SELECT
    {[Measures].[Internet Sales Amount] } ON 0,
    NON EMPTY
    {[Customer].[Gender].allmembers } ON 1 -- Used
    FROM
    [Adventure Works]
    WHERE
    [Customer].[Gender].&[M]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].&[XL]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].&[Australia]
    Can you provide alternate ways to get resolved.
    Thanks in advance

  • I publish identical podcasts under different URLs.  How can I combine them into one?

    Over the years, my URL has changed a couple of times.  I didn't know (until recently) how to notify iTunes that the podcast location and URL had changed.  So, now after a number of years, I have three identical podcasts, each with different a different URL and a different list of subscribers.  I have them pointing to the same source file now, but I would love to combine the podcasts into one so that the subscribers from each are merged together and they don't show up as three possible subscriptions in iTunes.  Is this possible?

    You can't merge them: all you can do is to ask to have two of them deleted, and of course if you do that you will lose any ratings. However existing subscribers should all be using the same feed if the three Store pages are all using the same feed, and so removing two of them won't have any effect on subscribers.
    The method of getting a podcast removed is detailed here:
    http://www.apple.com/itunes/podcasts/specs.html#removing
    When you explain why you want each one of the two you choose removed, specifically say that the same feed is in use in three places, so you can't use the 'itunes:block' tag (because this would block all three).

  • How can I stop my Firefox browser from preventing Click Earner, a program that opens email ads on safelists, from opening the URL's in the email ads?

    Hello fellow-users of Mozilla Firefox,
    I send email ads using 20 different safelists every day. To get credits for sending those ads I click email ads sent by other subscribers.
    Since early this year I've been using Click Earner -- http://www.clickearner.net/ -- to help speed up this task. Click Earner "fetched"
    the emails from each safelist and opened each URL advertised in each email. This was a very quick job and all I did was close each tab
    displaying the URL. Credits for clicking the URL were added to my safelists accounts.
    Since a week ago, without me doing anything at all, my Click Earner stopped opening the emails automatically as was the case for
    several months since I started using it. Click Earner support claimed Firefox prevented the program from opening the URL in a new tab each time it fetched an email ad. True enough, yesterday when I watched Click Earner in action I saw a pop-up from Firefox saying something like "Firefox prevented..." I couldn't read the rest as the pop-up disappeared immediately. And that was the only
    time I saw it.
    Right now I have to open each URL manually to see the ad and earn credits. This is a very slow process, just the same as when I open the emails in my gmail account. It's useless for me to subscribe to Click Earner. And it takes forever for me to earn credits from all the safelists.
    I'd appreciate it very much if any one of you folks would help me overcome this glitch. I look forward to hearing from you and thank you very much in anticipation.
    Regards,
    Tom Graciano

    You could try turning off Firefox's pop-up blocker.
    "3-bar" menu button (or Tools menu) > Options > Content
    There you will find a checkbox for "Block pop-up windows". Assuming it's checked, uncheck it.
    Does that return to the behavior you want?

  • In ical edit, can you get rid of invitees, availability, url, notes?

    in ical edit, can you get rid of invitees, availability, url, notes?

    in ical edit, can you get rid of invitees, availability, url, notes?

  • How can I redirect a URL with aliases or redirect?

    Hi all,
    I have this partially working on my servers, but am not 100% sure I am doing this corerectly.
    Basically I have a Web site domain, let's call it product.com
    In server admin I have a site set up called www.product.com under port 80 and another under port 443 for my SSL pages.
    Here is my problem: If a customer types "product.com" in their favorite Web browser address bar, I would very much like the server to automatically redirect them (if that's the correct term) to "www.product.com"   Currently they would end up on http://product.com/index.html when they key in the URL without the "www"  I am concerned this is hurting my SEO and Google analytics as well as being an issue internally for PHP pages that are coded to the "www" addresses.
    I also have a sign-in page for my clients at the address: http://www.product.com/lib/app/auth/authenticate.php.  When a client types "signin.product.com" I want them to go to that long URL for the sign-in page.  I have gotten this to work by setting up a new Site in Server Admin > Web > Sites named "signin.product.com" which then has a single entry on the redirect tab with the URL of the signin page above.  Not sure if that could have been done on the core Web site (www.product.com) or if that was the way I should do it under Server Admin or if there is an easier way to do it.
    Primarily I want to be able to handle redirecting any type of subdomain "xxx.product.com" to another address.  The primary one I want to deal with now is the "product.com" redirecting to "www.product.com".....  Should I just set up another Web site in Server Admin with a redirect like I did for "signin.product.com"?
    Any advice on doing proper redirection appreciated.
    -- Jon

    There are so many ways you could do this. You need to pick what's right for you.
    Some of the options are available through the GUI. Many more are available once you get under the hood and drive Apache directly. Your skill and comfort level will undoubtedly influence which path you take.
    At the first level, Apache groups sites together by the hostname used to access the site.
    If you want 'www.product.com' to go to the same place as product.com you could create one site with an alias, so that Apache uses the same 'site' configuration for both hostnames.
    If you want the two hostnames to do different things then you could create two sites - in this case 'www.product.com' has the full, normal site and 'product.com' has a redirect to the equivalent page on 'www.product.com'.
    Within www.product.com you can also setup selective redirects to the HTTPS site. This will ensure that things like the login form are accessed securely. In this way your HTTPS site is another 'site' in Apache with the SSL configuration.
    One caveat in your post is the use of 'signin.company.com'. You don't describe your network, but if you have only 1 public IP address then this is going to be an issue since you cannot easily run multiple SSL sites on a single IP address - you'll need a different public IP address for each SSL site. This is because the SSL negotiation occurs before Apache knows what site the request is for, and therefore it doesn't know which SSL certificate to use for the connection.
    So, in general, you'll create one site for each variation in your web setup - one for 'www.product.com/port 80', one for 'www.product.com/port 443', one for 'product.com/80' (which redirects to 'www.product.com'), and so on.

  • Printing List View - URL Mailitem Showing Up!

    Hi,
    When I try to Print from iCal using List View, lots of URL code shows up under my To Do Items. Is this normal? For example:
    Buy Black Trainers
    URL: mailitem:12BBAE63-0EFD-43AA-8AEF-A50E33029129?type=todo&action=showparent
    Why on Earth would anyone want that URL address code printed? I'm sure that information is useful to the Mac, but it doesn't make a lot of sense to a regular human being. There seems to be no way of turning it off, other than unticking To Do Items completely.

    Does anyone know if syncing via .Mac will also cause the URLs to show up? None of my to dos have been entered via Mail and yet all but the one I just entered have the offending URLs. Most of the contents of iCal is there via a "Restore iCal..." done as part of a migration to Leopard. I have entered several since then, all via iCal. And, all but the one that I entered just moments ago have the URLs when printed as a list. In terms of .Mac syncing, I only sync iCal and Address book, and the sync is between two Macs running 10.5.1.

Maybe you are looking for

  • Can't sign in

    Can't get signed in to iCloud. The iCloud help page, under Trouble signing in says, "Important:  If you use the same Apple ID for iCloud as you do for other Apple services, such as the Apple Online Store, iTunes Store, ... changing your iCloud accoun

  • Replacement of i_wrap table in oops for FM 'ALVDG_WORD_WRAP' ?

    Replacement of i_wrap table in oops? **This declaration is not allowed in oops? how to replace i_wrap declaration, occus 0** **if i convert into types....i am unable to pass in below function module. ** DATa:  BEGIN OF I_WRAP OCCURS 0,           text

  • Not enough space at iCloud

    I can not make a back up copy at iCloud because system said that is not space enough, but the information at the IPad said that is free space available. Any help with this?

  • Motor code

    Hi, I took the example Velocity Profiling and modified it for two motors, the error came out said no Board ID are wired, but they are wired. Can anyone check the code for me please? Thank you CKH Solved! Go to Solution. Attachments: Velocity Profilin

  • TACACS not working

    Hi Guys I have added a 2960x switch to my network and configured with tacacs. It does not seems to talk to the tacacs ACS server and I can ping the server as it also authenticates other devices on the network but this new switch only lets me login wi