Fileupload with with ApexListener

We want to migrate from OHS to Apex_Listener.
As far we got the HTP content in the PLSQL Procedures which is stored in the datebase will be executed and as HTML/JavaScript deliverd.
We don’t want to use APEX, only the Apex Listener. We are deploying ApexListener 2.0.1.
Our Solution with OHS looks like the examples in the Documentation:
http://docs.oracle.com/cd/B14099_19/web.1012/b14010/concept.htm#i1005866
The Problem is, when we want to upload a file in the database. The error
java.sql.SQLException: ORA-06550: line 2, column 2:
PLS-00306: wrong number or types of arguments in call to 'WRITEINFO'
ORA-06550: line 2, column 2:
PL/SQL: Statement ignored
This can we solve with a workaround and set some default parameters/arguments but then we got:
May 29, 2013 11:49:32 AM oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader checkDocMethod
SEVERE: ORA-00942: table or view does not exist
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
For our Problem we can’t find any Solution in the ApexListener Documentation.
We know with OHS this works because of the DAD with the parameter : PlsqlDocumentProcedure and PlsqlDocumentTablename .
How can we implement this function in APEX_LISTENER? How is it possible to HTTP POST a Document to a procedure?

If you have a better solution let me know.
i did this way ...
in apex web.xml a servlet filter that use a HttpServletRequestWrapper to rewrite the request if
httpRequest.getContentType().indexOf("multipart")
the file become a standard String parameter (filename) and the byte[] is inserted in the documents table.

