Depending on your version it'll be a slightly different issue, but something 
somewhere in there has an ampersand that is causing the PDF generator to barf.
There's one report here:
https://archivesspace.atlassian.net/browse/ANW-1340

I've seen these most often in notes and usually on something like J&J or B&T, 
some kind of a note with an ampersand withOUT any spaces around it. Usually 
changing those to J & & or B & T will fix it. You can also change it to & 
and that might do the trick. Older versions of ArchivesSpace have more of those 
bugs than newer versions.
________________________________
From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
<archivesspace_users_group-boun...@lyralists.lyrasis.org> on behalf of Esh, 
John C. <j...@towson.edu>
Sent: Wednesday, September 22, 2021 3:22 PM
To: archivesspace_users_group@lyralists.lyrasis.org 
<archivesspace_users_group@lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Exporting to PDF errors


For several finding aids, when I try to export to PDF, I’m getting this error…



Generating PDF for Athletics Department records

org.xml.sax.SAXParseException; lineNumber: 88; columnNumber: 42; 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(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:28)

RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/processor.rb:58)

RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:10)

RUBY.to_fo(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:38)

RUBY.to_pdf(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)

RUBY.block in 
run(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)

If anyone has any thoughts as to what’s going on, I’d love to hear them. This 
isn’t the entirety of the error code, but it seems to repeat similar lines 
after this.



Thanks!



  *   John
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

Reply via email to