Servlet streaming video to client, problem with Movie not loaded.

Ok, I am sorry if this question is beyond the scope of Servlets/Java or J2EE but I figured it was worth a shot:
I have two servlets, one is a very simple class consisting of a doGet which just calls doPost and the doPost which just plucks out a single parameter from the request and prints out some HTML. Here is the code:
     public void doPost(HttpServletRequest request, HttpServletResponse response)
               throws ServletException, IOException {
          String videoDir = request.getParameter("directoryofvideo");
          response.setContentType("text/html");
          PrintWriter out = response.getWriter();
          if (videoDir==null||videoDir.equals("")||!new File(videoDir).exists()) {
               out.println("<script type=\"text/javascript\">alert(\"There was an error locating the selected videos\");</script>");
               //return;
          out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
          out.println("<HTML>");
          out.println("  <HEAD><TITLE>A Servlet</TITLE></HEAD>");
          out.println("  <BODY>");*/
          out.println("   <object id=\"player1\" width=\"480\" height=\"360\" data=\"/MyApp/serveUploadedFile?url=//ns20/data3/Video/player_flv_maxi.swf\" type=\"application/x-shockwave-flash\">");
          out.println("    <param value=\"/MyApp/serveUploadedFile?url=//ns20/data3/Video/player_flv_maxi.swf\" name=\"movie\"/>");
          out.println("    <param value=\"true\" name=\"allowFullScreen\"/>");
          out.println("    <param value=\"configxml=/MyApp/serveUploadedFile?url=//ns20/data3/Video/1.xml\" name=\"FlashVars\"/>");
          out.println("   </object>");
          out.println("  </BODY>");
          out.println("</HTML>");
          out.flush();
          out.close();
     }In case that is hard to read, the HTML printed is this:
   <object id="player1" width="480" height="360" data="/MyApp/serveUploadedFile?url=//ns20/data3/Video/player_flv_maxi.swf" type="application/x-shockwave-flash">
    <param value="/MyApp/serveUploadedFile?url=//ns20/data3/Video/player_flv_maxi.swf" name="movie"/>
    <param value="true" name="allowFullScreen"/>
    <param value="configxml=/MyApp/serveUploadedFile?url=//ns20/data3/Video/1.xml" name="FlashVars"/>
   </object>The second servlet, appropriately named: serveUploadedFile, reads in from the file off the file system and streams the data back to the client and I know it works because I can hit /MyApp/serveUploadedFile?url=//ns20/data3/Video/player_flv_maxi.swf and get the swf player but if you'd like to see the code I can copy and paste that in here as well.
The problem is by page loads blank, all the html is written but in firebug the only thing actually downloaded to the client is the first swf player, and if I right click in the window it says "Movie Not Loaded" on Firefox, IE and Safari. I have a working example of a video that is hosted on our NAS with the exact same HTML (which is where I got that from) except the swf and xml files appear as just their names because they are in the same directory as the index.html.
Any ideas?
Thank you so much in advance.

Also, I realize the parameter is not being used here that is because in order to eliminate possibilities of the problem I hard coded the path into the println statements and I am sure the path and all the files exist as well ;)

