Problem with pdf generator

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with pdf generator

pumbosha
Hallo,

I have Orbeon on Tomcat on port 8081, and rest of the system on Jboss on 8080. On jboss I use proxy, to see Orbeon on 8080 port. Proxy redirect from myDomain:8080/orbeon to myDomain:8081/Orbeon where Orbeon is. Address is hidden for browse, that means that when I launch myDomain:8080/orbeon it redirects to 8081, but address in browser is still: 8080.

I have problem with pdf button in form runner. After click on 'pdf' there is default Orbeon error page. In logs there are many lines, but two looks like meaningful:

HIERARCHY_REQUEST_ERR: An attempt was made  to insert a node  where it is not permitted

and many lines above:

xf:submission for submission id: fr-pdf-submission, error code received when submitting instance: 500

Can someone know why pdf generating doesn't work?

regards,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: Problem with pdf generator

Alessandro  Vernet
Administrator
Hi Tom,

That error doesn't ring a bell, but is is related to the proxy situation? I.e. if you access directly Orbeon Forms on port 8080 with the browser, does the PDF generation go through just fine?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with pdf generator

pumbosha
Of course in Orbeon on port 8080 (without proxy) everything work fine. Problem starts when I use proxy to Orbeon o 8081 Tomcat port.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with pdf generator

Alessandro  Vernet
Administrator
Hi Tom,

OK, got it; that was a stupid question, but I had to check :). A few things come to mind. First, which version of Orbeon Forms are you on? If not 4.7, could you try with 4.7 to see if that solves the problem? I am suggesting this, as 4.7 unlike with previous versions, uses internal requests which could solve issues that can happen when the proxy is hit by an internal request. Second, if you're seeing this issue with 4.7, could you also try setting the oxf.url-rewriting.service.base-uri property to point to your server on port 8080? (More about this property on http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-base#TOC-oxf.url-rewriting.service.base-uri).

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet