Trouble with wpg_docload.download_file - Donwload Files - Oracle Web App

i appreciate too much for everyone who can help me.
I've got a ERROR with my Oracle Web App. When i type the URL "http://mydomain.com/pls/docs" in my browser, got this error:
--------------------------------BROWSER-----------------------------------------
Estado de Descarga
Descarga del archivo falló. ORA-01403: no data found. ORA-01403: no data found
And the code that generates this error is:
PROCEDURE LEP_DESCARGA_ARCHIVO IS
  lv_FilePath VARCHAR2(32000); lv_FileName VARCHAR2(32000);
BEGIN
lv_FilePath := SUBSTR(owa_util.get_cgi_env('PATH_INFO'),2);
SELECT name INTO lv_FileName FROM table_file WHERE UPPER(name) like UPPER(lv_FilePath); wpg_docload.download_file(lv_FileName);
EXCEPTION
WHEN OTHERS THEN
HTP.htmlopen; HTP.headopen; HTP.title('Archivo Descargado'); HTP.headclose; HTP.bodyopen; HTP.header(1, 'Estado de Descarga'); HTP.print('Descarga del archivo ' || lv_filePath || ' falló.'); HTP.print(SQLERRM); HTP.bodyclose; HTP.htmlclose;
END LEP_DESCARGA_ARCHIVO;
The problem is that Error shows too much information in the Error. LEP_DESCARGA_ARCHIVO is important for another process in my site. Where do i have to configure in Oracle in order to this Error does not appear??? I mean i do not want to get this Error if i type the URL:
https://mydomain.com/pls/docs/servlets/index.html Error: Descarga del archivo servlets/index.html falló. ORA-01403: no data found
h t t p s : / / m y d o m a i n . c o m / p l s / d o c s / Error: Descarga del archivo falló. ORA-01403: no data found
h t t p s : / / m y d o m a i n . c o m / p l s /d o c s / s e r v l e t s/ Error: Descarga del archivo servlets/ falló. ORA-01403: no data found
Thanks for people who can help me!!!

Hello Peter,
I'm not sure whether this is a listener related problem, but we should try to find out.
I have examples where a temporary blob is created first before the content is passed to WPG_DOCLOAD, which produce a working download on the APEX Listener.
So I don't think the problem concerns WPG_DOCLOAD but the way you handle your blob, or to be precise, your BFILE.
What comes to my mind first: Don't you need to open that file? When I use DMBS_LOB.LOADBLOBFROMFILE, I guess this is done somewhere inside that routine, but for other kinds of bfile access, there is DBMS_LOB.FILEOPEN.
When thinking of that part: If I'm not completely wrong, there is a difference in which db user is acutally executing, or in other words, on whose behalf your code is executed, when you create a temporary blob first and forward it to wpg_docload or have wpg_docload do the file access. The Null Pointer Exception may result from either the file not being existent or not accessible for the db user executing the code. In case of wpg_docload accessing the file, perhaps the user you configured your APEX Listener to connect with needs additional grants for that file access.
Just a thought. It should be easy to test the same scenario with using a temporary file on APEX Listener to see if that works and start debugging from there.
-Udo

