in the log there is another root cause to the above exceptions:
13:13:51,641 ERROR [ExceptionFilter] uncaught exception java.lang.IllegalStateException: No active event context at org.jboss.seam.core.Manager.instance(Manager.java:264) at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:412) at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:328) at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
I have no idea, what could be wrong here.....
again, thanks for any help
ok, again just for the record and in case there are some other seam dummies like me:
A pdf file can only be viewed if there is an existing converstation. That means, at least in my case, that a simple call to /test.pdf does not work, unless there is a long running conversation, that was started by any component.
hope that helps someone...
That is partially correct. The .pdf view can only be accessed after the PDF is generated. You don't need to worry about a conversation. A temporary conversation will be promoted to a long-running conversation for long enough to serve the redirect to the PDF.
than I don't understand the behaviour here. If I call the pdf's URl fist thing after server startup, i.e. e new session, I get the above error. If I first call a page, that uses a conversational component, I can afterwards call the pdf and get it.
Maybe, if you find some time, you could document more on how to use the DocumentStore and explain the runtime situation, so one can more understand what exactly is going on.
Besides that - using iText in seam is damn easy and a joy to work with. Thanks for your work!
You cannot access the .pdf URL directly. You must be redirected to it from the .seam URL. The redirect will temporarily extend the conversation if it needs to so you never have to worry if you are in a conversation or not.
I would like to support direct access to the .pdf URL, but we don't now due to Facelets limitations with binary data. I have a couple ideas how to work around it, but I haven't got it down just yet.