RAR upload actions

Hello Experts
When uploading the rules data based on the templates in the configueration guide we wanted to make sure that in order to upload the full transaction list via the "system_action_function" file it will best to retrieve the transaction list from the "Search_Results_Permission_Rules.zip" exported from the RAR and to filter it by each system and field column value = "TCD: Transaction Code " or Permission Object column value = "S_TCODE: Transaction Code Check at Transaction Start " and that will make us sure that we uplaoded all standard function transaction relationship in the system. this is the only relevant file we found that has all the transaction codes data.
Best Regards,
Shira

Can you maybe rephrase that? I'm not sure what you're actually asking...
Frank.

Similar Messages

  • RAR Uploading Textobjects fails

    Hi,
    we have following issue:
    The upload of text-objects (downloaded from the backend by program /VIRSA/ZCC_DOWNLOAD_DESC ) to RAR doesn't work for us.
    We download one language only, called the file SAPtext.txt and we have chosen the appropriate menu in RAR:
    Upload Objects -> Text Objects
    We get following error messages:
    Cannot assign an empty string to host variable 4.
    com.virsa.cc.rulearchitect.bo.ObjectTextBO.insertObjectText(ObjectTextBO.java:84)
    com.virsa.cc.comp.UploadTexts.onActionUploadTextObjs(UploadTexts.java:335)
    com.virsa.cc.comp.wdp.InternalUploadTexts.wdInvokeEventHandler(InternalUploadTexts.java:169)
    com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    and so on. I found OSS Note 1262325 and we still have this problem. Does anybody know how to proceed?
    BTW: Uploading of Authorization Objects works fine!
    We are using Access Control 5.3
    Thanks!
    Christian

    Hi Hersh,
    what do you mean with sequencing?
    I've done the following:
    File from /VIRSA/ZCC_DOWNLOAD_DESC uploaded to Upload Objects -> Text Objects
    File from /VIRSA/ZCC_DOWNLOAD_SAPOBJ uploaded to Upload Objects -> Permissions
    Uploading Permissions works fine, uploading text objects (tried UTF-8 as well) doesn't work. I don't know how to proceed.
    P.S.
    I replaced/removed all # and § !
    We are not using an unicode system
    Edited by: Christian Hofmann on Apr 15, 2009 10:02 AM
    Edited by: Christian Hofmann on Apr 15, 2009 10:35 AM

  • Trying to upload "actions" to photoshop elements 10 but I am having troubles because things are not on my hard drive that need to be there??

    I am trying to upload "actions" to photoshop elements 10 but I am having troubles!  I watched the YouTube tutorial but seem to be missing "Adobe" in my Hard Drive!  Help me I am stuck....

    I just loaded my actions using the PSE 10 from the App Store.
    Close PSE.
    Access the System library location from Finder menu, click "Go" in the menu bar then select "Go to Folder...". Type in  "~/Library" and click Go.
    The systems Library will open up and then you take this path:
    Application Support > Adobe > Adobe Photoshop Elements 10 Editor > Presets > Actions (The Actions folder is where you move your actions file to)
    Then go to the Photo Creations Folder > Locales > en_US and delete the MediaDatabase.db3 file (move it to the trash)
    The next time you launch PSE your Actions DB will be rebuilt with the new actions installed.

  • File Upload Action Button are not working

    Hi  ,
    In the File Upload Process when the processor are open change request there are Action Buttons  Approve/Reject ,
    When the CR Processor are Click on either Approve or Reject  these two Action Button are not working (means its not show any activity) , while rest of all action button like save,close check , Run validation  are working ...
    While Processor has authorization to Approve/Reject that CR ...

    Hello Nikhilesh
    These buttons are dependent upon the workflow steps. Check that. Check the linkage for workflow. Check SWI6 - CR number and the step. Based on the step you can identify whether the proper step is assigned or not.
    Thanks
    Kiran

  • File Upload action is not called

    I'm trying to upload file to a server and I use WDFileUpload UI control. After I select file on the client and click on 'Upload' button nothing happens. Action that assigned to that button is not called. But if FileUpload control is empty, file is not selected, action is called. Any ideas what I'm doing wrong?
    Thanks,
    Andrei

    Hi
    Hope you mustve also created value attributes of type binary and string to be bound to the data and filename properties(of the Upload UI element) respectively.
    In the 'onActionUpload'method specify the location where you want the file to be uploaded. On browsing, you get the file name in the value attribute assigned to the ‘filename’ property of FileUpload. This creates a file by this name in the sever. The contents of the file is present in the value attribute bound to data property. This is written to the file created. This happens when you click the ‘Upload’ button. The code for this is given below.
    try
    String location = "c:
    String fileName = location + wdContext.currentFileElement().getFileName();
    File file = new File(fileName);
    FileOutputStream out = new FileOutputStream(file);
    if(element.getUpload!=null)     
    out.write(element.getUpload());     
    out.close();
    Here 'element' is an object of IFileElement(IPrivateFileUploadView.IFileElement element)   'Upload' is the value attribute bound to the 'data' property of the Upload UI Element.
    Kindly revert back for further clarifications
    Regards
    Leena

  • How to check image size and 500PX upload action please!

    Hi,
    Two questions please.
    1. How do you check the overall size of an image in Lightroom 4 before exporting.  In Photoshop it is image/size so what is it in Lightroom please?
    2. I have Canon raw files and tiffs and want to upload to 500PX and other web site galleries in one action.  Is it possible?  How do you set up an action to convert an image, say a tiff, to a certain size and then save as a jpeg and upload to 500pX using the plugin all in one action?  At the moment I am saving the tiff as a jpeg to a correct size using a pre set, but then exporting to another folder ready to either manually upload or re-import to Lightroom as a jpeg then upload. Surely there is a quicker way than this?

    1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
    2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload.

  • WVC200 FTP upload action when full ???

    Hi,
     I am looking into the FTP upload on a WVC200 cam. I have the camera uploading images no problem but I am wondering what happens when the FTP site is full ? Would I have to go in periodically and delete JPG's or does the WVC200 begin to overwrite once there is no more space ?
     I do not want to just upload a single image and keep overwriting it, I want to fill the FTP with as many images as I can.
    I hope I dont need a complex batch file/script to empty the pictures.
     Without filling my webspace to the brim and seeing what happens when its full (alot of mucking about) I thought I would ask the question here.
    Thanks for any help
    Colin 

    I'm attempting to do something similar.  I would like my WVC200 to upload to the same directory and overwrite the same image file, so that whenever I visit the page, I will see the most recent capture of the image on my webserver.  Anyone know how to configure the WVC200 camera to FTP the image with the same name every time, instead of naving the image with the default format?
    YYMMDDHHMMSSmm
    10042205045900 = 2010 March (04) Day (22) Hour (05) Minutes  (04) Seconds (59) Miliseconds (00).

  • RAR: Upload risk owners

    Hi,
    Is it possible to assign risk owners to risks via an upload file of some sort? I would have thought that this should be part of the Risk Description Template found in the configuration guide. This does not seem to be the case.
    Any ideas of how I can do this?
    Regards,
    Mo

    Hi Muhammad,
    You can upload Risk Owners using Mitigation template. As Risk owners has to be created under administrators of mitigation and then only can be assigned to Risks under Risk ID of Rule Architect
    Once you upload the Risk owners using mitigation template, the drop down will allow you to assign the Risk owners to the Risk IDs.
    Thanks and Best Regards,
    Srihari.K

  • RAR - Logical system - SU24 upload

    Hi people,
    We use different logical system to include several ECC production systems. To have actual data, I need to upload the SU24 data from the backend system to the RAR (Upload objects)
    There I have only the possiblity to load the SU24 data against a physical system, not for a logical system.
    What happens now, if I am going to create a new function for a logical system and in this logical system are different ECC system referenced and each of them have another maintained SU24 data for standard transactions? Which data will be lead and relevant (pultruded) for the new function? Is it only the last loaded SU24 file?
    Thanks for your feedbacks.
    Regards,
    Martin

    Hi Martin,
    You can upload SU24 data against individual connected physical systems only and last loaded data only will reflect. Logical system is work as basket for all added physical systems and provides flexibility for future usage.
    If you want to create a new function for logical system -   While adding Action (Transaction) in new Function you can choose/specify the available systems or ALL.
    Thanks,
    Ramesh K

  • Multiple file uploads, or only one at a time?

    I have multiple files in folders on my iPad.  I want to upload entire folders of documents.  So far I have only been able to upload one document at a time.  Then after uploading, I have to put them in acrobat.com folders one document at a time.  It is very time consuming.  Is there any way to upload multiple files at one time?  Once the documents are uploaded, is it possible to move multiple documents into a folder at one time?  Or does each document have to be a separate upload action, and each move into folder a separate document-by-document one at a time?

    On my iPad I have been opening and saving pdf's in Adobe Reader.  I would like to upload these pdf files from the iPad Adobe Reader to acrobat.com.  I have thus far been uploading them from the iPad one fie at a time.  It is very slow and tedious.  There is also no way to get multiple pdf files from the iPad Adobe Reader to a computer except one file at a time.  So it seems that once I used the iPad Adobe Reader app to save the files, I am stuck with one file at a time movement.  I did, however, find that once I get files to acrobat.com, I can move multiples files at a time into folders on acrobat.com via the iPad.  The problem is getting them uploaded from the iPad Adobe Reader app to acrobat.com. Is there a solution I'm missing, or am I correct in my understanding of the iPad Adobe Reader app upload situation?

  • Processing a File (From a Folder Action) Through an AppleScript

    I have a Folder Action enabled which automatically uploads images placed in a folder to a FTP server. It works great when I'm at home on my own network, but if I'm somewhere with a firewall that prohibits connecting to my FTP server (i.e. work) or if I am not connected to the internet, the folder action will still run but my images will never get uploaded.
    I've attached a screenshot of my workflow. The folder action gets the image added to the folder, copies the original to a different folder, and then scales the image down to a smaller size before uploading it. I'm using the upload workflow action from Transmit.
    I figured I could use an AppleScript to check whether or not my computer can reach the ftp server and then wait until it was connected to run the rest of the workflow if it can't reach the server:
    repeat with i from 1 to 86400
        try
            do shell script "ping -o ftp.examplewebsite.com"
            exit repeat
        on error
            delay 5
            if i = 86400 then error number -128
        end try
    end repeat
    The only problem is, I'm pretty inexperienced with AppleScript and am not really sure how or where to insert it into my workflow to get the image to "pass through" the AppleScript. Currently, whenever I include this AppleScript in my workflow, before the Upload action, for example, the image ends up not getting passed through the AppleScript and it doesn't get uploaded as a result.
    Hopefully this a fairly simple question and someone can help me out, or if there's an easier way to delay running a folder action until I can connect to the server someone will let me know. I can clarify anything if necessary.

    Good job
    I just saw this…
    applescript in automator - stop a workflow
    It kills the workflow based on a test, so I tried this…
    Here is the text if you want to copy & paste. It will fail on Apple.com & stop the workflow. Success should allow it to continue.
    on run {input, parameters}
      try
      set pinged to do shell script "ping -c 3 -q  apple.com "
      if pinged is equal to 0 then
      return input
      end if
      on error
      error number -128 -- exit by user-cancel
      end try
    end run
    on run {input, parameters}
       display dialog "Rest of script will now continue..."
      return input
    end run

  • NullPointerException while uploading wrong file in af:inputfile

    Hi All,
    I am uploading excel sheet data into jspx Page(database table) by using af:inputFile.After uploading file af:inputFile need to be refresh.It is getting refresh for right file(excel file),but it is not refreshing for wrong file upload.
    it showing following error.
    UIComponent is null
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2
    i had refer frank's blog https://blogs.oracle.com/jdevotnharvest/entry/how_to_reset_adf_faces.
    Could any one help on this!!
    Thanks in advance!!

    here is my jspx source code.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:h="http://java.sun.com/jsf/html">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="ExcelToTable.jspx" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1" usesUpload="true">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="146">
    <f:facet name="first">
    <af:panelFormLayout id="pfl2">
    <af:panelLabelAndMessage label="#{bindings.Deptno.hints.label}" id="plam1">
    <af:outputText value="#{bindings.Deptno.inputValue}" id="ot1">
    <af:convertNumber groupingUsed="false" pattern="#{bindings.Deptno.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Dname.hints.label}" id="plam2">
    <af:outputText value="#{bindings.Dname.inputValue}" id="ot2"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Loc.hints.label}" id="plam3">
    <af:outputText value="#{bindings.Loc.inputValue}" id="ot3"/>
    </af:panelLabelAndMessage>
    <f:facet name="footer">
    <af:panelGroupLayout layout="vertical" id="pgl2">
    <af:panelGroupLayout layout="horizontal" id="pgl3">
    <f:facet name="separator">
    <af:spacer width="10" height="1" id="s1"/>
    </f:facet>
    <af:commandButton actionListener="#{bindings.First.execute}"
    text="First" disabled="#{!bindings.First.enabled}"
    partialSubmit="true" id="cb1"/>
    <af:commandButton actionListener="#{bindings.Previous.execute}"
    text="Previous"
    disabled="#{!bindings.Previous.enabled}"
    partialSubmit="true" id="cb4"/>
    <af:commandButton actionListener="#{bindings.Next.execute}" text="Next"
    disabled="#{!bindings.Next.enabled}"
    partialSubmit="true" id="cb5"/>
    <af:commandButton actionListener="#{bindings.Last.execute}" text="Last"
    disabled="#{!bindings.Last.enabled}"
    partialSubmit="true" id="cb6"/>
    </af:panelGroupLayout>
    <af:commandButton text="Submit" id="cb7"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelFormLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelCollection id="pc1">
    <f:facet name="menus"/>
    <f:facet name="toolbar">
    <af:toolbar id="t2">
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
    text="InsertRow"
    disabled="#{!bindings.CreateInsert.enabled}" id="cb2"
    immediate="true"/>
    <af:commandButton actionListener="#{bindings.Delete.execute}"
    text="DeleteRow"
    disabled="#{!bindings.Delete.enabled}" id="cb3"
    immediate="true"/>
    </af:toolbar>
    </f:facet>
    <f:facet name="statusbar"/>
    <af:table value="#{bindings.EmpView3.collectionModel}" var="row"
    rows="#{bindings.EmpView3.rangeSize}"
    emptyText="#{bindings.EmpView3.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.EmpView3.rangeSize}" rowBandingInterval="0"
    filterModel="#{bindings.EmpView3Query.queryDescriptor}"
    queryListener="#{bindings.EmpView3Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.EmpView3.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmpView3.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" partialTriggers="::cb2 ::cb3">
    <af:column sortProperty="#{bindings.EmpView3.hints.Empno.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Empno.label}" id="c1">
    <af:inputText value="#{row.bindings.Empno.inputValue}"
    label="#{bindings.EmpView3.hints.Empno.label}"
    required="#{bindings.EmpView3.hints.Empno.mandatory}"
    columns="#{bindings.EmpView3.hints.Empno.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Empno.precision}"
    shortDesc="#{bindings.EmpView3.hints.Empno.tooltip}" id="it1">
    <f:validator binding="#{row.bindings.Empno.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Empno.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Ename.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Ename.label}" id="c2">
    <af:inputText value="#{row.bindings.Ename.inputValue}"
    label="#{bindings.EmpView3.hints.Ename.label}"
    required="#{bindings.EmpView3.hints.Ename.mandatory}"
    columns="#{bindings.EmpView3.hints.Ename.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Ename.precision}"
    shortDesc="#{bindings.EmpView3.hints.Ename.tooltip}" id="it2">
    <f:validator binding="#{row.bindings.Ename.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Job.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Job.label}"
    id="c3">
    <af:inputText value="#{row.bindings.Job.inputValue}"
    label="#{bindings.EmpView3.hints.Job.label}"
    required="#{bindings.EmpView3.hints.Job.mandatory}"
    columns="#{bindings.EmpView3.hints.Job.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Job.precision}"
    shortDesc="#{bindings.EmpView3.hints.Job.tooltip}" id="it3">
    <f:validator binding="#{row.bindings.Job.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Mgr.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Mgr.label}"
    id="c4">
    <af:inputText value="#{row.bindings.Mgr.inputValue}"
    label="#{bindings.EmpView3.hints.Mgr.label}"
    required="#{bindings.EmpView3.hints.Mgr.mandatory}"
    columns="#{bindings.EmpView3.hints.Mgr.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Mgr.precision}"
    shortDesc="#{bindings.EmpView3.hints.Mgr.tooltip}" id="it4">
    <f:validator binding="#{row.bindings.Mgr.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Mgr.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Hiredate.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Hiredate.label}" id="c5">
    <f:facet name="filter">
    <af:inputDate value="#{vs.filterCriteria.Hiredate}" id="id1">
    <af:convertDateTime pattern="#{bindings.EmpView3.hints.Hiredate.format}"/>
    </af:inputDate>
    </f:facet>
    <af:inputDate value="#{row.bindings.Hiredate.inputValue}"
    label="#{bindings.EmpView3.hints.Hiredate.label}"
    required="#{bindings.EmpView3.hints.Hiredate.mandatory}"
    columns="#{bindings.EmpView3.hints.Hiredate.displayWidth}"
    shortDesc="#{bindings.EmpView3.hints.Hiredate.tooltip}"
    id="id2">
    <f:validator binding="#{row.bindings.Hiredate.validator}"/>
    <af:convertDateTime pattern="#{bindings.EmpView3.hints.Hiredate.format}"/>
    </af:inputDate>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Sal.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Sal.label}"
    id="c6">
    <af:inputText value="#{row.bindings.Sal.inputValue}"
    label="#{bindings.EmpView3.hints.Sal.label}"
    required="#{bindings.EmpView3.hints.Sal.mandatory}"
    columns="#{bindings.EmpView3.hints.Sal.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Sal.precision}"
    shortDesc="#{bindings.EmpView3.hints.Sal.tooltip}" id="it5">
    <f:validator binding="#{row.bindings.Sal.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Comm.name}" filterable="true"
    sortable="true" headerText="#{bindings.EmpView3.hints.Comm.label}"
    id="c7">
    <af:inputText value="#{row.bindings.Comm.inputValue}"
    label="#{bindings.EmpView3.hints.Comm.label}"
    required="#{bindings.EmpView3.hints.Comm.mandatory}"
    columns="#{bindings.EmpView3.hints.Comm.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Comm.precision}"
    shortDesc="#{bindings.EmpView3.hints.Comm.tooltip}" id="it6">
    <f:validator binding="#{row.bindings.Comm.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="#{bindings.EmpView3.hints.Deptno.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.EmpView3.hints.Deptno.label}" id="c8">
    <af:inputText value="#{row.bindings.Deptno.inputValue}"
    label="#{bindings.EmpView3.hints.Deptno.label}"
    required="#{bindings.EmpView3.hints.Deptno.mandatory}"
    columns="#{bindings.EmpView3.hints.Deptno.displayWidth}"
    maximumLength="#{bindings.EmpView3.hints.Deptno.precision}"
    shortDesc="#{bindings.EmpView3.hints.Deptno.tooltip}"
    id="it7">
    <f:validator binding="#{row.bindings.Deptno.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView3.hints.Deptno.format}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelCollection>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="start">
    <af:panelGroupLayout id="pgl1">
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer">
    <af:commandButton text="Upload" id="uploadButton"
    actionListener="#{FileProcessor.checkFile}" partialSubmit="true"/>
    </f:facet>
    <af:inputFile label="EmpFile" id="if1" value="#{FileProcessor.uploadedFile}"
    partialTriggers="uploadButton" binding="#{FileProcessor.inputFile}"/>
    <af:messages id="m2"/>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    and bean class code is as follows.
    package xxorn.model.view;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputFile;
    import oracle.adf.view.rich.component.rich.output.RichMessages;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import org.apache.myfaces.trinidad.util.ComponentUtils;
    public class FileProcessor {
    private CSVtoADFTableProcessor tablecreator;
    private UploadedFile uploadedFile;
    private String filename;
    private long filesize;
    private String filecontents;
    private String filetype;
    private RichMessages errorMsg;
    private RichInputFile inputFile;
    public FileProcessor() {
    public void setUploadedFile(UploadedFile uploadedFile) {
    this.uploadedFile = uploadedFile;
    this.filename = uploadedFile.getFilename();
    this.filesize = uploadedFile.getLength();
    this.filetype = uploadedFile.getContentType();
    try {
    if (filename.endsWith(".csv"))
    tablecreator.processCSV(uploadedFile.getInputStream());
    else if(filename.endsWith(".xls")){
    System.out.println("uploaded file is ********"+uploadedFile);
    tablecreator.fileSubmit(uploadedFile.getInputStream());
    //tablecreator.WriteXLS(uploadedFile.getInputStream());
    else if (filename.endsWith(".xlsx")){
    tablecreator.fileSubmitXSSF(uploadedFile.getInputStream());
    //wrong file upload
    else{
    String msg="this is a global message.";
    FacesContext ctx =FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "Please Upload proper file");
    ctx.addMessage(null,fm);
    } catch (IOException e) {
    e.printStackTrace();
    public void convertStreamToString(InputStream is) throws IOException {
    StringBuilder sb = new StringBuilder();
    String line;
    BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
    while ((line = reader.readLine()) != null) {
    sb.append(line).append("\n");
    System.out.println(sb.toString());
    public UploadedFile getUploadedFile() {
    return uploadedFile;
    public void setFilename(String filename) {
    this.filename = filename;
    public String getFilename() {
    return filename;
    public void setFilesize(long filesize) {
    this.filesize = filesize;
    public long getFilesize() {
    return filesize;
    public void setFilecontents(String filecontents) {
    this.filecontents = filecontents;
    public String getFilecontents() {
    return filecontents;
    public void setFiletype(String filetype) {
    this.filetype = filetype;
    public String getFiletype() {
    return filetype;
    public void setTablecreator(CSVtoADFTableProcessor tablecreator) {
    this.tablecreator = tablecreator;
    public CSVtoADFTableProcessor getTablecreator() {
    return tablecreator;
    public void setErrorMsg(RichMessages errorMsg) {
    this.errorMsg = errorMsg;
    public RichMessages getErrorMsg() {
    return errorMsg;
    public String checkFile(ActionEvent actionEvent) throws Exception {
    // Add event code here...
    System.out.println("in upload action event");
    /* RichInputFile vTheInputFileComponent = getInputFile();
    vTheInputFileComponent.resetValue();*/
    FacesContext vFacesContext = FacesContext.getCurrentInstance();
    UIViewRoot vUIViewRoot = vFacesContext.getViewRoot();
    RichInputFile vTheInputFileComponent =
    (RichInputFile)vUIViewRoot.findComponent("if1");
    vTheInputFileComponent.resetValue();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    adfFacesCtx.addPartialTarget(inputFile);
    return null;
    public void setInputFile(RichInputFile inputFile) {
    this.inputFile = inputFile;
    inputFile=null;
    public RichInputFile getInputFile() {
    return inputFile;
    }

  • OutofMemory error while uploading a file

    Hi!
    I am using the jsf upload component as follows:
    <hx:fileupload styleClass="fileupload" id="fileupload1" value="#{pc_Infosession.pj1}">
           <hx:fileProp name="fileName" value="#{pc_Infosession.pj2}" />
          <hx:fileProp name="contentType" value="#{pc_Infosession.pj3}"/>
    </hx:fileupload>
    <hx:commandExButton type="submit" value="Add"
         styleClass="commandExButton" id="button3" action="#{pc_Infosession.uploader}">
    </hx:commandExButton>And this is the code behind the uploader action :
    public void uploader() {
       System.out.println("Hello");
       String myfilename =getFileupload1().getFilename();
       String s2 = "\\mypath\\"+ myfilename;
       ContentElement ce = (ContentElement)getFileupload1().getValue();
        try {
            byte[] in = ce.getContentValue();
            BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(s2));
            os.write(in);
            os.close();
        catch (FileNotFoundException e) {
           e.printStackTrace();
       catch (IOException e) {
           e.printStackTrace();
       }When I upload a file (ie I click on the submit button) of 2.2 M it works fine but when I try to upload a bigger file i got a java.lang.OutOfMemoryError and this is strange because I didn't get the system.out message which is at the beginning of the function.
    Is there a way to specify the max size of the file to be uploaded?
    I am using RAD 6 Sun Jsf specification.
    Please help me.
    Thanks a lot.
    Didi

    I don't know how this can be done in "Rational Application Developer", but generally it is a parameter that should be sent to java. It is done differently under each server and also under each operating system (for example, it is done differently in tomcat under windows or under linux).
    In JDeveloper this can be accomplished under propject settings. One of the "run" options there is named: "Java Options". there should not be much difference under "Tational Application Developer". The parameter that should be added is:
    Xmx900M
    This will give Java up to 900MB of memory.

  • Problem with uploading a file in Clustered Environment

    Hi,
    I have a problem with uploading a file in a clustered environment. I have an iview component which facilitates an upload action of an xml config file. The problem is that the upload of the modified XML file is reflected only in the central instance of the cluster and not in the dialog instances. The dialog instances hold the old config file.
    Is there any solution to upload the file to all the nodes in the cluster.
    Thanks
    Kiran

    Hi,
    This is a known problem with clustered environment. Remember that your portal component runs on just on dialog instance and it doesn't automatically have access to the other nodes.  However, there are some ways to get around this
    1. Use KM to store files. KM is a common repository for all application servers and therefore you needn't worry more
    2. Use an external batch oriented product (suresync/robocopy) to synch folders on the different DIs. You basically use your existing portal component, but there is a batch job which makes sure the upload folder is identical on all DIs (however, there is a slight delay depending on how often you run the batch job)
    3. Store the files on a shared disk directly from the portal component.
    Cheers
    Dagfinn

  • Problem with Multi File upload example, help needed

    I got the code from the following location.....
    http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html
    And I've got it to work to some degree except I cant get the file transfer to work when pressing, Upload.   Below is what my debugger outputs.  Any thoughts on how to fix this or even what it means?
    At the very bottom of this message is the upload.cfm code.......
    Thanks in advance for the help
    <html>
    <head>
      <title>Products - Error</title>
    </head>
    <body>
    <h2>Sorry</h2>
    <p>An error occurred when you requested this page.
    Please email the Webmaster to report this error.
    We will work to correct the problem and apologize
    for the inconvenience.</p>
    <table border=1>
    <tr><td><b>Error Information</b> <br>
      Date and time: 12/07/09 22:25:51 <br>
      Page:  <br>
      Remote Address: 67.170.79.241 <br>
      HTTP Referer: <br>
      Details: ColdFusion cannot determine how to process the tag &lt;CFDOCUMENT&gt;. The tag name may be misspelled.<p>If you are using tags whose names begin with CF but are not ColdFusion tags you should contact Allaire Support. <p>The error occurred while processing an element with a general identifier of (CFDOCUMENT), occupying document position (41:4) to (41:70).<p>The specific sequence of files included or processed is:<code><br><strong>D:\hshome\edejham7\edeweb.com\MultiFileUpload\upload.cfm      </strong></code><br>
      <br>
    </td></tr></table>
    </body>
    </html>
    <!---
    Flex Multi-File Upload Server Side File Handler
    This file is where the upload action from the Flex Multi-File Upload UI points.
    This is the handler the server side half of the upload process.
    --->
    <cftry>
    <!---
    Because flash uploads all files with a binary mime type ("application/ocet-stream") we cannot set cffile to accept specfic mime types.
    The workaround is to check the file type after it arrives on the server and if it is non desireable delete it.
    --->
        <cffile action="upload"
                filefield="filedata"
                destination="#ExpandPath('\')#MultiFileUpload\uploadedfiles\"
                nameconflict="makeunique"
                accept="application/octet-stream"/>
            <!--- Begin checking the file extension of uploaded files --->
            <cfset acceptedFileExtensions = "jpg,jpeg,gif,png,pdf,flv,txt,doc,rtf"/>
            <cfset filecheck = listFindNoCase(acceptedFileExtensions,File.ServerFileExt)/>
    <!---
    If the variable filecheck equals false delete the uploaded file immediatley as it does not match the desired file types
    --->
            <cfif filecheck eq false>
                <cffile action="delete" file="#ExpandPath('\')#MultiFileUpload\uploadedfiles\#File.ServerFile#"/>
            </cfif>
    <!---
    Should any error occur output a pdf with all the details.
    It is difficult to debug an error from this file because no debug information is
    diplayed on page as its called from within the Flash UI.  If your files are not uploading check
    to see if an errordebug.pdf has been generated.
    --->
            <cfcatch type="any">
                <cfdocument format="PDF" overwrite="yes" filename="errordebug.pdf">
                    <cfdump var="#cfcatch#"/>
                </cfdocument>
            </cfcatch>
    </cftry>

    Just 2 things in my test:
    1) I use no accept attribute. Coldfusion is then free to upload any extenstion.
    Restricting the type to application/octet-stream may generate errors. Also, it is unnecessary, because we perform a type check anyway.
    2) I have used #ExpandPath('.')#\ in place of #ExpandPath('\')#
    <cfif isdefined("form.filedata")>
    <cftry>
    <cffile action="upload"
                filefield="filedata"
                destination="#expandPath('.')#\MultiFileUpload\uploadedfiles\"
                nameconflict="makeunique">
            <!--- Begin checking the file extension of uploaded files --->
            <cfset acceptedFileExtensions = "jpg,jpeg,gif,png,pdf,flv,txt,doc,rtf"/>
            <cfset filecheck = listFindNoCase(acceptedFileExtensions,File.ServerFileExt)/>
    <!---
    If the variable filecheck equals false delete the uploaded file immediatley as it does not match the desired file types
    --->
            <cfif filecheck eq false>
                <cffile action="delete" file="#ExpandPath('.')#\MultiFileUpload\uploadedfiles\#File.ServerFile#"/>
                <cfoutput>Uploaded file deleted -- unacceptable extension (#ucase(File.ServerFileExt)#)</cfoutput>.<br>
            </cfif>
    Upload process done!
            <cfcatch type="any">
                There was an error!
                <cfdocument format="PDF" overwrite="yes" filename="errordebug.pdf">
                    <cfdump var="#cfcatch#"/>
                </cfdocument>
            </cfcatch>
    </cftry>
    <cfelse>
    <form method="post" action=<cfoutput>#cgi.script_name#</cfoutput>
            name="uploadForm" enctype="multipart/form-data">
            <input name="filedata" type="file">
            <br>
            <input name="submit" type="submit" value="Upload File">
        </form>
    </cfif>

Maybe you are looking for

  • I can't get a TV Show manually moved onto my iPod!

    Okay, so my computer's hard drive doesnt' have enough space for me to back up the entirety of what I have on my iPod (I have the 80GB Classic). I just bought a season of a TV Show (accidentally twice but I contacted support about that) but when I try

  • HP Officejet Pro L7590

    Anyone who can help: I've read everything I can get my hands on, here and other fora included. -Uninstalled the 10.5 software that came with my officejet. -Downloaded drivers from both Apple and HP that should have corrected the problem (this link ht

  • Problems trying to upload video and movies to the internet

    We are trying to upload a movie that we have made on imovie recently to a website on the internet, however I am not able to upload the movie. I keep getting a message that I need a codec. I only have quicktime player 7.4.1 (v14). Should I get quickti

  • How to create HTTP 301 redirect from UCM 7.5.2

    Is it possible to send a HTTP response with a permanent redirect from a UCM/Stellent website? We're using version 7.5.2 with iDoc script. We can use the iDoc function setHttpHeader() to send the Location HTTP header, but how to send the HTTP response

  • Uploading Key figures from ECC

    Hello folks, We are planning to integrate ECC and S&OP on HANA and uploading Key figures. Could you please suggest how we can achieve integration via Web service/Idoc/File automation. As of now we are taking data from ECC and uploading it manually in