Ich habe das jetzt probiert aber leider ohne Erfolg. Hast Du noch eine weitere Idee?
Wenn ich das Beispiel aus WONDER verwende ERPDFexample und in MAIN Umlaute einfüge gibt es das gleiche Resultat — funktioniert nicht -
In dem Beispiel wird bei "SIMPLE PDF GENERATION" MAIN aufgerufen; deshalb ist das ein einfacher Test indem ich dort Umlaute einfüge. <html lang=„en“ > habe ich aber nicht geändert.
Apr. 21 09:48:10 testPDFGen[64479] WARN NSLog - <er.extensions.appserver.ERXComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSForwardException [org.xml.sax.SAXParseException] Invalid byte 1 of 1-byte UTF-8 sequence.:org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 66; Invalid byte 1 of 1-byte UTF-8 sequence.
[2021-4-21 9:48:10 MESZ] <WorkerThread4> com.webobjects.foundation.NSForwardException [org.xml.sax.SAXParseException] Invalid byte 1 of 1-byte UTF-8 sequence.:org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 66; Invalid byte 1 of 1-byte UTF-8 sequence.
at com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
at er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:112)
at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:130)
at er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:89)
at er.pdf.ERPDFWrapper.appendToResponse(ERPDFWrapper.java:66)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
at er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:565)
at com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
at er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1986)
at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
at er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
at er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
at er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2090)
at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2055)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 66; Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
at er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:100)
... 21 more
Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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)
... 25 more
Apr. 21 09:48:10 testPDFGen[64479] ERROR er.extensions.appserver.ERXApplication - Exception caught: org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 66; Invalid byte 1 of 1-byte UTF-8 sequence.
Extra info: {
"Session" = "<your.app.Session sessionID=tDCCMqTpBefUhGbvCrI0pw timeOut(sec)=3600.0 terminating=false _wasTimedOut=false contextArray=((\"1\"), (\"0\"), (\"3\"), (\"5\")) contextPageInfos={0 = <com.webobjects.appserver._private.WOTransactionRecord responsePage=<your.app.components.Main name: your.app.components.Main subcomponents: null > requestSignature=null.null>; 1 = <com.webobjects.appserver._private.WOTransactionRecord responsePage=<com.webobjects.woextensions.WOExceptionPage name: com.webobjects.woextensions.WOExceptionPage subcomponents: {5 = <com.webobjects.woextensions.WOCollapsibleComponentContent name: com.webobjects.woextensions.WOCollapsibleComponentContent subcomponents: null >; } > requestSignature=null.null>; 3 = <com.webobjects.appserver._private.WOTransactionRecord responsePage=<com.webobjects.woextensions.WOExceptionPage name: com.webobjects.woextensions.WOExceptionPage subcomponents: {5 = <com.webobjects.woextensions.WOCollapsibleComponentContent name: com.webobjects.woextensions.WOCollapsibleComponentContent subcomponents: null >; } > requestSignature=null.null>; 5 = <com.webobjects.appserver._private.WOTransactionRecord responsePage=<your.app.components.Main name: your.app.components.Main subcomponents: null > requestSignature=null.null>; } languages=(\"German_DE\", \"German\", \"Nonlocalized\") componentState={ERXActionLogging = \"<er.extensions.components._private.ERXHyperlink action: <ognl.helperfunction.WOHelperFunctionKeyValueAssociation: keyPath=woh> actionClass: null href: null string: null queryDictionary: null otherQueryAssociations: null pageName: null fragmentIdentifier: null disabled: null secure: null>\"; } currentContextID=7 distributionEnabled=false cookieRendezVousEnabled=false URLRendezVousEnabled=tru localizer=<er.extensions.localization.ERXLocalizer German> messageEncoding=<er.extensions.appserver.ERXMessageEncoding encoding: ISO8859_1> browser=<er.extensions.appserver.ERXBasicBrowser browserName: Safari, version: 14.0.3, mozillaVersion: 5.0, platform: MacOS>>";
"CurrentComponent" = "your.app.components.PrintWohGeber";
"PreviousPageList" = (
"your.app.components.Main"
);
"Headers" = {
"accept-encoding" = "gzip, deflate";
"cookie" = "routeid_testpdfgen=.testpdfgen_-1; routeid_erpdfexamples=.erpdfexamples_-1; FHAdminPass=jj1; FHAdminUser=profjens; HausAdminPass=cCzF1ECPdHiNIXgndko8Qmx/YJk=; HausAdminUser=profjens";
"upgrade-insecure-requests" = "1";
"user-agent" = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15";
"accept" = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
"original_context_id" = "5";
"host" = "127.0.0.1:64479";
"accept-language" = "de-de";
"connection" = "keep-alive";
};
"CurrentPage" = "your.app.components.PrintWohGeber";
"Bundles" = {
"Ajax" = "7.2";
"ERExtensions" = "7.1-SNAPSHOT";
"JavaWebObjects" = "5.4.3";
"testPDFGen" = "";
"ERJars" = "7.0";
"ERJavaMail" = "7.0";
"HausFramework" = "0.0";
"JavaJDBCAdaptor" = "5.4.3";
"JavaEOAccess" = "5.4.3";
"ERPrototypes" = "7.0";
"WOOgnl" = "7.0";
"ERAttributeExtension" = "7.0";
"ERJasperReports" = "7.0";
"JavaXML" = "5.4.2";
"JavaWOExtensions" = "7.0";
"JavaEOControl" = "5.4.2";
"JavaFoundation" = "5.4.3";
"PostgresqlPlugIn" = "7.0";
"ERPDFGeneration" = "7.0";
"ERAttachment" = "7.0";
};
"URL" = "/cgi-bin/WebObjects/testPDFGen.woa/wo/tDCCMqTpBefUhGbvCrI0pw/5.11";
}
MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(null:Unknown)
at org.apache.xerces.impl.io.UTF8Reader.read(null:Unknown)
at org.apache.xerces.impl.XMLEntityScanner.load(null:Unknown)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(null:Unknown)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(null:Unknown)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(null:Unknown)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(null:Unknown)
at org.apache.xerces.parsers.XML11Configuration.parse(null:Unknown)
at org.apache.xerces.parsers.XML11Configuration.parse(null:Unknown)
at org.apache.xerces.parsers.XMLParser.parse(null:Unknown)
at org.apache.xerces.parsers.DOMParser.parse(null:Unknown)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(null:Unknown)