{"action":"closed","issue":{"url":"https://api.github.com/repos/eXist-db/exist/issues/966","repository_url":"https://api.github.com/repos/eXist-db/exist","labels_url":"https://api.github.com/repos/eXist-db/exist/issues/966/labels{/name}","comments_url":"https://api.github.com/repos/eXist-db/exist/issues/966/comments","events_url":"https://api.github.com/repos/eXist-db/exist/issues/966/events","html_url":"https://github.com/eXist-db/exist/issues/966","id":146276717,"number":966,"title":"Apache FOP error","user":{"login":"welblaud","id":8298610,"avatar_url":"https://avatars.githubusercontent.com/u/8298610?v=3","gravatar_id":"","url":"https://api.github.com/users/welblaud","html_url":"https://github.com/welblaud","followers_url":"https://api.github.com/users/welblaud/followers","following_url":"https://api.github.com/users/welblaud/following{/other_user}","gists_url":"https://api.github.com/users/welblaud/gists{/gist_id}","starred_url":"https://api.github.com/users/welblaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welblaud/subscriptions","organizations_url":"https://api.github.com/users/welblaud/orgs","repos_url":"https://api.github.com/users/welblaud/repos","events_url":"https://api.github.com/users/welblaud/events{/privacy}","received_events_url":"https://api.github.com/users/welblaud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-06T11:05:04Z","updated_at":"2016-04-11T03:49:13Z","closed_at":"2016-04-11T03:49:13Z","body":"I am trying to migrate my app onto the last RC release. When trying to test FOP outputs, I get this error:\r\n\r\n```\r\nHTTP ERROR 500\r\n\r\nProblem accessing /exist/apps/test-app/modules/create-ebook.xq. Reason:\r\n\r\n    Server Error\r\n\r\nCaused by:\r\n\r\njavax.servlet.ServletException: An error occurred: org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.<init>(Lorg/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext$FallbackResolver;)V\r\n\tat org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:263)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:735)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)\r\n\tat org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50)\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:549)\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:353)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)\r\n\tat de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.NoSuchMethodError: org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.<init>(Lorg/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext$FallbackResolver;)V\r\n\tat org.apache.fop.apps.FOUserAgent$1.<init>(FOUserAgent.java:151)\r\n\tat org.apache.fop.apps.FOUserAgent.<init>(FOUserAgent.java:151)\r\n\tat org.apache.fop.apps.FopFactory.newFOUserAgent(FopFactory.java:169)\r\n\tat org.exist.xquery.modules.xslfo.ApacheFopProcessorAdapter.getContentHandler(ApacheFopProcessorAdapter.java:63)\r\n\tat org.exist.xquery.modules.xslfo.RenderFunction.eval(RenderFunction.java:139)\r\n\tat org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)\r\n\tat org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:56)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:99)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)\r\n\tat org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)\r\n\tat org.exist.xquery.Atomize.eval(Atomize.java:67)\r\n\tat org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)\r\n\tat org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:323)\r\n\tat org.exist.xquery.FunctionCall.eval(FunctionCall.java:227)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:99)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)\r\n\tat org.exist.xquery.PathExpr.eval(PathExpr.java:267)\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:270)\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:190)\r\n\tat org.exist.http.RESTServer.executeXQuery(RESTServer.java:1497)\r\n\tat org.exist.http.RESTServer.doGet(RESTServer.java:508)\r\n\tat org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230)\r\n\t... 45 more\r\n\r\nCaused by:\r\n\r\njava.lang.NoSuchMethodError: org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.<init>(Lorg/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext$FallbackResolver;)V\r\n\tat org.apache.fop.apps.FOUserAgent$1.<init>(FOUserAgent.java:151)\r\n\tat org.apache.fop.apps.FOUserAgent.<init>(FOUserAgent.java:151)\r\n\tat org.apache.fop.apps.FopFactory.newFOUserAgent(FopFactory.java:169)\r\n\tat org.exist.xquery.modules.xslfo.ApacheFopProcessorAdapter.getContentHandler(ApacheFopProcessorAdapter.java:63)\r\n\tat org.exist.xquery.modules.xslfo.RenderFunction.eval(RenderFunction.java:139)\r\n\tat org.exist.xquery.BasicFunction.eval(BasicFunction.java:70)\r\n\tat org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:56)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:99)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)\r\n\tat org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:74)\r\n\tat org.exist.xquery.Atomize.eval(Atomize.java:67)\r\n\tat org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)\r\n\tat org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:323)\r\n\tat org.exist.xquery.FunctionCall.eval(FunctionCall.java:227)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:99)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111)\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)\r\n\tat org.exist.xquery.PathExpr.eval(PathExpr.java:267)\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:270)\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:190)\r\n\tat org.exist.http.RESTServer.executeXQuery(RESTServer.java:1497)\r\n\tat org.exist.http.RESTServer.doGet(RESTServer.java:508)\r\n\tat org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:230)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:735)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:229)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)\r\n\tat org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50)\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:549)\r\n\tat org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:353)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)\r\n\tat de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n```"}}