Bug? WWV_FLOW_FILES: After File upload FLOW_ID = 0

Hi all,
I'm working on a DEVenabled -Environment with APEX 3.1.2.
Problem
While redesigning an Application I have somke strange behaviour on File Upload:
The application uses a custom auth scheme.
In my application an uploaded file should be moved to a user defined BlobStorage and be deleted from APEX_FILES afterwards.
This does not work any more:
When uploading a file to APEX_FILES using the upload-element from an application no further processing is possible.
What is loaded ?
On wwv_flow_files the FLOW_ID is recorded as 0 and not as the ID of that Application Files have been loaded from.The Attribute 'created_by' contains APEX_PUBLIC_USER where the User logged in is needed.
As it is APEX INTERNAL stuff, which seems not to work as expected, i need some help.
How to fix this ?
regards
Franz

Mark,
what is the workaround for this?I don't understand what you need a workaround for. No workaround was given for any actual or perceived problems discussed here so far. I proposed that the proper steps are to upload to, copy from, and then remove from the public table.
I started having this problem, where the flow_id and security_id are now coming up as 0You started having it at a point where you were not having it previously? That isn't very clear. You are implying that flow_id was non-zero at some point, I think.
If security_group_id is 0 then this isn't the same situation as we've been discussing in this thread. Please explain exactly what you're doing and show all related code.
Scott

