.jpg not found

String path = "C:\\Images";
        boolean exists = (new File(path)).exists();
        if (exists) {
            File folder = new File(path);
            File[] listOfFiles = folder.listFiles();
            //Searches the folder for any images in the folder.
            for (int i = 0; i < listOfFiles.length; i++) {
                if (listOfFiles.isFile()) {
fileName = listOfFiles[i].getName();
if (fileName.endsWith(".jpeg") || fileName.endsWith(".jpg")){
try {
FileInputStream input = new FileInputStream(new File(fileName));
ByteArrayOutputStream output = new ByteArrayOutputStream();
i get this error
java.io.FileNotFoundException: clip_image002_001.jpg (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
i don't understand the reason for the error because the file name is correct. any help and ideas is appreciated.

Instead of getName() use getAbsolutePath()

Similar Messages

  • 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

  • Image not found in fxz  file produce by ""

    Hi
    I created a SVG file using inkscape called image.svg. I pasted a small image into inkscape and save it as image.svg.
    Converted it to image.image.fxz using "JavaFX Production Suite".
    When I view image.fxz using JavaFX View, it has an error
    "Loading graphics from file://C:\temp\image.fzx failed. Reason: "java.lang.RutimeException: Image creation failed: The entry 'file:c///C:/temp/IMG_2921_t.jpg" not found in file C:\temp\image.fxz"
    The IMG_2921_t.jpg was in c:\temp\
    image.svg as below. Please help.
    Thanks
    Cheers
    fire-fly
    ========== image.svg starts===============
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!-- Created with Inkscape (http://www.inkscape.org/) -->
    <svg
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:cc="http://creativecommons.org/ns#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:svg="http://www.w3.org/2000/svg"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    width="744.09448819"
    height="1052.3622047"
    id="svg2"
    version="1.1"
    inkscape:version="0.47 r22583"
    sodipodi:docname="New document 1">
    <defs
    id="defs4">
    <inkscape:perspective
    sodipodi:type="inkscape:persp3d"
    inkscape:vp_x="0 : 526.18109 : 1"
    inkscape:vp_y="0 : 1000 : 0"
    inkscape:vp_z="744.09448 : 526.18109 : 1"
    inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
    id="perspective10" />
    <inkscape:perspective
    id="perspective2824"
    inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
    inkscape:vp_z="1 : 0.5 : 1"
    inkscape:vp_y="0 : 1000 : 0"
    inkscape:vp_x="0 : 0.5 : 1"
    sodipodi:type="inkscape:persp3d" />
    </defs>
    <sodipodi:namedview
    id="base"
    pagecolor="#ffffff"
    bordercolor="#666666"
    borderopacity="1.0"
    inkscape:pageopacity="0.0"
    inkscape:pageshadow="2"
    inkscape:zoom="0.22425739"
    inkscape:cx="372.04724"
    inkscape:cy="526.18109"
    inkscape:document-units="px"
    inkscape:current-layer="layer1"
    showgrid="false"
    inkscape:window-width="550"
    inkscape:window-height="483"
    inkscape:window-x="115"
    inkscape:window-y="115"
    inkscape:window-maximized="0" />
    <metadata
    id="metadata7">
    <rdf:RDF>
    <cc:Work
    rdf:about="">
    <dc:format>image/svg+xml</dc:format>
    <dc:type
    rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
    <dc:title></dc:title>
    </cc:Work>
    </rdf:RDF>
    </metadata>
    <g
    inkscape:label="Layer 1"
    inkscape:groupmode="layer"
    id="layer1">
    <image
    y="422.67114"
    x="288.8963"
    id="jfx:image2826"
    height="100"
    width="100"
    xlink:href="file:///C:/temp/IMG_2921_t.jpg"
    inkscape:label="#image2826" />
    </g>
    </svg>
    ==========image.svg ends ===============

    Hi,
    it is indeed bug in SVG Converter from Production Suite. The correct behavior is to add the referenced image into fxz archive, so that the file is self contained and does not depend on other files somewhere on a file system. I filed [http://javafx-jira.kenai.com/browse/RT-8794|http://javafx-jira.kenai.com/browse/RT-8794]
    As a workaround you may insert the file IMG_2921_t.jpg manually into the fxz archive and change the url in the content.fxd entry so that is will look like this: image: Image { url: "IMG_2921_t.jpg" } . The fxz files are normal zip files, just with different extension.
    Sorry for inconvenience and thanks for finding this issue.
    Regards,
    Pavel

  • Files not found css and js in Jdev 11gR1 application

    Hi Experts,
    I have a UI Dynamic Shell template and i am trying to show a slider using the below code. However i am getting the following errors :
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /js/sliderman.1.3.7.js not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /js/sliderman.1.3.7.js not found in com.awrostamani.web.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/01.jpg not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/01.jpg not found in com.awrostamani.web.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/03.jpg not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/03.jpg not found in com.awrostamani.web.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/02.jpg not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/02.jpg not found in com.awrostamani.web.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/04.jpg not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/04.jpg not found in com.awrostamani.web.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/07.jpg not found in oracle.ui.pattern.dynamicShell.model.DataBindings.cpx
    <JUApplicationDefImpl> <findBindingContainerIdByPath> /img/07.jpg not found in com.awrostamani.web.DataBindings.cpx
    Page Template Code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <!-- sliderman.js -->
      <!--af:resource type="javascript" source="js/sliderman.1.3.7.js"/-->
      <script type="text/javascript" src="js/sliderman.1.3.7.js"></script>
      <link rel="stylesheet" type="text/css" href="css/sliderman.css"/>
      <!-- /sliderman.js -->
      <f:view>
        <af:document id="d1">
         <af:resource type="javascript">
                              demo3Effect1 = {
                                  name : 'myEffect31', top : true, move : true, duration : 400
                              demo3Effect2 = {
                                  name : 'myEffect32', right : true, move : true, duration : 400
                              demo3Effect3 = {
                                  name : 'myEffect33', bottom : true, move : true, duration : 400
                              demo3Effect4 = {
                                  name : 'myEffect34', left : true, move : true, duration : 400
                              demo3Effect5 = {
                                  name : 'myEffect35', rows : 3, cols : 9, delay : 50, duration : 100, order : 'random', fade : true
                              demo3Effect6 = {
                                  name : 'myEffect36', rows : 2, cols : 4, delay : 100, duration : 400, order : 'random', fade : true, chess : true
                              effectsDemo3 = [demo3Effect1, demo3Effect2, demo3Effect3, demo3Effect4, demo3Effect5, demo3Effect6, 'blinds'];
                              var demoSlider_3 = Sliderman.slider( {
                                  container : 'SliderName_3', width : 800, height : 200, effects : effectsDemo3, display :  {
                                      autoplay : 3000
                            </af:resource>
          <af:form id="f1">
            <af:pageTemplate viewId="/oracle/ui/pattern/dynamicShell/dynamicTabShell.jspx"
                             value="#{bindings.pageTemplateBinding}" id="pt1">
              <f:facet name="copyright"/>
              <f:facet name="about"/>
              <f:facet name="navigation">
                <af:decorativeBox id="db1" theme="light" dimensionsFrom="parent">
                  <f:facet name="center"/>
                </af:decorativeBox>
              </f:facet>
              <f:facet name="globalLinks"/>
              <f:facet name="status"/>
              <f:facet name="globalToolbar"/>
              <f:facet name="globalSearch"/>
              <f:facet name="globalTabs"/>
              <f:facet name="welcome">
                <af:decorativeBox id="db2" dimensionsFrom="parent">
                  <f:facet name="center"/>
                  <f:facet name="top">
                    <!-- Code realted to slider -->
                    <f:verbatim>
                      <div id="wrapper">
                        <div id="examples_outer">
                          <h2>Sliderman.js Demo 3</h2>
                          <div id="slider_container_3">
                            <div id="SliderName_3" class="SliderName_3">
                              <img src="img/01.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/02.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/03.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/04.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/05.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/06.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/07.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/08.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/09.jpg" width="800" height="200" alt=""
                                   title=""/>
                              <img src="img/10.jpg" width="800" height="200" alt=""
                                   title=""/>
                            </div>
                            <div class="c"></div>
                            <div class="c"></div>
                          </div>
                          <div class="c"></div>
                        </div>
                      </div>
                    </f:verbatim>
                    <!-- end od slider code -->
                  </f:facet>
                </af:decorativeBox>
              </f:facet>
              <f:facet name="innerToolbar"/>
              <f:attribute name="navSplitterDisabled" value="true"/>
              <f:attribute name="brandingTitle" value="Customer Portal"/>
            </af:pageTemplate>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>please advice
    thnks
    Jdev 11.1.1.5

    aahh..bad question ..i guess i got it

  • File not found error when opening .JPG files in Photoshop CC

    uninstalled and reinstalled photoshop CC and cannot resolve this issue.
    any time i open a .jpg file in photoshop, I get a "Could not complete your request because the file was not found."
    the file is obviously there, so i'm assuming its missing some sort of plugin, which i thought would be resolved when reinstalling photoshop.
    very frustrated and not sure how to fix this.
    running OSX mavericks
    please help

    used bridge, didn't work.
    tried right-click, double click..open in program.
    same error.
    files work in other adobe products.....
    only way to get a jpg in there is to "paste" it in.

  • 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();

  • Recorded Videos after Sync: The requested URL was not found on this server.

    A few days ago, i recorded a couple of videos. They were saved properly and i could watch them after it in the Camera Roll of my iPhone. Because my memory was almost full, i connected my iPhone to my MacBook and synchronized about 900 old pictures with iPhoto and selected to delete the pictures after the sync. I did not select the recently recorded videos.
    After the sync, i opened the Camera Roll on my iPhone and tried to watch the videos again. But now, they all have a grey icon and it says the duration is 0:00 minutes. When i click on a video, it shows me the following error message:
    The requested URL was not found on this server.
    When i connect my iPhone to iTunes, it says that there is about 350 MB of "Documents and Data" on my phone that I have no idea where it is coming from. Do you think it is possible that the videos are still saved on my phone but my phone doesn't recognize it as videos and can't assign it to the icons in the Camera Roll? Do you have any tips how I can access the videos in case they are still saved somewhere on my iPhone?
    Thank you very much in advance for your help and tips!

    I have the same problem too!! I was deleting some photos and videos in my phone when the next picture I swiped to was a blank picture with JPG in the middle~ after I closed camera roll and reopened it my photos and videos after that picture are all gone~ and I'm left with 3 videos I took about 30 mins before with 0:00 and when I tried to play them the message popped up saying "requested URL cannot be found on this server" T^T does anyone have a solution to this problem?

  • Report Generation Toolkit (Word) : How to use correctly bookmark and cross-reference without "Error! Reference source not found"

    Hi,
    I try to generate a report using a template. In my template I use some cross-reference to refer to one bookmark. For exemple in the first page I created a bookmark for my name and in the header I created a cross-reference refer to my name. The problems is when I run my VI the bookmark actualise perfectly but the cross-reference refer to the bookmark can't actualise with the same value and generates an error : "Error! Reference source not found".
    Can somebody help me please!
    Nki
    Solved!
    Go to Solution.
    Attachments:
    01.jpg ‏72 KB

    Hi,
    When i create the word template, the bookmaks and the cross-reference referred to the bookmark update correctely. The problem is when I try to change the bookmark using "report generation from template vi" the bookmark change but not the cross-reference and the error generated is "Error! Reference source not found". 
    I make coople reasherch and i think they have no solution for this because : "if the text in a heading referred to in a cross-reference is revised, the cross-reference to the heading may no longer work" (http://office.microsoft.com/en-us/word-help/troubleshoot-cross-references-HP005189368.aspx).
    To "resolved" this problem I create an other bookmark in the template who have the same value white the principle bookmark.   
    I use Labview 2011 and Micosoft office 2010.

  • File not found error when opening securedoc.html

    We are having a sudden issue where recipients of our secure envelope emails will open a message from us with attachments and they will get a "File Not Found" error message.
    We are still using a Post X appliance, but no config changes were made whatsoever and this started happening since last weekend. (Oct. 9-11)
    I did reboot the Post X box and thought the problem was fixed w/ the reboot. I sent a secure message to myself and then opened it along with the attachment and all was good. I sent the second test and the problem was back; "File not found".
    I have noticed that when I get file not found the address bar in my browser is pointing to: https://res.cisco.com/websafe/eo/error?error=notfound
    The time after rebooting when it did work it pointed to file on my local computer hard drive:
    file:///C:/Documents%20and%20Settings/mymachine/Local%20Settings/Temporary%20Internet%20Files/PXTemp/-6pAQ4_Y5hJEmKdQhtG8lhNx0zo!/PX_L_1255377132267.html
    Any ideas what could have caused this sudden issue? How do we resolve? I have a call into support, but they have been researching it all day and our secure mail is down!

    used bridge, didn't work.
    tried right-click, double click..open in program.
    same error.
    files work in other adobe products.....
    only way to get a jpg in there is to "paste" it in.

  • File not found error on Uninstall

    Hi,
    Got a problem with the deinstallation of Labviewer. I deployed Labviewer with all moduls using the setup.exe's and specfiles.
    Installation worked fine and the software runs well.
    But when I try to uninstall running "uninst.exe /log C:\temp\uninst.log /qb /x all"
    It immediatly starts with an error stating "File not found RegDeleteKey" (see Attachment).
    Judging by ProcMon and ProcessExplorer the Exception i caused from the nirg.exe.
    If I click ok, the deinstallation goes on and finishes. Anyone an Idea on this topic?
    Greetings, Alex
    Attachments:
    NI-Error.JPG ‏32 KB

    Yes that is excactly the problem.
    The System is Windows 7 64Bit (Enterprise) and I used Labviewer 12. We installed all Modules from the 4 DVDs provided , as this was requested by the department which will use the software.
    The error itself seems to be connected to the NIRG module. If I leave NIRG out from the installation, the deinstallation of all other modules works without an error.
    Best Regards,
    Alexander Jarke

  • Any way to display a message when Flash is not found on the iPad?

    Apple is obviously rejecting Flash to protect it's 'App' revenue.  I've  been on Android phones that run Flash and display all my content  perfectly smooth.  It can be quite frustrating how they are trying to  bury it when I still have yet to see HTML5 replicate the type of  interactive content Flash is capable of producing. 
    Is there any way to display a message on the iPad when the Flash player is not found?
    I'd like it to says something along the lines of:
    "Unfortunately the Apple iPad does not support the Flash player  because their business interests do not want it taking away from their  App revenue.
    Did you know that the Dell Streak, HTC Flyer, Blackberry Playbook,  Motorola Xoom, Samsung Galaxy Tab, Toshiba Thrive, and HP Touchpad all  support the Flash player?"
    My HTML code looks something like this...
    <html>
    <head>
    <title>My Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#ECECEC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <body onresize="setFlashSize()">
    <div id="flashid" style="width:100%; height:100%;">
    <script type="text/javascript" language="JavaScript">
    function setFlashSize(){
    var viewportheight = document.body.clientHeight;
    var viewportwidth = document.body.clientWidth;
    var mydiv = document.getElementById("flashid");
    var styleheight = parseInt(mydiv.style.height);
    var stylewidth = parseInt(mydiv.style.width);
    if (viewportwidth<880){
    document.getElementById("flashid").style.width = 880+"px"; }
    else {
    document.getElementById("flashid").style.width = 100+"%";}
    if (viewportheight<760){
    document.getElementById("flashid").style.height = 760+"px"; }
    else {
    document.getElementById("flashid").style.height = 100+"%";}
    setFlashSize();
    document.write('<object data="index1.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
    document.write('<param name="movie" value="index1.swf" />');                      
    document.write('<param name="allowScriptAccess" value="always" />');       
    document.write('</object>');
    </script>
    <noscript>Javascript must be enabled to view Flash movie</noscript>
    </div>
    </body>
    </html>

    Use swfobject for Flash detection and you can provide all kinds of alternate content... simple text, images, links, .js slideshow, a mov or mp4 video just for the iPhone... ANYTHING this is regular HTML. Your imagination is the only limit.
    And YES, HTML5 is a far cry from replicating Flash... so give them the best of both worlds.
    http://code.google.com/p/swfobject/
    Review this article which deals with Flash and SEO for more ideas:
    If you think that Flash is somehow bad for SEO, it's time to dispell that MYTH!
    If fact, in some circumstances I'll use Flash INSTEAD of just HTML because then I'll have better SEO than with just HTML alone.
    http://www.worldbarefootcenter.com/
    The link to World Barefoot Center in the above post is just one example. View the source code and you see a couple paragraphs of text along with regular HTML links.... but what displays is the Flash version of the image and Flash links.
    The client provided the artwork for the page... and that's what they wanted to use a .jpg image. Well yes, that could be done in HTML but it would be virtually invisible to Google. So Instead I converted the image into a Flash .swf and used swfobject to display the Flash. swfobject allows you to create alternate content inside the <div> which also holds the Flash .swf, then when the page is loaded it detects if the browser has the Flash pluggin. If it does, it displays just the Flash content, if not, it displays the alternate content. Since almost everyone has the Flash pluggin, for most people the Flash version of the <div> will display.
    The alternate content for that <div> can be any regular HTML text, images, media player, links, etc., anything that you would use if you were not using the Flash. Now the best part is that the alternate content can be "over the top" as far as optimizing for SEO, since it will not be seen by most viewers.
    Here's another example of SEO with Flash.. again, the page is just a single image provided by the client:
    http://www.ksowetsuits.com/
    View the source code. The alt content is paragraph after paragraph of information about the site, including lists and links. If it was just the HTML, it might be kind of a boring Home page. But for SEO I can go "over the top" in promoting the site, since most viewers will never see that part... but it's all indexed by search engines. The end result is BETTER SEO using Flash than just HTML.
    On another Web site, a Flash video is displayed, the alt content is the complete text narration of the video. Now how many people would take the time to read that if they could just watch the video instead?? again, better SEO with Flash than without. In fact in one case we had first page search result from that video narration within 4 hours of posting the page.
    On still another site with a Flash video, the alt content is another video, but a .mov version, which will, in effect play Flash video on the iPhone (not possible you say??). Well since the iPhone does not have Flash pluggin, it simply displays the .mov version of the video, while everyione else sees the Flash version.
    So anyway, if Flash is a part of your Web development, you should look into using swfobject and alternate content.
    http://code.google.com/p/swfobject/
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Adninjastrator

  • Getting file not found message when synching photos to new iPod

    I've tried everything I know, but my HP WinXP machine w/ the latest iTunes update still throws an error message and will not load my JPG pictures. Anyone have any ideas??
    Cliff

    I've tried everything I know, but my HP WinXP machine
    w/ the latest iTunes update still throws an error
    message and will not load my JPG pictures. Anyone
    have any ideas??
    Cliff
    I have the same problem with syncing. I get a message that the required folder is not found. I have searched for four days so far for an answer to the the problem. Can someone please point the direction?
    Randy

  • "Not Found" Error Message Problem

    Hi All!
    I have a really weird issue happening that I have not found a post for in the boards, although there are some similar ones. I have a video project that I had been working on about a month ago and finished except for credits (I had no problems while working on it then). I finally just got the list of names to use for the credits, so I went to open the project to add the credits and I got a "Not Found" and "Out Of Memory" Message. I have 134.6 Gigs open on the Raid I save everything to, so I know I'm not actually out of memory. So I changed the settings to 80% Application and 50% Stills b/c I have around 10 jpegs I was using for titles in it. That seemed to help at least get the sequence opened. I then had media offline messages for those titles, eventhough they are in the browser and defined as online, so I just reconnected each one individually anyway. That helped with that problem. However, I FCP won't render the transitions around the titles. I deleted the transitions and titles and tried to re-render the video clips that were involved in the transitions with the titles. It won't render those. When I try to view the clips in the viewer, I get the "Not Found" message again. I reconnected a couple of the video clips individually, but I still get the message when I try to view them in the Viewer. The clips in the sequence are there and play in the canvas but not in the viewer and I get the "Not Found" message. I have it set to view the image without wireframes, so that's not the problem. The source videos are read as online in the browser and are in the same place as they were when I originally started the project, so that's not the problem. I've tried different variations on the memory usage. I've tried copying and pasting to a new sequence but get the same problem. Does anyone know why all of a sudden I can't view any of my source video and the clips I used in my sequence in the viewer and why it would give me the "Not Found" error message?
    Some Specs that might be helpful:
    FCP HD 4.5
    Dual 2 GHz PowerPC G5
    2.5 Gigs DDR SDRAM
    Raid 1 with 134.6 Gigs Available Space
    SD NTSC DV Footage - MPG files I transfered originally from the client's portable hard drive
    A Few JPGs of Photoshop Titles
    I'm sorry this is insanely long, but I wanted to provide as much detail as I could.
    Emily

    They were originally on a PC. That quite possibly could be it.
    I just checked all the titles again and they are all RGB.
    Our Raid ocassionally has problems, so I'm thinking it might have something to do with that.
    I'm going to try on Monday to just re-import the videos I need into the project and see how that goes. If anyone has any suggestions, I'll take a look on Monday and see what happens.
    I was just hoping that someone might have had this problem and knew what to do.
    Thanks for your help!

  • URL not found error while loading photo on Linux

    Hi,
    I have a AIR 2.0 appliaction which works perfectly well on Windows but while I run it on Linux Loader object can't load any photo. I tried many path variations but I always get Error #2035: URL Not Found.
    Here's how I load a photo (with hard coded URL)
    _imageLoader.load(new URLRequest("/home/piotr/105755/damage_photos/17.jpg"));
    I'm sure that "/home/piotr/105755/damage_photos/" path is correct. I pasted it to files explorer address text input and expected directory was opend. I'm also sure that 17.jpg file exists in that directory.
    When I trace IOError message it says: Error #2035: URL Not Found. URL: app:/home/piotr/105755/damage_photos/17.jpg
    My questions are:
    What "app:" does in my URL... can it cause the problem? If yes, how can I get rid of it?
    Is there anything specific about UNIX systems and Loader that should I know about?
    How can I load file from hard drive other way than by Loader object?
    I use AIR 2.0 SKD, Flex 4.5 SKD and Ubuntu 10.04. Could anyone help me, please?

    Hi,
    Just a test, can you try to do this:
    var f:File = new File(File.userDirectory.nativePath+File.separator+"105755"+File.separator+"damage_photos" +File.separator+"17.jpg");
    _imageLoader.load(new URLRequest(f.url));

  • Object not found in store error when trying to load MimeContent of an email (containing attachments)

    This is a weird one and I'm hoping someone can reproduce this and give me some help.
    We have a system that uses the EWS Managed API to send emails. Optionally an email may need to be saved out as an rfc822 (.eml) file afterwards for storing in our own database. In order to save to a file I need to load up the MimeContent of the message.
    And this is where an "Object not found in store" exception can get thrown.
    The really strange part is that the exception only seems to occur if the email contains an attachment and if there is too much of a delay between sending the email and trying to access the MimeContent!
    My test code is something like:
    // Set up the basics
    _item = new EmailMessage(P7ExchangeService.Service);
    _item.Subject ="Hello world";
    _item.ToRecipients.Add("some name", "[email protected]");
    _item.Body = new MessageBody(BodyType.HTML, @"<html><head></head><body>hello world<image src=""cid:blah""/></body></html>");
    // Add attachment
    FileAttachment att = _item.Attachments.AddFileAttachment("blah", "c:\temp\blah.jpg");
    att.IsInline = true;
    att.ContentId = "blah";
    // Send and save
    _item.SendAndSaveCopy();
    // Wait a bit (see comments below)
    Thread.Sleep(5000);
    // Now try and save out
    var propCollection = _item.GetLoadedPropertyDefinitions();
    propCollection.Add(ItemSchema.MimeContent);
    _item.Load(new PropertySet(propCollection)); // EXCEPTION!
    // ... etc
    On some systems it seems that the sending can take a while, hence my Thread.Sleep() call to simulate this.
    Its when I try and load up the MimeContent that I will then get the exception. But ONLY if I sleep (simulating the occasional delay seen on customer sites) and ONLY if the email contains an attachment.
    The mimecontent is necessary in order to save out to a file (by accessing the _item.MimeContetn property).
    Can someone please explain the exception and/or provide a better way of doing this??

    This is normal EWS doesn't return the Id of the Item in the SentItems Folder so you need to use a workaround like
    http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx .
    If you want to understand the issue you can enable tracing and look at responses, the actually Id your trying to load the MimeContent from is probably the Id of the draft message. Eg to send a message via EWS with attachments multiple operations must be
    used to construct it and when the messages finally gets sent the copy in the drafts folder is deleted and a copy is created in the SentItems folder. However the Id isn't returned for the SentItems copy hence you need the workaround.
    Cheers
    Glen

Maybe you are looking for

  • IT_FIELDCATALOG IS NOT GETTING FILLED

    HI friends   I have returned a program for workflow tracking. Am getting the output has led light alone no data's are displayed. I found that my IT_FIELDCATALOG = GT_FCAT is not getting filled. How to fill that. Am pasting my programming here. Kinldy

  • Mini DV to external drive to iMovie to DVD – strategy?

    I have had 4 hours of old home movies transferred from Beta to mini dv tapes, and plan to transfer them to an external firewire drive using a borrowed camcorder, then use iMovie to edit and burn them onto a one hour DVD. Can I use the copy of iMovie

  • Hi abapers

    hi everybody,               i need material regarding reports like how many types of reports, and their applications and implementation.                                                       thanking u,                                                

  • PR and PO creation in ECC from SRM 7.0

    Hi everyone, I have a pair of doubt. We are planning to upgrade SRM 3.0 to SRM 7.0 with ECC 6.0 ep 4 in a classic scenario. My doubts are: 1.- Can we create a PR from a SC using PI by standard or is the same as the previous version (using RFC)?? 2.-

  • Important files deleted.

    Hi. I was planning to sell my macbook and i couldn't find the restore disk so i was trying to manually delete all the files. Well, apparently i deleted some important things, i couldn't find Disk Utility, and you know when you try to click "about thi