Destype and desname parameters don't work properly

Hi,
We have a j2ee webApp that uses oracle reports to run reports. One report in particular could be really long and slow (b/c it contains lots of dynamically generated jpegs) depending on what parameters a user chooses. So for this report, we'd like it to run asynchronously, notify the user when it is finished, and store the pdf on that user's local machine. So our report url looks like this:
http://appServerHostName:portNumber/WebApp/rwservlet?report=someReport.jsp&server=ourServer&destype=LOCALFILE&desname=$TMP/test.pdf&cmdkey=someKey&desformat=pdf&ENGINERESPONSETIMEOUT=50&NOTIFYSUCCESS=[email protected]&NOTIFYFAILURE=[email protected]&background=yes&ourSpecificParameters...
I got the first 2 things working by doing background=yes&notifysuccess=someEmailAddress
However, I can't get the report to be downloaded to the user's machine after it's done running. I've tried:
1) destype=localfile&desname=$TMP/test.pdf
2) destype=localfile&desname=C:\temp\test.pdf and other ways.
I also tried to see if I could store the pdf on our UNIX appServer:
destype=file&desname=$TMP/test.pdf but that didn't work either.
No matter what I set destype to (localfile, cache, or file), the pdf ALWAYS gets stored on our appServer at $ORACLE_HOME/reports/cache and the name of the pdf gets derived from the value of desname plus some 8-digit random numeric string. So in the 1st case above, the generated pdf was:
test25136488.pdf
And in the second case, the C:\temp\ wasn't interpreted as a directory, but as part of the filename so the result was an ugly filename:
C:\temp\test14257852.pdf
This is only a problem for us for this 1 report (and possibly others in the future) b/c our other reports typically run pretty fast so the user can just wait for the pdf output to pop up in their web browser.
Any help on how to get destype and desname working properly (or if you have a better solution for dealing with really time and memory consuming reports) would be much appreciated.
Thanks.

Hello,
The behaviour of DESTYPE=LOCALFILE is not the same for rwclient and the reports servlet :
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/bld_destype.htm
It is not possible to save an ouput returned by an URL automatically with a browser.
If you want something automatic, you have to use a free utility like curl or lynx
http://curl.haxx.se/
http://lynx.isc.org/lynx2.8.5/index.html
or write a small application in java. There are many examples on the web :
http://www.devdaily.com/java/edu/pj/pj010011/index.shtml
Learn how to download the contents of a URL
using Java's URL class
http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
Java Tip 34: POSTing via Java
Learn how to POST data to Web servers in Java
http://www.exampledepot.com/egs/java.net/Post.html?l=rel
e135. Sending a POST Request Using a URL
http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
Reading Directly from a URL
Regards

