[Archivesspace_Users_Group] Error when creating PDF Finding Aid Export
Majewski, Steven Dennis (sdm7g)
sdm7g at virginia.edu
Fri Mar 29 13:45:36 EDT 2019
Yes: that unescaped ampersand is the likely the problem.
I don’t think they have to be escaped everywhere, but having the text wrapped in <emph> triggers it being parsed as mixed content rather than just text, so inside the <emph> tags, the serializer is expecting valid XML text() .
When having problems with the Staff interface PDF output, it’s often a good idea to export as EAD and validate the XML output to locate the source of the problems.
— Steve.
> On Mar 29, 2019, at 1:37 PM, Busch, Ed <buschedw at msu.edu> wrote:
>
> We are doing Print Resource to PDF for a Resource that fails during the background job execution. The errors that appear are below.
> Any suggestions on pinpointing what is causing the problem? I’m wondering if it’s this component line
> Betty MacDowell Resource Files for Publication: <emph render="italic">Michigan Women: First & Founders</emph> as it’s the first use of & that isn’t &. Grasping at straws.
>
> Thanks!
>
> Ed
>
> Generating PDF for Michigan Women's Studies Association records
> org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 49129; The entity name must immediately follow the '&' in the entity reference.
> net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
> RUBY.parse(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:28)
> RUBY.XML(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/processor.rb:58)
> RUBY.XML(/usr/local/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:10)
> RUBY.to_fo(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:32)
> RUBY.to_pdf(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:38)
> RUBY.block in run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:45)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.request_context.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
> RUBY.run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(usr/local/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> usr.local.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8099_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> RUBY.block in start_background_thread(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8099-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)
> org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)
> java.lang.Thread.run(java/lang/Thread.java:748)
>
>
>
> Ed Busch, MLIS
> Acting Director
> Electronic Records Archivist
> Michigan State University Archives
> Conrad Hall
> 943 Conrad Road, Room 101
> East Lansing, MI 48824
> 517-884-6438
> buschedw at msu.edu <mailto:buschedw at msu.edu>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <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/20190329/3bc15cda/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3598 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20190329/3bc15cda/attachment.bin>
More information about the Archivesspace_Users_Group
mailing list