« Return to Thread: PDF Plugin Upgrade to 0.4 error
I have nothing on test.gsp:
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sample title</title>
</head>
<body>
<h1>Sample line</h1>
<p>TEST</p>
<strong>Hallo</strong>
</body>
</html>
And I use this Link to create a PDF:
<g:pdfLink method="POST" url="/test/PDF.gsp"
filename="test.pdf">PDF</g:pdfLink>
>> 2009-06-18 <http://localhost:8080/test/test.gsp%0A2009-06-18>
grailsOnUbuntu wrote:
>
> What kind of stuff is in your test.gsp and what method were you trying to
> use for the PDF - the pdf link, pdf form etc, method = post or method =
> get?
> that sort of thing.
>
> That info should give me some more ideas on how to help.
>
> also, you could try the latest version of the plugin from GitHub. I just
> haven't had time to move that over to the Grails repos. I know that fixed
> a
> bug that I was having with image URL's.
>
> -Aaron
>
> On Thu, Jun 18, 2009 at 8:52 AM, ldittmar <ldittmar.privat@...>
> wrote:
>
>>
>> I get this error on my application (grails 1.1.1)
>>
>> BaseUri is http://localhost:8080/test
>> Fetching url http://localhost:8080/test/test.gsp
-->> 15:49:40,449
>> [12237125@qtp0-7] ERROR service.PdfService -
>> org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource
>> (using TRaX transformer). java.io.IOException: Stream closed
>> there was a problem with PDF generation java.lang.NullPointerException:
>> Cannot get property 'length' on null object
>> FEHLER: 'Stream closed'
>>
>> What should I do?
>>
>>
>>
>> grailsOnUbuntu wrote:
>> >
>> > The demo stuff is kinda sketchy in 1.1, because the views don't show
>> up
>> > in
>> > the app after installing the plugin. and therefore I don't have good
>> > testing
>> > of the plugin as installed in a 1.1 app. I will look into this next
>> week
>> > as
>> > soon as I get time.
>> >
>> > it should work for jSecurity (or any other security?) if you use the
>> > pdfForm
>> > and do method="post" which also requires that you use either
>> > template="something" or controller="something" action="someAction".
>> Tags
>> > which use a url still don't work with secured views.
>> >
>> >
>> >
>> > On Thu, Apr 30, 2009 at 9:40 PM, Marc Dworkin <marcvsxiv@...>
>> wrote:
>> >
>> >> Hi,
>> >>
>> >> I upgraded my PDF plugin to 0.4, which broke the included Simple PDF
>> >> Demo.
>> >>
>> >> Selecting the link for
>> >>
>> http://localhost:8080/MyApp/pdf/demo2?url=/pdf/demo2&filename=document.pdf
>> >>
>> >> Returns an html page and the following logs
>> >>
>> >> --------------------------
>> >> BaseUri is http://localhost:8080/MyApp
>> >> Fetching url http://localhost:8080/MyApp/pdf/demo2
>> >> 2009-04-30
>> >> <http://localhost:8080/MyApp/pdf/demo2%0A2009-04-30>22:30:22,311
>> >> [7832332@qtp0-4]
>> >> ERROR service.PdfService - org.xhtmlrenderer.util.XRRuntimeException:
>> >> Can't
>> >> load the XML resource (using TRaX transformer).
>> >> org.xml.sax.SAXParseException: The entity name must immediately follow
>> >> the '&' in the entity reference.there was a problem with PDF
>> generation
>> >> java.lang.NullPointerException: Cannot get property 'length' on null
>> >> object
>> >> --------------------------
>> >>
>> >> Also, from the release notes. Does "ability to use on secured
>> >> applications" mean it now works with Jsecurity?
>> >>
>> >> Thanks!
>> >>
>> >> Marc
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list, please visit:
>> >>
>> >> http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/PDF-Plugin-Upgrade-to-0.4-error-tp23327713p24093413.html
>> Sent from the grails - user mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
View this message in context: http://www.nabble.com/PDF-Plugin-Upgrade-to-0.4-error-tp23327713p24145770.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
« Return to Thread: PDF Plugin Upgrade to 0.4 error
| Free embeddable forum powered by Nabble | Forum Help |