JavaScript error After cancel the file download popup window

Hi , I am trying to show Document download links in my ADF page. First time it is working file means i able to download linked document. But when I click again on same link to download page then i see only 0 byte file download and when i open the documen then it's showing
This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.I checked my browser setting and script in enabled...
Below is the ADF page and backing bean code....
<af:panelBox text="Pension FAQ's" id="pb1">
<af:table value="#{bindings.faqsTypeDocumentView1.collectionModel}"
var="row" contentDelivery="immediate" inlineStyle="height:300px;"
binding="#{fileDownloadBean.faqTable}"
rowSelection="single"
rows="#{bindings.faqsTypeDocumentView1.rangeSize}"
emptyText="#{bindings.faqsTypeDocumentView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.faqsTypeDocumentView1.rangeSize}"
rowBandingInterval="0" id="t1">
<af:column
headerText="Document Name"
id="c1">
<af:commandLink text="#{row.DocName}" id="cl1" >
<af:fileDownloadActionListener filename="#{row.DocName}"
contentType="#{row.ContentType}"
method="#{fileDownloadBean.downloadFaq}"/>
</af:commandLink>
</af:column>
</af:table>
</af:panelBox>
public void downloadFaq(FacesContext context,
OutputStream out) throws IOException {
System.out.println(" file download clicked ................");
oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding rwData = (oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)faqTable.getSelectedRowData();
Row row = rwData.getRow();
System.out.println(" Doc Id : "+ row.getAttribute("DocId"));
BlobDomain blob= (BlobDomain)row.getAttribute("Document");
long size= blob.getLength();
try{
InputStream is = blob.getInputStream();
byte[] buffer = new byte[(int)size];
int nread;
while ((nread = is.read(buffer)) != -1)
out.write(buffer, 0, nread);
}catch(IOException ioExp){
context.addMessage(null, new FacesMessage(" Not able to download file."));
ioExp.printStackTrace();
}

If I download the files from database then it do not allow me download same file more than one.. After Downloading the document If i click again to download then i get 0 size file...
If i download the files from server relative path then it works fine...i was able to download same file more than one time..
below is the error on console ....
<JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at fdny.pension.portal.eupsPortal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.
<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.lang.NullPointerException
     at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer.getAutoComplete(FormRenderer.java:1152)
     at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer.encodeBegin(FormRenderer.java:237)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:311)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:734)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
Thanks for helping me here..

