Not generating PDF nor HTML forms

Added by Jos Bol almost 2 years ago

Hi,

When trying to export a questionnaire to PDF in SQS SourceEditor 2, the program pops up a screen with a progressbar with only the text "[info]start translation" after that it seems to get stuck on something. A pdf file with size of 0 bytes is created and the progressbar keeps endlessly bouncing from one side to the other. Besides that, it doesn't seem to do anything at at all. Saving an sqs file seems to be working fine and since it does manage to create to pdf file, I assume it is not a permission problem. I tried this on both Linux (mandriva 2009) and windows XP using the webstart link and the standard pdf example downloaded from this site. Both systems have java 1.6 and a pdf reader installed. Is there anything I'm missing here?

Thanks in advance for your help!


Replies (3)

RE: Not generating PDF nor HTML forms - Added by Hiroya Kubo almost 2 years ago

Hi, Jos,

Will you please attach your sqs file causing problem?
I think your sqs file might be broken. The current SourceEditor implementation dosen't care of XML Schema, so, it may produce an invalid sqs file which is not suited to generate PDF nor HTML forms.

In addition, I'm interested in error messages which are displayed in your Java console.
Please enable your Java console:
Java Control Panel > Advanced > Java console > Show the console

and copy the error messages in your reply...

RE: Not generating PDF nor HTML forms - Added by Jos Bol almost 2 years ago

Hi Hiroya Kubo,

Thank you for your reply! I have attached the problematic sqs file. Strangely enough it worked today , altough I haven't changed the file, nor rebooted this computer since my previous post. the java console showed an error, but it managed to generate the PDF.

Java Console error:

SEVERE: ERROR not found:class://net.sqs2.translator.impl.TranslatorJarURIContext/fop/userconfig_pt.xml
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:254)
at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:202)
at net.sqs2.translator.impl.FOPTranslator$SQSToPDFTranslatorCore.<init>(FOPTranslator.java:163)
at net.sqs2.translator.impl.FOPTranslator.createCore(FOPTranslator.java:72)
at net.sqs2.translator.impl.FOPTranslator.createFOBytes(FOPTranslator.java:292)
at net.sqs2.translator.impl.FOPTranslator.execute(FOPTranslator.java:324)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic.translate(ExportFileLogic.java:165)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic.access$2(ExportFileLogic.java:161)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic$2.run(ExportFileLogic.java:131)
[WARN] FontInfo - Font 'Gothic,normal,700' not found. Substituting with 'any,normal,700'.
[WARN] FontInfo - Font 'Gothic,normal,400' not found. Substituting with 'any,normal,400'.
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 16/541)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 18/996)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 20/1002)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/928)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/2314)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/3706)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/4043)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/4556)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/3485)

form-en.sqs - problematic form (3.4 KB)

RE: Not generating PDF nor HTML forms - Added by Hiroya Kubo almost 2 years ago

Hi, Jos Bol,

I cannot tell you the reason why the PDF file was not generated at your first post,
Your .sqs file looks valid.

Thank you to show us your erros in your JavaConsole,

SEVERE: ERROR not found:class://net.sqs2.translator.impl.TranslatorJarURIContext/fop/userconfig_pt.xml
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:254)
at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:202)
at net.sqs2.translator.impl.FOPTranslator$SQSToPDFTranslatorCore.<init>(FOPTranslator.java:163)
at net.sqs2.translator.impl.FOPTranslator.createCore(FOPTranslator.java:72)
at net.sqs2.translator.impl.FOPTranslator.createFOBytes(FOPTranslator.java:292)
at net.sqs2.translator.impl.FOPTranslator.execute(FOPTranslator.java:324)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic.translate(ExportFileLogic.java:165)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic.access$2(ExportFileLogic.java:161)
at net.sf.sqs_xml.editor.sqs.swing.ExportFileLogic$2.run(ExportFileLogic.java:131)

The error message as above was thrown by PDF renderer(Apache FOP) configuration procedure, and it said that the file "userconfig_pt.xml" for Portuguese users was not found. The "pt" is the ISO 639-1 language code of "Portuguese".
http://dev.sqs2.net/repositories/browse/sqs/sqs-translator/src/main/resources/fop

The error message said "SEVERE", but it seems ignorable in your case. If the appropriate language file for the runtime environment cannot find, the application falls back to English language setting and use ISO-8859-1(Latin-1) fonts.

[WARN] FontInfo - Font 'Gothic,normal,700' not found. Substituting with 'any,normal,700'.
[WARN] FontInfo - Font 'Gothic,normal,400' not found. Substituting with 'any,normal,400'.

These warnings are ignorable. The font substitutions work fine.
("Gothic" is hard-coded font family name of Japanese... I'll evict the hard-coded font names like them from XSL stylesheets...)

[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 16/541)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 18/996)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 20/1002)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/928)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/2314)
[WARN] BreakingAlgorithm - Line 1 of a paragraph overflows the available area by 2000mpt. (fo:block, location: 24/3706)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/4043)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/4556)
[WARN] PageBreakingAlgorithm - Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 1/3485)

These warnings are also ignorable. The PDF renderings work fine.
The "overflow" cannot predict because the content and style combinations are various to user's situations.

(1-3/3)