FLV not found

I have created a site using flash and action script, the site
loads diferent swf files with images and text content. One of my
swf files contains a SWF player component that links to a FLV file.
When I test the files locally everything works fine. I have
uploaded the files unto a server and when it's time to play the FLV
it doesn't load. Using the Activity window in safari I see that the
FLV cannot be found. I have checked the server and tried simplyfing
the name, the FLV is up on the server. any reason why it my swf
can't find it when it's actually there?

themissive wrote:
> I have created a site using flash and action script, the
site loads diferent
> swf files with images and text content. One of my swf
files contains a SWF
> player component that links to a FLV file. When I test
the files locally
> everything works fine. I have uploaded the files unto a
server and when it's
> time to play the FLV it doesn't load. Using the Activity
window in safari I see
> that the FLV cannot be found. I have checked the server
and tried simplyfing
> the name, the FLV is up on the server. any reason why it
my swf can't find it
> when it's actually there?
>
Perhaps the local test was done within flash environment not
browser and the browser
unlike local arrangement has multiple level directory. Say
html load swf from different
folder and video from yet another one.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • What am I doing wrong? flv not found on server!?

    I really need some help please!
    Here is a step by step of what I've done:
    Created a folder on my desktop. Copied .mov to this folder.
    Created a new flash file (Actionscript 3.0, CS3). Saved into same
    folder on desktop. Used Import Video to import .mov file
    (Progressive download, etc). Video imported fine. I tested the
    movie and all looks good. So then I published. I checked out the
    publish previews and all look good!
    So next I took my folder from my dekstop and all it's
    contents (.mov, .fla, .flv, .swf, skin.swf, .html, and .js) and
    uploaded to my ftp. When I go to the site nothing shows up and it
    says there was one error opening the page. So then I looked at the
    activity and it says the .flv is not found. But I checked AGAIN and
    the .flv is in the same folder as the rest of my files.
    Am I missing a step? I am very new to flash and I can't
    figure out what I'm doing wrong. Can anyone help? Should I be
    posting this in another forum?
    Thanks!

    Check with your hosting provider to make sure their MIME type
    is set to display the FLV format.
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com
    Kirsten Vandenhouten wrote:
    > I really need some help please!
    >
    > Here is a step by step of what I've done:
    >
    > Created a folder on my desktop. Copied .mov to this
    folder. Created a new
    > flash file (Actionscript 3.0, CS3). Saved into same
    folder on desktop. Used
    > Import Video to import .mov file (Progressive download,
    etc). Video imported
    > fine. I tested the movie and all looks good. So then I
    published. I checked out
    > the publish previews and all look good!
    >
    > So next I took my folder from my dekstop and all it's
    contents (.mov, .fla,
    > .flv, .swf, skin.swf, .html, and .js) and uploaded to my
    ftp. When I go to the
    > site nothing shows up and it says there was one error
    opening the page. So then
    > I looked at the activity and it says the .flv is not
    found. But I checked
    > AGAIN and the .flv is in the same folder as the rest of
    my files.
    >
    > Am I missing a step? I am very new to flash and I can't
    figure out what I'm
    > doing wrong. Can anyone help? Should I be posting this
    in another forum?
    >
    > Thanks!
    >

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • Installed but not found on computer

    I've successfully installed the latest 10.1 for my 64-bit laptop with Windows 7.  A check by Adobe confirms that it was properly installed, and that I have the correct version for my computer.
    AND YET, there is no icon for it anywhere, it doesn't come up on my list of Programs, when I enter "Adobe Flash Player" in the search bar it shows no such program, and when I try to play a FLV file, it won't give me Flash Player as an option. So..... I have it on my computer, but I apparently am not allowed to see it or access it?
    I've uninstalled and re-installed several times, and cannot for the life of me figure out what the problem is.  Any help for this maddening situation?

    Hi,
      Yes, I read his comments and I made sure Shockwave Flash Object was enabled in IE as he suggested. I am trying to make a flip book. One of the posts here in the forum said to make a SWF file, which I did. But now I can't figure out how to do anything with it. I thought Flash Reader was the right program to look at it, but maybe I'm wrong? Maybe I need Flash itself? The flip book thing has me pretty frustrated and confused. All the sites and software I've tried are poor quality. I was hoping I could figure out how to do it through Adobe to get better quality.
    1. Oct 17, 2010 1:30 PM in response to: jonstrebler
    Re: Installed but not found on computer
    Hi, Flash Player is a browser plugin, not a stand alone Player. You should have Shockwave Flash Object in add ons in IE and make sure it is enabled.
    Your Flash files are in C:\Windows\SysWOW64\Macromed\Flash 
    You may want the Adobe Media Player:http://www.adobe.com/products/mediaplayer/   
    Hope that helps,
    eidnolb

  • Stream not found null error

    Hello everybody,
    I am able to embed the strobe player on a web page and play flv videos. However, if I don't let the videoplay through and refresh my web page, then I am getting  "We are unable to connect to the content you've requested" error.
    When the video is played all the way to the end, I can replay it without any issues.  
    When I set the verbose value to true, I am getting Stream not found null error instead,
    It seems to me that the strobe player can stream the video from server when it is not found in local cache. If the video is not cache completely in local machine, strobe player will display "We are unable to connect to the content you've requested" error.
    Is there a setting in Strobe can resolve this issue?
    The flv file is loaded on Windows Media Services 2008.
    Below is my embed code. It is very standard that generate from the strobe setup page
    <object width="470" height="320"> <param name="movie" value="myserver/strobe/flash101/StrobeMediaPlayback.swf"></param><param name="flashvars" value="src=http%3A%2F%2Fmy.domain.com%2Fnews%2Ftest.flv&optimizeInitialIndex=false"></par am><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="myserver/strobe/flash101/StrobeMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="470" height="320" flashvars="src=http%3A%2F%2Fmy.domain.com%2Fnews%2Ftest.flv&optimizeInitialIndex=false">< /embed></object>
    Any help would be greatly appreciated.
    Regards,
    Joe

    Hi,
    On what browser does exhibit this behavior?
    Can you provide a link to the video? You can PM it, if you want to keep it secret.
    You might want to raise an issue at http://bugs.adobe.com/jira/browse/ST . It will allow us to prioritize and investigate it easier.
    p.s. Optimize initial index works with MBR streams, you don't need it.

  • Client returns server not found:rtmp://192.168.10.1:/live when accessed from another pc

    Hi there. Please i have a small LAN of about 8 computers all of which are running windows 7. I have installed FMS and XAMPP webserver on one of the machines. I want to stream live from one PC to all the other PCs on the LAN. I have a webpage with jwplayer embedded in it on my XAMPP webserver that is able to see the live stream when i start it locally. I mean the live stream works fine on the machine with the servers on it. But when i want to view the live stream from another machine in the LAN by accessing the webpage that has the jwpalyer from another machine, The jwplayer returns "server not found:rtmp://192.168.10.1/live" error. I was thinking that maybe a firewall is blocking the 1935 port but i have turned off the firewall of every PC on the LAN. I have unistalled any antivirus program on all the PCs. But i still get the same error when i try to access the live stream from another PC on the LAN.
    When i run netstat -a -n|find ":1935" i get  192.168.10.2:49184   192.168.10.1:1935     SYN_SENT and i think the request for the stream is sent but the conection is rejected.
    This is the code for the webpage with jwplayer embedded in it. maybe it can help:
    <html>
        <head>
            <title>JW FLV Media Player</title>
            <script type="text/JavaScript" src="swfobject.js"></script>
    <script type='text/javascript'>
    function createPlayer()
        var flashvars = {
                'file':                'see.flv',
                'streamer':            'rtmp://192.168.10.1/live',
                'provider':            'rtmp',
         'autostart':    'true'
        var params = {
                'allowfullscreen':     'true',
                'allowscriptaccess':   'always',
                'bgcolor':             '#FFFFFF'
        var attributes = {
                'id':                  'player1',
                'name':                'player1'
        swfobject.embedSWF('player.swf', 'mpl', '300', '250', '9', 'false', flashvars, params, attributes);
    </script>
        <head>
        <body onload="createPlayer();">
                <div id="wrapper">
                    <div id="mpl">u need adobe flash player to view this content</div>
                </div>
        </body>
    </html>
    This page is able to view the stream on my local machine but it wouldn't work on the other machines on the machines. Is it not possible to stream over a LAN or what? OR What am i not doing right. [hmmn! [sighs] this is so frustrating]. help me please.Thanks in advance for your help.

    Thanks man. that is so helpful. But i doesn't solve the problem yet. I'll appreciate it a great deal if you could help me make the server accept requests from the 1935 port... And please tell me whether by server, u mean the FMS or the entire server on which the FMS is installed. I'm guessing it is the latter. Thanks in advance for your help

  • CS3 Exporter not found error

    I have been able to create a great quality video in FLV format and post it to Youtube.  But I need to export a standalone version.  When I choose Windows Media as the format and then export, I get "Exporter not found"
    Any solutions?

    Some users have found that MS WMEncoder does a good job. It is a free download from MS.
    As for why your CS3 cannot find a WMV Exporter module, it could be a corrupt install. My first act would be to do a Repair Installation, in hope that it would be repaired. Otherwise, the WMEncoder might be the way to go.
    Good luck,
    Hunt

  • Adaptive m3u8 file not found when Apache location /hls-vod httpstreamingcontentpath changed

    I have set my FMS 4.5  to host hls-vod content in another location on the server F:\media.  This is the change I made:
    <Location /hls-vod>
        HLSHttpStreamingEnabled true
        HLSMediaFileDuration 8000
        #HttpStreamingContentPath "../webroot/vod"
              HttpStreamingContentPath "F:\media"
        HLSFmsDirPath ".."
    # Uncomment the following directives to enable encryption
    # for this location.
    #    HLSEncryptionScope server
    #    HLSEncryptCipherKeyFile "../phls/vodkey.bin"
    #    HLSEncryptKeyURI        "https://<ServerName>/hls-key/vodkey.bin"
        Options -Indexes FollowSymLinks
    </Location>
    I can successfully stream a file from hls-vod/file.mp4.m3u8.  But I cannot stream a set level. m3u8 like from hls-vod/file.m3u8. I get a file not found even though the file does exist.  I can get the the stream to work if I place the set level .m3u8 file in the Apache webroot.
    1) Does Apache not recognize the m3u8 file format when location change is performed?  what can i do to make it recognize this file?
    2) Why does the dynamically generated m3u8 file work, but not the pre-generated set level m3u8 file?
    3) Can the httpcontentpath use a set level m3u8 file?
    4) Based on this FAQ http://forums.adobe.com/docs/DOC-2338. I know that changing the location blocks progressive download access to the files, does this have anything to do with this? 
    5) Ideally I would like users to place the set level m3u8 files in same location as the video file.  Is this possible?
    any help would be appreciated.
    thanks

    okay, i'm fixing this by setting the document root to where the media is located f:/media and then changing the htaccess to restrict access to certain file types.  I block mp4, flv, and f4v, to block download but i allow ts and m3u8. It works but my only concern is the performance hit by allowing htaccess in sub folders.  I don't think it will be a big deal.  thoughts.

  • Item cost not found for one or more items - Inventory Posting

    Good Day Mentors,
    My user has encountered an error during Inventory Posting and its "Item cost not found for one or more items".
    The specific Message ID from SAP's System Message Log is 10001287.
    I found a similar post which addresses this error here.
    But unfortunately it did not help me solve my user's problem.
    I already checked if the items had a defined "Item Cost" in the Item Master Data Inventory Tab, and they all have "Item Cost" defined.
    I'm not sure if this will help, but below is the Inventory Audit Report of one of the items that is throwing the "Item cost not found" error.
    I am not a business consultant neither am I literate in accounting, so thanks for the patience.
    SAP Version: 9.0 PL5
    Valuation Method: Moving Average
    Thanks in advance!
    Sean

    Hi Augusto and Raviraj,
    I've already verified in our production database the points you made:
    - Is the "Manage Item cost per warehouse" selected in the Basic Initialization Screen?
    YES
    - Is the "Manage Inventory by Warehouse" ticked/checked in the "Inventory Data" tab of the "Item Master Data" screen?
    YES
    * I apologize for not have been able to give this information upfront.
    Anyway, the database only has one warehouse at the moment.
    I've checked the items, like the item in the screen shot above, and it does have an item cost.
    Below is the screenshot of the sample item from my original post,
    Thanks in advance!
    Sean

  • Itunes wont open at all, error message : quicktime was not found .... please reinstall ... i did that but no luck this only seems to have happened since the 10.4 update, im on windows 7 ..

    itunes wont open at all, error message : quicktime was not found .... please reinstall ... i did that but no luck this only seems to have happened since the 10.4 update, im on windows 7 ..

    Can you start QuickTime on your computer?
    You'll probably have to search for the Windows Installer Cleanup Utility and use it to remove QuickTime Player and iTunes. Then download and install the iTunes again.

  • I was updating Firefox from version 6 to version 7, after updating I tried to open Firefox and the message I got is this: This application has failed to start because xul.dll was not found. How can I fix this?

    I was updating Firefox to the newest version 7.0.1 from version 6.0.2 I think it was, I clicked the restart Firefox button that always comes up after updating. It started updating and then Firefox never restarted like it was supposed to after it was done updating. I then tried to open Firefox and it told me "This application has failed to start because xul.dll was not found." I did have Firefox crash on maybe about 30 minutes or so earlier which bothered me because I have been using Firefox for years and never had it crash on me before but I didn't think much of it at the time it happened because I was able to go back onto Firefox and finish what I had been working on. A while later I checked for updates and updated. The first time I tried to update it didn't work though so I had to shutdown Firefox and reopen Firefox and start the update a second time. It was after the second time that when I tried to open Firefox I got that message about failing to start because xul.dll can't be found. I filed a crash report when my Firefox crashed. This would have been around 1am-2am in the morning that Firefox first crashed and then wouldn't allow me to open it after updating. I have a DELL laptop running the Windows XP operating system but the laptop is probably at least 6 or 7 years old. The laptop will no longer charge so I always have to have it plugged into an outlet. Both my laptop hard drive and my external hard drive give me messages that I am running out of disk space on my hard drive. I bought this laptop 6 or 7 years ago second hand so it could be even older. In short it's a piece of crap and it gives me all kinds of issues but I currently can't afford a new one, but I have never had any problems with Firefox and I use Firefox more than any other aspect of my laptop so it's really really bothering me. May you please help me fix it?

    Unfortunately I tried that and it didn't work. Thanks for the help though. I tried to uninstall and it said I couldn't because the file is corrupt or something, but I think I finally got it uninstalled and/or deleted or whatever, but now I try to reinstall/download it again from the beginning and I can't. No matter what I do I can not get Firefox working again. No matter how many times I try to redownload it. Any other suggestions?

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • File not found error

    I get the following error, but don't know why it can't find the file. Is there anything in this script that would call "\" instead of "/"? Is there any line of code that will switch a wayward "\" back?
    01-09-24 09:37:02 - path="" :jsp: init
    2001-09-24 09:43:42 - path="" :LoginServlet: init
    2001-09-24 09:44:15 - path="" :CourseServlet: init
    2001-09-24 09:46:48 - path="" :LessonServlet: init
    2001-09-24 09:46:54 - path="" :Error: /usr/local/apache/sites/tesco.spinweb.net/htdocs/cmi/courses\Food Service/Intro/AU00.html (No such file or directory)
    The script is below. Thanks for any help anyone can provide me.
    import cmi.xml.AU;
    import cmi.xml.Block;
    import cmi.xml.CourseReader;
    import cmi.xml.CSFElement;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import org.jdom.JDOMException;
    public class LessonServlet extends HttpServlet
    public void init (ServletConfig config) throws ServletException
    super.init (config);
    try {
                   Class.forName (GlobalData.DatabaseDriverName);
                   _jdbcConnection = DriverManager.getConnection (GlobalData.DatabaseName, "tesco", "scorm");
    _jdbcConnection.setAutoCommit (true);
    //should I do this?
    //_jdbcConnection.setAutoCommit (false);
    //load serialized course data
    loadCourseData();
              catch (Exception xcp) {
                   xcp.printStackTrace();     
                   getServletContext().log("Error: " + xcp.getMessage());     
    public void doGet( HttpServletRequest request,
                             HttpServletResponse response)
              throws ServletException, IOException
    boolean normalMode = true;
    try {
    HttpSession session = request.getSession (true);
    //can I load the session given the id??
    //System.out.println ("Lesson.valid session " + session.getId() + ": " + request.isRequestedSessionIdValid());
    response.setContentType ("text/html");
    JDBCHelper dbHelper = new JDBCHelper (_jdbcConnection);
    //get student ID
    Integer studentID = (Integer) session.getAttribute ("studentID");
    //get course ID
    Integer courseID = (Integer) session.getAttribute ("courseID");
    //get lesson ID
    String lessonID = request.getParameter ("lessonID");
    if (lessonID == null) {
    lessonID = (String) session.getAttribute ("lessonID");
    if (studentID == null || courseID == null || lessonID == null) {
    //reset session data by re-logging the user
    sendProfileError (response.getOutputStream());
    return;
    //store lesson ID in session
    session.setAttribute ("lessonID", lessonID);
    String auID = request.getParameter ("auID");
    String mode = request.getParameter ("mode");
    if (mode != null) {
    session.setAttribute ("mode", mode);
    else {
    mode = (String) session.getAttribute ("mode");
    if (mode.equalsIgnoreCase ("review")) {
    normalMode = false;
    else {
    normalMode = true;
    //synchronize access to course hash table
    synchronized (_courseHash)
    //make sure _courseHash is in tact
    if (_courseHash == null) {
    //try reloading it....
    loadCourseData();
    if (_courseHash == null) {
    //error
    response.getOutputStream().close();
    throw new IOException ("Corrupt course data");
    if (! _courseHash.containsKey (courseID.toString())) {
    //try reloading it....
    loadCourseData();
    if (! _courseHash.containsKey (courseID.toString())) {
    //error
    response.getOutputStream().close();
    throw new IOException ("Corrupt course data (course not found)");
    if (auID == null) {
    //show course menu
    Hashtable hash = (Hashtable) _courseHash.get (courseID.toString());
    sendAvailableAUs (hash, studentID.intValue(), courseID.intValue(), lessonID, response.getOutputStream(), response, dbHelper);
    return;
    //if AU has not been attempted, initialize it
    Integer auDataID = new Integer (getAUDataID (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper));
    //if (getAUDataID (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper) == -1) {
    if (auDataID.intValue() == -1) {
    int newID = initializeAUData (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper);
    dbHelper.addAUToPath (studentID.intValue(), courseID.intValue(), lessonID, auID);
    auDataID = new Integer (newID);
    session.setAttribute ("AUID", auID);
    session.setAttribute ("AUDataID", auDataID);
    sendAU (studentID.intValue(), courseID.intValue(), lessonID, auID, auDataID.intValue(), normalMode, response.getOutputStream(), dbHelper);
    //to do: detailed messages should be sent to the client depending on which
    // exception was thrown. Don't have one try/catch....have one for each situation
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    public void destroy()
              try {
                   if (_jdbcConnection != null) {
                        _jdbcConnection.close();
              catch (Exception ignored) {}
    private int initializeAUData (int studentID, int courseID, String lessonID, String auID, JDBCHelper dbHelper)
    String sqlQuery = null;
    ResultSet results = null;
    try {
    //get student's name
    sqlQuery = "SELECT Full_Name" +
    " FROM " + GlobalData.StudentTable +
    " WHERE Student_ID = " + studentID;
    results = dbHelper.doQuery (sqlQuery);
    if (! results.next()) {
    //error
    return -1;
    String studentName = results.getString (1);
    results.close();
    //the lock prevents CMIServlet from reading AU_ID before it's committed
    //sqlQuery = "LOCK TABLES " + GlobalData.AUDataTable + " WRITE;";
    //System.out.println (sqlQuery);
    //dbHelper.executeUpdate (sqlQuery);
    sqlQuery = "Insert Into " + GlobalData.AUDataTable +
    "(Course_ID, Lesson_ID, AU_ID, student_id, student_name, lesson_location, credit," +
    " lesson_status, entry, exit, score_raw, score_max, score_min, total_time," +
    " session_time, lesson_mode, suspend_data, launch_data, Evaluation_ID, Objective_ID)" +
    " Values (" + courseID + ", '" + lessonID + "', '" + auID + "', " + studentID + ", '" + studentName + "'," +
    " 'NA', 'credit'," + " 'not attempted', 'ab-initio', " + "'NA', " + 0 + ", " + 0 + ", " + 0 +
    ", '00:00:00.0', '00:00:00.0', " + " 'normal'" + ", 'NA', " + "'NA', " + 0 + ", " + 0 + ");";
    dbHelper.executeUpdate (sqlQuery);
    return getAUDataID (studentID, courseID, lessonID,auID, dbHelper);
    //sqlQuery = "UNLOCK TABLES;";
    //System.out.println (sqlQuery);
    //dbHelper.executeUpdate (sqlQuery);
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    return -1;
    private int getAUDataID (int studentID, int courseID, String lessonID, String auID, JDBCHelper dbHelper)
    throws SQLException
    String sqlQuery = "SELECT AUData_ID, lesson_status, lesson_mode, exit" +
                                  " FROM " + GlobalData.AUDataTable +
                                  " WHERE student_id = " + studentID +
                                  " AND Course_ID = " + courseID +
    " AND Lesson_ID = " + "'" + lessonID + "'" +
    " AND AU_ID = '" + auID + "';";
    ResultSet results = dbHelper.doQuery (sqlQuery);
    if (results.next()) {
    return results.getInt ("AUData_ID");
    return -1;
    private void sendAU (int studentID, int courseID, String lessonID, String auID, int auDataID, boolean normalMode, ServletOutputStream htmlOut, JDBCHelper dbHelper)
    throws IOException, ClassNotFoundException
    Hashtable hash = null;
    synchronized (_courseHash)
    hash = (Hashtable) _courseHash.get (String.valueOf (courseID));       
    if (hash == null) {
    loadCourseData();
    hash = (Hashtable) _courseHash.get (String.valueOf (courseID));
    if (hash == null) {
    throw new IOException ("Corrupt course data (course not found)");
    AU au = (AU) hash.get (auID);
    try {
    if (! normalMode) {
    dbHelper.setReviewMode (auDataID);
    String courseFileName = getFileName (String.valueOf (courseID), dbHelper);
    File file = new File (courseFileName);
    //create absolute path to file so we can resolve relative URLs
    String newFileName = file.getParent() + "\\" + au.getLaunchParams();
                   BufferedReader buf = new BufferedReader (new FileReader (newFileName));
    PrintWriter htmlWriter = new PrintWriter (htmlOut);
                   String temp;
    htmlWriter.write (getAUHtml (au.getLaunchParams()));
    htmlWriter.flush();
    htmlWriter.close();
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    private String getAUHtml (String path){
    path = path.replace ('\\','/');
    String response;
    response = "<html>\n" +
                        "<head>\n" +
    "</head>\n" +
    "<body>\n" +
    "<script language=\"JavaScript\">\n" +
    "document.location = \"/cmi/courses/" + path + "\"\n" +
    //"win = window.open ('','displayWindow','menubar=yes,scrollbars=yes,status=yes,width=300,height=300');\n" +
    //"window.onload = \"win.close();\"" +
    "</script>\n" +
    "</body>\n" +
    "</html>\n";
    return response;
    private void sendAvailableAUs (Hashtable hash, int studentID, int courseID, String lessonID, ServletOutputStream out, HttpServletResponse response, JDBCHelper dbHelper)
    StringBuffer buf = new StringBuffer (200);
    Block block = (Block) hash.get (lessonID);
    AU au = null;
    try {
    Vector completedAUs = dbHelper.getCompletedAUs (studentID, courseID, lessonID);
    buf.append ("<html>\n" +
                        "<head>\n" +
    "<title>" + block.getTitle() + " units</title>\n" +
    "<script language=\"JavaScript\">\n" +
    "function go() {\n" +
    " var form = document.goForm;\n" +
    " var index = form.gotoSelect.selectedIndex;\n" +
    " if (index == 0) {\n" +
    " document.location = \"/servlet/CourseServlet?courseID=" + courseID + "\";\n" +
    " }\n" +
    " else if (index == 1) {\n" +
    " top.restart();\n" +
    " }\n" +
    "}\n" +
    "</script>\n" +
    "</head>\n" +
    "<body background=\"/cmi/images/marble.jpg\">\n" +
    "<center><h1><b><u>" + block.getTitle() + "</u></b></h1></center>\n" +
    "<p></p>\n<p></p>\n" +
    "<b>" + block.getTitle() + " contains the following units: </b>\n" +
    "<dl>\n");
    Enumeration enum = block.getChildren();
    while (enum.hasMoreElements()) {
    String temp = (String) enum.nextElement();
    CSFElement element = (CSFElement) hash.get (temp);
    if (element.getType().equals ("au")) {
    au = (AU) element;
    if (completedAUs.contains (au.getID())) {
    buf.append ("<dt><p><img src=\"/cmi/images/node2.gif\"><a href=\"/servlet/LessonServlet?lessonID=" + block.getID() + "&auID=" + au.getID() + "&mode=review\">" + au.getTitle() + " (<i>review</i>) </a></p></dt>\n");
    else {
    buf.append ("<dt><p><img src=\"/cmi/images/node.gif\"><a href=\"" + response.encodeURL ("/servlet/LessonServlet?lessonID=" + block.getID() + "&auID=" + au.getID() + "&mode=normal") + "\">" + au.getTitle() + "</a></p></dt>\n");
    else if (element.getType().equals ("block")) {
    buf.append ("<dt><p><img src=\"/cmi/images/folder.gif\"><a href=\"" + response.encodeURL ("/servlet/LessonServlet?lessonID=" + element.getID() + "&mode=normal") + "\">" + element.getTitle() + "</a></p></dt>\n");
    buf.append ("</dl>\n" +
    "<br><br>\n" +
    "<form name=\"goForm\">\n" +
    "<select name=\"gotoSelect\">\n" +
    " <option value=\"lesson\">Lesson Menu</option>\n" +
    " <option value=\"exit\">Exit LMS</option>\n" +
    "</select>\n" +
    "<input type=\"button\" value=\"Go\" onClick=\"go()\">\n" +
    "</form>\n" +
    "</body>\n" +
    "</html>");
    PrintWriter writer = new PrintWriter (out);
    writer.write (buf.toString());
    writer.flush();
    writer.close();
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    private String getFileName (String courseID, JDBCHelper dbHelper)
    throws ClassNotFoundException, SQLException
              ResultSet results = null;
              String fileName = null;
    String sqlQuery = "SELECT CourseFile" +
                                  " FROM Course" +
                                  " WHERE Course_ID = " + Integer.parseInt (courseID) + ";";
    results = dbHelper.doQuery (sqlQuery);
              if (results.next()) {
                   fileName = results.getString (1);
              else {
    //need to do more than this :)
                   System.out.println("crap");
    results.close();
    return fileName;
    private void loadCourseData()
    throws IOException, ClassNotFoundException
    //load serialized course data
    File file = new File (GlobalData.DataFileName);
    if (! file.exists()) {
    //error
    throw new FileNotFoundException (GlobalData.DataFileName + " not found.");
    FileInputStream fis = new FileInputStream (GlobalData.DataFileName);
    ObjectInputStream ois = new ObjectInputStream (fis);
    _courseHash = (Hashtable) ois.readObject();
    ois.close();
    private void sendProfileError (ServletOutputStream out)
    String html = "<html>\n" +
    "<body>\n" +
    "<p>An error has occurred with your profile. Please " +
    "<a href=\"\" onClick=\"top.restart(); return true\">login again</a>" +
    "</body>\n" +
    "</html>\n";
    PrintWriter writer = new PrintWriter (out);
    writer.write (html);
    writer.flush();
    writer.close();
    private Connection _jdbcConnection;
    private Hashtable _courseHash;

    I know that is where my error is, but why and where is
    the script calling it up way?You wrote it right? check out the sendAU() method, there is line
    String newFileName = file.getParent() + "\\" + au.getLaunchParams();

  • Error: "file not found" when try to display image on report

    Dear All
    I have a problem when running my report.
    My Table emp_info Stores all data about employees in addition to the employee image path.
    I made a report that display employee information including its photo.
    I run my report passing the parameter p_emp_id to display the desired emploree information.
    I made a field on the report to display the employee image
    and i set its property READ FROM FILE = YES and FILE FORMAT=IMAGE
    But the following error occurs
    "File '\\iai3\iaigc\ALL\emp_images\51.JPG' not found. "
    I'm sure that the path is correct
    But i do not know why the report stops and can not read the image path.
    My platform is:
    Oracle application server installed on linux
    and oracle report builder installed on widows for development

    Dear aweiden
    thanks for replaying
    I belive you are right . I think the problem is in the path.
    But there is something that i did not mentioned to you. I work on two different servers.
    1- "iai2" : Linux server which contains oracle application server.
    2- "iai3" Windows 2003 server which contained oracle database 10g and the folder "aigc\ALL\emp_images" which contains Employees images
    I think that the problem is that Linux server can not understand the path "\\iai3\iaigc\ALL\emp_images\51.JPG".
    Do you have any idea how the path should be changed so that Linux can recognizes it.
    Thanks in advance

  • Crystal report problem in add-on(CrystalDecessions.Crystal Engine not found

    HI All,
    i am having a problem with crystal report not opening.
    what is the solution to run the add-on it i ssaying that Crytsal Engine 10.5.3700.0 is not found in assenmly or specified path.
    how can i resolve this error. do i need to add some file while creating the add-on.If so what i have to add.
    Please help me.
    Thanks & Regards
    omprakash

    hi,
    Check this thead
    Problem with Crystal reports deisgner
    Jeyakanthan

Maybe you are looking for