this error is happening in all instances not just production ,I tried
commenting response.close()  , no  difference I still get the error.

Also I tried   wicket way of download still the same 

here the code for wicket download

<code>
new Link<Void>("downloadHelp"){
                        @Override
                        public void onClick() {
                                try{
                                        
                                                                                
IResourceStream resourceStream = new ByteArrayResourceStream(
manualService.getManualBytes(UserContextHolder.getOrgAbbrev(),"user_guide")); 
                                              
getRequestCycle().setRequestTarget( new
ResourceStreamRequestTarget( resourceStream ) { 
                                                public String getFileName( ) { 
                                                  return("User Guide.pdf"); 
                                                } 
                                             }); 

                                }catch (Exception e) {
                                        throw new RuntimeException(e);
                                }       
                        }
                })

</code>

and ByteArrayResourceStream
<code>
public class ByteArrayResourceStream implements IResourceStream {
        
        
        private byte[] content = null; 

        public ByteArrayResourceStream( byte[] content) { 
            this.content = content; 
          } 
        
        
        @Override
        public void close() throws IOException {
                // TODO Auto-generated method stub

        }

        @Override
        public String getContentType() {
                // TODO Auto-generated method stub
                return "application/octet-stream";
        }

        @Override
        public InputStream getInputStream() throws 
ResourceStreamNotFoundException
{
                // TODO Auto-generated method stub
                return(new ByteArrayInputStream( content ));
        }

        @Override
        public Locale getLocale() {
                // TODO Auto-generated method stub
                return null;
        }

        @Override
        public long length() {
                // TODO Auto-generated method stub
                return 0;
        }

        @Override
        public void setLocale(Locale locale) {
                // TODO Auto-generated method stub

        }

        @Override
        public Time lastModifiedTime() {
                // TODO Auto-generated method stub
                return null;
        }

}

</code>
please help us resolve this.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/download-link-in-abstractTab-tp3040311p3043049.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to