File LookUp in the MM : FileNotFound Exception

Hello Friends,
I am trying to fetch a file during the message mapping. The code I have written in the UDF is as follows :
<u>
String company = "";
HashMap fileMap = new HashMap();
BufferedReader reader = new BufferedReader(new FileReader("C:
testfolder
Mydata.txt"));
String line = "";
while((line = reader.readLine())!=null)
String[] lineArray = line.split(",");
fileMap.put(lineArray[1], lineArray[0]);
company = (String) fileMap.get(a);
return company; </u>
<b>
But I am getting the FileNotFound Exception when I tried to run the interface mapping.
I have confirmed that file is there in the respective folder.
1. Can we use the above code to fetch the file ?
2. Do we need to put the file in the XI server ?
</b>
Thanks for your time.
~PRANAV

and what exactly you are trying to do with this code ?
to access files,you need to use Java io api's,and you can access file from any server,not just XI server
but there are few drawbacks with this,first of all the file name and path will be hardcoded so u need to change it every time you move your file from Dev to QA to Prd.
secondly this approach is good to read the file,but not a very good idea to write something in the file
Thanx
Aamir

Similar Messages

  • I am trying to read in a .txt file, but I have a FileNotFound Exception

    So I am trying to read in as5.txt. It is located in the Assignment5 folder. I probably just have the syntax wrong, but can someone help me?
    import java.util.Scanner;
    import javax.swing.JFrame;
    import java.awt.Color;
    import java.io.*;
    public class Driver {
         public static void main(String [] args){
              JFrame window = new JFrame ("Window");//This creates the window
              window.setBounds(30, 100, 700, 700);
              window.setVisible(true);
              window.setLayout(null);
              FileReader as5 = new FileReader("Assignment5.as5.txt");
              Scanner file = new Scanner(as5);
              GameSquare square = new GameSquare(window, 0, 0);
              GameSquare[][] board = new GameSquare[8][8];
              int x = 0;
              int y = 0;
              for(int i=0;i < 8; i++){
                   for(int j=0;j < 8; j++){
                        board[i][j] = new GameSquare(window, x, y);
                        x=x+80;
                   x=0;
                   y=y+80;
    }

    If you think a file doesn't exists when you think it should, you can use code like this to print out what files are there:
    import java.io.*;
    public class Periscope {
        public static void check(File file) {
            if (file.exists()) {
                System.out.println("file exists: " + getPath(file));
                System.out.println();
                System.out.println("DUMP:");
                System.out.println();
                dump(file, "");
            } else {
                System.out.println("file does not exist: " + getPath(file));
                goUp(file);
        static void goUp(File file) {
            File parent = file.getAbsoluteFile().getParentFile();
            if (parent == null) {
                System.out.println("file does not have a parent: " + getPath(file));
            } else {
                check(parent);
        static void dump(File file, String indent) {
            System.out.println(indent + getPath(file));
            File[] children = file.listFiles();
            if (children != null) {
                indent += "    ";
                for(File child : children) {
                    dump(child, indent);
        static String getPath(File file) {
            try {
                return file.getCanonicalPath();
            } catch (IOException e) {
                e.printStackTrace();
                return file.getName();
        public static void main(String[] args) {
            check(new File("foo.bar"));
    }

  • Problem with reading from DAT file. FileNotFound exception

    Can't seem to find the issue here. Two files, one (listOfHockeyPlayers) reads from a DAT file a list of players. The other (HockeyPlayer) has just the constructor to make a new hockey player from the read data.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.awt.*;
    import java.io.*;
    public class ImportHockeyPlayers
    private ArrayList<HockeyPlayer> listOfHockeyPlayers = new ArrayList<HockeyPlayer>();
    public ImportHockeyPlayers(String fileName)
      throws FileNotFoundException
      try
       Scanner scan = new Scanner(new File(fileName));
       while (scan.hasNext())
        //Uses all the parameters from the HockeyPlayer constructor
        String firstName = scan.next();
        String lastName = scan.next();
        int num = scan.nextInt();
        String country = scan.next();
        int dob = scan.nextInt();
        String hand = scan.next();
        int playerGoals = scan.nextInt();
        int playerAssists = scan.nextInt();
        int playerPoints = playerGoals + playerAssists;
        //listOfHockeyPlayers.add(new HockeyPlayer(scan.next(),scan.next(),scan.nextInt(),scan.next(),scan.nextInt(),scan.next(),
         //scan.nextInt(),scan.nextInt(),scan.nextInt()));
      catch(FileNotFoundException e)
       throw new FileNotFoundException("File Not Found!");
    public String toString()
      String s = "";
      for(int i = 0; i < listOfHockeyPlayers.size(); i++)
       s += listOfHockeyPlayers.get(i);
      return s;
    public class HockeyPlayer
    private String playerFirstName;
    private String playerLastName;
    private int playerNum;
    private String playerCountry;
    private int playerDOB;
    private String playerHanded;
    private int playerGoals;
    private int playerAssists;
    private int playerPoints;
    public HockeyPlayer(String firstName, String lastName, int num, String country, int DOB,
      String hand, int goals, int assists, int points)
      this.playerFirstName = firstName;
      this.playerLastName = lastName;
      this.playerNum = num;
      this.playerCountry = country;
      this.playerDOB = DOB;
      this.playerHanded = hand;
      this.playerGoals = goals;
      this.playerAssists = assists;
      this.playerPoints = goals + assists;
    DAT File
    Wayne Gretzky 99 CAN 8/13/87 R 120 222
    Joe Sakic 19 CAN 9/30/77 L 123 210These are all in early development, we seem to have the idea down but keep getting the odd FileNotFound exception when making an object of the ImportHockeyPlayers class with the parameter of the DAT file.
    We might even be on the wrong track with an easier way to do this. To give you an idea of what we want to do...read from the file and be able to pretty much plug in al lthe players into a GUI with a list of the all the players.
    Thanks for your time.

    Thanks for the tip on the date format...good to
    know.
    public static void main(String[] args)
    GUI gui = new GUI();
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    }It's just being called in the main.
    Throws this error:
    GUI.java:39: unreported exception
    java.io.FileNotFoundException; must be caught or
    declared to be thrown
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    ^This error is simply telling you that an exception may occur so you must enclose it in a try catch block or change the main method to throw the exception as follows
    public static void main(String[] args) throws  
                          java.io.FileNotFoundException {
         GUI gui = new GUI();
         ImportHockeyPlayers ihp = new
         ImportHockeyPlayers("HockeyPlayers.dat");
    }or
    public static void main(String[] args) {
         GUI gui = new GUI();
         try {
              ImportHockeyPlayers ihp = new
              ImportHockeyPlayers("HockeyPlayers.dat");
         catch (FileNotFoundException e) {
              System.out.println("error, file not found");
    }I would reccomend the second approch, it will be more helpful in debugging, also make sure that the capitalization of "HockeyPlayers.dat" is correct
    hope that helps

  • Unable to do a lookup on the file name specified

    Hi,
    I have a problem when transfer file to IBM AS400 system. This is the scenarie:
    1) PI take the file
    2) I have a JavaMapping(change the filename to long 8 with 3)
    3) I use "create a temporary file"
    4) The file is create in target, but this have the name "XI_FTP_2.TMP"
    5) Finally, the receiver comunication channel launch the error : "Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP...(the number of FTP server is erased for publicated here)  'com.sap.aii.adapter.file.ftp.FTPEx: 550 Unable to do a lookup on the file name specified.'. For details, contact your FTP server vendor"
    I check the permissions of user, directories and file.
    In the log of communication channel the error say :(the number of FTP server is erased for publicated here)
    2009-04-23 20:26:52 Information Write to ftp server "xx...", directory "C:\AAA_BBB", ->  file "00010420.888".
    2009-04-23 20:26:52 Information Transfer: "BIN" mode, size 8302 bytes, encoding -.
    2009-04-23 20:26:53 Error File processing failed with com.sap.aii.adapter.file.ftp.FTPEx: 550 Unable to do a lookup on the file name specified.
    I apreciate your help!
    thanks

    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP...(the number of FTP server is erased for publicated here) 'com.sap.aii.adapter.file.ftp.FTPEx: 550 Unable to do a lookup on the file name specified.'. For details, contact your FTP server vendor"
    You don't have permission for that function (Unable to do a lookup on the file name specified.)
    <h5>Also Make sure that you have an active connection</h5>
    <h5>550 code  meaningRequested action not taken. File unavailable (e.g., file not found, no access). </h5>

  • Write and read txt files and catch the exceptions

    hey everyone, im in a bit of a bind. im trying to set up this try catch statement. here is what i have for code so far.
    import java.util.Scanner;
    import java.io.*;
    public class Warning
        //   Reads student data (name, semester hours, quality points) from a
        //   text file, computes the GPA, then writes data to another file
        //   if the student is placed on academic warning.
        public static void main (String[] args)
         int creditHrs;         // number of semester hours earned
         double qualityPts;     // number of quality points earned
         double gpa;            // grade point (quality point) average
         String line, name, inputName = "students.dat";
         String outputName = "warning.dat";
         try
              Scanner FileScan1 = new Scanner (new File("students.dat"));
              // Set up scanner to input file
              // Set up the output file stream
              // Print a header to the output file
              outFile.println ();
              outFile.println ("Students on Academic Warning");
              outFile.println ();
              // Process the input file, one token at a time
              while (FileScan1.hasNext())//there is another line...
                  {               // Get the credit hours and quality points and
                   // determine if the student is on warning. If so,
                   // write the student data to the output file.
              // Close output file
         catch (FileNotFoundException exception)
              System.out.println ("The file " + inputName + " was not found.");
         catch (IOException exception)
              System.out.println (exception);
         catch (NumberFormatException e)
              System.out.println ("Format error in input file: " + e);
    }I am pretty sure the layout is good to go, but first and foremost that try statement is hanging me up. Could someone give me some suggestions about how i should set this up.
    i want to read in this students.dat file, then output another file called warning.dat.
    Thanks i really appreicate the help.

    no, i was really hoping to just see if the way it is
    set up it will be doable, that way i wouldn't be
    working on code that was impossiable to sort through
    properlyFair enough.
    One thing I'd suggest is that if you're really basically only going to be printing the exceptions, and since that is the top-level method (main) --
    I'd instead just add some "throws" clauses to main, get rid of the try/catch stuff, and just let the VM handle the exceptions for you. It will print them, just like you're doing, except that it will also print the stack traces, which you are not doing.
    If you're going to handle exceptions, it's better to actually do something about them rather than just print them - otherwise you might just as well let the runtime do that for you.

  • What is the best alternative except JMF to play mp3, rm or ogg media files

    Hi,
    what is the best alternative except JMF to play mp3, rm or ogg media files ?

    Yes, you are right.
    you can take a look at this:
    first: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6431855
    then:
    http://www.javazoom.net/javalayer/documents.html
    http://www.javaworld.com/javaworld/jw-11-2000/jw-1103-mp3.html#resources

  • Problems with file uploading servlet, the form action doesnt capture url

    Hi, i have one problem. I am working on a project , i have created a servlet that takes uploaded files and processses them and links them back to user to download. The servlet works perfectly from my computer, I am using apache-tomcat-6.0.16 and java 1.6 , I have two forms called encrypt.html and decrypt.html, I will post both of them, now the problem is when somebody access it on the internet while i am running apache, they get a connection was reset on a firefox browser and same stuff on Internet Explorer.
    i have checked my server logs and saw nothing unusual there, So please if you can help me, it is my project.
    I am pasting html file and error message that other users where getting remotely.
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
    <title>Stego Form</title>
    <link rel='STYLESHEET' type='text/css' href='encrypt.css'>
    </head>
    <body>
    <center>
    <form name='encrypt' enctype='multipart/form-data' method='POST' action='http://localhost:8080/examples/temp2
    ' accept-charset='UTF-8'>
    <input type='hidden' name='sfm_form_submitted' value='yes'>
    </input>
    <input type='hidden' name='eord' value='e'>
    <select name='encryption' size='1'>
             <option value='Select an encryption' selected>
             Select an encryption
             </option>
             <option value='DES'>
             DES
             </option>
             <option value='Tripple DES'>
             Tripple DES
             </option>
    </select>
             <input type='file' name='overt' size='20'>
             <input type='file' name='covert' size='20'>
             <input type='submit' name='submit' value='Submit'>
    </form>
    </center>
    </body>
    </html>so it works for me even if i access the page with my ip , but for others it doesnt work,
    now the user got this xhtml page that i will show, i cant find attach button so i am pasting here.
    here is the servlet coding
    import java.io.*;
    import java.util.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import org.apache.commons.fileupload.*;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    public class temp2 extends HttpServlet
        FileInputStream fin;
        String filenames[] = new String[2],fieldname,fieldval;
        String keyfile,IVfile;
        String names[] = new String[2];
        public temp2()
            super();
        @Override
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            doPost(request, response);
        @Override
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            String eord="";
            List lst = null;
            boolean isMultiPart = ServletFileUpload.isMultipartContent(request);
            if (!isMultiPart) // check whether the post request is actually multipart
                System.out.println("ERROR NOT MULTIPART");
                System.exit(0);
            DiskFileItemFactory fif = new DiskFileItemFactory();
            ServletFileUpload sfu = new ServletFileUpload(fif);
            sfu.setSizeMax(10000000);
            try {  lst = sfu.parseRequest(request);  }
            catch (FileUploadException ex)
            { System.out.println("ERROR IN PARSING FILES" + ex); System.exit(0);  }
            if(lst.isEmpty())  // check whether request is empty
                System.out.println("ERROR LIST SIZE NOT GOOD : " + lst.size());
                System.exit(0);
            Iterator x = lst.iterator();
            int i = 0;
            FileItem f = (FileItem)x.next();
            f = (FileItem)x.next();
            System.out.println(f.getFieldName());
            if(f.getFieldName().equalsIgnoreCase("eord")) // check hidden field to know the case : encrypt or decrypt
                eord = f.getString();
                System.out.println(f.getString());
            else // if it is not first field exit
                System.out.println("Invalid FORM");
                System.exit(0);
            f = (FileItem)x.next(); // next field
            if(f.getFieldName().equalsIgnoreCase("encryption")) // type of encryption des / tdes
                fieldname = f.getFieldName();
                fieldval = f.getString();
                System.out.println(f.getString());
            if(eord.equalsIgnoreCase("e")) // if it is encryption form only file required
                while(x.hasNext())
                    f = (FileItem)x.next();
                    if(!f.isFormField())
                        int check = f.getName().lastIndexOf(File.separator);
                        System.out.println(File.separator);
                        if(check==-1)
                            System.out.println(f.getName());
                            System.out.println("Unsupported browser : " + check);
                            System.exit(0);
                        File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
                        names[i] = ff.getName(); // original file names
                        try
                            f.write(ff);
                            filenames[i] = ff.getAbsolutePath();
                        // renamed    
                            ff.deleteOnExit();
                        }catch(Exception e) {System.out.println("Error writing file"+ ff.getAbsolutePath()); System.exit(0);}
                        i++;
                    try { System.in.read(); } catch(Exception e) {}
                }// endwhile
                if(fieldval.equalsIgnoreCase("DES"))
                    System.out.println("DES 1"+filenames[1]);
                    javades o = new javades(filenames[1]); // the file to be encrypted   
                    filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
                    System.out.println("should be original" + filenames[1]);
                else if(fieldval.equalsIgnoreCase("Tripple DES"))
                    javatdes o = new javatdes(filenames[1]);
                    filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
                    System.out.println(filenames[1]);
                System.out.println("Calling stego");
                filenames[0] = "e:\\apache\\webapps\\temp\\" + names[0];
                System.out.println("file 1 "+ filenames[0]);
                System.out.println("file 2"+ filenames[1]);
                try { System.in.read(); } catch(Exception e) {}
                stego s = new stego(filenames[0],filenames[1]);
                System.out.println("mainext " + s.mainext);
                // encryption done, and new files are loaded, now lets hide
                if(s.mainext.equalsIgnoreCase("wav"))
                    s.encodewav();
                    System.out.println("Encoded wave");
                else if(s.mainext.equalsIgnoreCase("bmp"))
                    System.out.println("Encoded bmp");
                    s.encodebmp();
                System.out.println("done !");
                PrintWriter pr = response.getWriter();
                pr.println("Greetings , Your work is done and saved, now download the following files");
                pr.println("The secret key file is needed for getting back your hidden file, so download that too");
                pr.write("<a href=\"/temp/files/IV.txt\">click here</a>");
                pr.write("<br/><a href=\"/temp/files/key.txt\">click here</a>");
                pr.write("<br/><a href=\"/temp/files/"+names[0]+"\">click here</a>");
                return;
            // if it is decryption case
            else if(eord.equalsIgnoreCase("d"))
                while(x.hasNext())
                    f = (FileItem)x.next();
                    if(!f.isFormField())
                        int check = f.getName().lastIndexOf(File.separator);
                        System.out.println(File.separator);
                        if(check==-1)
                            System.out.println(f.getName());
                            System.out.println("Unsupported browser : " + check);
                            System.exit(0);
                        File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
    // else if ladder to store paths of stegofile keyfile and IVfile                   
                        if(f.getFieldName().equalsIgnoreCase("stegofile"))
                            filenames[0] = ff.getAbsolutePath();
                        else if(f.getFieldName().equalsIgnoreCase("keyfile"))
                            keyfile = ff.getAbsolutePath();
                        else if(f.getFieldName().equalsIgnoreCase("IVfile"))
                            IVfile = ff.getAbsolutePath();
                        try
                            f.write(ff); // writes whole file at once
                        }catch(Exception e) {System.out.println("Error writing file"); System.exit(0);}
                }// endwhile
                System.out.println("Calling stego");
                System.out.println("file 1 "+ filenames[0]);
                stego s = new stego(filenames[0]);
                System.out.println("mainext " + s.mainext);
                if(s.mainext.equalsIgnoreCase("wav"))
                    s.decodewav();
                    System.out.println("Encoded wave");
                else if(s.mainext.equalsIgnoreCase("bmp"))
                    s.decodebmp();
                    System.out.println("Encoded bmp");
                System.out.println("done !");
                ////// hidden file has been retrieved , now lets decrypt it
                System.out.println("ext " + s.ext);
                filenames[0] = "e:\\apache\\webapps\\temp\\"+s.filename;
                System.out.println(filenames[0]);
                System.out.println(keyfile);
                System.out.println(IVfile);
                if(fieldval.equalsIgnoreCase("DES"))
                    javades o = new javades(filenames[0],keyfile,IVfile); // the file to be encrypted   
                    filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
                    System.out.println("should be original" + filenames[0]);
                else if(fieldval.equalsIgnoreCase("Tripple DES"))
                    javatdes o = new javatdes(filenames[0],keyfile,IVfile);
                    filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
                    System.out.println(filenames[0]);
                PrintWriter pr = response.getWriter();
                pr.write("Greetings, you have successfully retrieved your hidden file, now download it from here <br>");
                pr.write("<a href=\"http://localhost:8080/temp/files/" + (new File(filenames[0]).getName())+"\">Click here</a>");
    }and here is the xhtml file the user receives, whe he clicks the submit button,
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html [
      <!ENTITY % htmlDTD
        PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "DTD/xhtml1-strict.dtd">
      %htmlDTD;
      <!ENTITY % netErrorDTD
        SYSTEM "chrome://global/locale/netError.dtd">
      %netErrorDTD;
    <!ENTITY loadError.label "Problem loading page">
    <!ENTITY retry.label "Try Again">
    <!-- Specific error messages -->
    <!ENTITY connectionFailure.title "Unable to connect">
    <!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
    <!ENTITY deniedPortAccess.title "This address is restricted">
    <!ENTITY deniedPortAccess.longDesc "">
    <!ENTITY dnsNotFound.title "Server not found">
    <!ENTITY dnsNotFound.longDesc "
    <ul>
      <li>Check the address for typing errors such as
        <strong>ww</strong>.example.com instead of
        <strong>www</strong>.example.com</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
    <!ENTITY fileNotFound.title "File not found">
    <!ENTITY fileNotFound.longDesc "
    <ul>
      <li>Check the file name for capitalization or other typing errors.</li>
      <li>Check to see if the file was moved, renamed or deleted.</li>
    </ul>
    ">
    <!ENTITY generic.title "Oops.">
    <!ENTITY generic.longDesc "
    <p>&brandShortName; can't load this page for some reason.</p>
    ">
    <!ENTITY malformedURI.title "The address isn't valid">
    <!ENTITY malformedURI.longDesc "
    <ul>
      <li>Web addresses are usually written like
        <strong>http://www.example.com/</strong></li>
      <li>Make sure that you're using forward slashes (i.e.
        <strong>/</strong>).</li>
    </ul>
    ">
    <!ENTITY netInterrupt.title "The connection was interrupted">
    <!ENTITY netInterrupt.longDesc "&sharedLongDesc;">
    <!ENTITY netOffline.title "Offline mode">
    <!ENTITY netOffline.longDesc "
    <ul>
      <li>Uncheck "Work Offline" in the File menu, then try again.</li>
    </ul>
    ">
    <!ENTITY netReset.title "The connection was reset">
    <!ENTITY netReset.longDesc "&sharedLongDesc;">
    <!ENTITY netTimeout.title "The connection has timed out">
    <!ENTITY netTimeout.longDesc "&sharedLongDesc;">
    <!ENTITY protocolNotFound.title "The address wasn't understood">
    <!ENTITY protocolNotFound.longDesc "
    <ul>
      <li>You might need to install other software to open this address.</li>
    </ul>
    ">
    <!ENTITY proxyConnectFailure.title "The proxy server is refusing connections">
    <!ENTITY proxyConnectFailure.longDesc "
    <ul>
      <li>Check the proxy settings to make sure that they are correct.</li>
      <li>Contact your network administrator to make sure the proxy server is
        working.</li>
    </ul>
    ">
    <!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
    <!ENTITY proxyResolveFailure.longDesc "
    <ul>
      <li>Check the proxy settings to make sure that they are correct.</li>
      <li>Check to make sure your computer has a working network connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
    <!ENTITY redirectLoop.title "The page isn't redirecting properly">
    <!ENTITY redirectLoop.longDesc "
    <ul>
      <li>This problem can sometimes be caused by disabling or refusing to accept
        cookies.</li>
    </ul>
    ">
    <!ENTITY unknownSocketType.title "Unexpected response from server">
    <!ENTITY unknownSocketType.longDesc "
    <ul>
      <li>Check to make sure your system has the Personal Security Manager
        installed.</li>
      <li>This might be due to a non-standard configuration on the server.</li>
    </ul>
    ">
    <!ENTITY sharedLongDesc "
    <ul>
      <li>The site could be temporarily unavailable or too busy. Try again in a few
        moments.</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that &brandShortName; is permitted to access the Web.</li>
    </ul>
    ">
      <!ENTITY % globalDTD
        SYSTEM "chrome://global/locale/global.dtd">
      %globalDTD;
    ]>
    <!-- ***** BEGIN LICENSE BLOCK *****
       - Version: MPL 1.1/GPL 2.0/LGPL 2.1
       - The contents of this file are subject to the Mozilla Public License Version
       - 1.1 (the "License"); you may not use this file except in compliance with
       - the License. You may obtain a copy of the License at
       - http://www.mozilla.org/MPL/
       - Software distributed under the License is distributed on an "AS IS" basis,
       - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
       - for the specific language governing rights and limitations under the
       - License.
       - The Original Code is mozilla.org code.
       - The Initial Developer of the Original Code is
       - Netscape Communications Corporation.
       - Portions created by the Initial Developer are Copyright (C) 1998
       - the Initial Developer. All Rights Reserved.
       - Contributor(s):
       -   Adam Lock <[email protected]>
       -   William R. Price <[email protected]>
       -   Henrik Skupin <[email protected]>
       -   Jeff Walden <[email protected]>
       - Alternatively, the contents of this file may be used under the terms of
       - either the GNU General Public License Version 2 or later (the "GPL"), or
       - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
       - in which case the provisions of the GPL or the LGPL are applicable instead
       - of those above. If you wish to allow use of your version of this file only
       - under the terms of either the GPL or the LGPL, and not to allow others to
       - use your version of this file under the terms of the MPL, indicate your
       - decision by deleting the provisions above and replace them with the notice
       - and other provisions required by the LGPL or the GPL. If you do not delete
       - the provisions above, a recipient may use your version of this file under
       - the terms of any one of the MPL, the GPL or the LGPL.
       - ***** END LICENSE BLOCK ***** -->
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>Problem loading page</title>
        <link rel="stylesheet" href="temp2_files/netError.css" type="text/css" media="all"/>
        <!-- XXX this needs to be themeable -->
        <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVHjaYvz//z8DJQAggJhwiDPvnmlzc2aR0O+JGezt+AwACCCsBhxfYhn59N41FWtXIxZOLu70niRGXVwGAAQQNgNYHj96O8HaWYdJW5ubwd4/mI2Ng7sblwEAAYRhwMm1URk/vn4SUNWVYGD8+YZBXZOZm5OLzRjoCmNsBgAEEKoBN82Y7l851GLrqMjM8Oc7A8O/3wwMP54wuAQFCXNycUzGZgBAAKEYcOaKZO2/f//5FbUVgBrfMoRVcgHpNwyKGjKMXDwCan0prFboBgAEELIBzDcvXyy2cVZhYPj9GWj7H4jo/38MDJ9OMDj7O/KzsjH3oxsAEEBwA/bNNipiZf7FI6cqwcDw8x2qqp8fGORUpVn4BEXlgGHhhCwFEEAwA9gfP3hdZ+Oizcjw+wvCdjgAuuLrFQbXIH9hTm7uqcgyAAEENuD4ctcebm5mbikFYRTbV7V/Q6j88Z5BSuY7q4CQgAjQFR4wYYAAAhtw89L5ZFsnRaDtn4CW/YXrAQcisit+PGVwDgrnZ2NnnwATBQggpsNLvGYLCAmxi8tLARWg+h3FBVBXSEj/ZZWQkRcCuiIQJAQQQCyvnj5KMDTkZ2JgYmRg4FchnHv+vmEwttLmeXT3VjKQtx4ggFgk5TXebV63UfT3ijOMxOZAVlZWdiB1EMQGCCBGSrMzQIABAFR3kRM3KggZAAAAAElFTkSuQmCC"/>
        <script type="application/x-javascript"><![CDATA[
          // Error url MUST be formatted like this:
          //   moz-neterror:page?e=error&u=url&d=desc
          // Note that this file uses document.documentURI to get
          // the URL (with the format from above). This is because
          // document.location.href gets the current URI off the docshell,
          // which is the URL displayed in the location bar, i.e.
          // the URI that the user attempted to load.
          function getErrorCode()
            var url = document.documentURI;
            var error = url.search(/e\=/);
            var duffUrl = url.search(/\&u\=/);
            return decodeURIComponent(url.slice(error + 2, duffUrl));
          function getDescription()
            var url = document.documentURI;
            var desc = url.search(/d\=/);
            // desc == -1 if not found; if so, return an empty string
            // instead of what would turn out to be portions of the URI
            if (desc == -1) return "";
            return decodeURIComponent(url.slice(desc + 2));
          function retryThis()
            // Session history has the URL of the page that failed
            // to load, not the one of the error page. So, just call
            // reload(), which will also repost POST data correctly.
            try {
              location.reload();
            } catch (e) {
              // We probably tried to reload a URI that caused an exception to
              // occur;  e.g. a non-existent file.
          function initPage()
            var err = getErrorCode();
            // if it's an unknown error or there's no title or description
            // defined, get the generic message
            var errTitle = document.getElementById("et_" + err);
            var errDesc  = document.getElementById("ed_" + err);
            if (!errTitle || !errDesc)
              errTitle = document.getElementById("et_generic");
              errDesc  = document.getElementById("ed_generic");
            var title = document.getElementById("errorTitleText");
            if (title)
              title.parentNode.replaceChild(errTitle, title);
              // change id to the replaced child's id so styling works
              errTitle.id = "errorTitleText";
            var sd = document.getElementById("errorShortDescText");
            if (sd)
              sd.textContent = getDescription();
            var ld = document.getElementById("errorLongDesc");
            if (ld)
              ld.parentNode.replaceChild(errDesc, ld);
              // change id to the replaced child's id so styling works
              errDesc.id = "errorLongDesc";
            // remove undisplayed errors to avoid bug 39098
            var errContainer = document.getElementById("errorContainer");
            errContainer.parentNode.removeChild(errContainer);
        ]]></script>
      </head>
      <body dir="ltr">
        <!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
        <!-- PAGE CONTAINER (for styling purposes only) -->
        <div id="errorPageContainer">
          <!-- Error Title -->
          <div id="errorTitle">
            <h1 id="errorTitleText">The connection was reset</h1>
          </div>
          <!-- LONG CONTENT (the section most likely to require scrolling) -->
          <div id="errorLongContent">
            <!-- Short Description -->
            <div id="errorShortDesc">
              <p id="errorShortDescText">The connection to the server was reset while the page was loading.</p>
            </div>
            <!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
            <div id="errorLongDesc">
    <ul>
      <li>The site could be temporarily unavailable or too busy. Try again in a few
        moments.</li>
      <li>If you are unable to load any pages, check your computer's network
        connection.</li>
      <li>If your computer or network is protected by a firewall or proxy, make sure
        that Firefox is permitted to access the Web.</li>
    </ul>
    </div>
          </div>
          <!-- Retry Button -->
          <xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="errorTryAgain" label="Try Again" oncommand="retryThis();"/>
        </div>
        <!--
        - Note: It is important to run the script this way, instead of using
        - an onload handler. This is because error pages are loaded as
        - LOAD_BACKGROUND, which means that onload handlers will not be executed.
        -->
        <script type="application/x-javascript">initPage();</script>
      </body>
    </html>thank you for your prompt reply in advance,
    Regards,
    Mihir Pandya

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • CSV File LookUp

    Hi all,
    I am designing a scenario following the given blog:
    <i><b>/people/kausik.medavarapu/blog/2005/12/29/csv-file-lookup-with-http-request-and-response-in-xi
    In this blog i am mainly dealing with the first half i.e the CSV File Lookup part.
    I have created the csv file as mentioned. Converted it into a jar and included that jar file in the repository under the Imported Archive tab.
    I have done certain manipulation in the given code to suit my design:
    <b>String price = "0";
         try
              Class.forName("<i>the name of my imported jar file</i>");
              Connection con=DriverManager.getConnection("jdbc:driver:""/""/"+"pciib04530/users/");
              PreparedStatement stmt=con.prepareStatement("select itemno,price from price where itemno=?");
              stmt.setString(1,a);
              ResultSet rs=stmt.executeQuery();
              while(rs.next())
                   price = rs.getString("price");
              con.close();
              return price;
         catch(Exception e)
              return "-1";
         }</b>
    On testing the mapping the error msg i get is Method findPrice with 1 arguments not found in class com.sap.xi.tf._Request_MM_
    where findPrice is the name of my method and Request_MM is my message mapping.
    I dont know what is wrong.
    Pls guide.
    If anyone can mention help documents on CSV Lookup, it would be very helpful.
    Thanks in advance
    Regards
    Neetu

    Hi Prashanth,
    I have already gone through the both the blogs mentioned by you.
    The first one speaks about CSV Lookup.
    Here the author mentions about some driver <b><i>"it’s possible by means of  a driver that makes the flat file (here CSV file) to appear as a database table to the API."</i></b>
    But he does not mention the name of the driver.
    The Blog is also not very elaborate.
    Can you suggest the name of the driver?
    Regards,
    Neetu

  • FileNotFound Exception

    Hello I am trying to parse an xml file chosen by the user. The file chosen is under:
    wkdis3/home/bwe but everytime i got this exception:
    ption caught: class java.io.FileNotFoundException
    Datei AABC.XML ist nicht g�ltig.java.io.FileNotFoundException: \home\bwe\AABC.XML (Das System kann den angegebenen Pfad nicht finden)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:78)
         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:99)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:164)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at ParseTest.<init>(ParseTest.java:51)
         at ParseTest.main(ParseTest.java:105)
    has anyone any idea baout that? and the main metode is so:
    public static void main(String[] args) {
    //     Work with /Dir/File.txt on the system wkdis3.
         AS400 system = new AS400("wkdis3");
         IFSJavaFile dir = new IFSJavaFile(system, "/home/bwe");
         JFileChooser chooser = new JFileChooser(dir, new IFSFileSystemView(system));
         Frame parent = new Frame();
         int returnVal = chooser.showOpenDialog(parent);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              IFSJavaFile chosenFile = (IFSJavaFile)(chooser.getSelectedFile());
              System.out.println("You selected the file named " +
                                       chosenFile.getName());
                   String filename = chosenFile.getName()
                   try{
              File file= chosenFile;
         ParseTest xIncludeTest = new ParseTest(file);
         }catch(Exception e) {
         // System.out.println("Exception"+e+ "ist gefunden. /n ");
         System.out.println("Exception caught: "+e.getClass());
         System.out.println("Datei "+filename+" ist nicht g�ltig.");
         e.printStackTrace();
         }//ende catch
         }//Ende if
    } //ende main()
    }/

    Thanks alot Mike ..The tips you gave were very helpful..I could solution using the Object IFSJavaFile, cause when i make :
    IFSJavaFile chosenFile = (IFSJavaFile)(chooser.getSelectedFile());
    II was getting only the path but not the system and when the systems are different(you were right XMl files were on OS400) then i got the FileNotFound Exception always.Down is the corrected main methode:
    public static void main(String[] args) {
         try{
    //          Work with /Dir/File.txt on the system wkdis3.
         AS400 system = new AS400("wkdis3");
         IFSJavaFile dir = new IFSJavaFile(system, "//wkdis3/ROOT/home/bwe/");
         String directory0 = dir.getParent();
         System.out.println ("Directory0: " + directory0);
         String directory4=dir.getCanonicalPath();
         System.out.println ("Canonicalpath-Directory4: " + directory4);
    //     IFSJavaFile dir = new IFSJavaFile( "\\wkdis3\ROOT\home\bwe");
         JFileChooser chooser = new JFileChooser(dir, new IFSFileSystemView(system));
         Frame parent = new Frame();
         int returnVal = chooser.showOpenDialog(parent);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              IFSJavaFile chosenFile = (IFSJavaFile)(chooser.getSelectedFile());
              System.out.println("You selected the file named " +
                                       chosenFile.getName());
                   String filename = chosenFile.getName();
         IFSJavaFile file = new IFSJavaFile(system,directory4+filename);
         ParseTest xIncludeTest = new ParseTest(file);
              }//ende if
         catch(Exception e) {
              // System.out.println("Exception"+e+ "ist gefunden. /n ");
              System.out.println("Exception caught: "+e.getClass());
              // System.out.println("Datei "+filename+" ist nicht g�ltig.");
              e.printStackTrace();
    }

  • New ReportDocument() thows System.IO.FileNotFound exception

    I've inherited a Visual Studio 2003 windows service that uses managed C++ and C# + Crystal to print reports.  It was using Crystal 9 and now I'm trying to upgrade it to Crystal 11.
    Most of the windows service is in managed C++ but the Crystal part is in C#.  Basically it does a new ReportDocument, loads a report file, feeds it a dataset and some parameters and uses ReportDocument.PrintToPrinter(...) to output it.
    Everything still compiles after moving to Crystal 11 but I get a System.IO.FileNotFound exception when it gets to
    m_rptDocument = new ReportDocument();
    The exception doesn't include any information as to which file is not found.  So far FileMon hasn't been very helpful.  there are too many NOT FOUND results generated just as part of the normal running.  I tried a simplified test windows service and that seemed to work.
    I assume it is some sort of dependency issue.  Does anyone have any ideas how I can uncover the problem source?
    Thanks.
    Ben

    The service pack helped a little.  I'm getting different errors now.  They are a little more informative.  4 exceptions all stemming from doing a new ReportDocument();
    Exception:     {com.crystaldecisions.common.keycode.KeycodeException.ReadingFromRegistry}     com.crystaldecisions.common.keycode.KeycodeException.ReadingFromRegistry
    Stack:      businessobjects.licensing.keycodedecoder.dll!com.crystaldecisions.common.keycode.KeycodeCollectionImpl.Load(string location = @"Software\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Ent") + 0xbd bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (string      9 = @"Software\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Ent") + 0x29 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.~() + 0xb1 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.z() + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDocument() + 0xc5 bytes     
    Exception:     {com.crystaldecisions.common.keycode.KeycodeException.UnknownProperty}     com.crystaldecisions.common.keycode.KeycodeException.UnknownProperty
    Stack:      businessobjects.licensing.keycodedecoder.dll!com.crystaldecisions.common.keycode.KeycodeCollectionImpl.GetProperty(string propName = "CRSDK.InProc", long version = 115) + 0xa9 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.(com.crystaldecisions.common.keycode.KeycodeCollection      - = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, string      0 = "CRSDK.InProc", int      1 = 115, long      2 = 0) + 0x3e bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (com.crystaldecisions.common.keycode.KeycodeCollection      3 = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, int      4 = 115) + 0x4a bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (string      9 = @"Software\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Dev") + 0x36 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.~() + 0xb1 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.z() + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDocument() + 0xc5 bytes     
    Exception:     com.crystaldecisions.common.keycode.KeycodeException     {com.crystaldecisions.common.keycode.KeycodeException.UnknownProperty}     com.crystaldecisions.common.keycode.KeycodeException
    Stack:      businessobjects.licensing.keycodedecoder.dll!com.crystaldecisions.common.keycode.KeycodeCollectionImpl.GetProperty(string propName = "CRSDK.Queuing", long version = 115) + 0xa9 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.(com.crystaldecisions.common.keycode.KeycodeCollection      - = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, string      0 = "CRSDK.Queuing", int      1 = 115, long      2 = 0) + 0x3e bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (com.crystaldecisions.common.keycode.KeycodeCollection      3 = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, int      4 = 115) + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (string      9 = @"Software\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Dev") + 0x36 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.~() + 0xb1 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.z() + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDocument() + 0xc5 bytes     
    Exception:     {com.crystaldecisions.common.keycode.KeycodeException.UnknownProperty}     com.crystaldecisions.common.keycode.KeycodeException.UnknownProperty
    Stack:      businessobjects.licensing.keycodedecoder.dll!com.crystaldecisions.common.keycode.KeycodeCollectionImpl.GetProperty(string propName = "CRSDK.CPL", long version = 115) + 0xa9 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.(com.crystaldecisions.common.keycode.KeycodeCollection      - = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, string      0 = "CRSDK.CPL", int      1 = 115, long      2 = 1) + 0x3e bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (com.crystaldecisions.common.keycode.KeycodeCollection      3 = {com.crystaldecisions.common.keycode.KeycodeCollectionImpl}, int      4 = 115) + 0x8c bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (string      9 = @"Software\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Dev") + 0x36 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.~() + 0xb1 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.z() + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDocument() + 0xc5 bytes     
    Exception: {com.crystaldecisions.common.keycode.KeycodeException.ReadingFromRegistry}     com.crystaldecisions.common.keycode.KeycodeException.ReadingFromRegistry
    Stack:      businessobjects.licensing.keycodedecoder.dll!com.crystaldecisions.common.keycode.KeycodeCollectionImpl.Load(string location = @"Software\Business Objects\Suite 11.5\Enterprise\CRNETKeycode") + 0xbd bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.  (string      9 = @"Software\Business Objects\Suite 11.5\Enterprise\CRNETKeycode") + 0x29 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.~() + 0xb1 bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.z() + 0x6b bytes     
         crystaldecisions.crystalreports.engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDocument() + 0xc5 bytes     
    It acts like it is having trouble accessing registry keys, but I'm not sure why.  I have permissions and the first key exists.  The last one is missing, CRNETKeycode.

  • Strange javax.ejb.EJBException FileNotFound Exception though form is found

    Hi,
    I've set up a simple workflow, which consists of two user QPACs, which are connected to each other, let's call the first one 'user' and the second one 'admin'.
    I use a simple init-form, which merely consists of a dropdown and a submit button.
    The workflow works fine: 'user' selects a value from the dropdown-list, submits the form, 'admin' opens the form, the dropdown's value is still selected.
    However, in the logfile, the following exception is thrown:
    INFO  [STDOUT] Got tempFile : D:\Adobe\LiveCycle\temp\adobejb\DM4268780530925093172.dir\DM6500814794164759285.pdf
    INFO  [STDOUT] com.adobe.fm.extension.formserver.AresUtil getPDFDocument
    INFO: Loading the PDF.
    INFO  [STDOUT] com.adobe.fm.extension.formserver.AresUtil setPdfRights
    INFO: BufLength : 100415
    ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException:
    javax.ejb.EJBException: FileNotFound Exception: File [/fm//Forms/test_dropdown.xdp] not found
    at com.adobe.ebxml.registry.appstore.url.provider.XappstoreUrlDataProviderBean.getInputStream(XappstoreUrlDataProviderBean.java:193)
    at sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    As the workflow works, I could easily forget about the exception. But it outputs a couple of thousand(!) lines in the logfile each time, the form's submit button is pressed.
    Does anyone know, why do I get a FileNotFound exception though the workflow works fine???
    The exception may result from the incorrect path, which contains
    //. But why is the form then loaded anyway?
    Regards,
    Steve

    Hi Steve
    I'm not sure what the cause of the problem is.
    One thing...do you use the same form all the way through your process?
    If so, you should just be moving your form url information via your form variable. You would only choose "Change the form template Url to:" field if there was a different version of the form at this step. It doesn't hurt to do it but there is no need to. This is extra overhead.
    To use the same form all the way through the WF and move the data from each step:
    1) specify an init-form
    2) specify a form variable
    3) on the Mappings tab of your user QPAC you select your form variable as your "Input Variable" and select "use form template Url defined by Input Form Variable".
    4) also on the Mappings tab of your user QPAC you select your form variable as your "Output Variable"
    (You are probably not doing this, but there is also no need to fill in the template-url field in your form variable.)
    Diana

  • JNLP filenotfound exception

    Hello,
    with build 36, I had a desktop application which uses spring framework. There is an XML file that is read from the classpath, using the ClassPathXmlApplicationContext from spring. The XML file is in the root of my jar file. JNLP is used to release the application (on Tomcat). Everything worked as expected.
    With build 37 and 38, I have a FileNotFoundException when running with JNLP. Running in IDE works fine.
    Has anyone else found resource / classpath problems when running with JNLP?
    kind regards,
    Peter
    The exception:
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-ehBoxClient-core.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-ehBoxClient-core.xml] cannot be opened because it does not exist
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)
         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)
         at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
         at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

    Oddly, now that the FileNotFound exception, but another IOException is thrown
    C:\>jar cmf h.txt Hello.jar Hello.class
    java.io.IOException: invalid header field name: &#8745;&#9559;&#9488;Main-Class
    at java.util.jar.Attributes.read(Attributes.java:403)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    C:\>

  • How to read the and Write the PDF file give me the solution

    Hi all,
    How to read the and Write the PDF file give me the solution
    My coding is
    import java.io.File;
    import com.asprise.util.pdf.PDFImageWriter;
    import com.asprise.util.pdf.PDFReader;
    import java.io.*;
    import java.io.FileOutputStream;
    public class example {
    // public example() {
         public static void main(String a[])
              try
              PDFReader reader = new PDFReader(new File("C:\\AsprisePDF-DevGuide.pdf"));
                   reader.open(); // open the file.
                   int pages = reader.getNumberOfPages();
                   for(int i=0; i < pages; i++) {
                   String text = reader.extractTextFromPage(i);
                   System.out.println("Page " + i + ": " + text);
    // perform other operations on pages.
    PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("c:\\new11.pdf"));
                   writer.open();
                   writer.addImage("C:\\sam.doc");
                   writer.close();
                   System.out.println("DONE.");
    reader.close();
              catch(Exception e){System.out.println("error:"+e);
              e.printStackTrace();
    I get the pdf content then it returns the string value but ther is no option to write the string to PDF, and we only add a image file to PDF,but i want to know how to wrote the string value to PDF file,
    Please give response immtly
    i am waiting for your reply.
    thanks,
    Suresh.G

    I have some question flow
    How library to use this code.
    I try runing but have not libary.
    Please send me it'library
    Thank you very much!

  • How to get Bursting file to use the same template as selected by user

    I have created an XML publisher bursting control file for a standard Oracle report Direct Debit letter.
    The user wants to be able to select from a number of different letter templates which is ok except that the bursting control file is fixed to use one template.
    How can I get the bursting control file to use the same letter template as selected by the user when running the report ?
    I am using XML Publisher 5.6.3 with bursting patch.

    Try these following, which come to my mind now as of now.
    In the bursting file, you can do the filtering and apply different template..
    <xapi:template type="rtf" location="/usr/template1" filter=".//DIRECT_DEBIT[./parameter_or_element='first_template']"></xapi:template>
    <xapi:template type="rtf" location="/usr/template2" filter=".//DIRECT_DEBIT[./parameter_or_element='second_template']"></xapi:template>
    second option..
    you can replace the element from the xml in the bursting control file.
    ${ELEMENT_NAME}
    can be used in the template name i guess..
    <xapi:template type="rtf" locale=""
    location="xdo://AR.${SHORT_NAME}.en.US/?getSource=true" translation="" filter="">
    </xapi:template>
    But in this short name has to be in XML file...
    I haven;t tried it...wil try it wheni get time..

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

Maybe you are looking for