Similar Messages

  • Why am I getting this message suddenly, when I've done dozens and dozens of projects without trouble at all: The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Why am I suddenly getting this message after I've been using iMovie for a few years now and have never had any such issue before:  The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Two things
    I meant search THIS FORUM
    Error minus49 not same as ERROR 49
    Yours Bengt W

  • Unable to prepare project for publishing The project could not be prepared for publishing because an error occurred. (File already open with with write permission)

    When I click on finalize project or when I tried to share on Vimeo iMovie goes through this ten hour operation and the, somethime while I'm away from the computer, I get this error message.  UNABLE TO PREPARE PROJECT FOR PUBLISHING.  The project could not be prepared for publishing because an error occurred. (File already open with with write permission).
    This has happened to me before and I can't nail down the particulars of when this happens.  I will say I've never been able to Finalize A Project (not even sure what than means) but I have been able to publish short films to YouTube.  This current film is a little over an hour and I picked the HD Format.  Could the size have something to do with it?

    See the discussion here:
    https://discussions.apple.com/message/16784714#16784714

  • After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • Problem with a query with WITH clause

    Hi,
    i'm facing with a problem, so i describe a little:
    create table schoolboys (
    id integer,
    name varchar2(20)
    create table marks (
    schoolboy_id integer,
    mark integer,
    mark_type char(1))
    create table avg_marks (
    schoolboy_id integer,
    avg_mark number (5,2)
    insert into A values (50, 9, 'N');
    insert into A values (50, 7, 'N');
    insert into A values (50, 6, 'T');
    insert into A values (88, 9, 'N');
    insert into A values (88, 7, 'N');
    insert into A values (88, 10, 'T');
    insert into A values (20, 4, 'N');
    insert into A values (20, 5, 'N');
    insert into A values (20, 3, 'N');
    insert into A values (20, 5, 'T');and i have this query for multiple insert into another table
    INSERT INTO avg_marks
               (schoolboy_id,
                avg_mark)
    (SELECT   schoolboy_id,
              (Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4
    FROM     marks
    GROUP BY schoolboy_id);but what i want is to insert into avg_marks only those records where
    ((Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4) > 5so i wanna restrict the insertion in avg_marks.
    if there are results with (avg(decode...)) < 5 those records i wanna be inserted in another table, with the same columns as avg_marks
    how should i code this? what should i use?
    i tried with
    with t as(
    (SELECT   schoolboy_id,
              ((Avg(Decode(mark_type,'T',NULL,mark)) * 3
              + Sum(Decode(mark_type,'T',mark,0)) / 4))>5) MARK
    from MARKS
    INSERT INTO avg_marks
               (schoolboy_id,
                avg_mark) values (t.schoolboy_id, t.MARK)
    ORA-00923: FROM keyword not found where expectedBest regards,
    Edited by: Roger22 on 18.06.2009 11:36
    corrected

    Sorry, overlooked that part of your question:
    Try:
    INSERT INTO avg_marks2
               (schoolboy_id,
                avg_mark)
    (SELECT   schoolboy_id,
              (Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4
    FROM     marks
    GROUP BY schoolboy_id HAVING ((Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4) < 5);Remember to capture those where the avg_mark is equal to 5 too, so you many want:
    INSERT INTO avg_marks2
               (schoolboy_id,
                avg_mark)
    (SELECT   schoolboy_id,
              (Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4
    FROM     marks
    GROUP BY schoolboy_id HAVING ((Avg(Decode(mark_type,'T',NULL,
                                    mark)) * 3 + Sum(Decode(mark_type,'T',mark,
                                                                      0))) / 4) <= 5);

  • F110 - credit note - No pymt possible because items with with a debit balance

    Hi All,
    we have credit note & invoice for same vendor. When doing payment run, below error message is coming.
    No pymt possible because items with with a debit balance.
    when we click on Reallocate & give payment method & house bank, below error mesage come:-
    Enter a payment method for incoming payments
    Message no. FZ010
    Diagnosis
    The balance of the items to be paid requires a payment method for incoming payments. You specified a payment method that is defined for outgoing payments.
    System Response
    The payment method is rejected.
    Procedure
    Enter a payment method for incoming payments.
    Please advise.
    Regards
    Deepak

    Hi Garg,
    In this case, one of the option  is that you can do the partial clearing or residual clearing, lets say Residual clearing, in this case system will clear the original items and open new item 700 as payable.
    You can clear credit memo 1800 against two invoices 1500 and 1000, out of 1000 you need take  300 and for clearing  (1000-300=-700) and -700 will be your payable amount, go to F-44.
    Amount 700 will be new payable amount:
    F110:
    Regards
    Javed

  • How to create a view  with "WITH CLAUSE"

    Hi,
    I have a query with "WITH" CLAUSE , I need to create a view on this query. But I am getting error like
    ORA-32034 : Unsupported sue of WITH clause.
    Please help me...!!
    Please find below my query...!!
    WITH RANGE
             AS (SELECT A.MASTERMACHINEID,
                        a.startdate,
                        a.enddate,
                        a.startdate - (1 / 3) + (lvl) * 1 / 3 SHIFT_ST_DT,
                        a.startdate + (lvl) * 1 / 3 AS SHIFT_END_DT,
                        a.quantity,
                        (LEAST ( enddate, TODATE) - GREATEST ( FROMDATE, startdate)) * 24 TOTAL_HRS,
                        (enddate - startdate) * 24 AVAIL,
                       todate,
                       fromdate
                  FROM OMP A,
                       (SELECT LEVEL lvl
                          FROM (SELECT MAX (enddate - startdate) AS diff FROM OMPWORKORDER)
                        CONNECT BY LEVEL <= (diff) * 3),
                       MASTER B
                 WHERE A.MASTERMACHINEID = B.MASTERMACHINEID
                   AND lvl / 3 <=(enddate - startdate) + 1
                ORDER BY SHIFT_ST_DT)
       SELECT shift_date,
              shift_num,
              shift_hrs,
              DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME),
              8 - DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME) shift_avail_hrs,
              qty,
              total_qty
         FROM (SELECT TRUNC (SHIFT_ST_DT) shift_date,
                      ROW_NUMBER () OVER (PARTITION BY TRUNC (SHIFT_ST_DT) ORDER BY SHIFT_ST_DT) shift_num,
                      8 shift_hrs,
                      (LEAST ( SHIFT_END_DT, TODATE) - GREATEST ( FROMDATE, SHIFT_ST_DT)) * 24
                        SHUT_DWN_TIME,
                      quantity / (avail - TOTAL_HRS) qty,
                      round(((SHIFT_END_DT - SHIFT_ST_DT) * 24 - (LEAST (SHIFT_END_DT, TODATE) - GREATEST (FROMDATE, SHIFT_ST_DT)) * 24)  * QuantiTY / (AVAIL - TOTAL_HRS),2)
                         TOTAL_QTY
                 FROM RANGE A );Regards
    KPR
    Edited by: BluShadow on 17-Mar-2011 09:48
    added {noformat}{noformat} tags for readability                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Try creating view on following query, if it can help you:
    SELECT shift_date,
        shift_num,
        shift_hrs,
        decode(SIGN(shut_dwn_time),     -1,     0,     shut_dwn_time),
        8 -decode(SIGN(shut_dwn_time),     -1,     0,     shut_dwn_time) shift_avail_hrs,
        qty,
        total_qty
    FROM
            SELECT TRUNC(shift_st_dt) shift_date,
                 row_number() over(PARTITION BY TRUNC(shift_st_dt)
             ORDER BY shift_st_dt) shift_num,
                 8 shift_hrs,
                (least(shift_end_dt,      todate) -greatest(fromdate,      shift_st_dt)) *24 shut_dwn_time,
                 quantity /(avail -total_hrs) qty,
                 ROUND(((shift_end_dt -shift_st_dt) *24 -(least(shift_end_dt,      todate) -greatest(fromdate,      shift_st_dt)) *24) *quantity /(avail -total_hrs),      2) total_qty
             FROM
                  SELECT a.mastermachineid,
                     a.startdate,
                     a.enddate,
                     a.startdate -(1 / 3) +(lvl) *1 / 3 shift_st_dt,
                     a.startdate +(lvl) *1 / 3 AS
                 shift_end_dt,
                     a.quantity,
                    (least(enddate,      todate) -greatest(fromdate,      startdate)) *24 total_hrs,
                    (enddate -startdate) *24 avail,
                     todate,
                     fromdate
                 FROM omp a,
                        (SELECT LEVEL lvl
                     FROM
                        (SELECT MAX(enddate -startdate) AS
                        diff
                         FROM ompworkorder)
                    CONNECT BY LEVEL <=(diff) *3),
                     master b
                 WHERE a.mastermachineid = b.mastermachineid
                 AND lvl / 3 <=(enddate -startdate) + 1
                 ORDER BY shift_st_dt
             ) a
    ;Regards,
    Dipali.l

  • Job DIM_OBSERVER is getting canceled with with a runtime error UNCAUGHT_EXCEPTION

    Dear Experts,
    Job DIM_OBSERVER is getting canceled with with a runtime error UNCAUGHT_EXCEPTION. Below are the details of runtime error.
    Category          
    ABAP Programming Error
    Runtime Errors    
    UNCAUGHT_EXCEPTION
    Except.           
    CX_UJA_ADMIN_ERROR
    ABAP Program      
    CL_UJA_MD_QUERY_OPT===========CP
    Application Component  EPM-BPC-NW-ADM
    Date and Time     
    02.08.2014 23:35:46
    I am unable to find related note and solution for the same. any help would be much appreciated.
    Thanks,
    Akbar.

    Hi Akbar,
    I believe this issue is coming up in BPC.
    But could you please provide some more detailed information like when exactly(after performing which step) is this error occurring?
    BR
    Prabhith

  • Hi everyone. I have a problem with with gems in clash of clans.

    Hi everyone.
    I have a problem with with gems in clash of clans.
    I bought sack of gems by 19.99 dollar and they take my money without adding gems to my account. After that I received an email from apple about my purchase (it's very normal email after purchase any thing). I tell you this because my purchase was successful but without adding gems to my account?
    I email apple  support and tells me the will replay within 48 and email clash of clans as well but there is still no response from them?
    This is my second day but still no adding gems or even give my money back?
    That should i do?
    Please I ned you help?

    How did you contact the support?  Use the link below.  Did you buy the Gems on the same device as you are using now? This kind of in-app purchase is not transferable and you will not see the gems on a different device.
      Apple  Support  iTunes Store  Contact

  • Itunes could not connect to your ipod because it is lock with with a passcode

    itunes could not connect to your ipod because it is lock with with a passcode.

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht1808

  • The movie could not be exported because an error occurred. (File already open with with write permis

    The movie could not be exported because an error occurred. (File already open with with write permis
    Never received this error until I updated to newer operating system.

    This sounds vaguely like the Error -49 some people have been getting. It's related to a feature in Time Machine geared towards laptop users who aren't always connected to their Time Machine backup drive.
    This requires using the Terminal app, in your Applications/Utilities folder
    To turn off Time Machine snapshots type in the following command:
    sudo tmutil disablelocal
    The Mac will likely ask for your password, so type it in and hit the return key. The type the word, exit and hit return. Quit Terminal.
    Open iMovie and try doing another export and see if the same error message pops up.

  • I am having trouble connecting to internet with my iphone 5,  Are there any issues with with iphone 5 that would cause this problem?

    I am having trouble connecting to internet with my iphone 5,  Are there any issues with with iphone 5 that would cause this problem?

    Perhaps something in Apple's support article on troubleshooting problems with WiFi connections will help:
    http://support.apple.com/kb/TS1398
    Regards.

  • I am texting with with a friend and an outsider is texting obsenities

    I am imessaging/texting with with a friend and an outsider is texting obsenities.
    It says they are coming from my friend, but they aren't

    You can't block them. It the other person has/had access to the email account used by you friend, he could set up his iDevice to send from that email address.

  • HT5552 I have a problem with with gems in clash of clans.

    Hi everyone.
    I have a problem with with gems in clash of clans.
    I bought sack of gems by 19.99 +4.99 +4.99 dollar and they take my money without adding gems to my account. After that I received an email from apple about my purchase (it's very normal email after purchase any thing). I tell you this because my purchase was successful but without adding gems to my account?
    I email apple support and tells me the will replay within 48 and email clash of clans as well but there is still no response from them?
    This is my second day but still no adding gems or even give my money back?
    That should i do?
    Please I ned you help?
    Please I ned you help?
    Please I ned you help?

    If you haven't had a reply within the 48 hours (you've checked the spam folder on your email account as well as the inbox ?), then try contacting them again (tees are user-to-user forums) : http://reportaproblem.apple.com
    Or you can try contacting them via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Issue with WITH CLAUSE

    Hi,
    I am trying to execute a similar query with With Clause.
    With x as (select sysdate from dual)
    select * from x;
    Its throwing error. My oracle version is 9.2.0.8.0.
    What could be the reason. I came to know that with clause is supported from 9i release 2, why is not working for me.
    Thanks & Regards,
    Subbu S

    Hi,
    You can use WITH in SQL*Plus 8 (connected to an Oracle 9, or higher, database), but the first word of a statement cannot be WITH.
    Instead of
    WITH
    (<sub_query>) ...
    <main_query>
    ;say
    SELECT * FROM (
    WITH
    (<sub_query>) ...
    <main_query>
    );Installing a new version of SQL*Plus isn't very difficult, so you should really do that.
    As Blushadow said, SQL*Plus has to understand what you're saying, or at least understand if a statemnet is a SQL command (to be passed on to the database) or a SQL*Plus command.
    You can't begin a statement with a substitution variable, apparently for the same reason.

  • HT204150 How did my family end up with with others contacts and how do I resolve??

    How did my family end up with with others contacts and how do I resolve??

    Welcome to the Apple community.
    One way this would occur, is if you were to be sharing your iCloud account with other users. Ideally each person should have their own iCloud account.
    I note in another of your threads, that you say you have lost your phone. It's possible that someone has found it and has started to use your iCloud account on it.

Maybe you are looking for

  • Error when activating DataSource  -  Message no. RSO404

    Hi there, does somebody know what could be the problem at this point? I was trying to activate a real time data acquisition data source. Thanks. Regards FedeX

  • Control MSSQL via SAPMMC (CoCreateInstance failed: 80040154)

    Hi, we wanna use the extension Snap-ins for MS SQL Servers in SAPMMC. http://help.sap.com/saphelp_nw70/helpdata/en/63/0f5bcabc3611d2890d0000e8200722/content.htm The Snap-in is currently included to our SAPMMC, but if we run some DB-Task (right klick

  • IWeb and Podcast

    Can someone tell me exactly how to link to my already existing podcast on iTunes on iWeb? Thank you, Rob

  • ML81n reversal of GR entry posted

    Hi Experts, My client created a PO of value EUR100,000 and then made a service entry sheet of 36000. now while doing ML81n he choose PO and did the GR of total value EUR100,000, and then did IR of value EUR 100,000. Now since this was wrong, he rever

  • Can't erase DVD-RW anymore

    My MBP is refusing to erase DVD-RW discs anymore. I'm running 10.5.2 and it last worked (on this specific disc) under 10.5.1. I've tried erasing a couple of discs, using both Disk Utility (quick and complete) and Disco. It appears to work properly, b