-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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] >> >> > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYTx72AAoJEBzwKT+lPKRYIxIQAKWggT8+PROpYtbKplC2Nh/V lyMPG4UXP092siTnu7659+bj/6FI/dvH7IMp0sdmBIH5yi4T3BxVY79KXKsKiJEi IsVZgVf552qGa1rVCXPuEJUFKU8Y+9TApeGBoKJoJ2XXNWmuW3X0zEy/fXUmcF/4 R4O0gO5LRZDoKN9M2+6tv2gKj9urAdMobvclpY3rug9pr5DF9l9B58ZIQpBF27+1 /ZKMBvUo3zLY8NHZgJZubssc6YwyHZnKmZRqLhrm4qamFDWwzALjgvAdgL+RZxJE idufeZRAUL0ddwfsqaS+0husStsT/Hnle6KTFevlVlPbfyh4dnj9Uvl2GCb7hvWv yD17YnNO8wTdFCCgHdhIg/0cZDuxEd8t6klIRkKgVl5lNT4VRds7ZS8BTDig3MaP OYD0mFy4xpvhZQOjBk2Aocx09sP/E8xW80l7TLmNdAcFvxIOc0Fn+kkV1Ni0RRxX 2NSV2V9y3hAF4F4ePZZ1M6qNRmszkSb6dAUe3jXiHP4ClRZO4xqUdG/MPJ0UGro/ d7fyGkt8m3PUT987xwq6scHlBkkcTmcYKgV0XqlwDS54W/mBXPSSXl6fSH+YM+wC BTyB25nfnF0PaWeBpC5jkD1MsaxFomZDzwlAHImFpJEz82Lg2Xl8d3mvl0rSDBNC V0/4wUHWNzONsYxAuss0 =gV6P -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