Similar Messages

  • Zip BLOB and Download with WPG_DOCLOAD.DOWNLOAD_FILE();

    I am working with APEX 4.1
    Within the application being developed, it is a requirement to be able to select multiple rows within an interactive report, then click a button to download these as a ZIP file.
    Currently, a field is populated that contains a colon-delimited list of ID values to determine which rows to download, like ":17:127:"
    Upon submitting the page files are chosen and zipped through a process, then downloaded through the same process.
    Here is the PL/SQL process for zip and download:
    declare
      g_zipped_blob blob;
      b_dl_file BLOB;
      v_filename VarChar(1000);
    begin
    for rec in ( select FILE_ID, FILENAME, FILE_BLOB
    from DD_FILES
    where instr(:P9_FILE_ID, ':' || FILE_ID || ':') > 0)
    LOOP
      zip_blobs.add1file( g_zipped_blob, rec.FILENAME, rec.FILE_BLOB );
    end loop;
      zip_blobs.finish_zip( g_zipped_blob );
      select sysdate into v_filename from dual;
      owa_util.mime_header( 'application/octet', false );
      htp.p('Content-length: ' || dbms_lob.getlength(g_zipped_blob));
      htp.p('Content-Disposition:  attachment; filename="'|| v_filename ||'.zip"');          
      owa_util.http_header_close;
      wpg_docload.download_file(g_zipped_blob);
    --dbms_lob.freetemporary( g_zipped_blob);
    end;add1file and finish_zip are stored procedures.
    Currently upon pressing the button, nothing happens(but the page is submitted, nothing seems to happen), although when testing the process, it returns what appears to be a text version of the BLOB (within the SQL commands section of the SQL workshop).
    Any reasons why this would be happening?
    Edited by: 922142 on 21-Mar-2012 06:20

    Perhaps this should be in another forum area? Am I mistaken?

  • Big trouble with importing my .MOV files into any editing software.

    Hi All
    I am new to the forum and i would like to ask you a really big question that has been bugging me for days now.
    I have a Cannon 700D and i have CS 4 pro and Cyberlink Powerdirector 12. Both worked fine with any other video file, but when i tried to import a file originating from my cannon 700D camera both of the softwares stated that the files were either corrupted or not supported. The error message also stated that i should call the video provider to ask for an alternative video footage (which is me ). I tried having quick time installed so that it could install various other kinds of CODEC so that it could read and I have also tried switching the camera settings from PAL to NSTC. I would be really glad if anybody could give me an explanation and a detailed explanaiton on how to fix my problem. Thank you very much in advance.
    Pepe

    Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    https://forums.adobe.com/thread/1070933 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • Where to put persistent (writeable) files in web apps?

    I want to persist a small amount of data from a web-app, saving when the app is stopped and reloading when started.
    This will be done from a ContextListener, and I plan simply to serialise a small table when the context is destroyed.
    The question is, where should I put the file? Obviously I could simply specify an absolute directory, probably via an environmental entry (so as to specify it in the server, since it would be dependant on server configuration). I'd far rather have something more automatic.
    I suppose I could put it somewhere under WEB-INF, but that doesn't seem right, the web-app directory should be read-only.
    Servlet engines typically have a writable working directory where they keep compiled JSPs and persisted sessions, but is there a standard way of getting to it?

    Well, now I'm not so sure anymore. But I have some
    checkboxes I want to share among different
    applications. So why can you share classes and jar
    files and can not share JSP's?Sounds like more trouble than it's worth. Disk space is cheap. I'd deploy them with each app.
    The only thing that would make me hesitate is the DRY principle. In that case, I might have "common" JSPs in my version control. I'd have the Ant script from each Web app check out the same "common" JSPs and build them into WARs. That would keep those JSPs common and not violate DRY. JMO - MOD

  • SSO with OID and WLS 8.1 Web App

    Hi,
    I have a web application deployed on WLS 8.1.
    I have set up Oracle Custom Authenticator.
    Some of my users are stored in Oracle LDAP. I want that if user logs in Web Application deployed on WLS 8.1 and clicks on one link (in my web app) which refers him to go to OID interface, in OID interface he should not be authenticated again (as he is already authenticated by WLS). Please let me know how to resolve this issue with Oracle SSO.
    Any help in this regard highly appreciated.
    Thanks
    -Deepak

    Did you find a solution for this problem?
    I have somthing very similar going on where I am currently working.
    Thanks!
    Andy.
    "Simple Guy" <[email protected]> wrote:
    >
    Hi,
    I've a setup with iplanet 6.x webserver using the wls 7.0 sp2 proxy plugin
    to
    route requests to the clustered app server instances (2 of them) that
    are in wls
    6.1 sp3.
    The issue is, I'm noticing that the session is not sticky and is getting
    routed
    onto the other app server instance. The error that I see in the wlproxy.log
    is
    as follows:
    *******Exception type [PROTOCOL_ERROR] raised
    at line 654 of URL.cpp
    Thu Nov 13 11:30:08 2003 failure on sendRequest() w/ recycled connection
    to Instance1:7001, numfailures=1
    Thu Nov 13 11:30:08 2003 Marking Instance1:7001 as bad
    Thu Nov 13 11:30:08 2003 got exception in sendRequest phase:
    PROTOCOL_ERROR [line 654 of URL.cpp]: unexpected EOF
    reading HTTP status at line 1010
    Thu Nov 13 11:30:08 2003 Failing over after sendRequest exception
    Thu Nov 13 11:30:08 2003 attempt #1 out of a max of 5
    Has anyone seen this issue? Can anyone explain why this issue is occuring.?
    Thanks.

  • Oracle Web App Server performance problems

    I am evaluating Oracle Web Application Server 3.0 and while
    everything seems to work ok, the performance is noticeably
    slower than Oracle Web Server 1.0 or 2.0. I have narrowed the
    problem down to the access/execution time to a database
    package. In other words, the PL/SQL code I have built does not
    contain any Oracle SQL statements. The package simply builds a
    small web page. If I had to guess, I would say it appears to be
    related to either a log-in to Oracle (which does not take that
    long in a ProC program) or excessive child process creation
    overhead (other programs like Apache handle this just fine). I
    created the package in the www_user account, set a virtual path
    of /test/owa/ to access it and while the page displays
    correctly, it takes about 12 to 13 seconds to do so.
    I'm running Linux on a Dell 400 MHz Pentium II with 1 Gb of
    ram. I have tried changing the cartridge configuration so that
    it starts with 2 processes instead of the default 0. This
    helped some after the first execution of the package (response
    time went from 12 seconds down to about 7). I am running it
    without security on the virtual path (I thought maybe that was
    slowing things down). I tried setting the user sessions to true
    (default was false) and setting a timeout of 1200. None of
    these things helped (nor did they make it any worse).
    On an old HP system (much slower SQLPlus response time than this
    Dell system), web pages fly at a pretty good speed using PL/SQL
    and version 2 of the web server. Except for the actual database
    query time to perform SQL queries, pages display in subsecond
    time frames; not 12 seconds.
    Please give me some idea how to improve the performance.
    Obviously, something is different with 3.0 than the older wrb
    and server.
    Thanks,
    Bob
    [email protected]
    null

    I am evaluating Oracle Web Application Server 3.0 and while
    everything seems to work ok, the performance is noticeably
    slower than Oracle Web Server 1.0 or 2.0. I have narrowed the
    problem down to the access/execution time to a database
    package. In other words, the PL/SQL code I have built does not
    contain any Oracle SQL statements. The package simply builds a
    small web page. If I had to guess, I would say it appears to be
    related to either a log-in to Oracle (which does not take that
    long in a ProC program) or excessive child process creation
    overhead (other programs like Apache handle this just fine). I
    created the package in the www_user account, set a virtual path
    of /test/owa/ to access it and while the page displays
    correctly, it takes about 12 to 13 seconds to do so.
    I'm running Linux on a Dell 400 MHz Pentium II with 1 Gb of
    ram. I have tried changing the cartridge configuration so that
    it starts with 2 processes instead of the default 0. This
    helped some after the first execution of the package (response
    time went from 12 seconds down to about 7). I am running it
    without security on the virtual path (I thought maybe that was
    slowing things down). I tried setting the user sessions to true
    (default was false) and setting a timeout of 1200. None of
    these things helped (nor did they make it any worse).
    On an old HP system (much slower SQLPlus response time than this
    Dell system), web pages fly at a pretty good speed using PL/SQL
    and version 2 of the web server. Except for the actual database
    query time to perform SQL queries, pages display in subsecond
    time frames; not 12 seconds.
    Please give me some idea how to improve the performance.
    Obviously, something is different with 3.0 than the older wrb
    and server.
    Thanks,
    Bob
    [email protected]
    null

  • Seperate Log file for web app

    I am running a web app under WS 6.1 and uses the java logging.
    I i turn the logging to "finest" on the virtual server, i get my app finest and the vertual server finest in the same file!
    What i need is to seperate these 2 in two files.
    or is it possible to say that for the package com.foo.bar i wanted to be finest, but the rest i wanted to be warnning?
    Thanks,

    Kumar,
    I don't know the answer to your "separate log per web-app" question (sorry :-(, but regarding your property changes -- if you are referring to the XML configuration files (like "orion-web.xml"), then they do not get overwritten when you redeploy. You must either edit them manually, or delete all the files/directories created when you first deployed your application before redeploying -- that way, they will be created again when you deploy.
    By the way, why are you so reluctant to upgrade to the latest version of OC4J?
    Hope this has helped you.
    Good Luck,
    Avi.

  • Trouble with downloading os x mountain lion from app store

    Hi! I purchased the new os x mountain lion from app store but I have trouble with downloading it. Its starts the download but constantly stops after few mbs and says an error has occured, check you internet connection. My internet connection is fine, everything else works even downloading other apps. Has anyone an idea how to fix the problem?

    Firewalls and anti-virus software can interfer with iTunes/Mac App Store downloads.

  • Trouble With Links to Network Files Within Online PDF

    I posted this at the end of someone else's thread who had a similar problem but it may have gotten lost in the shuffle. Either that or no one has an answer. Here goes...
    I create a Word document that contains links to network files (tested and working) and convert the document to a PDF. The links still function in the PDF when I test them. However, when someone opens the document from our intranet, the file:/// is replaced with some form of a relative link, either to a users C: drive or to an http:// directory. If I then go into the PDF and change the link action from Open File to Open Web Link and provide the full file:/// path, everything works as intended. This really wouldnt be a big deal if I was the one maintaining the document or if it were an occasional thing. The problem is that updating or adding a link to the document means correcting the existing links all over again. This is very cumbersome for the user who maintains the document.
    I'm using Acrobat 8 Professional. Any ideas?

    I'm having a similiar issue with cross platform (Vista to Mac OS X 10.5) file linking. We currently store indesign files on a folder in a shared drive (the mac unix path to the drive is /Volumes/SharedDrive and the vista path is Z:\) and link assets in the document to another folder stored on the shared drive. Note that all linked assets are not stored in the same location on the shared drive, for instance a linked image could be deep in the folder structure (/Volumes/SharedDrive/Marketing/Images/Fall09/example.jpg).
    The Vista computer references files differently than the mac on the shared drive, it seems to mount the network drive directly on the root level rather than in the /Volumes folder. I've tried to symlink the graphics folder (the one containing all the linked assets) to the root level of the hard drive (ln -s /Volumes/SharedDrive/Graphics /Graphics) but when we tried relinking the assets InDesign figured out it was a symlink and resolved the path to the absolute path. Is there some sort of configuration option in mac to mount this windows drive (it is on SBS Windows 2003) in a way that won't cause linking conflicts between mac and pc? Any thoughts are much appreciated!
    Thank you for all your help!

  • Trouble with MSSQL Reporting Services and Oracle: PLS-00553: character set

    First off, Oracle version is 8.1.7.4.0. SQL is 64bit 2005 on Windows 2003 with all the latest patches. We’re using the Oracle 10.2 client on the SQL box.
    A few months ago queries against Oracle stopped working on our MSSQL reporting services server - after a service pack on this same system.
    I ended up having to grant permissions on Oracle directories to eliminate the first error and then renamed the NLS_LANG registry entry (effectively deleting it) to get rid of the second error.
    The second error was: ORA-12705: Cannot access NLS data files or invalid environment specified. I don’t have docs on the first error, but it was a reference to a file access problem. Looking at this error again makes me think that I still have some file access problems.
    The old value for the NLS_LANG registry key was: AMERICAN_AMERICA.WE8MSWIN1252
    Everything has been working fine since then.
    Now we are moving some new reports into production which use Oracle stored procedures and they are getting this error:
    --- End of inner exception stack trace ---
    w3wp!processing!8!7/27/2009-09:26:09:: e ERROR: An exception has occurred in data source 'CSUD3_RPTAPL'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'MYDATASET'. ---> System.Data.OracleClient.OracleException: ORA-06550: line 1, column 57:
    PLS-00553: character set name is not recognized
    ORA-06550: line 0, column 0:
    PL/SQL: Compilation unit analysis terminated
    I've created a test package as below, which has also gotten the same error.
    create or replace
    PACKAGE BODY SQLTEST AS
    PROCEDURE OPEN_CURSOR (ResultCursor OUT T_CURSOR,
    SQLTESTIN IN VARCHAR
    AS
    l_query varchar2(3000);
    BEGIN
    l_query := 'Hi there';
    open ResultCursor for select l_query "field1" from dual;
    END OPEN_CURSOR;
    END SQLTEST;
    I tried setting the NLS_Lang value back to its old value, but it did not fix this problem – and made all the regular oracle queries break again.
    From what I've read, the client should be using the database default if the charset is not specified on the client.
    Can anyone advise on what the problem might be?
    Thanks!
    Sam Greene

    With all due respects I can not think of a worse reporting tool than MS Reporting Services.
    Give serious consideration to getting a real report writing tool from Oracle or SAP (Business Objects / Crystal).
    Reporting Services is one nightmare after another.

  • Trouble with Applescript Reading a File

    Hello everyone,
    I am having trouble getting applescript to read a file. Here is my script:
    on open theItems
        tell application "Finder" to set theItems to (sort theItems by name)
        set pastContentsOfI to "DONTDELETETHISTIME"
        set pastPathOfI to "DONTDELETETHISTIME"
        repeat with itemI in theItems
            set itemI to POSIX file itemI
            open for access itemI
            set iContents to (read itemI)
            close access itemI
            if (iContents = pastContentsOfI) and (pastPathOfI ≠ "DONTDELETETHISTIME") then
                do shell script "rm " & (POSIX file pastPathOfI)
            end if
            set iContents to pastContentsOfI
            set pastPathOfI to itemI
        end repeat
    end open
    It is a script that checks for consecutive duplicates in a group of files. However, when I drop a group of files into it, I get this:
    Any ideas? ("106.png" is the first file in my group of items)
    Thanks so much!
    -Elijah

    The whole script would look like this, unless you wanted to streamline it:
    on open theItems
              tell application "Finder"
                        set theItems to (sort theItems by name)
                        repeat with itemI in theItems
                                  set contents of itemI to itemI as alias
                        end repeat
              end tell
              set pastContentsOfI to "DONTDELETETHISTIME"
              set pastPathOfI to "DONTDELETETHISTIME"
              repeat with itemI in theItems
                        set iContents to (read itemI)
                        if (iContents = pastContentsOfI) and (pastPathOfI ≠ "DONTDELETETHISTIME") then
      do shell script "rm " & (POSIX file pastPathOfI)
                        end if
                        set iContents to pastContentsOfI
                        set pastPathOfI to itemI
              end repeat
    end open
    The first little repeat loop that I added is a bit on the tricky side.  what's happening is this:
    The sort command returns a list of Finder object references (they look like File X of folder Y of Disk Z). Only the Finder and System Events know what to do with these; outside of Finder and SE tell blocks they throw errors.  the trick is to convert these to alias format which is recognized by applescript everywhere.
    the repeat loop runs through the theItems list.  itemI is a reference to an item in the list (basically a pointer, if you know C). the contents of itemI to itemI as alias line first converts the value of itemI to alias format, then set the thing itemI points to (the actual item in the list) to that new value.
    What comes out the far end is a list of aliases understandable by other parts of the script.

  • Updates for PhotoshopCC and Lightroom having trouble with downloads. error , corupt files under learn more. First time in the year that I have Photoshop CC

    Download trouble today Got the message for new updates for Lightroom and Photoshop CC.   Download fails, under learn more ,, corupt files  Fist time this hapened in a year Whats the remedy?

    There's a number of potential problems here, and they may not necessarily be at your end.
    First of all, it should be clear that CMYK is not so much a generic "image mode" as it is a description of specific press conditions. If you produce final CMYK, you must have the right profile. Don't use Image > Mode, use Convert to Profile.
    Given that, I would question anyone who doesn't accept Adobe RGB photographs for a magazine article, because it implies a process that isn't properly color managed and generally not up to date. A standard workflow today would use InDesign, where images are normally placed in their original RGB space whatever that is. Then the conversion to final output CMYK is done as the last step, when producing a press-ready PDF from InDesign.
    It helps tremendously if you know that final CMYK, because then you can proof to that so your file survives the CMYK conversion with the least possible damage (we're talking gamut clipping here; not general color shifts). But it's not absolutely required, which is why this workflow is relaitively safe.
    Third, CMYK jpeg is in itself risky, because many jpeg decoders (in some software) don't have proper CMYK support. The result can be weird colors. This could well be the problem here, because it sounds as if your client uses a non-standard workflow.
    So what to do? I would send two files. One sRGB as reference, which is guaranteed to come through correctly. Then find a way to send TIFF for the CMYK version if they insist, or ask them to try opening it in different software. Of course you should have a calibrated and profiled display, but I agree that's probably not the immediate problem here. There's no particular reason a CMYK file should come back with twisted colors if it's opened and processed in properly color managed software.

  • Trouble with audio in streaming files.

    Hi, I'm having a tough time getting the audio in both Safari (2.0.2) and Firefox (1.5) to work. Everytime I try to play a media file the file loads, and if it's audio, doesn't play (in the case of Windows Media Player (9.0.0) the play button and all others go dar except for the stop button) and if it's video, the video will play but there will be no audio for it. I've tried going into my speaker system preferences and it doesn't seem to help.
    For the record my Quciktime is 7.0.3 and is the normal (not Pro) Quicktime, and my computer is brand new, so I'm at a loss on what to do with this, how can I get my audiofiles to work properly without wasting time downloading every single file?

    On all web sites, I've tried it on amazon.com, i forgot the URL of another, but it was like yourvid or yourtube, it viewed video files in WMP. Also, on Myspace.com, the streaming music on people's blog sites don't work either (I think it's a javascript, but im not sure).

  • Trouble with locked/read only files and folders

    After reinstalling OSX I have an external harddrive with locked files and folders. I´ve heard that it is possible to unlock all files and folders from Terminal (it will take hours to unlock manually). Anyone who knows a script that will set read and write access to all files and folders on a hard drive?

    For locked HDs and volumes:
    http://discussions.apple.com/thread.jspa?threadID=2329689
    Also, see Niel's guide.

  • Having trouble with DV NTSC export file for Pro Tools.

    Pro Tools only takes NTSC format video. For some reason every single DV NTSC file that has been exported freezes in a certain spot and in other portions tends to flicker. I'm not so sure as to why that is. I tried exporting it through the QuickTime Movie option which always works, but gives me the previously stated problems. I tried exporting it through the QuickTime Conversion many times as well; the problem with doing it with this manner is that the video is just white, although the sound still works. I've rendered everything many times. At this point I was thinking about reimporting the raw footage from the P2 cards.
    Has anyone encountered this problem? Or have any suggestions? At this point I'm not sure what's wrong.

    have added this code to over come runtime error
    <script type="text/javascript" src="linediv.js"></script>

Maybe you are looking for