[Archivesspace_Users_Group] Generate PDF Background job error
Seth Shaw
seth.shaw at unlv.edu
Thu Jun 17 16:53:48 EDT 2021
Also, once you download the EAD, the parse error tells you on what line the
error occurred; "189" in this case. The problem may not be *right there*
but that will give you a starting point for your search.
On Thu, Jun 17, 2021 at 1:52 PM Valerie Addonizio <vaddonizio at atlas-sys.com>
wrote:
> I second the tip about exporting to EAD as a inroad to the PDF failure.
> The EAD export itself *may* fail, but the logging may be more specific.
>
>
>
> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
> archivesspace_users_group-bounces at lyralists.lyrasis.org> *On Behalf Of *Blake
> Carver
> *Sent:* Thursday, June 17, 2021 4:50 PM
> *To:* Archivesspace Users Group <
> archivesspace_users_group at lyralists.lyrasis.org>
> *Subject:* Re: [Archivesspace_Users_Group] Generate PDF Background job
> error
>
>
>
> "Open quote is expected for attribute "href" associated with an element
> type "a"."
>
>
>
> There's some bad HTML in there. I usually export it to EAD and then just
> search for "href" and look for the bad tags, hopefully it's not a record
> with 1000 hrefs in there
> ------------------------------
>
> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
> archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of
> Zachary L Pelli <zachary.pelli at shu.edu>
> *Sent:* Thursday, June 17, 2021 4:45 PM
> *To:* ArchivesSpace List (archivesspace_users_group at lyralists.lyrasis.org)
> <archivesspace_users_group at lyralists.lyrasis.org>
> *Subject:* [Archivesspace_Users_Group] Generate PDF Background job error
>
>
>
> Hello all,
>
>
>
> We encountered the error below when running the "Generate PDF" job on a
> particular resource. Short of looking through every single record in the
> resource for the missing ", is there a way to quickly track down the error?
>
>
>
> Generating PDF for xxxxxxxxxxxxxxxxxxxxx
>
> --------------------------------------------------
>
> Warning: this resource has not been published
>
> --------------------------------------------------
>
> org.xml.sax.SAXParseException; lineNumber: 189; columnNumber: 110330; Open
> quote is expected for attribute "href" associated with an element type
> "a".
>
>
> net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
>
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
>
>
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
>
>
> RUBY.build(/var/local/archivesspace/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
>
>
> RUBY.to_fo(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
>
>
> RUBY.to_pdf(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
>
>
> RUBY.run(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)
>
>
> var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
>
>
> RUBY.run(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
>
>
> var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther31:run(var/local/archivesspace/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>
>
> var.local.archivesspace.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
>
>
> RUBY.start_background_thread(/var/local/archivesspace/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
>
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:318)
>
> java.lang.Thread.run(java/lang/Thread.java:748)
>
>
>
>
>
> Regards,
>
>
>
> Zach Pelli
>
> Seton Hall University Libraries
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20210617/9560a469/attachment.html>
More information about the Archivesspace_Users_Group
mailing list