Problems with FileUpload Demo

Hi!, i have a problem with the File Upload Demo when it calls this line:
hDirectoryObject := JFile.new(directory);
and the error is: error 6508 "PL/SQL: could not find program unit being called"
That's ok, but anybody knows why should the program couldnt find the routine ?
And just one more thing...where can i look for JFile method description ??
Thanks a lot :) !!
Cristian.

Hi!, i have a problem with the File Upload Demo when it calls this line:
hDirectoryObject := JFile.new(directory);
and the error is: error 6508 "PL/SQL: could not find program unit being called"
That's ok, but anybody knows why should the program couldnt find the routine ?
And just one more thing...where can i look for JFile method description ??
Thanks a lot :) !!
Cristian.

Similar Messages

  • Problems with XDBBasic Demo

    Hello
    i have a big problem with the XDBBasic Demo. After downloading the 1999 purchaseOrders into the Repository i can't query them. If i perform select count(*) from purchaseorder i get a 0 result.
    I don't understand, where is the link that oracle knows that all files from the purchaseorders Repository should be linked to the purchaseorder object table.
    Thank you very much
    Bastian

    Sorry about my silly question. Next Time I read the docu i little bit more exact. I have'nd perform the install script. So schema was not incl. into the purchaseOrder xml files.
    Sorry

  • Any problems with RH10 demo on the same machine as RH9?

    I need to install the RH10 demo with captivate on a machine with RH9. Will that create any problems?

    Both will run OK but Rh10 will become the version that opens when you double click an XPJ file. If you later uninstall Rh10 it may not revert to Rh## but a quick reinstall should fix that.
    If you try to open an earlier version project, you will get a warning and the option to back out without upgrading the project. There are some hacks for reverting to an earlier version but they are not recommended.
    Use copies of your Rh## projects to work in 10 while you experiment.
    Ideally, use another machine.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Problem with long demos

    I've produced a longer software demo (about 400 slides,
    runtime about 17 min, playing in a loop) as an exe file. After it
    runs a while some parts of the screen became red (mostly in full
    motion parts of the demo).
    Can someone help me to solve this problem otherwise than
    restart the demo every 30 minutes?

    Welcome to our community, Matthias
    Basically this means the computer playing back the video is
    running out of resources. You really need to seriously consider
    breaking the project into smaller chunks. Then configure it to
    Daisy Chain. At 400 slides, I'm surprised it even works in the
    editor. Normally we recommend no more than 50-65 slides with
    occasional "really large" projects having as many as 100 or so
    slides.
    For information on Daisy Chaining,
    click
    here
    Cheers... Rick

  • Problems with fileUpload

    Hi,
    I'm using JDeveloper 11g, integrated WLS and ADF Faces. I've implemented fileUpload functionality just like this tutorial says:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/fileupload.html
    I've tried using adf-faces-impl-1013.jar and adf-faces-api-1013.jar but I'm always getting errors:
    Sep 8, 2009 2:13:03 PM JpsApplicationLifecycleListener Migrate Application Credential Store
    WARNING: Overwriting credentials is allowed in application credential store migration with Weblogic server running in Development Mode and system property 'jps.app.credential.overwrite.allowed' set to true
    Sep 8, 2009 2:13:09 PM oracle.adfinternal.view.faces.renderkit.core.CoreRenderKit _addBasicHTMLRenderKit
    WARNING: Could not find basic HTML renderer for family javax.faces.Command, type=javax.faces.Button
    SEVERE: zip:C:/Documents and Settings/user/Application Data/JDeveloper/system11.1.1.1.33.54.07/DefaultDomain/servers/DefaultServer/tmp/_WL_user/Prijava/f17v7y/war/WEB-INF/lib/adf-faces-impl-1013.jar!/META-INF/agent/capabilities.xml: Parsing error, line 2, column 89:
    org.xml.sax.SAXParseException: Invalid Namespace: http://xmlns.oracle.com/adf/view/faces/agent/capabilities
    at org.apache.myfaces.trinidadinternal.agent.parse.CapabilitiesDocumentParser.startElement(CapabilitiesDocumentParser.java:114)
    at org.apache.myfaces.trinidadinternal.share.xml.TreeBuilder$Handler.startElement(TreeBuilder.java:333)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1324)
    Sep 8, 2009 2:13:17 PM org.apache.myfaces.trinidad.component.UIXComponentBase _createType
    SEVERE: Could not load type properties
    java.lang.NullPointerException
    at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(DownloadManager.java:928)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:293)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
    Sep 8, 2009 2:13:18 PM org.apache.myfaces.trinidadinternal.share.xml.TreeBuilder$Handler _logError
    SEVERE: META-INF/adf/styles/simple-desktop.xss: Parsing error, line 4, column 35:
    org.xml.sax.SAXParseException: No org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument parser registered for top element;check your namespace declaration. Namespace: http://xmlns.oracle.com/uix/style
    Local name: styleSheetDocument)
    at org.apache.myfaces.trinidadinternal.share.xml.TreeBuilder$Handler.startElement(TreeBuilder.java:259)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1324)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:368)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:314)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:225)
    Sep 8, 2009 2:13:18 PM org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry _createStyleSheetDocument
    SEVERE: Could not load style sheet: META-INF/adf/styles/simple-desktop.xss
    Sep 8, 2009 2:13:18 PM org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry _createStyleSheetDocument
    SEVERE:
    org.xml.sax.SAXParseException: No org.apache.myfaces.trinidadinternal.style.xml.parse.StyleSheetDocument parser registered for top element;check your namespace declaration. Namespace: http://xmlns.oracle.com/uix/style
    Local name: styleSheetDocument)
    at org.apache.myfaces.trinidadinternal.share.xml.TreeBuilder$Handler.startElement(TreeBuilder.java:259)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1324)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:368)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:314)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:225)
    I've also tried using adf-faces-impl-ea15.jar and adf-faces-api-ea15.jar, the error was:
    java.lang.ClassNotFoundException: oracle.adfinternal.view.faces.taglib.validator.ValidatorTag
    Could someone please tell me which adf-faces-impl.jar and adf-faces-api.jar should be used for fileUpload and where can I find it?
    Thanx,
    Jelena

    Jeelena,
    you don't need any additional jar files to do file uploading. Read [url http://download.oracle.com/docs/cd/E15051_01/web.1111/b31973/af_input.htm#BABDFAEI]here for the current version of the docs.
    John

  • Facing Problem with FileUploading.....

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import org.apache.commons.fileupload.*;
    public class FileUploadDemo extends HttpServlet
         public void init(ServletConfig config) throws ServletException
         public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
              res.setContentType("text/html");
              PrintWriter pw=res.getWriter();
              String str=null;
              String value=null;
              String name1=null, dob=null, grad=null,exp=null,loc=null;
              int passport=0, age=0;
              File uploadFile=null;
              try{
                        DiskFileUpload upload=new DiskFileUpload();
                        List items=upload.parseRequest(req);
                        Iterator iter=items.iterator();
                        while(iter.hasNext())
                             FileItem item=(FileItem)iter.next();//This class represents a file or form item that was received within a multipart/form-data POST request.
                             if(item.isFormField())
                                  String name=item.getFieldName();
                                  if(name.equals("name"))
                                       name1=item.getString();
                                  if(name.equals("age"))
                                       age=Integer.parseInt(item.getString());
                                  if(name.equals("passport"))
                                       passport=Integer.parseInt(item.getString());
                                  if(name.equals("dob"))
                                       dob=item.getString();
                                  if(name.equals("grad"))
                                       grad=item.getString();
                                  if(name.equals("exp"))
                                       exp=item.getString();
                             }//if
                             else
                                  System.out.println("in file upload");
                                  loc="c:\\"+exp+"\\"+passport+".doc";
                                  uploadFile=new File(loc);
                                  item.write(uploadFile);
                        }//while
                        }//try
                        catch(Exception e)
                             e.printStackTrace();
         }//do
         public void destroy()
              System.out.println("Destroy method called");

    This doesn't seem to have anything to do with JavaMail.
    Maybe you should ask your question in a Tomcat or servlet
    support forum?

  • Problem with JTableSorter demo from OTN sample

    I've downloaded TableSorter from JDeveloper Sample and try to execute it now.
    I've done all the step ( following the guide: How to Sort a JTable Using the TableSorter Model from JDeveloper).
    When I connect to database with hr8/hr8@mymachine with SQL+, I can select, insert, update... all of the tables for example: employees, departments...It seems that they do correct.
    My problem:
    By Run FrameDepartmentsViewEmployeesView2.java with JDeveloper, I can only see the DepartmentView but not any row of employeesview2-table and so I can't sort the table. When I try to insert new record ( both departmentsview and employeesview ), it fails. The errors are:
    oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation.
    Statement: SELECT Employees.EMPLOYEE_ID,
    Employees.FIRST_NAME, Employees.LAST_NAME,
    Employees.EMAIL, Employees.PHONE_NUMBER,
    Employees.HIRE_DATE, Employees.JOB_ID,
    Employees.SALARY, Employees.COMMISSION_PCT,
    Employees.MANAGER_ID, Employees.DEPARTMENT_ID,
    Employees.DN FROM EMPLOYEES Employees WHERE Employees.DEPARTMENT_ID = :1
    Details:
    (----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-00904: Ung|ltiger Spaltenname (== illegal column name )
    I've still have this prolem until now. Can somebody help me to correct it?
    Thanks in advance.

    I have to go to meet my Professor for my exam now, so I have no time more to test BC4J tester today. I'll do it in monday and answer you later.
    Yes, I'm much intersted in client side sorting. Many thanks for your offer. Could you please tell me where I can find it, or send me under <[email protected]>.
    Regards,
    VKW

  • Problem with FileUpload with Struts

    Hello,
    Here is my form I've created :
    <html:form action="/UploadFile.do" method="post" enctype="multipart/form-data">
    <html:file property="file" />
    </html:form>
    The form I submit conatins a "file" attribute of FileForm type.
    I did exatcly as mentionned in different tutorials to upload files with Struts.
    But I get the following exception and I can't figure out what's happening:
    javax.servlet.ServletException: BeanUtils.populate
    at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
    java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Please Help !
    I'm using Struts 1.1 by the way
    Thank your for your help
    Hugo

    What is in the form bean you're using? You need a field that holds a FormFile object:
    import org.apache.struts.upload.*;
         private FormFile file;
         public FormFile getFile() {
              return this.file;
         public void setFile(FormFile file) {
              this.file = file;
    ...

  • Problem with WSA demo license

    When a do this:
    https://tools.cisco.com/SWIFT/LicensingUI/Quickstart#. -> Get Other License-> Demo and Evaluation->
    Security Products-> Cisco Virtual Appliance Demo License->Cisco Web Security Appliance (WSA) Virtual Appliance 45 Days Demo License
    I see the massage attached in pic.
    How can a get 45 days demo lisence for WSA?
    tnx

    Your Cisco a/c didn't have permission to get demo license.
    You need to ask your local Cisco Sales representative

  • Problem with SOAorderbooking demo

    hi
    i have problem when i m trying to invoke customerservice through invoke activity i m not getting anything in my operartion filed.
    what could be the reason

    hi shanthi,
    u refer to these blogs
    <b>User Mapping-based Single Sign On,
    SAP Logon Ticket-based Single Sign-On>
    hope its useful
    regards
    bhargava

  • Problems with Dashboard Demo App in Flash Builder 4

    I imported the Adobe Flex Dashboard app into Flash Builder 4 using SD 4.1 and selected "Use Flex 3 compatibility mode", but there are still some issues after import.
    I'm not talking about having to create the "libs" folder and re-generate the HTML templates. I know why that needs to be done. I'm also not talking about the IStroke and IFill errors you get for the number of arguments to the apply() and begin() methods, as those interfaces changed in Flex 3.5.
    But when I get the app launched, the chart datatips are just a black rectangle (no text) and the combobox entry text is invisible.
    I'm going to try and fix these, but I thought selecting "Use Flex 3 compatibility mode" meant no changed required?

    Here is a simple example. Create a new project in Flash Builder 4 and in the project properties  compiler section, select "Use Flex 3 compatibility mode". Then launch the app, hover over a column in the chart and you see black rectangles, not data tips. Why is this and how to fix?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
      xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="srv.send()"
      height="600">
      <mx:HTTPService id="srv"
        url="http://aspexamples.adobe.com/chart_examples/expenses-xml.aspx"/>
      <mx:ComboBox dataProvider="{srv.lastResult.data.result}" labelField="month"/>
      <mx:Panel title="Column Chart">
        <mx:ColumnChart id="myChart" showDataTips="true"
          dataProvider="{srv.lastResult.data.result}">     
          <mx:horizontalAxis>
            <mx:CategoryAxis categoryField="month"/>
          </mx:horizontalAxis>
          <mx:series>
            <mx:ColumnSeries xField="month" yField="profit"
              displayName="Profit"/>
            <mx:ColumnSeries xField="month" yField="expenses"
              displayName="Expenses"/>
          </mx:series>
        </mx:ColumnChart>
        <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

  • Problem with fileupload

    I am not able to upload large file (greater than 4MB) using the ADF. I have used the ADF provided file upload mechanism and at the time of uploading a validation from ADF occurs (THE UPLOADED FILE IS TOO LARGE). Is there any mechanism to increase the maximum file size.
    Please advise..
    Jeethy

    Depending upon whether you are using JDev 10 or 11, you will either set
    oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE or org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE in your web.xml file. It's in the documentation for af:inputFile.
    John

  • Problem/Error with 'Document' demo!

    the "document" demo does not seem to work correct (in my case: Oracle 8.1.6, xsql servlet version 1.0.0.0 (Production) and MSIE 5.5).
    The demo lets you insert a XML-document in a table and retrieve it afterwards.
    The retreiving part does not work. The frame at the right remains empty, unless I remove the line:
    <?xml-stylesheet type="text/xsl" href="clob.xsl"?>
    from doc.xsql. Then I see the XML document as a tree structure in IE.
    What is wrong with the demo, or my setup?
    Thanks.
    P.s. I am only interested in the working of the omit-xml-declaration="yes" parameter, like in the clob.xsl stylesheet, because I have a problem with my own application.
    I need to display data obtained from the following query:
    xsql:query tag-case="upper">
    <![CDATA[
    select v.vak_code -- code (VCHAR2)
    , v.vak_naam -- name (VCHAR2)
    , v.omschrijving -- description (CLOB)
    from xpa_vakoverzichten v
    where v.von_id = '{@VONID}'
    ]]>
    </xsql:query>
    The column description contains an XML document with header and doctype which I would like to get rid of (I need them because i use Xmetal to edit the content of the column description so i can enforce rules).

    XSQL 1.0.1.0 (now available on OTN) fixed a bug related to the document demo, so it likely would fix the problem you're seeing. The omit-xml-declaration will only be done if you leave the <?xml-stylesheet?> reference in there.

  • PI Demo Examples problems with executing CTC template for client setup

    Dear SAP community,
    I use PI 7.30 SP 4 and get the following exception if I use the CTC template to set up the PI demo examples in client 105
    and 106
    Web Services Configuration
    Description
    Exception in step "SRT_TECHNICAL_SETUP"
    Exception details : java.lang.Exception: BAPIRET2 SRT_ADMIN 050 Could not create service destination
    State
    Step was skipped
    In client 107, the template works after I delete the SAP_WSRT user. In clients 105 and 106, this leads to the exception above,
    If the  SAP_WSRT user exists, I get the exception that this user alreadz exists if I run the template.
    What should I do to fix this problem and properly implement the template on all clients?
    PS: I use admin users with SAP_ALL  rights. Maybe I use the wrong master password, because I use the one of my SAP_ALL user. This works at least for using the template within client107.
    Andreas

    Hi Mark,
    in my case the workaround of deleting the service user works only in Client 107.
    The additional problem with a missing service destination occurs already after deleting the service user in Clients 105 and 106. Will this additional problem also be treated in the new note?
    Joerg-Joachim Klossika already added the workaround to this note for the existing service user I proposed to him.
    I still cannot resolve the problem with the missing service destination.
    regards
    Andreas

  • Problems with Demo Apps

    I have been having some problems with the Downloadable Demo. When I try to run the XDBConfiguration script, all goes well until I get to:
    SQL> create or replace package body XDB_CONFIGURATION as
    2 --
    3 FTP_XPATH varchar2(256) := '/xdbconfig/sysconfig/protocolconfig/ftpconfig
    /ftp-port';
    90 procedure setFTPport(PORT_NUMBER number)
    91 as
    92 begin
    93 setXDBport(FTP_XPATH || '/text()', PORT_NUMBER);
    94 end;
    95 --
    96 end XDB_CONFIGURATION;
    97 /
    Warning: Package Body created with compilation errors.
    All then continues and seems to be OK until:
    SQL> alter package XDB_CONFIGURATION compile
    2 /
    Warning: Package altered with compilation errors.
    and then:
    SQL> call xdb_configuration.folderDatabaseSummary()
    2 /
    call xdb_configuration.folderDatabaseSummary()
    ERROR at line 1:
    ORA-04063: package body "XDB.XDB_CONFIGURATION" has errors
    Lastly:
    SQL> set echo on
    SQL> set long 10000
    SQL> --
    SQL> select xdburitype('/sys/databaseSummary.xml').getXML() from dual
    2 /
    ERROR:
    ORA-31001: Invalid resource handle or path name "/sys/databaseSummary.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 45
    ORA-06512: at line 1
    no rows selected
    SQL> --
    I have redownloaded the demo, removed and reinstalled Oracle 9i, all to no avail. If anyone has seen this and solved it or has any help to offer, I would very much appreciate the help.
    Rick Price

    Database version ?. I suspect 9.2.0.1.0 in which case you need to upgrade to 9.2.0.3.0 or later.

Maybe you are looking for

  • Can I create a new itunes account and still keep everything I have right now on my iPhone?

    My family uses the same itunes account but I want to have my own now. I was wondering if I can create my own itunes account along with keeping everything in my iphone now including apps, music, contacts, mail, texts, etc.

  • Could not save my_file.psd because the file is already in use or was left open by another app"

    Since some time ago I often get this message when trying to save my PSD file: "could not save my_file.psd because the file is already in use or was left open by another application", whereas there's no application that uses the file in reality. What

  • Multiple headers in alv

    Hi All, I have the following requirement, need to display multiple headers in ALV display(not multiple lines in alv header). Header1. Row1 Row2 Row3 Footer 1. Header2. Row1 Row2 Row3 Footer 2. Header3. Row1 Row2 Row3 Footer 3. To display this in hier

  • Keywords applied from Bridge

    I have many Parent/Child keywords set up in Bridge and applied to DNGs. When I import the DNGs into LR The first folder imported creates the correct Parent/Child setup in LR for as many of those at are include in that folder. Any subsequent import ma

  • HP Solution Center conflict with Adobe Flash Player

    I have an HP Deskjet F2210 Printer and when I installed the most recent upgrade of Adobe Flashplayer the hp solution center would not open. I uninstalled the flash player and hp solution center. I then reinstalled the solution center and it runs fine