Java file download - form feed

Previously using Windows 2000 with Java 1.3.0. Able to download text files from a customer site direct into Excel via a custom application. The first two characters in the file were Carriage Return and Line Feed. Have now upgraded the workstation to XP and Java 1.5.0.6. The first character in the download from the same source is a Form Feed which Excel does not accept. Tried upgrading to Java 1.5.0.10 - now the custom application will not open Excel. Can download the file into the default browser but the first character is still a Form Feed.
Is this a bug in Java 1.5.0.x or is there a configuration change I need to make to get Java to substitute a CR / LF for the FF????????

This sounds like an application-level problem.
I've never heard of a JVM-level adjustment to automagically turn all formfeeds into line endings.
Contact the developer of the application.

Similar Messages

  • How to import a flv-file (downloaded form YouTube) into iMovie?

    How to import a flv-file (downloaded form YouTube) into iMovie?
    It needs to be converted to which format?
    Suggestions how to do that?
    Thanks.
    Mattie
    The Netherlands

    http://perian.org (free).
    QuickTime Player Pro ($30).

  • WUC-17 Information was missing from the supplied file download request java

    Dear Forms Guru,
    Can anybody help why i'm receiving this error using webutil.
    WUC-17 Information was missing from the supplied file download request java..
    the result in my jinitiator console are the ff:
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/webutil/webutil.jar from JAR cache
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/webutil/jacob.jar from JAR cache
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 1.0.5 Production
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/java/toolbar_images.jar from JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90290
    2005-Feb-13 01:48:19.514 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    2005-Feb-13 01:48:33.504 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    2005-Feb-13 01:48:34.04 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    Many thanks in advance...
    benjie

    Benjamin,
    WebUtil tries to download the jacob.dll to the client. The error message you get is most likely caused by teh following section in teh webutil.cfg file
    install.syslib.location=/webutil
    ## Do not change the following lines unless instructed to do so
    install.syslib.0.7.1=jacob.dll|94208|1.0|true
    install.syslib.0.9.1=JNIsharedstubs.dll|65582|1.0|true
    install.syslib.0.9.2=d2kwut60.dll|192512|1.0|true
    ## But you can add your own libraries in here
    #install.syslib.0.user.1=testwebutil.dll|204872|1.0|true
    If you have all these files available on the PC, then most likely the problem can be found in the virtual path setting for this directory
    <virtual-directory virtual-path="/webutil"
    real-path="c:/webutil/lib" />
    in /j2ee/Oracle9iDS/application-deployments/forms/forms90web/orion-web.xml
    Pleae refer to the webutil documentation for teh exact configuration steps.
    Hope this helps
    Frank

  • How to set form feed   in output .lst file

    sql >set pagesize 60
    spoo abc
    select * from xyz;
    spoo off
    In the file abc.lst header and placed details 60 lines. but at
    the time of printing if paper lenght is 72 lines how to set form feed?

    Try
    set newpage 0

  • Java WebDynpro's and IE security settings for file download

    We have a EP 7.0 SP13 environment on which we have deployed a number of own developed java webdynpro's. In some of these webdynpro's we provide the file download functionality. The portal and webdynpro's are used by both internal personnel and external customers.
    On the other hand the default Internet security settings for Internet Explorer, disable "Automatic prompting for file downloads".
    When a user, with these default security settings active, tries to use our webdynpro's file download functionality, the screen seems to refreshes but no file download starts. When (s)he retries, the session runs for some minutes and gives following error message:
    "com.sap.tc.webdynpro.services.session.LockException: Thread SAPEngine_Application_Thread[impl:3]_20 failed to acquire exclusive lock on client session ClientSession".
    This behavior is explained in SAPNote 1234847. Webdynpro provides a single-thread module, meaning a user session is blocked for the during of the request. And because the previous file download isn't yet completed the new try can't start.
    Issue now, although the users IE settings allow file downloads and don't block pop up's, he can't download the file and even isn't made aware of the cause of the failure.
    How can we avoid this issue, without having to communicate the
    application requires specific browser settings?

    Welcome to the Apple Support Communities
    See > http://support.apple.com/kb/HT5290
    You can install the program using different ways:
    1. Right-click the application installer and choose Open.
    2. Go to System Preferences > Security and Privacy and select Anywhere in Allow applications downloaded from

  • How to open/download a .java file instead of it opening as a txt in a new Firefox tab?

    Hi,
    I need to download/open on my computer a .java file, but Firefox does not give me an "Open" or "Download" box, instead, it opens the java file as text in a new tab.
    How do I download/open it on my computer?

    I assume that you are referring to a JavaScript file.
    Java and JavaScript are different languages.
    To avoid confusion, see:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    If the server sends the file as text/plain then Firefox will open the file in a tab if you left click and not offer to download/save the file.
    In that case you need to save the file via the right-click context menu or the File menu.
    You will have to right-click the link and use "Save Link As" to save such a file directly instead of left-clicking the link.

  • Where do i find form and action java files

    I was trying to add a new menuitem to the web console. I have a jsp page like pag1.jsp and has pageForm and pageAction java file. Inside struct.config file I find that form and action files are placed under"com.thortech.xl.webclient.actions.tcAddCommentForm" , but when I search for the tcAddCommentForm, I coundn't find the file. Can u tell me where should I add my form And Action files

    Just what to you mean? The Info pane for the iPod in iTunes allows you to sync the iPod contacts and calendar with other calendars and contacts. There is no contacts or calendar in iTunes.

  • How to import java library file to forms 6i

    Hi all,
    Is it possible to import java library file to forms 6i. Please help me.

    The Java importer is introduced in 9i.
    However, most java functionality is added to Forms in the client, not the server. In 6i you can add Java pluggable components to your forms. You need to make a Java Pluggable Component to do this. Stand-alone Java beans can only be called from Forms 9i on using the fbean package.
    So it depends on what you want to do with the java whether it is possible to use it in 6i.

  • Data in .jsp or HTML form fields, to a JAVA File and DB

    Hi,
    I am new to the JAX-RS, I have a form where I fill in some details, There is a submit button towards the bottom of that form, when I click submit, it needs to do two actions:
    1) Pass the data in different fields through different variables to into a JAVA file. I am not sure on how to call a JAVA file or program's method from either .HTML or .JSP
    2) Extract the data from the fields and populate a DB through JDBC Connection
    Your help is greatly appreciated!
    Thanks,

    If you're looking for some to write the code for you, you're in the wrong place. If you've tried to write it yourself, but are stuck on an error message, logic issue, or something similar, feel free to ask a question!
    If you submit code, don't forget to use the code tags. If you submit an error message, be sure to copy the entire message and stack trace.

  • How to download .sca WAS Java files automatically with MOPZ

    Dear experts,
    following my title subject, i would like to know how to download .SCA was java files automatically with the Maintenance Optimizer in my solution manager 7.0. (transaction code DSWP or SOLUTION_MANAGER)
    Currently, i only can download .SAR & .CAR files automatically.
    Any suggesttion is welcome.
    Thank you very much in advance.
    Best regards,
    Pascal.

    Hello Markus,
    thank you for replying very fast
    i meant : with transaction code DSWP or SOLUTION_MANAGER, choose the solution, "Change Management" tab, "Maintenance Optimizer" tab, "create new maintenance transaction" button.
    In the step 2 (select files) i can choose "Calculate download files automatically" by the button "find download files" or i can choose "Fill Download Basket manually" by the button "select files for SAP Solution Manager 4.0".
    After choosing the target stack version, i can only download .SAR and .CAR files.
    How can i download .SCA files automatically? Is it possible actually?
    Thank you.
    Pascal.

  • How do I hide the download form when downloading a file from a website?

    Hi,
    On my website, www.sb-ssa.com, when I select a menu button that downloads a PDF, a Downloads Form appears and then the PDF appears. Is is possible to hide the Downloads Form? Thank you.
    Joe

    Use the function "File Dialog" and wire your type to "pattern label".
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

  • 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>
    ==========================================

  • Creating a file download link on jsp

    I have the following on my jsp. The code worked fine until I tried to use it in a new html design page.
    <code>
    //page name is index.jsp
    try //DISPLAY THE CONTENTS OF THE DATA DIRECTORY
    File dirname = new File(PATH); // create an instance of the File class
    if (dirname.exists()&&dirname.isDirectory())//check to see if File class dirname exists and is valid
    String [] allfiles = dirname.list();//create an array of files in the dirname File class
              for (int i=0; i< allfiles.length; i+=2)//loop through allfiles[] and print out file links
    out.println("<br><table border='1' cellspacing='1' width='99%'>");
                   out.println("<tr><td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i]+"'>"+allfiles[i]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td>
    <% if(i+1 < allfiles.length)//PRINTS OUT THE SECOND TD SO THAT WE HAVE 2 COLUMNS OF LINKS
    out.println("<td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i+1]+"'>"+allfiles[i+1]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td></tr>
    <%
    out.println("</form></font></table>");
    catch (IOException excep)
         out.println("An IO exception has occured.");
    </code>
    Then when clicked this code is run:
    <code>
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
    if (request.getParameter("downfile") != null)
    String filePath = request.getParameter("downfile");
    File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
    if (f.exists() && f.canRead())
    response.setContentType ("application/octet-stream");
    response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
    response.setContentLength((int) f.length());
    BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
    int i;
    out.clearBuffer();
    while ((i = fileInputStream.read()) != -1) out.write(i);
    fileInputStream.close();
    out.flush();
    </code>
    When I click on this link I get the download dialog box. If I open it I get the following open up in notepad(the files I am trying to give download links are .txt files)
    Below is what is displayed in notepad ALL on 1 line:
    <html>
    <head>
    <LINK rel="stylesheet" ty
    That is displayed in all of the links that I click on. It is the first few lines of html code for index.jsp.
    I know this code is probably not a good way of doing what I need but I got it to work fine until the change.
    I am sure there is an easier way to code the download link without resubmitting the page.
    Thanks in advance!!

    Well all was fine with this jsp until I moved it to ApacheJServ. Now the problem has resurfaced(although it is a little different now)
    I had moved the following code to the top of my page:
    //CHECK TO SEE IF EITHER DOWNFILE OR ZIPFILE VARIABLE EXIST, AND IF THEY DO SET CONTENT TYPE BEFORE SENDING ANY HTML CODE TO THE BROWSER
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
        if (request.getParameter("downfile") != null)
                String filePath = request.getParameter("downfile");
                File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
                    if (f.exists() && f.canRead())
                        response.setContentType ("application/octet-stream");
                        response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
                        response.setContentLength((int) f.length());
                        BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
                        int i;
                        out.clearBuffer();
                        while ((i = fileInputStream.read()) != -1) out.write(i);
                            fileInputStream.close();
                            out.flush();
                            response.flushBuffer();
    catch (Exception e){}
    //This is where the java code ends and the javascript/html code begins.Then further into the page I create the file download links like so:
                            <a class="a" href="main.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a>I know this isnt a secure way of doing this but I am on a intranet.
    The problem I am having now is that when I click on one of the links and download the file and then open it, I get the contents of the file plus concatenated to the end of it is the first few HTML lines of the actual jsp that I downloaded the file from. Before I was just getting the first few lines of html from the jsp, not the actual contents of the downloaded file.
    This is an example of what I am getting:
    This is the contents of the file that I downloaded.//This is where the file contents ends.
    <html>
    <head>
    <LINK rel="stylesheet" type="text/css" href="default.css">
    <script language="JavaScript1.2">
    //function that allows user to select all checkboxes
    function doIt(v)
    for(var i=0;i<document.form1.cb.length;i++)
       document.form1.cb.checked=eval(v);
    function swap(imageName,image)
    imageName.src = "templateImages/"+image;
    function imageOver(imageSrc, imageName)
         changeImage = new Image();
         changeImage.src = imageSrc;
         document.images[imageName].src = changeImage.src;
    var hide = true;
    function hideShow( ) /
    Any morre ideas?
    TIA!
    BTW, I went to ApacheJServ because they wont let me use tomcat :(

Maybe you are looking for

  • GL Balance Report output not Matching with Material Stock

    Hi, Can we Match Reports MB5B (Stock on Posting Date)  and S_ALR_87012301 (G/L Account Balance)??? Till March these reports are matching but from April 11, data not matching.. In tcode MB5B, we are looking Valuated Stock of Materials and in tcode s_a

  • Calendar problem with summer time

    When I received an invite from somebody using Lotus Notes it is always an hour later than what it should be... I check my configuration to verify if the option to handle time zones were activated and it was... Somebody had the same problem ? Any idea

  • TPESVCFAIL - application level service failure

    #include <atmi.h> #include <fml32.h> #include <fml1632.h> #include <tpadm.h> #include <stdio.h> #include <stdlib.h> int main(void) long len = 0; char lmid[16]; char serverName[64]; char srvID[64]; char srvGrp[16]; char rqAddr[16]; char totWorkl[16];

  • Reports to know the status of the projects(Eg:Techni.closed, closed or open

    Dear Friends, Do we have any reports in SAP which will shows the status of all the projects, the same way I want to the report for WBS elements and activities also? I want to check the what all the projects in closed status and what are all technical

  • Stuck on grey screen with apple logo after failed iTunes update

    I tried to install an update for iTunes 9.2 on my MacBook. During installation a box appeared telling me the update had failed. I clicked the 'Restart' button. Now it won't go past the grey screen with the apple logo and the rotating wheel; it just l