File -- File sceranio problem

I am having some problem in the file-file scenario at the sender file adapter level. Please look at the following message:
2006-01-09 10:23:17 Error Attempt to parse XI system response failed
2006-01-09 10:23:17 Error Transmitting the message to endpoint http://host:port using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML.

Hi Michael and tny,
I have just read the problem description and I have just the same error..
BUT ON the PCK while module developing.
What can I do on the PCK instead?
I have restarted the AFW Core service, the XI Messaging System and afterall the complete J2EE Server.
I have also restarted the CPA Cache, I thought there lies the problem.
Nothing help, even the same problem.
Any ideas, what I can do? (I was a little bit suprised that the CPA Cach refresh via url doesn't work. Maybe here lies the problem.
Any ideas?
Best regards,
Dries

Similar Messages

  • File data copying problem

    Hi,
    Im trying to copy the contents fron one file(say abc.txt) to another file(say def.txt)....Whats wrong in the below code...
    package com.home.practise.streams;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class CopyOneFileToAnotherFile {
         CopyOneFileToAnotherFile() throws IOException {
              File file = new File("C:\\Documents and Settings\\Harishwar\\Desktop\\abc.txt");
              try {
                   BufferedReader br = new BufferedReader(new FileReader(file));
                   FileWriter fw = new FileWriter(new File("C:\\Documents and Settings\\Harishwar\\Desktop\\def.txt"));
                   BufferedWriter bw = new BufferedWriter(fw);
                   int ch;
                   while((ch = br.read()) != -1){
                        bw.write((char)ch);
                        System.out.print((char)ch);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public static void main(String[] args) throws IOException {
              new CopyOneFileToAnotherFile();
    }Im not getting the output inside the file "def.txt"...why so?? what might be the problem in the above code??

    Thanks for your reply, dudes...Now I got the output..But i had one small doubt..Why these java soft people didnt write flush() method in predefined streams or readers or writers( say BufferedWriter or some other output stream).Because they're buffered. If they were auto-flushed they wouldn't be buffered.
    Why they gave us a choice to write this flush() expilictly....?So that you can control when the buffer is flushed. For performance and transactional reasons.
    Why wouldn't they have written in these predefined classes(say BufferedWriter) itself?? Because then they wouldn't be buffered. So there wouldn't be any point in them existing, or at least in having those names.
    And another small doubt, when we write explicitly bw.close(), does this mean we are saying GC to collect this variable?No, it means flush and close the stream and release the associated file handle.
    Can't GC collect this variable after complete execution of this program?Of course, but it's a file writer with a local buffer, so you should close it yourself, explicitly, when you have finished writing to it, so that you know that you've flushed and closed it, so that your application doesn't proceed on a false assumption, for example so you don't print any misleading messages saying that you've written all the data when you haven't.
    If you don't want local buffering, don't use it. But then your tactic of reading and writing one character at a time is suddenly going to run several orders of magnitude more slowly. And it's still correct discipline to dispose of external resources immediately you've finished with them.

  • File Download - new Problem

    Hi java guru's
    I'm trying to write a download pgm using servlet and JSP. The actual problem is, when i'm trying to download a file, the output stream writes all the comtent of the file on the browser itself even if it's a .exe file instead of opening a "Save as" dialog box
    Can you guru's suggest me a best way to overcome this problem!
    Thanks in advance

    Hello friends,
    We can download any files in two ways
    1. calling java script function
    2. read/write operation(io).
    Both codes are working fine. try it and if u face any problem.Please let me know,
    Friendly,
    Jawahar
    bangalore. India
    [email protected]
    =================================
    java script code
    ==============================
    <%
    <!-- file relative path is here -->
    String path ="/jsp/xxx.xls";
    <!-- file name is here -->
    String fileName="xxx.xls";
    %>
    <html>
    <head>
    <title>Down load forms</title>
    </head>
    <body onLoad="window.open('<%=path%>');">
    <table border="0" align="center" width="100%">
    <tr><td height="181"><font face="verdana" color="#5599cc" size="2" align="center">you have selected the file <%=fileName%</font> </td></tr> </table></body></html>
    ==========================================
    Read/write IO operation is here
    ==========================================
    <%
    String files = null;
    String fileName=null;
    <!-- file path is here -->
    String file=".... any path";
    File f = new File(file);
    FileInputStream in = new FileInputStream(f);
    int length = (int)f.length();
    if(length != 0)
    byte[] buf = new byte[length];
    ServletOutputStream op = response.getOutputStream();     
    response.setContentType ("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\""+fileName+"\"");
    while ((in != null) && ((length = in.read(buf)) != -1))
    System.out.println("BUFFER $"+buf.length+"$");
    System.out.println("Bytes read in: " + Integer.toString(length));
    op.write(buf,0, buf.length);
    op.close();
    %>     
    <%@ page import="java.io.*,javax.servlet.*,java.util.*,java.sql.* " contentType="text/html" %>
    <html>
    <head>
    <title>Welcome to the download form page</title>
    </head>
    <body bgcolor=#FFFFFF>
    ==========================================

  • Time machine: An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.

    Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
    Sequence of events:
    The main error message is always:
    An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
    Yesterday, I opened Disk Utility and verified the disk. Got this error:
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
    Starting manual backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
    Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
    Deep event scan at path:/ reason:must scan subdirs|new event db|
    Finished scan
    Found 145601 files (11.88 GB) needing backup
    16.1 GB required (including padding), 620.77 GB available
    Copied Zero KB of 11.88 GB, 0 of 145601 items
    Copied 0 files (Zero KB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
    Ejected Time Machine network volume.
    Starting automatic backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
    Does anyone know what the problem is here and what I should do?
    Thanks,
    Tery

    You have repaired your boot drive (which is good) but have you repaired your time machine drive?  I don't own a Time Capsule so I don't know if disk utility can operate on it.  If it can, you should repair it as well.  You may need to erase it and start a new backup.  That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.

  • Help! File in use problem when using Swing app

    Hi. I got a program that is pretty much a JFileChooser that prints to standard output the path of the file that I've chosen. If I invoke the DOS command:
    java JFileChooserDemo, I will get the following as expected from the program:
    "You chose a file named: C:\MyJava\Book.xls".
    But if I invoke the following DOS command:
    java JFileChooserDemo > output.txt, the file "output.txt" contains the following:
    "GetModuleHandleA succeed
    LoadLibrary returns baaa0000
    You chose a file named: C:\MyJava\Book.xls"
    So, if I try to open the file or try to modify "output.txt", I get an error message stating that the file is in use.
    What's weird is that, I THINK if I have a program that DOES'NT use Swing or anything GUI-related and prints to standard output with the DOS "> outfile" command, I won't get this problem. So in other words, I can duplicate this problem with a sample Swing application that prints to standard output. Try it yourself.
    In my original program, it does have an event handler that closes the JFileChooser and its container and exits the system via "System.exit(0);", but for some reason, something still has "locked" the output.txt file. I even did the ctr+alt+del and can't find anything that would lock the output.txt file. What's even weirder is that if I run the application again, but output to a different file like "output2.txt", this file is not locked, but the "output.txt" file still is. output2.txt also don't have contain the
    "GetModuleHandleA succeed
    LoadLibrary returns baaa0000" message.
    The only way I know of that would "unlock" output.txt is to re-boot my computer.
    So it seems I have to modify my program somehow because it appears the OS still thinks output.txt file is still in use.
    Someone may think why would I invoke the java interpreter with the DOS "> outfile" command. Well, the reason being, I got a different version of the program that executes a query and I want it to create a delimited text file that contains the resultset of the query, so that I can then import it to Access, Excel, or whatever. But, because of this problem, I can't modify the query result without having to either run the application again and created another file name with the same result or re-boot. Of course, this would be silly.
    Any help in how I can modify my program or any GUI-program so that if I invoke the DOS "> outfile" command, the outfile won't be "locked" would be greatly appreciated. Thanks. If you want my program, you can e-mail me or run any sample program from the Swing Tutorial that prints to standard output and just add the " > outfile" to the java interpreter command.
    -Dan
    [email protected]

    Oops sorry, forgot to add the code. Here it is:
    BTW, can I edit posts? Oh well...
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo2 extends JFrame {
    static private String newline = "\n";
    public FileChooserDemo2() {
    super("FileChooserDemo2");
    //Create the log first, because the action listener
    //needs to refer to it.
    final JTextArea log = new JTextArea(5,20);
    log.setMargin(new Insets(5,5,5,5));
    log.setEditable(false);
    JScrollPane logScrollPane = new JScrollPane(log);
    JButton sendButton = new JButton("Attach...");
    sendButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    JFileChooser fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    int returnVal = fc.showDialog(FileChooserDemo2.this,
    "Attach");
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    /** The next 2 lines I added, the rest of the code is original taken from the Swing Tutorial **/
    System.out.println("You chose a file named: " +
                             fc.getSelectedFile().getPath());
    log.append("Attaching file: " + file.getName()
    + "." + newline);
    } else {
    log.append("Attachment cancelled by user." + newline);
    Container contentPane = getContentPane();
    contentPane.add(sendButton, BorderLayout.NORTH);
    contentPane.add(logScrollPane, BorderLayout.CENTER);
    public static void main(String[] args) {
    JFrame frame = new FileChooserDemo2();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

  • HELP!: File in use problem-"GetModuleHandleA succeed LoadLibrary returns ba

    Hi. I got a program that is pretty much a JFileChooser that prints to standard output the path of the file that I've chosen. If I invoke the DOS command:
    java JFileChooserDemo, I will get the following as expected from the program:
    "You chose a file named: C:\MyJava\Book.xls".
    But if I invoke the following DOS command:
    java JFileChooserDemo > output.txt, the file "output.txt" contains the following:
    "GetModuleHandleA succeed
    LoadLibrary returns baaa0000
    You chose a file named: C:\MyJava\Book.xls"
    So, if I try to open the file or try to modify "output.txt", I get an error message stating that the file is in use.
    What's weird is that, I THINK if I have a program that DOES'NT use Swing or anything GUI-related and prints to standard output with the DOS "> outfile" command, I won't get this problem. So in other words, I can duplicate this problem with a sample Swing application that prints to standard output. Try it yourself.
    In my original program, it does have an event handler that closes the JFileChooser and its container and exits the system via "System.exit(0);", but for some reason, something still has "locked" the output.txt file. I even did the ctr+alt+del and can't find anything that would lock the output.txt file. What's even weirder is that if I run the application again, but output to a different file like "output2.txt", this file is not locked, but the "output.txt" file still is. output2.txt also don't have contain the
    "GetModuleHandleA succeed
    LoadLibrary returns baaa0000" message.
    The only way I know of that would "unlock" output.txt is to re-boot my computer.
    So it seems I have to modify my program somehow because it appears the OS still thinks output.txt file is still in use.
    Someone may think why would I invoke the java interpreter with the DOS "> outfile" command. Well, the reason being, I got a different version of the program that executes a query and I want it to create a delimited text file that contains the resultset of the query, so that I can then import it to Access, Excel, or whatever. But, because of this problem, I can't modify the query result without having to either run the application again and created another file name with the same result or re-boot. Of course, this would be silly.
    Any help in how I can modify my program or any GUI-program so that if I invoke the DOS "> outfile" command, the outfile won't be "locked" would be greatly appreciated. Thanks. If you want my program, you can e-mail me or run any sample program from the Swing Tutorial that prints to standard output and just add the " > outfile" to the java interpreter command.
    -Dan
    [email protected]

    Sure, here it is:
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo2 extends JFrame {
    static private String newline = "\n";
    public FileChooserDemo2() {
    super("FileChooserDemo2");
    //Create the log first, because the action listener
    //needs to refer to it.
    final JTextArea log = new JTextArea(5,20);
    log.setMargin(new Insets(5,5,5,5));
    log.setEditable(false);
    JScrollPane logScrollPane = new JScrollPane(log);
    JButton sendButton = new JButton("Attach...");
    sendButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    JFileChooser fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    int returnVal = fc.showDialog(FileChooserDemo2.this,
    "Attach");
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    /** The next 2 lines I added, the rest of the code is original taken from the Swing Tutorial **/
    System.out.println("You chose a file named: " +
                             fc.getSelectedFile().getPath());
    log.append("Attaching file: " + file.getName()
    + "." + newline);
    } else {
    log.append("Attachment cancelled by user." + newline);
    Container contentPane = getContentPane();
    contentPane.add(sendButton, BorderLayout.NORTH);
    contentPane.add(logScrollPane, BorderLayout.CENTER);
    public static void main(String[] args) {
    JFrame frame = new FileChooserDemo2();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

  • I just got a new Mac Mini, and now when I try to import photos into Lightroom, iPhoto try to load them first, then Lightroom can't find the files.  Big problem.  What to do?

    I just got a new Mac Mini, and now when I try to import photos into Lightroom, iPhoto ties to load them first, then Lightroom can't find the files.  Big problem.  What to do?

    Simple:
    File -> Export to get your photos out of the iPhoto Library. In the Export dialogue you can set the kind to Original and you'll get back exactly what you put in.
    Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    Once exported, you can then trash the iPhoto Library - just drag it from the Pictures Folder to the trash and empty it.
    After that, if you're entirely neurotic about it, just put the iPhoto app in the trash and empty it.
    Regards
    TD

  • How to debug file content conversion problems?

    Hi,
    I'm trying to debug a file content conversion problem.  I'm mapping a few nodes in an IDOC to a file of fixed length fields.  I'm using the "<Node A>.fieldFixedLengths", "<Node B>.fieldFixedLengths", "<Node C>.fieldFixedLengths", etc. parameters to specify the fixed length records.
    However, a certain node (for e.g. Node B) is causing a problem and if it is present in the IDOC, the output file does not get created.  Upon checking the XI monitor, I notice that the file gets mapped correctly and thus the problem lies when the file adapter does the file content conversion.  How do I debug this because there is no descriptive error in the XI log?  If this node is not present, the file gets generated fine.
    Thanks,
    Basant Gupta

    Hi,
    If your SXMB_MONI shows, success status, then go to RWB->Message Monitoring->Message display tool and then check Audit log for the analysis,
    So it wil help you debug the situation.
    If there is no error, then check RWB->Component Monitoring->Adapter Monitoring for you file communciation channel..
    /people/michal.krawczyk2/blog/2005/01/02/simple-adapter-and-message-monitoring
    Regards,
    Moorthy

  • Problem in File-File Scenario

    Hi All,
    I am doing File->File Scenarios. There is no Recrod set also. I want to rename the file using XI. No mapping required. To rename the File name we can do the coding related to Dynamica configuration in one UDF and will map to the top node of the target. But i don't have the mapping here, So How can i execture this UDF or Do i need to write the Module in File adapter CC.
    I tried with dummy mapping , But I am getting the following error
    </SAP:Category>
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE
    </SAP:Code>
    <SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_
    </SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException
    </SAP:P2>
    <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    </SAP:P3>
    <SAP:P4/>
    <SAP:AdditionalText/>
    <SAP:ApplicationFaultMessage namespace=""/>
    <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRu
    ntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    </SAP:Stack>
    The mapping part is correct. There is no doubt on that. I don;t know why i am getting this error. Can you please tell me what could be the reason or any solution to resolve my problem.
    Points will be rewarded for helpful answers.
    Thanks in advance,
    Best Regards,
    Vijay

    Bhaskarudu,
    Option 1: If you only want to rename the file then pick the file and rename the file in receiver communicatin channel and write. Check this weblog for some help:
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Option 2: If you want to rename the file dynamically then you should do the mapping. Check this weblog for this:
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    Option 3: If you are picking the file within your organisation which is shared on NFS then you use OS commands in the file adapterd to rename the file.
    Regards,
    ---Satish

  • File Proxy Service Problem on errors

    In continuation of this thread...
    File Proxy Service Problem on errors
    We are now facing two problems.
    1.The proxy service is executed twice
    2.File is getting moved to error directory with prefixed file names which we are not able to retrieve and use in the notification email.
    Not sure how to fix :(

    1.The proxy service is executed twice Check if this is due to transaction timeout issue as discussed here. Re: OSB File polling working twice with the same file
    2.File is getting moved to error directory with prefixed file names which we are not able to retrieve and use in the notification email.I am not sure wehther you have any option here. You can check with support. Alternatively can raise notification mail with the timestamp and some file/business identifier from the file. The support person can then open the file from error directory to verify the file/business id in the file or educate the support user that the files will have a prefix

  • File Download - 403 problem

    Hi Folks,
    From long time away from here, I am back.
    In my application we are using only ADF Faces. There is a functionality in my application to download some files that have been previously uploaded by any user.
    The problem is that the file is not written in a file system. It is inside database.
    When the user clicks the download button from an af:table, it starts a method from a backing bean that goes to the database and gets the binary code from there.
    It writes the binary array in the response output but since the download has not started by the user the IE 7 and 8 shows the information bar stating that Internet Explorer has blocked this site from download...
    I have read that it is a default behaviour from IE7 and 8 when the user does not click in a link directly pointed to a file in a server.
    I tried to put the site in Trusted Sites.
    The only solution that I found was to enable "Always prompt for downloading". It works but I cannot use this solution since the application is going to run in a big Brazil TV Channel company throughout the country and change it is very difficult.
    I so that the difference between the REQUEST HEADERS is the Transfering-Enconding chunked, but it is related to content-lenght, when it is not specified. I tried to specify content-lenght and it did not work.
    When I click the bar and choose download file option, it redirects to the same page that I was, changing the afrSOMETHINGMode from 0 to 2 and adding the afrWindow to null.
    It gets me a 302, another two other GETs are done witouht success to the context root and at the last one I get the 403.
    Does any body have any light?
    Thanks in advance.

    Hi Mr. Puthanampatti,
    I used your above code for a download button.
    When I click the button the window will arise and we can download the file.
    But after that the button will not become enable.
    Normally when the task is over the button will automatically enabled. Butt here it is not happening and we can click the button only one time without refreshing the page.
    (I assumed you have used res for HttpServletResponse)
    the code I had used is mentioned below. Please tell me what can I do...??
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)externalContext.getResponse();
    File file = new File(dir1, pdffile1);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try {
    input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
    response.reset();
    response.setContentType("application/pdf");
    response.setContentLength((int)file.length());
    response.setHeader("Content-disposition", "inline; filename=\"" + pdffile1 + "\"");
    output = new BufferedOutputStream(response.getOutputStream(), 10240);
    byte[] buffer = new byte[10240];
    int length;
    while ((length = input.read(buffer)) > 0) {
    output.write(buffer, 0, length);
    output.flush();
    } finally {
    close(output);
    close(input);
    facesContext.responseComplete();Thanks a lot.
    Dinuka.

  • File Export Renaming Problem

    I want to export collections of files from Lightoom.
    I want to rename the newely exported files, but I want to use the same file number suffix as the original file.
    I also want to embed the oringal file name in the metadata of the newly exported file.
    The problem is that, when I go into the File->Export dialog i.e. the "Filename Template Editor" the orginal  "file number suffix" is not showing up in what would be the newly created filename. The orginal file number suffix does not appear to be part of the metadata.
    The current filename on disk does however have the file number suffix as part of the name.
    However it does not seem possible to extract part of the current file name (i.e. the number suffix) on export.
    If I rename the files using a number sequence then adding or removing a file will change the sequence on subsequent exports of the collection.
    (Not something I want to do, since it would then be difficult to keep track of the images used originate the exported file, if I updated the collection.)
    Renaming all my original files is not a viable option since there are too many of them and different exported files may be in more than one collection.
    *Any suggestions as to how to get the file naming I want for the exported files, i.e. "placename-oringal file number suffix"?
    (Given the file number suffix is missing from the metadata)
    *Also I would like to include the existing file name in the metadata of any new file name.
    Any suggestions on how to automate this?

    John said:
    > Unless you check "minimize metadata", it should all be there.
    No I have not checked this box.
    > Second, if you rename your files just before you Export (and not in the Export dialog, but actually rename them by batch
    > so the LR name is changed) you'll be able to link them up to the originals much more easily.
    No this will not work.  My naming method is quite useful for me, but not useful for potential buyers.
    When I export collections I want to simplify the names.
    > Third, the rename editor is pretty flexible.
    Yes I know, usually it is sufficient, but in this case it does not do what I want.
    > Finally, all the metadata is there, and searching is much easier via it rather than a complex naming convention
    > (not that it's so complex, but getting there may be.
    Not sure I completely agree here.  My naming method works quite well for organising images and for processing and so on.
    Now since I have collections spanning multiple directories and so that I want to export the files with a simplified filename.
    I expected to be able to do this using the file name editing template.
    The BreezeBrowser renamer is much more flexible than the Lightroom filename template editor, so I may end up using that.
    However it will be messy and add a few extra steps. i.e. export to a new directory using the existing filename.  Then use Breezebrowser to rename the files by extracting the "file number suffix" from the original filename and making sure there is sufficient information in the new filename to create a one-to-one mapping.  Then upload the new files to the website.
    I stil don't see how to get the original file name into the metadate of the new filename though?l
    Really I should be able to do all this in Lightroom.

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • Time Machine Error: "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

Maybe you are looking for

  • How can I recover my accidentaly deleted address book?

    I was working in my address book this morning and selected a contact that I wanted to delete. When I pressed the delete button, all of a sudden my entire address book dissapeared. I'm fairly sure I only selected the specific contact, but apparently s

  • Final Cut Pro 4.5 on Macbook Pro?

    I have a licensed copy of Final Cut Pro ver. 4.5. I ditched my lasy Power PC and have a new MacBook Pro. I assume that FCP 4.5 will not run on the ntel platform. Can I upgrade to a newer versionthat will work on my MacBook? I am not sure I want FCPX

  • Question about reading csv file into internal table

    Some one (thanks those nice guys!) in this forum have suggested me to use FM KCD_CSV_FILE_TO_INTERN_CONVERT to read csv file into internal table. However, it can be used to read a local file only. I would like to ask how can I read a CSV file into in

  • Rollup process is getting failed in PC

    Hi, The Rollup job gets failed daily in PC with following error message " Error when structuring the index of aggregate 100929 for InfoCube /BIC/FICPROB "and once i repeat the job it will get success. I need to know the reason why it get fail, if any

  • Runtime Error while exporting xlf to BOE(Xcelsius 2008)

    When I try to export a dashboard(its bit big and complex with Live Office connections) to BOE, Iu2019m getting the following error : Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\ProgramFiles\Business Objects\Xcelsius\Xcelsius.exe T