server crashes with voucher printing

Bug and problem reporting on Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
Posts: 30
Joined: Fri Jul 03, 2009 1:35 pm
Location: Germany

server crashes with voucher printing

Post by »

We open a voucher in detail view and click 'print' in the lower right, the process takes about 5 minutes and terminates in an error message:
Es ist ein unerwarteter Fehler bei der Bearbeitung Ihrer Anfrage aufgetreten:
Nothing printed, I would assume that the operation runs in a timeout.

In the meanwhile the Tomcat process consumes more and more RAM on the server, I assume Heapspace, the available memory on the server reduces by about 800 MB, which leads to server crash (out of heap space) when we run with the configuration proposed by Cyclos Wiki, with 512 MB heap max. I extended this to 1024 MB so the server survives, but gets slow after trying to print. Trying another voucher print again has a 5 minutes timeout and the same error message, but no additional memory consumption.

This has not been always as this. We had been able to print vouchers some weeks ago. And we are still able to print those old vouchers. This raises a warning in the log file, but a printable Pdf gets generated anyway.
11:28:11,036 WARN PdfGlyphRenderer - Unpatched iText found, cannot use glyph rendering
All vouchers created later than 2018-12-10 work, all vouchers generated after this date do not work.
After trying to print one of the newer vouchers we are even no more able to print the older ones. Something seems to get destroyed by trying to print the newer vouchers.

No idea what changed the game, there was no software update since. Server runs under Cyclos 4.11 (database version 4.11_db34)
Server runs Tomcat 8.0.32 with options -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MaxMetaspaceSize=1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMod

Can anybody explain what Class$S345 is related to?
Can anybody help?

Best regards
Posts: 197
Joined: Fri Feb 17, 2006 11:01 am

Re: server crashes with voucher printing

Post by luis »

This seems a problem with a dependency.
Can you, please, make a test?
Download the following JAR file: ... .7.js4.jar
Then copy that JAR to <cyclos-web>/WEB-INF/lib
Also, make sure to remove any other itext*.jar file from there.
Please, tell us if it worked.
Luis Fernando Planella Gonzalez
Cyclos development team
Post Reply