Similar Messages

  • Why am I facing so many problem after upgrading to ios7, my phone hangs/stuck many times, applications just stop working and close themselves, battery drainage,Facebook and all applications don't work properly. What should I do? They punished me for upgra

    I'm using iPhone 5
    Why am I facing so many problem after upgrading to ios7, my phone hangs/stuck many times, applications just stop working and close themselves, battery drainage,Facebook and all applications don't work properly. What should I do? They punished me for upgrading to ios7. I now hate apple and I'm thing of getting samsung.

    Basic troubleshooting
    Reset
    Restore with backup
    Restore as new ( better )

  • Desktop SMS and Windows Mail don't work properly together

    Hi
    thought I would post there here as been having some issues with my Windows Mail but my desktop computer doesn't suffer same issues and on a Vista forum where I posted my problem a couple of very helpful told me who to try solving the issues.
    One of them suddenly realised I'd said my laptop was a Toshiba and apparently the Desktop SMS and Windows Mail just don't work properly together so the person suggested unless I use it to uninstall it apparently amongst the technically trained its known that these two programs don't like each other and would explain why my desktop doesn't have the issue but laptop does.
    After resetting the Windows Mail (tutorial on a vista site http://www.vistax64.com/tutorials/) Touch wood don't be put off by vistax64 as site does both 32 and 64 and followed Brink's excellent resetting Windows Mail (didn't restore any mail) and then uninstalled Desktop SMS and touch wood no more mail issues as has been giving me problems virtually daily with marking draft emails as read/sent.
    So had to click on forward then delete those bits and finish email to send it and touch wood since doing these two things as soon as send an email to draft or outbox get the number of emails in the brackets whereas before this wouldn't happen unless I closed the program then reopened it.
    Hoping these solutions have fixed my problem and wanted to share it with anybody else who wants to read this thread and would recommend the Vista 64 site as they're all really helpful over there and speak in non technical terms for those of us not technically trained.
    Debbie

    I have marked this as answered as it was more a post to help others who may have experienced the same problem I did and didn't get a reply or just didn't know that this program could be the reason their Windows Mail has issues that can't seem to be resolved any other way apart from ignore them and hope they don't get worse.

  • Brush and pencil tools don't work properly when using a tabley

    When I use the pen or brush tools with a tablet (VisTablet Original), they just make these long diagonal lines. They work fine when I use a mouse and my tablet works in other programs. Is there any way to fix this?

    The OP attached the program files here in LabVIEW board

  • Since installing Firefox 4, I keep getting this message "TypeError: Components.classes[cid] is undefined" when a window should open. Also print and print preview don't work properly anymore.

    Since installing the newest version of Firefox, This message "TypeError: Components.classes[cid] is undefined" appears in a box when a new window should open. Also, what you see in print print preview is not what prints.

    This type of error is usually caused by an add-on you are using that is not compatible. It could be anything from an antivirus link scanner like AVG Safe Search add-on, or McAfee Site Advisor add-on, or something similar. To confirm what add-on is causing this use the procedure in this link:
    https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Try Disabling the last add-on that was installed prior to upgrading to version 5.0
    Check and tell if its working.

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • My eBay pages don't work properly. There are parts missing. The symbols on the My eBay page have gone. The £ paid sign, checkout, feedback, and probably more. I can't list an item as the submit button has disappeared. It all works fine on IE.

    My eBay pages don’t work properly. There are parts missing. The symbols on the My eBay page have gone. The £ paid sign, checkout, feedback, and probably more.
    I can’t list an item, as the submit button has disappeared.
    It all works fine on IE. I’ve uninstalled and reinstalled Firefox, but still the same.
    How can I regain my missing bits please.
    Thanks

    Can you attach a [http://en.wikipedia.org/wiki/Screenshot screenshot]?
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    See http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Had a hard time all of sudden opening photos in PS via Bridge. Updated all my software and now halfway through editing a photo, my actions don't work properly. Should I remove all programs and re-install?

    Had a hard time all of sudden opening photos in PS via Bridge. Updated all my software and now halfway through editing a photo, my actions don't work properly. Should I remove all programs and re-install?

    <moved from Adobe Creative Cloud to Photoshop General Discussion>

  • If I set Firefox as my default web browser, the help links on Adobe Dreamweaver and Flash's welcome screens don't connect to the help pages on Adobe's site. It just links to Firefox's start page and stops. The links work properly if Safari is set to the d

    If I set Firefox as my default web browser, the help links on Adobe Dreamweaver and Flash's welcome screens don't connect to the help pages on Adobe's site. It just links to Firefox's start page and stops. The links work properly if Safari is set to the default browser. Please help.
    == URL of affected sites ==
    http://www.adobe.com

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • TS3297 What do I do if music files purchased/downloaded for the iTunes store don't work properly?

    What do I do if music files purchased/downloaded for the iTunes store don't work properly?

    Buddhabeat...clicking on the "Report a Problem" button next to the song(s) in question, should open a drop-down list menu, that allows you to select the specific issue/area of concern that you are experiecing (or you can select a generic "My problem is not on the list" (or something to that effect). Underneath this drop-down menu box, there should be another message box where you can describe  the issue/problem your having. Below this message box will be a "Submit" button...clicking on that will send your message to the Apple iTunes Store Customer Support Centre (you will see a confirmation message that your message has been sent), as well as receive an email notification from the Support Centre confirming your message has been received, a case number, and that you will receive an email response pertaining to the issue/problem you're having, from the Support Centre asap (usually within 24 hours). That's how it worked for me, anyhow.

  • App store don't work properly

    App store on iphone don't work properly, i cann't install any app, cause the install button is lagging or there is no install button at all, and i can't see any pictures, only the first. on iPad it's work good...iPhone 2)) And sorry for my English

    =_=
    1. i tap for example *Free*
    2. then i need to tap install, but there is no button at all or there is just half of the button....
    3. and images... i can't slide

  • The Proximity sensor don't work properly of ios4

    hello! ive just update to ios 4 on my 3gs, and the problem is that the Proximity sensor don't work properly, when I put the iPhone near my ear it turns off the screen, but when I move it back from my ear it doesn't turn on...
    i tried to restore, and at first the problem was gone, and now it's back...
    is it a bug? I'm pretty sure my sensors are fine..
    tnx!

    I was having the same issue with my new iphone 4 with screen going dark when I lowered it during a call & not having access to the call or controls of the phone. I discovered the problem was the 3G case I was using on my iphone 4 (it happens to fit pretty well). When I removed the case the proximity sensor now seems to function properly. The 3G case must have been interfering with the sensor. I guess I'll be getting a new case. Hope this helps.

  • ID3v2 tags don't work properly on zen microph

    I e-mailed tech support on this one, but it seemed like they spent 2 seconds reading it and then sending a template reply.
    I have a lot of older mp3 files which I only used ID3V2 tags on, because that was the field with most info when right-clicking files in winamp.
    When I try looking for a file which only has id3v2 tags, things don't work properly. Let's say I have this info in the id3v2 tag: "Mr.Artist - Mr. Track - Mr.Album".
    Now let's turn the player on. Artists: "Mr.Artist" shows. When clicking on "Mr.Artist", "Mr.Album" shows. BUT, when clicking on the album, where the hell is "Mr. Track"? I only see blank space! I have to click "all tracks" and scroll my way to "mr. track" to find it.
    This is a highly unneccesary hassle. I've updated the firmware, but that didn't do anything at all. I download a lot of unsigned, free music, which only has id3v2 information in it.
    Id3v tags on the other hand, work just like they should.
    Please help me out on this one. It would be greatly apreciated.Message Edited by Rognalf on 06-09-20070:57 AM
    Message Edited by Rognalf on 06-09-2007:00 AM

    From my own experience it seems that ID3v2 tags seem to cause problems like this with most mp3 players. I'm guessing because it's newer. I've heard that ID3v2 is more flexible but ID3v is more compatible.

  • Google maps don't work properly with ADF

    Hi!
    I have tried to integrate Google maps with ADF http://blogs.oracle.com/middleware/2010/06/integrating_google_maps_with_adf.html. This tutorial works good, but then I insert the same code in real ADF application Google maps don’t work properly, there are problems with zoom buttons, map doesn’t display right region but shows another one (does it with offset) etc.
    Can be this issues connected with ADF Security? Or there are some other things in my project which doesn’t allow JavaScript to work correctly?

    andrejs,
    I just tried the tutorial (works fine) and the tutorial with ADF security (works fine). It seems to be something more specific to your application than anything else.
    John

  • Edge animations don't work properly in DPS.

    I've recently update CC to the latest 2014 version and since then Edge animations don't work properly in DPS (struggle to load and play). Can anyone help?

    Hi Bob,
    What real details do you need? I create a digital magazine using DPS with the occasional Edge oam file inserted to lift a couple of the openers. However recently, they either stutter on loading, don't load or crash the viewer/ipad. I test them in Content viewer.
    Thanks
    Mat

Maybe you are looking for

  • How can I get an iMovie on a DVD to play on a pc

    how can I get an imovie to play on a pc

  • 1000's of mail delivery...notices received ? pls help

    Hello, since few days, I receive 1000's of failed mail delivery....notices mails are sent using new e-mail adresses from my domaine...it's becoming crazy and the guys at our hosting can't seem to fix it. thanks for any advise ))

  • Chinese Text

    I'm having trouble pasting chinese text from an Microsoft Excel document.  How do I make the chinese characters appear in the InDesign document? Excel: InDesign: Best, Daniel

  • Updating TRDIR-UCCHECK for unicode conversion

    Hi, We are currently performing a unicode conversion on our R/3 and BW systems.  There are a lot of programs that DO NOT require changes to be unicode-compliant but don't currently have the TRDIR-UCCHECK flag turned on.  I know that the UCCHECK trans

  • Black Screen when trying to edit

    I have read other threads with this problem and posted, but no answers so thought I better start a new one. Hope I have included enough info so this situation can be fixed easily. When sorting photos by title there are two identical photos showing -