-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Raviraj,
On 12/12/16 11:50 PM, RAVIRAJ SHAH wrote: > Do you mean logs at the time of pdf download request I mean the HTTP protocol trace. Something like this: Request: GET /path/to/pdf/download Host: myserver.example.com Accept: application/pdf Connection: keep-alive Response: 200 Ok Content-Type: application/pdf Content-Length: 234554 [the contents of the file] > Or anything else like protocol trace method If you use FireBug, Chrome dev tools, etc. then copy/paste will be fine too. > Can you sharechow to have tht I'm not sure what you mean, here. - -chris > On Tue, Dec 13, 2016, 03:34 Christopher Schultz < > [email protected]> wrote: > > Raviraj, > > On 12/10/16 12:21 AM, RAVIRAJ SHAH wrote: >>>> We develop jrxml file using jasper Studio and then use java >>>> code to display that jrxml file which opens in new browser >>>> tab and by right click on that file we are able to download >>>> this as pdf file in tomacat 8.0.14 but some how in Tomcat >>>> 8.0.39 the same code doesn't works, it does not allows >>>> files to download as pdf from browser. Instead it shows pdf >>>> file type as all files and on downloading it shows failed >>>> network error. > > Please take a protocol-trace of the HTTP response when you request > the PDF and post it here. > > -chris > >>>> On Fri, Dec 9, 2016, 23:23 Christopher Schultz >>>> <[email protected]> wrote: >>>> >>>> Raviraj, >>>> >>>> On 12/9/16 11:24 AM, RAVIRAJ SHAH wrote: >>>>>>> I am using jasper reports the library using jasper >>>>>>> report development studio >>>> >>>> No, you're not. The development studio is a GUI for building >>>> reports. >>>> >>>> - From the Tomcat perspective, you are just using >>>> JasperReports library. >>>> >>>>>>> I mean to say i can see pdf file on browser but when i >>>>>>> try to save that pdf >>>> >>>> So the PDF displays correctly in the browser? That sounds >>>> like it's working as expected. >>>> >>>>>>> i dont see file type as adobe acrobat file and saving >>>>>>> pdf giving error >>>> >>>> What does the "file type" show up as instead of PDF? >>>> >>>> When you "save" (how?) what error do you get? >>>> >>>>>>> I am generating pdf file on runtime i am not storing >>>>>>> file physically >>>> >>>> So are you streaming the file back to the client? That's not >>>> a feature of JasperReports, so you must have written a >>>> servlet wrapper that does this for you. What does the code >>>> look like? >>>> >>>>>>> One more thing same functionality working very fine >>>>>>> with tomcat 8.0.14 >>>> >>>> Understood. I suspect the problem is with your code; the >>>> Tomcat upgrade has merely revealed the problem. >>>> >>>> -chris >>>>> >>>>> ------------------------------------------------------------------ - --- >>>>> >>>>> > >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: >>>>> [email protected] >>>>> >>>>> >>>> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYUAyHAAoJEBzwKT+lPKRYsgkP/iVi0rQ+L4Ea4cKZsMDUh0ns cxdqFzjsl+xiAsJCTW5xkjnuqKkreTXr8QkcwCGKKoexkL0Nbs7cal02DlWfWl3A FbyaXzEXIMj1/1uw+rw6Su899eQDN8jxsSNkxgeQb/n1gTNON1UJSbV4wtX2RIlb s5brU2eL/zVHBGEYqpHFqalBxfj+KDsog8UnTvEdcBBwLj3ey7FuGBagnhpsuwED M/fqVlXAIMgYiymYZG/ze0UmVP60pCz/p9bS4BGJcFFvu33gvBBPiObnhSPZBz/e i3OW6aW0mie1SFrZ7Btn08iv6rVfsoSJiWSOFj35/NyRLtShR+IJc3WQ+7P880mR O7T84pkMgpaGoCCwEOa0P8thCzqRHdHqnWAR3JY9MqVyAeJDDLX+RSwyKnuXKtJi jU2Jsdg05REhuViH3nzg64GxSvTEmd5S/Nxhl2VMl00ScenTjQN9R6brRIm79jx2 zgpQjSjlboyXAS4KcdU6dFCrLKjfsXM79+uuu06uYR09WnoLYb1MAzeh2PKV7TtG nohZ4oyZbrzPCd/A3YzzhsI5H47GFrmAs4HXwxGiZ0nUkx2V/FJP/B/gy4PSPTii o+UC2qIKgw+LqV8I7TP1O8JUCkMMcn5U+2bkapZaa3mPPtz/vQA5pR3JpgiiCrX1 A7lFzWrO81K8x2ewoqsX =l51H -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