Similar Messages

  • TS3212 i saw the file download security window and did enter run, it only gets so far and then a window pops up that says there is a problem with the download and can't install.  what do I do?

    I did see the security download window and entered "run", but it only got so far and a window popped up saying "problem with download, can't proceed".  What to do?

    This happened to me, too. If I remember correctly, I had to set wither iTunes or my computer to download files one at a time instead of all at once. I don't remember how I set it to do this, though. I also remember that I had to delete the files and downloads and restart them all after I did this. Sorry I couldn't help more.

  • I have a laptop PC and am trying to install my product.  After the download is complete I get an error that says "the file archive part of Adobe Photoshop Elements 13 is missing. You need all parts.

    I have a laptop PC and am trying to install my product.  After the download is complete I get an error that says "the file archive part of Adobe Photoshop Elements 13 is missing. You need all parts.
    Please help, I don't know how to do this
    Thanks

    you need both the exe (which you have) and the matching 7z (that you don't have, yet).  dl it:
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Cannot update my iPad2 to 5.1 An unknown error message cancels the download process. Could you please inform me how to fix this issue? Thanks!

    Cannot update my jail broken iPad2 & iPhone 4S to 5.1
    An unknown error message cancels the download process. Could you please inform me how to fix this issue? What is also odd is the fact that the update through iTunes is substantially bigger than downloading it directly OTA, although both methods have been unsuccessful so far...
    Thanks!

    About the only thing you can try is using the Online Internet Recovery system to reinstall Lion on your Mac over the top of the current install. that will reset all system files and should not touch your personal files or the apps you have installed.
    Or iof you have a recent Time Machine backup use that to restore your Mac to that point in time.

  • TS3212 I get the file download window and I push "run", but after it starts to install, I get a window that says that they was a problem with the installation and I need to check with the manufacturer of my software. WHat does that mean?

    I get to the file download window to install itunes and push run, but after it starts to install, it stops and I get an error message that installation can no continue and everything is uninstalled. It tells me to check with my software company to resolve. What does that mean?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL > Add n Remove Programs / highlight ASU and click CHANGE then REPAIR,

  • After years of using iTunes on my G4 suddenly it won't open.  Error message says "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes".  What do I do?s

    After years of using iTunes on my G4 suddenly it won't open.  Error message says "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes".  What do I do?  I have been attempting to move my Library to a newer MacBook Pro.

    The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
    Try the following user tip:
    Empty/corrupt iTunes library after upgrade/crash

  • Hi!pls tell me how can I cancel the files that download,but they can not be downloaded,there maybe a. Problem.

    hi!pls tell me how can I cancel the files that download,but they can not be downloaded,there maybe a. Problem.

    What files, and downloaded from where and by what app?

  • I am downloading the premiere elements 12 file on the adobe page and my error message says the file archive is missing??

    I am downloading the premiere elements 12 file on the adobe page and my error message says the file archive is missing??

    you need the 7z file in addition to the exe
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • HT201442 My iPhone 4s hasnt been used in over 6 months. Everytime I plug it into my computer and iTunes, it says it requires a restore and update. It then comes up with an error after completing the download for the restore and update (takes around 10 min

    My iPhone 4s hasnt been used in over 6 months. Everytime I plug it into my computer and iTunes, it says it requires a restore and update. It then comes up with an error after completing the download for the restore and update (takes around 10 minutes).Someone help me as I'm using the original iPhone 3 at the moment and it won't even take an ios 7 update!

    Just to confirm on the screen of the iPhone do you see the itunes symbol with a cable pointing up to it?. If you do then your iPhone is inrecovery mode and would require you to restore it.
    Now first you want to make sure iTunes is up to date and the cable you are using is not damaged. You also want to make sure iTunes is up to date.
    Now if you get an error message then follow the article below to find out what causes the issue:
    http://support.apple.com/kb/TS3694
    In terms of the iPhone 3G that is definitely not able to update to iOS 7. Only the iPhone 4 and larter can update to iOS 7.

  • Ive brought music and i cant download it the error said that the file is corrupted and it wont download the file

    ive brought music and i cant download it the error said that the file is corrupted and it wont download the file, its never happnd to me before

    Even though you're getting a different error message, try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • After installing the safari update for windows outlook is not opening email links. I have set safari as my default browser but hyperlinks won't open a browser window - I get an error message - "This operation has been canceled due to restrictions in effec

    After installing the safari update for windows, outlook is now not opening email hyperlinks.  I have set safari to be my default browser but outlook won't open it when I click a link.  I get the following message: "This operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator."  Please help.

    Hi mcclausky, you may need to manually remove a policy setting from the registry. You also should scan for malware that might have created this problem.
    This article lists scanning and cleaning tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    To check your Windows registry for policy settings that might affect Firefox or other programs, I suggest consulting a Windows forum or Microsoft's forums. For example:
    * http://windowssecrets.com/forums/
    * [http://answers.microsoft.com/en-us/windows/forum/windows_8-system/this-operation-has-been-cancelled-due-to/9677848e-072d-4206-87f4-9da9284d6151 This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator. - Microsoft Community]
    * [http://answers.microsoft.com/en-us/windows/forum/windows_xp-security/restrictions-this-operation-has-been-cancelled-due/8af1d0cd-8fbd-4223-9396-86d7497bb275 Restrictions. This operation has been cancelled due to to restrictions in effect on this computer.Please contact your system administrator. - Microsoft Community]

  • After editing a photo, I sometimes get an error message that the "File is empty".  Can revert to original and start again, but file disappears after editing.

    So frustrating!  I open the photo.  Edit by cropping, adjusting color, etc.  It's perfect.  I click DONE and move on to the next.  When I come back, the first photo is gone.  I can see it in the album but cannot open it.  When I look at the file information, it shows zero KB.  If I move it to the desktop and try to open it, the error message says the file is empty.  I can revert to original and there it is.  Edit again, and again it disappears.  What am I doing wrong?  I am using iPhoto 09

    You shooting with a Nikon? We've seen a few examples of this bug with Nikons on 09 and 10.6, with no solution except to upgrade.
    Regards
    TD

  • The file download window keep coming up wheneven i...

    Wheneven i opened the skype, it will come out a file download asking me to open or save the index.html or chatwidget.html and recently skype require me to change password so after that i cant log in anymore because everytime i go inside if i click cancel in the file download window, the skype will go blank, or if opened the file then the log in page picture will appear in google chrome website which i still cant find a way to log in. Its not only Skype that i got this problem, even i opened other apps, the file download window will keep coming up too. 
    Solved!
    Go to Solution.
    Attachments:
    skype.png ‏148 KB

    What is the version of Internet Explorer installed on your computer?
    In Internet Explorer go to Help -> About Internet Explorer.
    Skype login screen is created using the index.html file, which is accessed using Internet Explorer components installed on your computer.
    P.S. Please, don’t say that you are not using Internet Explorer. This is irrelevant. Skype depends on Internet Explorer.

  • I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    I am unable to open a project that I have worked on and saved.  I get an error message that the file is damaged and cannot be opened.

    Leslie Tanaka
    Travel and detours have kept me from following up sooner. If the problem that you wrote about still persists.....
    Let us go back over that Adobe document regarding troubleshooting damaged projects.
    3. Delete the Application Preferences
    Where you able to follow that path and delete the Adobe Premiere Elements Prefs file at the end of the path? And, after you did, did the saved/closed programs still refuse to open? If you could not carry out this procedure, what were the limiting factors that kept you from do
    7. Test to see if individual media files are causing the problem.
    That is an important one. How far did you get into following the instructions given in the document? If you could not complete the test, what was the major block that prevented you from doing so?
    I want to make sure that we have gone through everything in that document and ruled all factors there in or out. If it was a matter of you not understanding the instructions, I am hoping that the above will channel you questions to me so that I can clarify anything that you did not understand in the Adobe document instructions.
    I do not recall if I asked previously. Even if you cannot open all your saved/closed projects, can you still open a new project and save/close it? Maybe even reopen it?
    Please review and consider.
    Thank you.
    ATR

  • My iTunes won't open on my laptop. Error message says The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Help Please!

    My iTunes won't open on my laptop. Error message says The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Help Please!

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

Maybe you are looking for