Opening HTTP streams

It would appear that the majority of my problem resides with Java's Security. I'm trying to open a website just to read. I don't care about forums, i don't care about displaying it. I simply want to read the text.
try
         URL page = new URL(rootPane.getOpenPathField ()); // Process the URL far enough to find the right handler
         URLConnection urlc = page.openConnection();
          urlc.setUseCaches(false);
//problem is with the buffer reader line.
         BufferedReader br = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
         String buffer = "";
         while (buffer != null)
          try
              System.out.println(buffer);
              buffer = br.readLine();
          catch (IOException ioe)
              ioe.printStackTrace();
              break;
     catch (MalformedURLException mue) {
          System.out.println(rootPane.getOpenPathField () + " is not a URL that can be resolved");     }
     catch (IOException ie)      {
         ie.printStackTrace();     }The Java console displays the following in the stack trace:
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.net.SocketPermission www.google.com:80 connect,resolve)
at TopoApplet.ArgTree.openURL(ArgTree.java:607)
If you need the full stack trace i'll be happy to provide it but i don't think what was ommitted to be terribly useful.

Yes, but for this to work, someone at the remote
computer will have to accept the signed applet to
give it access - and that doesn't seem very likely in
this scenario ;)The alternative is to diddle with the security policy on the machine where the
applet is running. Any scenario that relies on the applet calling something to
give itself more security isn't going to work. However if the user won't accept
a signed applet then are they likely to take a modified security policy file and
install it on their machine, so that they give permission to any applet at all
to do those things?
This thread has a rather extensive discussion
relating to what the poster wants to do:
http://forum.java.sun.com/thread.jspa?threadID=409835&
messageID=1803410I'm not reading that. Given the existence of this post, it's just a cross-post.