Similar Messages

  • I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post wont work as it

    I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post doesn't work as it is for Ver 10.6.6 and I am running 10.6.7

    Do you have Final Cut installed on your machine?
    If so, you may want to look at this article: http://support.apple.com/kb/TS3528
    Let us know if that helps.

  • Problems with PowerPoint not loading graphics correctly/fully

    Has anyone else had problems with PowerPoint?
    When I loaded a pptx file from Office 2010 it was missing the top heading (banner heading)
    When I saved the file in office 2003 the heading was now back

    Please see this technote on unsupported features of Powerpoint files when uploaded to Adobe Connect:
    http://kb2.adobe.com/cps/404/kb404463.html
    Understand that when you use a Share Document Pod and choose to upload the PPT or PPTX file that you are then converting that file to an Adobe Flash file so that it can be streamed to attendee desktops.  It does not remain in it's original format.  Not everything will convert exactly as planned so be prepared.  You always have the option of screen sharing instead of using the share pod option.
    Also read this technote that makes suggestions for work arounds:
    http://kb2.adobe.com/cps/404/kb404325.html

  • Problems with Blogger not loading certain content

    The Blogger' followers' widget is not loading for some reason. No other browser appears to have this issue. Only Firefox 5. I have disabled pop-up blocker, cleared cache, even tried safe mode with no luck. All plug-ins are updated. I have been using AVG free for a long time and never had a problem up until maybe a week or 2 ago. System is windows XP SP3

    Unfortunately, discussion relating to ripping commercial discs is not permitted here.

  • Problems with finder not loading

    Does anyone know how I would go about getting the installation discs replaced for my powerbook G4? I have been trying to look through apple's website, but I could not find information about how to replace the installation discs if they are lost/unavailable. I think they were misplaced in the process of moving but I don't know where to go to get news ones or if they are really necessary.
    The computer froze up a few days ago in the middle of a download of music to my ipod and when I restarted the computer, the finder would not load, including the bar across the top, desktop items (Mac HD included), and the trashcan. The dock still loads, however, all but three or four programs shut down immediately upon opening.
    If anyone thinks there might be a different option than reinstalling/repair, suggestions are welcome! If not, do you know where I can get new discs?
    Thanks so much!
    KCrowder
    Powerbook G4   Mac OS X (10.2.x)  

    Welcome to the Apple Discussions!
    You can call AppleCare Support to get a set of replacement disks. Last I heard, they did charge $50-$60 though...
    If your PowerBook really shipped with Mac OS X 10.2.x, then you could buy a retail copy of Mac OS X 10.3 (Panther) or Mac OS X 10.4 (Tiger) and use the Disk Utility on that disk to attempt to repair your hard drive and/or do a reinstall of Mac OS X. However, the retail copy of Mac OS X won't include any additional applications (like iLife) that may have come with your PowerBook.
    -Doug

  • Problems with pages not loading that IE does

    I turned on my pc today and firefox wouldn't load most of the pages i tried to co nnect with, Google, BBC are two of them. I turned on internet ex[plorer and they loaded the pages that fireox wouldn't. I googled for help and followed the steps to clear history, cache and cookies and restarted my PC to be sure it would work but it did nothing.
    I have no clue what to do but please let me fix this as the problem is enfuriating and I hate having to use internet explorer

    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating
    You can check if is helps if you start Firefox in <u>[[Safe Mode|Safe Mode]]</u> by holding down the Shift/Options key.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • Problem with website not loading images -

    www.gsmar.com is a real estate website that shows pics of homes for sale. After entering search criteria, you have a list of properties, and the images load on this page. When you click on a property, it should load the image of the home and you should be able to click through all the pics. I haven't been able to use Firefox to look at this website since last upgrade but the "other" browsers work fine. Please help!

    The JavaScript on that site isn't compatible with Firefox because document.all is used instead of document.getElementById();
    See https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ#JavaScript_doesn.E2.80.99t_work!_Why.3F

  • Problems with Safari not loading pages properly, Problems with Safari not loading pages properly

    I updates to the newest version of Safari via apple and now none of my pages load correctly. Most of the times I have to reload the page several times to get everything loaded. When I first load a page there are little question marks where images should be, sometimes it doesn't load at all and says it can't find the server or something. Some sites just load super funny. All I did was load the newest version of Safari. Anyone have any idea on how to fix this?

    http://support.apple.com/kb/TS3408
    http://docs.info.apple.com/article.html?path=Safari/5.0/en/9313.html
    http://docs.info.apple.com/article.html?path=Safari/5.0/en/9274.html

  • Blank, white screen: "movie not loaded".

    Forgive the use of emoticons, but I am really annoyed
    about this new update.
    Is everyone else right clicking previously-working Flash
    streams/web content only to find "Movie not loaded" appearing?
    Or is it just me?
    What am I doing wrong - today I went to update Flash as it
    kept nagging at me to do so. Biggest mistake of my life.
    It seemed to install fine; I got the screen with the red F
    icon and the green and white bar moving, then it loaded and I got
    to the page where I was meant to see a confirmation message. But
    nothing, just a blank white space.
    I've tried to reinstall, I've tried SubInACL method with the
    cmd script, I've tried to change ActiveX options as Adobe advised,
    I've right clicked and changed user permissions and I have been
    through the Adobe troubleshooting article.
    Is there another method? I'm tearing my hair out - this
    morning everything worked fine, and now all my internet
    entertainment is not working!
    I'm using Vista Home Basic....if there are any other ideas
    please do post them!

    Did you ever find a solution for this? I am experienceing the
    same issue.

  • How can I end this annoying problem of YouTube not loading?

    Hello y'all!
    Relatively new to the Mac world here, so go easy on me!  How can I end once and for all, this problem with YouTube not loading in Safari and not being able to watch embeded videos?  I've read various "fixes" and have tried them all, and nothing seems to work.  Help!!  Thanks!

    We have no way of knowing exactly which "fixes" you are referring to...
    Try deleting Flash cookies.  http://machacks.tv/2009/01/27/flushapp-flash-cookie-removal-tool-for-os-x/
    Try uninstalling then reinstalling the Flash plugin. http://kb2.adobe.com/cps/865/cpsid_86551.html#ostype=m,prob1=fnctn,prob2=game,
    Your profile shows you are running v10.6.7. Of that is correct, update your software. Click your Apple menu (top left in your screen) then click Software Update...
    Repair Permissions using Disk Utility.    /Applications/Utilities

  • Problem with movies imported from iPad3

    Whenever I import footage into imovie, the footage looks good. When I put that footage into a project it stutters.
    It doesnt matter if I specify 24fps or 30fps, the movie judders and stutters.
    I do not have this problem with movie footage imported from any other device.
    Any ideas?

    Whenever I import footage into imovie, the footage looks good. When I put that footage into a project it stutters.
    It doesnt matter if I specify 24fps or 30fps, the movie judders and stutters.
    I do not have this problem with movie footage imported from any other device.
    Any ideas?

  • Pixelated video and upscaling problems with ringing artifacts on Youtube since Flash player 10.3

    Pixelated video and upscaling problems with ringing artifacts on Youtube since Flash player 10.3. Flash palyer 10.2 was the last version without the listed problems.
    For anyone interested you may see here what 'ringing artifacts' means : http://en.wikipedia.org/wiki/Ringing_artifact
    More about Image artifacts/errors related to video scaling here :  http://en.wikipedia.org/wiki/Video_scaler
    Test configuration :
    Windows 7 x64
    Intel HD Graphics with lastest available drivers from manufacturer.
    Any solution from Adobe?

    Could you please open a new bug report on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can add their comments and votes.
    Thanks,
    Chris

  • Adobe Flash Player Problem: "Movie Not Loaded"

    new user to mac.
    i'm getting more and more frustrated with this computer.
    what's bugging me the most right now is
    i am unable to view videos on certain websites.
    rather than showing the content,
    a white box appears.
    when i right click on the white box,
    it says "movie not loaded" (in gray) and adobe flash player 9 (in black).
    i can't click on the gray line.
    when i click on the black line, it brings me to the adobe website and tells me adobe flash player 9 has been successfully installed.
    i am fairly sure this has nothing to do with heavy traffic.
    any insights on how to resolve this issue?
    cheers.

    Adobe Flash Player Problem
    http://www.adobeforums.com

  • Streaming video from server....Not easy..help would be appreciated!

    Dear Developers,
    It has been a long time since I have posted on this community - its nice to see some familiar avatars still here.
    I have been developing an iphone/ipad app for cancer patients that requires streaming of video footage from a server.  The app is sturctured in a simple tableview with images of a range of videos.  The user selects these tableview cells and the video should then stream.
    I hoped to use material saved on a private youTube account - but getting a seamless stream from the Tableview selection hasnt been easy.  It seems that youTube clips must be loaded into a uiWebview and then selected. This feels clumsy.
    I have subsequently opted to stream from an alternative server with .mov files. The code I am using is as follows:
    NSString *videoURLString = @"https://www.dropbox.com/s/7wmltu14ti91qm9/IMG_0024.MOV";
    NSURL *videoURL = [NSURL URLWithString:videoURLString];
    MPMoviePlayerController moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    [moviePlayer prepareToPlay];
    [moviePlayer play];
    [self.view addSubview:moviePlayer.view];
    When I select call this code the movieplayer opens, but the video will not load. I recieve an error warning in the console containing :
    CGcontextsaveGState: invalid context 0x0
    CGContextClipToRect: Invalid context 0x0
    CGContextTranslateCTM: invalid context 0x0
    CGContextDrawShading: invalid context 0x0
    CGContextRestoreGSState: invalid context 0x0.
    What must I do to get this code working ?
    I would be very grateful for your help on this.  I am also keen to learn if anyone knows of other source code that would provide a cleaner experience of youtube video streaming.
    with thanks.
    James

    You may use this:
            NSString *videoFilepath = @"https://www.dropbox.com/s/7wmltu14ti91qm9/IMG_0024.MOV";
            NSURL *videoURL = [NSURL URLWithString:videoFilepath];
            MPMoviePlayerViewController *movie = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
            [[NSNotificationCenter defaultCenter] addObserver:self
                                                     selector:@selector(playbackFinishedCallback:)
                                                         name:MPMoviePlayerPlaybackDidFinishNotification
                                                       object:movie];
            [self presentMoviePlayerViewControllerAnimated:movie];
    then
    - (void) moviePlayBackDidFinish:(NSNotification*)notification {
        NSError *error = [[notification userInfo] objectForKey:@"error"];
        if (error) {
            NSLog(@"Did finish with error: %@", error);
    add the MediaPlayer.framework to your project &
    add to your .h
    #import <MediaPlayer/MediaPlayer.h>
    Hope this helps

  • [Advanced] Sudden 'Movie not loaded' error with multi-swf flex application

    Hello!
    We've stumbled across a very strange problem, which we can't reproduce regulary, and therefore can't find a way to debug it.
    Our flex application consists of multiple .swf-files, each containing a piece of functionality we call module (though it's not a regular flex module), which interact with other modules in the application.
    But sometimes user interaction lead to the following problem. Some block of the application (which originated from certain module) becomes black, and right-clicking on it brings 'Movie not loaded' context menu item. After some time, the whole application becomes 'not loaded'.
    I have no idea of the cause of such a behaviour. I suppose some changes were introduced in Flash Player 10.2 - we didn't experience this problem before.
    Adobe guys, may you direct us and give us an advice on how to debug such a problem, and what might be a cause?
    It look like this:
    1)
    (in black area was a window similar to the one in background)
    2)
    (After right-click. You can see flash player version here)
    We're completely lost, and will really appreciate any help or advice.

    use an online tracer and network monitor to see what you're doing.

Maybe you are looking for