|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
PDF Plugin Upgrade to 0.4 errorHi, 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 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 |
|
|
Re: PDF Plugin Upgrade to 0.4 errorThe 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, |
|
|
|
|
|
Re: PDF Plugin Upgrade to 0.4 errorI get this error on my application (grails 1.1.1)
BaseUri is http://localhost:8080/test Fetching url http://localhost:8080/test/test.gsp 2009-06-18 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? The only change I made on my app ist on views/myfile.gsp. I inserted: <g:pdfLink url="/test.gsp" filename="test.pdf" icon="true"/>
|
|
|
Re: PDF Plugin Upgrade to 0.4 errorWhat 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:
|
|
|
Re: PDF Plugin Upgrade to 0.4 errorI 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>
|
|
|
Re: PDF Plugin Upgrade to 0.4 errorto start:
<g:pdfLink method="POST" url="/test/PDF.gsp" filename="test.pdf">PDF</g:pdfLink> is not a valid usage of the g:pdfLink tag. as of the 0.4 release only method = "get" is available for the link tag
On Mon, Jun 22, 2009 at 6:39 AM, ldittmar <ldittmar.privat@...> wrote:
|
|
|
Re: PDF Plugin Upgrade to 0.4 errorHi,
I've just installed the pdf plugin 0.4, the Simple pdf Demo works fine (inserting the following code in a gsp): <g:pdfForm url="/pdf/demo2" filename="sample.pdf" method="get"> <input type="hidden" name="name" value="ciao"/> <g:submitButton name="printPdf" value="pdfdemo" /> </g:pdfForm> and I was getting the "famous" error [67094] service.PdfService org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException when I used a simple gsp of mine instead of the demo.gsp because it uses a layput gsp that was not well formed! The suggestion is to verify validation with an XML validator. I wish to be usefull... |
| Free embeddable forum powered by Nabble | Forum Help |