Similar Messages

  • Need a hand to configure FMS 4.5 to output HTTP stream...

    Hi folks!
    I'm trying to setup Flash Media Server (Streaming server) and I'm having issues with outputting HTTP stream.
    The system works very well with the Flash ooutput, but for some reason the livepkgr won't work. Tried several things over the past two weeks, I've went thru docs and I don't know anymopre what else I can try... The source of the video feed is upstreamed from my own home computer, via Flash Live Encoder.
    I operate a dedicated server, running Windows 2008 Server. The default web site is IIS. I configured the ports so that port 80 is the default IIS inetpub/webroot, and the FMS 4.5 install is accessed via port 8134. So the IP http://184.107.48.113 opens the default Windows IIS, and http://184.107.48.113:8134 takes the request to the FMS install.
    The video stream is live on the Flash server, I can see it in the console, the livepkgr appears to be working, and I do see the .STREAM file being generated in the _definst_/livebroadcast/livestream folder. So the server works, and process the HTTP output.
    I believe the URL I should use to access the output HLS stream is: http://184.107.48.113:8134/livepkgr/_definst_/livebroadcast/livestream.f4m.m3u8
    but it returns a file not found message. Is there something wrong with the URL syntax? Or there is something else in the .conf files I must tweak? Or is it an issue with Apache 2.2 configuration?
    You can see the live Flash stream from my web site http://www.blackflag.tv I want to change this Flash stream to HTTP stream.
    Thanks for your help folks!!!
    -sv bell

    Hey,
    I tried playing HDS now and its working fine. It wasn't playing earlier.
    You can try it out by playing the content through the player here: http://www.osmf.org/configurator/fmp/#
    Input: http://184.107.48.113:8134/hds-live/livepkgr/_definst_/livebroadcast/l ivestream.f4m
    (Don't forget to select the radio button for HTTP streaming)
    This means everything is working on the server side.
    Now, I don't have an iDevice on me to check out HLS playback.
    You are using an older version of QuickTime, which could be an issue. Please let me know what publish settings you are using (as in the codecs).
    Also can you try playing it back through HTML5. To do that, just create an HTML page with the below content.
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title of the document</title>
    </head>
    <body>
    <video width="320" height="240" controls="controls" src="http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8"  />
    </body>
    </html>

  • TS3989 Mssage when opening Photo Stream on-"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel" Help!!!

    Mssage when opening Photo Stream on-"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel" Help!!!

    You are posting in the "icloud on my mac" forum, but your profile mentions Windows.  If using a mac, you need to have iphoto or aperture installed in order to receive new photos via photo stream.  If using windows, try posting in the iCloud on a PC forum.  You'll get better help there.
    https://discussions.apple.com/community/icloud/icloud_on_my_pc

  • HTTP Streaming for Flash Player 10.1

    Hi there,
    I have been developing a streaming video player application in Flash Builder 4, and have been really excited about the HTTP Streaming functionality now available in Flash Player 10.1.
    Unfortunately, there seems to be an extreme dearth of materials on how to actually implement HTTP Streaming both server side and client side. Does anyone have a straightforward tutorial/example of how to implement HTTP Streaming from start to finish, or do any of the Adobe Developers plan on releasing documentation for this?
    I've looked through the BETA Actionscript 3.0 API Documentation and noticed the new NetStream.appendBytes() and NetStream.appendBytesAction(), which I suspect are involved in HTTP streaming. I also saw a sketchy introduction from Ryan Shin on the Open Source Media Framework (OSMF) website (https://admin.na3.acrobat.com/_a204547676/p96986524?launcher=false&fcsContent=true&pbMode= normal), but it seems to be lacking in details regarding how to actual implement a "file packager" on the server or how to open an HTTP Stream on the client side.
    Any help would be much appreciated.
    Thanks!
    Ho Tuan

    It is unlikely that you will get an answer here in the Flash Player (release version) forum.  Better try in the appropriate Flash, Actionscript, or FP 10.1 beta forum http://forums.adobe.com/community/labs/flashplayer10/flashplayer10.

  • Exaile HTTP Streaming Broken

    After the latest exaile update it appears that http radio streaming is broken. I've searched both the forum and bugtracker and got no hits.
    The error when trying to play a stream in the gui is:
    A HTTP protocol source plugin is required to play this stream, but not installed.
    And the error at a console is:
    (exaile.py:30506): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstsouphttpsrc.so': libsoup-gnome-2.4.so.1: cannot open shared object file: No such file or directory
    ERROR : <gst.Message GstMessageError, gerror=(GstGError)NULL, debug=(string)"gstplaybasebin.c\(1691\):\ gen_source_element\ \(\):\ /GstPlayBin:player:\012No\ URI\ handler\ for\ http"; from player at 0x9f5b5d0> ['__class__', '__cmp__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__grefcount__', '__gstminiobject_init__', '__gtype__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'copy', 'flags', 'parse_async_start', 'parse_buffering', 'parse_buffering_stats', 'parse_clock_lost', 'parse_clock_provide', 'parse_duration', 'parse_error', 'parse_info', 'parse_new_clock', 'parse_request_state', 'parse_segment_done', 'parse_segment_start', 'parse_state_changed', 'parse_step_done', 'parse_step_start', 'parse_stream_status', 'parse_structure_change', 'parse_tag', 'parse_tag_full', 'parse_warning', 'set_buffering_stats', 'set_seqnum', 'src', 'structure', 'timestamp', 'type']
    If I'm reading this correctly it appears that exaile is looking for libsoup-gnome-2.4.so.1 but the name of the file that is installed with the package libsoup is "libsoup-2.4.so.1". I do not want to link that library. My system is up to date, I am not using testing, and the package versions are:
    extra/libsoup 2.28.0-1
    community/exaile 0.3.0.1-2
    Can anyone else confirm this as a bug? Or am I missing something here?
    Thanks

    I'm guessing this is an issue with libsoup as it was a part of the recent gnome upgrade. There appear to be a lot of recent posts in the forum with issues related to that upgrade. Is there anyone that can confirm this with shoutcast or HTTP streaming in exaile before I file a bug report? please

  • ITunes not opening some streams

    Hi all,
    osx:
    10.6.7
    iTunes: last update
    Since last iTunes update, I am experiencing problems in opening those streams:
    http://listen.di.fm/public3/techhouse.pls (everytime)
    http://listen.di.fm/public3/minimal.pls (sometimes)
    http://88.198.133.16:8024 (ibizaglobalradio)(always) http://s6.streammonster.com/tunein.php/stsimons/playlist.pls (minimalstation.de) (sometimes)
    while I can perfectly play them all while opening with Snowtape.
    Thanks & Regards,
    Luca

    sorry to hear that
    iTunes Not opening
    Remove and reinstall iTunes and related software
    https://support.apple.com/en-us/HT204275
    Make sure to remove both the 32 and 64 Bit versions of any Apple software installed on the PC
    iTunes 12.1.1 for Windows (64-bit — for older video cards)
    https://support.apple.com/kb/DL1784?locale=en_US
    Best of Luck

  • How to implement HTTP Streaming for Flash Player 10.1 ?

    Hi there,
    I have been developing a streaming video player application in Flash Builder 4, and have been really excited about the HTTP Streaming functionality now available in Flash Player 10.1.
    Unfortunately, there seems to be an extreme dearth of materials on how to actually implement HTTP Streaming both server side and client side. Does anyone have a straightforward tutorial/example of how to implement HTTP Streaming from start to finish, or do any of the Adobe Developers plan on releasing documentation for this?
    I've looked through the BETA Actionscript 3.0 API Documentation and noticed the new NetStream.appendBytes() and NetStream.appendBytesAction(), which I suspect are involved in HTTP streaming. I also saw a sketchy introduction from Ryan Shin on the Open Source Media Framework (OSMF) website (https://admin.na3.acrobat.com/_a204547676/p96986524?launcher=false&fcsContent=tr ue&pbMode=normal), but it seems to be lacking in details regarding how to actual implement a "file packager" on the server or how to open an HTTP Stream on the client side.
    Any help would be much appreciated.
    Thanks!
    Ho Tuan

    It is unlikely that you will get an answer here in the Flash Player (release version) forum.  Better try in the appropriate Flash, Actionscript, or FP 10.1 beta forum http://forums.adobe.com/community/labs/flashplayer10/flashplayer10.

  • HTTP streaming on mobile device

    We have an application for live streaming of videos without using adobe AIR. we need to make this live streaming of videos work on all mobile devices(i.e android and ios) using "HTTP streaming". Please let me know ASAP.

    Hi,
    have you done this before? How can I emded the file / stream to a webpage? Could you please explain that? And I wonder if the mobile phone's browser will be able to play the stream in its grafics interface at all. Normaly, wenn I enter an URL like rtsp://server:port/file.sdp in the browser it opens automatically the media player of the mobile phone that tries to connect. I arrive establishing the connection to the streaming server but then nothing else happens - the stream isn't played. I know that it depends from the network operator I am using. With the german t-mobile I can watch my streams but with e-plus (KPN-DE) for example it doesn't work. There's a list in this forum that shows rtsp-friendly operators and the non-friendly ones. My questions simply is: IS THERE ANY WAY TO GET MY STREAM STARTED EVEN WHEN I USE A NON RTSP-FRIENDLY MOBILE OPERATOR? I guess that could be done by using the right protocols (like TCP instead of UDP and Port 80 that should always be open instead of 554).
    ANY HELP WOULD BE APPRECIATED! Thanks.

  • Can't open audio stream

    I have the URL for an online radio, I can open it in Quicktime, but not in iTunes... it appears in the library but it doesn't do anything when clicked:
    http://streaming.metro951.com/metro

    Not sure if this is the same problem, but... I'm able to initiate an audio stream from the "Radio" in my iTunes options, but there's a lot of "rebuffering" going on. In the advanced tab, I've set buffering to large. This very rarely happened on my old G5, but on this new-to-me 2007 macbook, it's happening a lot more often. Any clues?

  • Can't open two streams from twitch fullscreen on different monitors at the same time, why not?

    When i try to open two streams each on one monitor ( in fullscreen), the one opened second just overlaps the existing one.

    Hi wilson1470,
    Only one window can be in fullscreen at a time. Is it possible to keep the second on in a tab of the same fullscreen window?
    This may be a nice alternative to what you are looking for: [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/]

  • Open Audio Stream during Start Up

    Open Audio Stream during Start Up
    I would like to automatically open an audio stream during start up in OS X Tiger.
    Placing an alias for the steam in the Accounts Log In Items of the System Preferences does not seem to work.
    Any ideas?

    Michael--
    You ought to be able to do this with an AppleScript as an Account Login item. Just save the AppleScript as an application:tell application "iTunes"
    open location "http://www.server.com/streaming.mp3"
    end tellYou'll need the URL for the stream...
    HTH,
    charlie

  • Opening a stream

    I've got a URL that opens a stream in my browser. I tried to get this included in iTunes via the Advanced > Open Stream... menu choice. As a result, I see the site name in the iTunes scrolling display but no sound.
    What do I have to do to get this to work?
    FWIW, the URL I'm attempting to open is http://www.americafree.tv/unicast_embed/FreeBlues128.html
    TIA,
    David

    That's just the web page, not the URL to the stream. Try this URL instead:
    http://www.americafree.tv/unicast_mov/FreeBlues128.mov
    It works for me.
    Regards.

  • Open audio stream url too long

    I found an internet radio that I wanted to import into itunes using open audio stream, but it has 226 characters in the URL and won't allow me to paste the entire thing. Is there any way around this?

    Did not fix, I cleared the cache and cookies.
    The website is picasaweb.google.com
    A partial peice of the url looks like this:
    http://picasaweb.google.com/lh/login?continue=http%3A%2F%2Fpicasaweb.google.com%2Flh%2Flogin%3Fcontinue%3Dhttp%253A%252F%252Fpicasaweb.google.com%252Flh%252Flogin%253Fcontinue%253Dhttp%25253A%25252F%25252Fpicasaweb.google.com%25252Flh%25252Flogin%25253Fcontinue%25253Dhttp%2525253A%2525252F%2525252Fpicasaweb.google.com%2525252Flh%2525252Flogin%2525253Fcontinue%2525253Dhttp%252525253A%252525252F%252525252Fpicasaweb.google.com%252525252Fhome%25252526pli%2525253D1%25252526a

  • EOFException opening input stream in servlet

    We are getting intermittent EOFException opening input stream in the servlet.
    Out application contains applet running in the browser and accessing servlet. It writes binary data to the output stream (opened from URLConnection) and on server side servlet reads data from the input stream opened from http request object. It worked fine until we moved ear to different box. Now sometime (not always) we get EOFException on the server side opening input stream.
    Any suggestions on cause of the problem?
    We are running WL 8.1.5
    Thanks,
    Ed

    You have to use WDResource and related classes for reading/writing the files on portal app server.
    For getting some Idea, look at this wiki.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71?quicklink=index&overridelayout=true
    -Yugandhar Reddy

  • Does not open http or https pages but youtube opens?

    My any browser is not able to open http or https pages but opens youtube or any other vedio site.
    Only Internet Explorer on my pc opens google and none other browsers ( Opera and Mozilla Aurora ) do so. I'm having this problem from a very long time, even my settings are all in default still the problem is there. HELP!!!!!!!!!!!!!!!!!!!!!!!!

    Do a malware check with several malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for