Similar Messages

  • Validation error after File upload

    HI,
    I am using a file upload functionality in OAF page.
    When i browse for the required excel file and click on browse, the data is popluated on the oaf page.
    I have 2 lov fields on page - say a & B.
    B is a dependent LOV on A.
    I have a validate button on my page which gets enabled only after file upload and validates if the data is correct or not.
    The issue is like if i am having value in upload file for A as 1 and for B as 1800, but my LOV B has 2 values 1800 & 1800-01 for LOV A = 1, it gives me an error at that LOV "Select a Valid Value". If i open the LOV B window and select 1800 from it the data is correctly validated without any error.
    Please help me that how can i rectify this error i.e. it should validate the data corrrectly if i pass the value 1800 to it thru excel sheet.

    See take an example of Employee name LOV .We know for every employee a unique emp Id is related to it.So if two person are having same name also then also their ID is different.In such cases , while creating LOV we create a FormValue for EmpID .Its not visible on Page but while validating the page formValues are also considered thereby it doesnot cause invalid value error...
    In Your case, what you can do is the way you are populating the LOV field you can populate this FormValue to remove the Error.
    Please Refer Jdev Guide for more info..
    Hope it helps!!!
    Thanks
    AJ

  • Blank page after file upload

    Hello,
    we are facing problem with Apex Listener 2.0 connecting to Apex 4.1.1. The Apex Listener is deployed on Tomcat. Almost everything works correctly, with one exception - uploading files. After uploading file, blank page with url http://server:8062/apex/wwv_flow.accept is displayed and stuck there. The file, however, uploads successfuly. The same functionality (using the same page) works correctly when used without Apex Listener.
    No error messages can be found, neither in Tomcat log nor in Apex Listener log.
    I've experimented with several configurations uploaded from Listener admin in SQL Developer or minimal configurations from samples - this is my current config:
    Configuration properties for: apex
    cache.caching=false
    cache.directory=/tmp/apex/cache
    cache.duration=days
    cache.expiration=7
    cache.maxEntries=500
    cache.monitorInterval=60
    cache.procedureNameList=
    cache.type=lru
    db.hostname=localhost
    db.password=******
    db.port=1521
    db.sid=xe
    debug.debugger=false
    debug.printDebugToScreen=true
    error.keepErrorMessages=true
    error.maxEntries=50
    jdbc.DriverType=thin
    jdbc.InactivityTimeout=1800
    jdbc.InitialLimit=3
    jdbc.MaxConnectionReuseCount=1000
    jdbc.MaxLimit=10
    jdbc.MaxStatementsLimit=10
    jdbc.MinLimit=1
    jdbc.statementTimeout=900
    log.logging=true
    log.maxEntries=50
    misc.compress=
    misc.defaultPage=apex
    security.disableDefaultExclusionList=false
    security.maxEntries=2000
    db.username=APEX_PUBLIC_USER
    security.inclusionList=
    sqldev.description=
    sqldev.name=apex
    As I saw in other thread, blank pages are most commonly caused by mismatched static files - however my i/apex_version.txt matches the server version, so I don't suspect that to be the case.
    Would you have any ideas on what to check or what could possibly be wrong?
    Thank you.

    Hello,
    thank you all for help. It turns out that it was indeed issue with the code itself. It's strange that it doesn't manifest without Apex Listener, but it was incorrect code.
    I'm a system administrator (not a programmer) and I assumed that since the only change to the system was added Listener, it must be a problem with incorrect configuration - I was wrong :-)
    When I tried replicating the problem on apex.oracle.com, I noticed that After Processing branch redirecting to another page was completely missing from our code. When I removed the branch from apex.oracle.com, it stopped working (logically) too - the solution was therefore to add After Processing branch redirecting to some other page with "include process success message" checked.
    I still don't understand how it could have worked without Apex Listener in the first place :-)

  • Java Exception after File Upload while retreiving using Filepath

    Hello everyone,
    I am performing the following steps:-
    1) I am uploading a file from my local File system (D:/ a.XML) using FileUpload UI Element in Web Dynpro.
    2) In the OnActionMethod of the View, I am trying to get the content of the file using the Filepath (D:/ a.XML).
    But I am getting a Java Exception "No Such File or Directory" after deploying the archive and run on to the remote server.
    The Exception is  not a Web Dynpro Runtime Exception. But I am able to catch it in the try, catch block of the Java code.
    Do I need the file to be present in the server as well. What is the Solution? Please advise me about, where is the content of the uploaded XML file stored and how can it be retrieved.
    How can I retrieve the content of the file using a valid file path, because my method which will open the uploaded file requires argument as a filepath. Please suggest about this problem. I would be very thankful for your help.
    Kind Regards,
    Phani.
    Edited by: Armin Reichert on Apr 18, 2008 2:43 PM

    Hi Ayyaparaj,
    Please have a look at the code that I am using for my application. I am getting the exception method after the load method i.e after this line of code "msgMgr.reportSuccess("\n\nInit0\n\n");". The exception that I am getting is "Invalid Stream Header".
      public void onActionMaximalJoin(
          com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
        // @@begin onActionMaximalJoin(ServerEvent)
        MessageManager msgMgr = (MessageManager) wdThis.wdGetAPI().getComponent()
            .getMessageManager();
        InputStream text = null;
        int temp = 0;
        try
          File file = new File(wdContext.currentContextElement().getUploadXML()
              .getResourceName().toString());
          FileOutputStream op = new FileOutputStream(file);
          if (wdContext.currentContextElement().getUploadXML() != null)
            text = wdContext.currentContextElement().getUploadXML().read(false);
            while ((temp = text.read()) != -1)
              op.write(temp);
          op.flush();
          op.close();
          String path = file.getAbsolutePath();
          wdComponentAPI.getMessageManager().reportSuccess(path);
          Ontology ontology = new Ontology();
          msgMgr.reportSuccess("\n\nInit0\n\n");
          ontology = Ontology.load(path);
          Lexicon mainLexicon = ontology.getMainLexicon();
          msgMgr.reportSuccess("\n\nInit1\n\n");
          text = null;
          temp = 0;
          File file1 = new File(wdContext.currentContextElement().getUploadGraph1()
              .getResourceName().toString());
          FileOutputStream op1 = new FileOutputStream(file1);
          if (wdContext.currentContextElement().getUploadGraph1() != null)
            text = wdContext.currentContextElement().getUploadGraph1().read(false);
            while ((temp = text.read()) != -1)
              op1.write(temp);
          op1.flush();
          op1.close();
          String path1 = file1.getAbsolutePath();
          wdComponentAPI.getMessageManager().reportSuccess(path1);
          CG cg1 = new CG();
          msgMgr.reportSuccess("\n\nInit2\n\n");
          cg1 = CG.load(path1);
          text = null;
          temp = 0;
          File file2 = new File(wdContext.currentContextElement().getUploadGraph2()
              .getResourceName().toString());
          FileOutputStream op2 = new FileOutputStream(file2);
          if (wdContext.currentContextElement().getUploadGraph2() != null)
            text = wdContext.currentContextElement().getUploadGraph2().read(false);
            while ((temp = text.read()) != -1)
              op2.write(temp);
          op2.flush();
          op2.close();
          String path2 = file1.getAbsolutePath();
          wdComponentAPI.getMessageManager().reportSuccess(path2);
          CG cg2 = new CG();
          msgMgr.reportSuccess("\n\nInit3\n\n");
          cg2 = CG.load(path2);
          CG maximalJoinResult = (CG) cg1.maximalJoin(cg2);
          StringBuffer output = new StringBuffer();
          output.append(maximalJoinResult.toString(mainLexicon));
          msgMgr.reportSuccess("\n\nInit4\n\n");
          System.out.println(output.toString());
          msgMgr.reportSuccess("\n\nInit5\n\n");
          msgMgr.reportSuccess(output.toString());
          msgMgr.reportSuccess("\n\nInit6\n\n");
        catch (Exception e)
          msgMgr.reportSuccess(e.getMessage());
        // @@end
    Please advise me if you find any mistake.
    Edited by: Armin Reichert on Apr 9, 2008 1:27 PM

  • Null pointer after file upload

    Can someone assist? The upload is working. The problem is with this dispatcher. I am getting this error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         com.bdi.www.admin.Upload.doPost(Upload.java:35)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)with this servlet
    import javax.servlet.*;
    import javax.naming.*;
    import javax.servlet.http.*;
    import java.io.FileOutputStream;
    import java.io.*;
    import java.util.*;
    import org.apache.commons.fileupload.*;
    import java.io.File;
    public class Upload extends HttpServlet {
         private ServletContext context;
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
              String toPage = "/index.jsp";
              DiskFileUpload fu = new DiskFileUpload();
                      fu.setSizeMax(1000000);
                      fu.setSizeThreshold(4096);
                      fu.setRepositoryPath("/tmp");
              try{
                   FileItem file = (FileItem) fu.parseRequest(req).get(0);
                   String sourceFileName = new File(file.getName()).getName();
                   String relativeName = "documents/" + sourceFileName;
                   String filename = getServletContext().getRealPath(relativeName);
                   try{
                        file.write(new File(filename));
                   }catch(Exception e){
              }catch(FileUploadException e){
              RequestDispatcher dispatcher;
              dispatcher = context.getRequestDispatcher(toPage);
              dispatcher.forward(req, res);
    }

    I don't see you creating the context object. You declare it but never create the object.

  • File upload after deployment

    hi everbody,
    i had deployed the file upload code in unix server and the page is successfully opening after attaching functions and menus. Now the page has only messagefileupload type item for file upload. so please please can anybody tell how to upload the file to a specific directory. my code i have used is in application module is like this but after selecting a file and click submit the file is not being uploaded.
    String path= "/u03/prodcomn/temp/"+fileName;
    if(testprofile != null){     
    System.out.println("path.."+path);
    FileOutputStream fileOutput = new FileOutputStream(path);
    fileOutput.write(blobIn.toByteArray());
    fileOutput.close();
    }

    the above code is perfectly correct and it is working , the silly thing that i didnt notice is in winscp i didnt refresh and see after file upload in the page.
    i had wasted whole one day for this.
    thanks
    prabhakaranp

  • Unable to submit form without attachment if file upload fails

    Hi All,
    I have a form, in which I have a input file component.
    Scenario 1 - If i don't attach anything and submit the form, it is successful.
    Scenario 2 - If I attach a file of size less than 2 MB and then submit, it is successful.
    Scenario 3 - If I attach a file of size greater than 2 MB and then submit, ADF gives an error message saying " File is large" which is expected.
    3.1 - In the scenario 3, after file upload fails, I want to submit the form without attaching any file. But the form isn't submitted and the warning message always pops up.
    3.2 - If I upload file of size less than 2MB again and then submit, it is successful.
    Please help me in resolving the issue.
    Thanks,
    Harini.

    Try clearing the error messages
    <af:resource type="javascript">
    function clearMessagesForComponent(evt){
    AdfPage.PAGE.clearAllMessages();
    evt.cancel();
    </af:resource>Now all yo uneed to do is to call this javascript method e.g. using a <af:clientListener method="clearMessagesForComponent" type="focus"/>on a button or any other field.
    Timo

  • File.upload on Air SDK for iOS devices failed to send http request to server.

    I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
      private var file:File;
      private var dir:File;
      //This method is executed to create a file and upload it when the Upload Button is pressed.
      protected function OnUploadButtonPressed(event:MouseEvent):void{
      var str:String = 'This is test';
      var imageBytes:ByteArray = new ByteArray();
      for ( var i:int = 0; i < str.length; i++ ) {
      imageBytes.writeByte( str.charCodeAt(i) );
      try{
      dir = File.applicationStorageDirectory
      var now:Date = new Date();
      var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
      file = dir.resolvePath( filename );
      var stream:FileStream = new FileStream();
      stream.open( file, FileMode.WRITE );
      stream.writeBytes( imageBytes );
      stream.close();
      file.addEventListener( Event.COMPLETE, uploadComplete );
      file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
      file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
      file.addEventListener(ErrorEvent.ERROR, someError);
      file.addEventListener(ProgressEvent.PROGRESS, onProgress);
      file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
      } catch( e:Error ) {
      trace( e );
      //Complete Handler
      private function uploadComplete( event:Event ):void
      trace( "Upload successful." );
      //IOError handler
      private function ioError( error:IOErrorEvent ):void
      trace( "Upload failed: " + error.text );
      //SecurityError handler
      private function securityError(error:SecurityErrorEvent):void{
      trace( "Security error:" + error.text );
      //Other handler
      private function someError(error:ErrorEvent):void{
      trace("some error" + error.text);
      //Progress handler
      private function onProgress(event:ProgressEvent):void{
      trace("progressHandler");
    When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
    To make my problem more clear, I list my environment below:
    Development Environment:  Windows7 (64bit)  / Mac os 10.9.4 (Tested on  OS platforms.)
    IDE: Flash Builder 4.7
    Air SDK:  3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
    Application Server:  Tomcat7 + Spring
    Target OS: iOS 8
    I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
    Thanks in advance.

    Hi bluewindice ,
    As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
    Thanks,
    Tushar

  • File Upload Error : Object could not be found in cache, key is null!

    I am having this problem. when I attach a file and press submit button, it gave me
    "Object could not be found in cache, key is null !"
    In my ViewController context I have Invoice_DOC attribute (binary, fileupload)
    and that is mapped to ComponentContoller.attribute(INVOICE_DOC).
    here is wdDoInit() method of my view controller..
    public void wdDoInit()
        IWDAttributeInfo attInfo =
              wdThis.wdGetDemurrageCompController().wdGetContext ().nodeSubmitElements().getNodeInfo().getAttribute(IPrivateDemurrageComp.ISubmitElementsElement.INVOICE_DOC);
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    Any Idea why I am having this..
    I went through some tutorials, The controller node has cardinality of 1..1...

    Hi,
    Could you please try with the following code. Here I have an Action for file uploading.
    public void wdDoInit()
    //@@begin wdDoInit()
    // get attribute info for context attribute "FileResource"
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // make the context attribute's simple type modifiable.
    // Only with this line of code the binary data (stored within the
    // context attribute) can be parsed. The Web Dynpro Runtime stores
    // the mime-object’s metadata within the attribute’s type metadata.
    attributeInfo.getModifiableSimpleType();
    // set the file details invisible
    wdContext.currentContextElement().setDetailsVisibility(
    WDVisibility.NONE);
    //@@end
    //Another method for File upload button
    public void onActionUploadFile(
    com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent) {
    //@@begin onActionUploadFile(ServerEvent)
    // get attribute info for context attribute 'FileResource'
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // get modifiable binary type from the attribute info,
    // requires type cast.
    IWDModifiableBinaryType binaryType =
    (IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
    IPrivateFileUploadView.IContextElement element =
    wdContext.currentContextElement();
    // if a file in the 'FileResource' attribute exists
    if (element.getFileResource() != null) {
    try {
    String mimeType = binaryType.getMimeType().toString();
    byte[] file = element.getFileResource();
    // get the size of the uploaded file
    element.setFileSize(this.getFileSize(file));
    // get the extension of the uploaded file
    element.setFileExtension(
    binaryType.getMimeType().getFileExtension());
    // NOTE: context attribute 'FileName' must not be set
    // because the FileUpload-UI-element property 'fileName'
    // is bound to it. Consequently the fileName is automatically
    // written to the context after file upload.
    // set the details visibility attribute
    element.setDetailsVisibility(WDVisibility.VISIBLE);
    // report success message
    wdComponentAPI.getMessageManager().reportMessage(
    IMessageFileUpDownloadComp.SF_UPLOAD,
    new Object[] { binaryType.getFileName()},
    false);
    } catch (Exception e) {
    throw new WDRuntimeException(e);
    // if no file in the 'FileResource' attribute exists
    else {
    // set the details visibility attribute, hide details
    element.setDetailsVisibility(WDVisibility.NONE);
    // report error message
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
    msgMgr.reportContextAttributeMessage(
    element,
    attributeInfo,
    IMessageFileUpDownloadComp.NO_FILE,
    new Object[] { "" },
    true);
    // clear the FileResource context value attribute
    element.setFileResource(null);
    //@@end
    Thanks
    Chandan

  • How to delete the rows after file uploded by LSMW

    Hi,
    I want to delete the the first three rows after file uploaded by lsmw.and i need to send the rest of the rows to custom table.

    Hi Hyma,
    In response to adhitya
    In field mapping at end the stricture there will be transfer_record , put there some condition and instead of the transfer_record put skip_record.
    While doing Field mapping step
    In the first line you can fine project-sub project-object
    Below that u can find Field mappping and rule,Right click on that and click on Layout
    select Processing times option Then u can see that.So add the particular statement what adhitya told.
    Ravee.
    Award points if useful

  • Pls help, (Access is denied) error when file upload to a local directory

    Hi, I've been stuck on this for the past few days and I am quite new at developing web application.
    Here is the problem that I am having, I don't know why it keeps on saying "access is denied" when I can see that the file is uploaded to the directory. I am developing a JSP page file upload using Jakarta Fileupload v1.2. However, every time when I try to upload a file to a local path (e:\temp) on the server I keep getting this problem. I even try looking into the server.policy file on glassfish but no luck, your help is appreciated thanks
    Here's the log after file upload, note: I can see the file being uploaded in the e:\temp but why does it keep telling me the error?
    I'm using netbean 5.5.1 and glassfish v2
    Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/TestReport'
    java.io.FileNotFoundException: e:\temp (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:390)
    at org.apache.jsp.ProcessFileUpload_jsp._jspService(ProcessFileUpload_jsp.java:83)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)

    Hi, I've been stuck on this for the past few days and
    I am quite new at developing web application.
    Here is the problem that I am having, I don't know
    why it keeps on saying "access is denied" when I can
    see that the file is uploaded to the directory. I am
    developing a JSP page file upload using Jakarta
    Fileupload v1.2. However, every time when I try to
    upload a file to a local path (e:\temp)Hi there,
    Typically in a Web Container, applications are deployed to a folder called webapps (this is the case in Tomcat, I'm not sure about Glassfish)
    So the directory structure is something like C:/Tomcat/webapps/MyApplication/other folders......
    When you upload a file , you normally can upload it only to a folder under your application and not to a folder outside the application.
    First you can try to upload the file to a folder under the webapp and not outside the webapp, once you get that to work --- then internally in the Servlet you can write code to save the file to any directory on the server, but the Servlet must be located on the server.

  • Can not select a PDF file in the file uploader window after clicking the Browse... button for a file type input element.

    After upgrading to 5 (this worked in 4) I can not select a PDF file in the File Upload dialog that appears when I click the Browse button next to an HTML file type input element. The specific HTML element source code has the attribute: ACCEPT="image/*". I can select image files such as jpg, png, tiff, etc. But not PDF. This worked great in Furefox 4 and works in the latest version of Safari.
    The HTML code for the form element is:
    INPUT TYPE="file" NAME="file_1" ACCEPT="image/*" SIZE=35
    The File Upload dialog lists all files with PDF extension as dimmed and not selectable in Firefox 5.
    Can you help?

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

  • How to send 0-bit confirmation file after the original file upload finished

    Hi All,
    We are using Receiver FTP adapter (FTPS, FTP over SSL) to send/upload a Idoc file to external partner FTP server.
    Along with the IDOC file to be uploaded, and as soon as the IDOC file upload is finished, we will need to upload a 0-bit "confirmation file", thus indicating that the (main) file upload has finished.
    For example, if the IDOC file is named        example.idoc
    the confirmation file has to be named        example.idoc.cnf
    We are thinking to use "Run Operating System Command After Message Processing". Can someone give us more information if we can use this? if so what would be the command line??
    Thx
    N@v!n

    Hi,
    ok - to this solution: if you want to use (it would be possible), you must create repository objects for this (flagfile) and also directory objects.
    but other solutions:
    a, you can create a script in target system and call this script from the adapter (which would create a file)
    b, I'm not sure if there is a command for creating a file, but there is defe=inetely one for copying it. So what about storing some ampty file in location /template/ for example and call cp command from the adapter? and you would place this copy to required location
    Peter

  • Irritating bugs in file upload component !!

    Bug 1
    During a postback operation the text (file path name) in the file upload component is cleared ! When a resubmit of a form is required, the user has to re-browse the file again.
    Bug 2
    The processValueChandge() method is never called when the value in the file upload component is changed (and the mouse is clicked outside the component).
    Any suggestions or workarounds are very much appreciated.
    Thanks.

    I can't answer to Bug 1. That is, I don't have any solutions. If you want to submit this, go to http://developers.sun.com/prodtech/javatools/jscreator/support/index.html and look at the section titled Bug Report /Feature Request
    Bug 2
    The processValueChandge() method is never called when
    the value in the file upload component is changed
    (and the mouse is clicked outside the component).This is not a bug.
    processValueChange methods are server side methods and do not get called until the page is submitted to the server. Clicking outside the component will not cause the page to get submitted. If you want a client-side action (such as when focus is lost) then you can add some JavaScript.
    The file upload does not have a process value change method, it is an action method and thus has a uploadFileButton_action method. This method gets called when the upload button is clicked.

  • BUG: Renaming a file causes Finder to restart - after Update 2008-008

    BUG: Renaming a file causes Finder to restart. This started occurring after installation of the Security Update 2008-008. I can't rename files or folders.
    Is there a solution? A workaround? A software update? I repaired permissions but that didn't help.

    Here's an excerpt of the crash dump referenced in the Console utility application.
    Crash report written to: /Library/Logs/CrashReporter/Finder.crash.log
    The first few lines shows that LockRenameUnicode is called when renaming the file, then the Finder crashes. What is causing this crash in Finder in Mac OS X 10.4.11 after installing the Security Update 2008-008?
    0 com.apple.CoreGraphics 0x9f9036fc RGBAfmarkbitmapmask + 8440
    1 <<00000000>> 0x0421e1ec 0 + 69329388
    2 com.apple.DesktopServices 0x90a520f4 LockRenameUnicode(FSRef const&, unsigned long, unsigned short const*, unsigned long, FSRef*) + 84
    3 com.apple.DesktopServices 0x90a4d890 THFSPlusRef::SetName(unsigned long, unsigned short const*, bool) + 200
    Host Name: owl
    Date/Time: 2008-12-18 02:24:16.661 -0800
    OS Version: 10.4.11 (Build 8S165)
    Report Version: 4
    Command: Finder
    Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    Parent: WindowServer [63]
    Version: 10.4.7 (10.4.7)
    Build Version: 1
    Project Name: Finder_FE
    Source Version: 5292900
    PID: 857
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000000
    Thread 0 Crashed:
    0 com.apple.CoreGraphics 0x9f9036fc RGBAfmarkbitmapmask + 8440
    1 <<00000000>> 0x0421e1ec 0 + 69329388
    2 com.apple.DesktopServices 0x90a520f4 LockRenameUnicode(FSRef const&, unsigned long, unsigned short const*, unsigned long, FSRef*) + 84
    3 com.apple.DesktopServices 0x90a4d890 THFSPlusRef::SetName(unsigned long, unsigned short const*, bool) + 200
    4 com.apple.DesktopServices 0x90a3bb28 THFSPlusStore::SetName(TPropertyReference const&, bool) + 244
    5 com.apple.DesktopServices 0x90a0e664 THFSPlusStore::SetProperty(unsigned long, TPropertyReference const&, bool) + 140
    6 com.apple.DesktopServices 0x90a42768 TNode::SetName(TPropertyReference const&) const + 60
    7 com.apple.DesktopServices 0x90a19468 TNode::SetProperty(unsigned long, TPropertyReference const&) const + 56
    8 com.apple.DesktopServices 0x90a193b0 SetNodeProperty(OpaqueNodeRef const*, unsigned long, TPropertyReference const&) + 148
    9 com.apple.DesktopServices 0x90a48550 SetNodePropertyAsStringNew + 52
    10 com.apple.finder 0x000aa4b0 0x1000 + 693424
    11 com.apple.finder 0x00094cdc 0x1000 + 605404
    12 com.apple.finder 0x0015707c 0x1000 + 1400956
    13 com.apple.finder 0x001579c0 0x1000 + 1403328
    14 com.apple.finder 0x0000ecac 0x1000 + 56492
    15 com.apple.finder 0x0000eba8 0x1000 + 56232
    16 com.apple.HIToolbox 0x932af934 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
    17 com.apple.HIToolbox 0x932af08c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    18 com.apple.HIToolbox 0x932b5e90 SendEventToEventTarget + 40
    19 com.apple.finder 0x001574a0 0x1000 + 1402016
    20 com.apple.finder 0x00058388 0x1000 + 357256
    21 com.apple.finder 0x00087d20 0x1000 + 552224
    22 com.apple.finder 0x0006f4fc 0x1000 + 451836
    23 com.apple.HIToolbox 0x933a994c TBrowser::GetClientData(unsigned long, unsigned long, void*, bool) const + 176
    24 com.apple.HIToolbox 0x9348b324 TTableCell::PrepEditText(bool) const + 2988
    25 com.apple.HIToolbox 0x933a2c38 TTableView::CancelEditSession(bool) + 120
    26 com.apple.HIToolbox 0x9347e4f0 TBrowser::KeyFilterProc(OpaqueControlRef*, short*, short*, unsigned short*) + 160
    27 com.apple.HIToolbox 0x933e4e58 InvokeControlKeyFilterUPP + 24
    28 com.apple.HIToolbox 0x93472e00 TextInputFilter(ShrinkToFitEditFieldGlobals*, OpaqueEventRef*) + 148
    29 com.apple.HIToolbox 0x93473200 TextInputHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 404
    30 com.apple.HIToolbox 0x932af934 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
    31 com.apple.HIToolbox 0x932af08c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    32 com.apple.HIToolbox 0x932b5e90 SendEventToEventTarget + 40
    33 com.apple.HIToolbox 0x933c4224 HandleTextInputEvent(OpaqueEventRef*) + 56
    34 com.apple.HIToolbox 0x932b6218 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 524
    35 com.apple.HIToolbox 0x932afb84 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284
    36 com.apple.HIToolbox 0x932af08c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    37 com.apple.HIToolbox 0x932b5e90 SendEventToEventTarget + 40
    38 com.apple.HIToolbox 0x933c4120 SendTSMEvent + 228
    39 com.apple.HIToolbox 0x933c3870 SendUnicodeTextAEToUnicodeDoc + 928
    40 com.apple.HIToolbox 0x933c329c utDeliverTSMEvent + 1024
    41 com.apple.HIToolbox 0x933c2e80 TSMKeyEvent + 88
    42 com.apple.HIToolbox 0x93379b34 TSMProcessRawKeyEvent + 920
    43 com.apple.HIToolbox 0x933795fc HandleCompatibilityKeyEvent(OpaqueEventRef*) + 308
    44 com.apple.HIToolbox 0x932ac6a4 HIApplication::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 788
    45 com.apple.HIToolbox 0x932af934 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
    46 com.apple.HIToolbox 0x932af08c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    47 com.apple.HIToolbox 0x932aef08 SendEventToEventTargetWithOptions + 40
    48 com.apple.HIToolbox 0x933792a4 HandleKeyboardEvent(OpaqueEventRef*, unsigned long) + 352
    49 com.apple.HIToolbox 0x932b620c ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 512
    50 com.apple.HIToolbox 0x932afb84 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284
    51 com.apple.HIToolbox 0x932af08c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    52 com.apple.HIToolbox 0x932b5e90 SendEventToEventTarget + 40
    53 com.apple.HIToolbox 0x932f6c04 ToolboxEventDispatcher + 92
    54 com.apple.HIToolbox 0x932f6b90 HLTBEventDispatcher + 16
    55 com.apple.HIToolbox 0x932f5148 RunApplicationEventLoop + 148
    56 com.apple.finder 0x00008960 0x1000 + 31072
    57 com.apple.finder 0x00004f18 0x1000 + 16152
    58 com.apple.finder 0x00069ff0 0x1000 + 430064
    59 com.apple.finder 0x00069e98 0x1000 + 429720

Maybe you are looking for