X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "Jesse Tayler" Received: from mail-qk1-f182.google.com ([209.85.222.182] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25756915 for webobjects-dev@wocommunity.org; Wed, 21 Apr 2021 19:39:42 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=209.85.222.182; envelope-from=jtayler@oeinc.com Received: by mail-qk1-f182.google.com with SMTP id o5so43637172qkb.0 for ; Wed, 21 Apr 2021 10:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oeinc-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=T1CpRF31wHoo1qV53qGaaIpjB8rqHNbphJrI9vO58EU=; b=sG4KkljfXHS+OxG2GVZ2UiKkdvfXXebE0m1bnWh68yCAou6K24y6GPDC9uS5YimVLU gT3xUFeI7ejZQABJ0OUKGEzej1AgL/hmAThTc/SNAFi1BnPeGV3Jh5dQZ5c/kLO9gJry OH8FzUjhB9KHes6vdvEP5XyyD2H4uCI9U2TqH63sHqKmHpSL7XoM8ij6wrmhnLoyQIH4 cgIB0ExPAeT1TfnxxF0Q2stqK9YatR2dyhJ+itF8sosRvpB4qeh5tJE+FUi4L1fBJ3gH sWdXBurH2snnXHllgFCfUk7qyVPv/kZ/BiGOGpzFvfhWYbJF2qrPRMsJU9L0VuxGAUSu JS6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=T1CpRF31wHoo1qV53qGaaIpjB8rqHNbphJrI9vO58EU=; b=sMTS4Y30KKRQGIDD6lx/SEDtHmxhW21dRpeJWxk2dEqFJ4p0cWzo+Ff9W5ZKxubxCI I9/3N+0y98Un53G+LJap4H6hz9IunGa89cfgNcbNb0me2pBOx6QeROT+CWBGyhzrOE37 wE7BaOd+ZGWjMfN187oz3GkxqRPToa0o2w4C2K83W4AgQ61r5FWHy2YDgTxrjXwYpbiO Lp5TsUY473hmdDlx0yZWljesZZUef/9+5O9ypAycE6aIlEC5WiUcvchpYtwRoI890O7E H0FkImOneEA7nYAI1PY4k4dRmdmbbSHPyB8CYx/loR6onaqpJkMTukLQFfEbx2/J0PMT quUQ== X-Gm-Message-State: AOAM532h8cricglhBwFoJYD40emH/a7bfw120C5RTsJKySQY46BYKJAZ rkGqnZ3KDK+OZSZwHMGlwMK3uVRCWlIE7A== X-Google-Smtp-Source: ABdhPJyb1wG+Fp8vgIbsuzusyoZvjPPjNEo323jdXJgE5vXQTqRUOasQla7rZ3RLzvsfFpCAoVBlgg== X-Received: by 2002:a37:9305:: with SMTP id v5mr23534711qkd.223.1619026761341; Wed, 21 Apr 2021 10:39:21 -0700 (PDT) Return-Path: Received: from [192.168.1.16] ([69.169.5.176]) by smtp.gmail.com with ESMTPSA id h7sm11456qka.39.2021.04.21.10.39.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Apr 2021 10:39:20 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_E4E74ABF-13ED-4AB8-954D-6E0153DFCE5A" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.2\)) Subject: Re: [WO-DEV] ERPDFGeneration ... fails with German "umlaute" Date: Wed, 21 Apr 2021 13:39:20 -0400 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3654.60.0.2.2) --Apple-Mail=_E4E74ABF-13ED-4AB8-954D-6E0153DFCE5A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Well, something isn=E2=80=99t UTF-8=E2=80=A6apache reports invalid bytes = and expectation of UTF-8, so maybe your app needs to explicitly have = headers or settings - I do not know but I noticed the error and thought = it might be, since if you had UTF-8 all the way, I=E2=80=99m sure = you=E2=80=99d not see that error > On Apr 21, 2021, at 1:26 PM, Jens Schulze = wrote: >=20 > Hello List! >=20 > I need help! I want to convert a html Page with German characters to = PDF following the =E2=80=9EERPDFExamples=E2=80=9C.=20 >=20 > As soon as I put a German character in the page the conversion fails: >=20 > Any help hints are really appreciated! >=20 > Thanks > Jens Schulze > ____________________________________________________________ > Prof. Dr. Jens Schulze > Marketing & Vertrieb > M=C3=BCnsterstrasse 265 www.profjens.de = > 46397 Bocholt jens.schulze@me.com = > 02871-2155 864 jens.schulze@w-hs.de.de = > ____________________________________________________________ >=20 > Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: = Invalid byte 2 of 4-byte UTF-8 sequence. > .. > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(null:Unknown) > at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122) > at = er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:100) > at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:130) > at er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:89) >=20 > HTML > > "> > >=20 > > >=20 > ERPDFGeneration Examples >=20 > > >=20 > Test =C3=B6=C3=A4 ä >=20 > > > >=20 > BUNDLES > "CurrentPage" =3D = "er.pdfexamples.components.SimplePDFGeneration1"; > "Bundles" =3D { > "ERExtensions" =3D "7.1-SNAPSHOT"; > "JavaWebObjects" =3D "5.4.3"; > "ERPDFExamples" =3D ""; > "ERJars" =3D "7.0"; > "JavaXML" =3D "5.4.2"; > "JavaJDBCAdaptor" =3D "5.4.3"; > "WOOgnl" =3D "7.0"; > "JavaEOAccess" =3D "5.4.3"; > "JavaEOControl" =3D "5.4.2"; > "JavaFoundation" =3D "5.4.3"; > "JavaWOExtensions" =3D "7.0"; > "ERPDFGeneration" =3D "7.0"; > "ERPrototypes" =3D "7.0=E2=80=9C; >=20 > Markus wrote it works with an older version of WONDER (which version?) >=20 > I even tried to do everything with MAVEN hoping it would solve = dependency issues but there again I ran into problems. >=20 > git clone git://github.com/wocommunity/wonder.git = WonderSource >=20 > cd WonderSource/ >=20 > mvn validate -e -X >=20 > [WARNING] The POM for org.objectstyle.cayenne:cayenne:jar:1.2M12 is = missing, no dependency information available > [ERROR] [ERROR] Some problems were encountered while processing the = POMs: > [WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21 > [ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @=20 > @=20 > [ERROR] The build could not read 1 project -> [Help 1] > org.apache.maven.project.ProjectBuildingException: Some problems were = encountered while processing the POMs: > [WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21 > [ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @=20 >=20 >=20 >=20 --Apple-Mail=_E4E74ABF-13ED-4AB8-954D-6E0153DFCE5A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Well,= something isn=E2=80=99t UTF-8=E2=80=A6apache reports invalid bytes and = expectation of UTF-8, so maybe your app needs to explicitly have headers = or settings - I do not know but I noticed the error and thought it might = be, since if you had UTF-8 all the way, I=E2=80=99m sure you=E2=80=99d = not see that error

On Apr 21, 2021, at 1:26 PM, = Jens Schulze <webobjects-dev@wocommunity.org> wrote:

Hello List!

I need help! I want to = convert a html Page with German characters to PDF following the = =E2=80=9EERPDFExamples=E2=80=9C. 

As soon as I put a German character in = the page the conversion fails:

Any help hints are really = appreciated!

Thanks
Jens Schulze
____________________________________________________________
Prof. Dr. Jens = Schulze
Marketing & Vertrieb
M=C3=BCnsterstrasse 265 www.profjens.de
46397 Bocholt jens.schulze@me.com
02871-2155 864 = jens.schulze@w-hs.de.de
________________________________________________________= ____

Caused by: = org.apache.xerces.impl.io.MalformedByteSequenceException= : Invalid byte 2 of 4-byte UTF-8 = sequence.
..
  at = org.apache.xerces.jaxp.DocumentBuilderImpl.parse(null:Unknown)
  at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
  at = er.pdf.builder.FlyingSaucerImpl.setSource(FlyingSaucerImpl.java:100)
  at er.pdf.ERPDFUtilities.htmlAsPdf(ERPDFUtilities.java:130)
  at = er.pdf.ERPDFWrapper.responseAsPdf(ERPDFWrapper.java:89)

HTML
<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 = Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">= ;
<wo:ERPDFWrapper  = enabled =3D "yes" filename =3D= "SimplePDFGenerationExample1.pdf" = >

<html lang =3D= "de-DE">
  <head>

    <title>ERPDFGeneration Examples</title>

  </head>
  = <body>

Test = =C3=B6=C3=A4 &auml;

</body>
</html>
</wo:ERPDFWrapper>

BUNDLES
"CurrentPage" =3D = "er.pdfexamples.components.SimplePDFGeneration1";
= "Bundles" =3D {
= "ERExtensions" =3D "7.1-SNAPSHOT";
= "JavaWebObjects" =3D "5.4.3";
= "ERPDFExamples" =3D "";
= "ERJars" =3D "7.0";
"JavaXML" =3D = "5.4.2";
"JavaJDBCAdaptor" =3D = "5.4.3";
"WOOgnl" =3D = "7.0";
"JavaEOAccess" =3D = "5.4.3";
"JavaEOControl" =3D = "5.4.2";
"JavaFoundation" =3D = "5.4.3";
"JavaWOExtensions" =3D = "7.0";
"ERPDFGeneration" =3D = "7.0";
"ERPrototypes" =3D = "7.0=E2=80=9C;

Markus wrote it works with an older version of WONDER (which = version?)

I even tried to do everything with MAVEN hoping it would = solve dependency issues but there again I ran into problems.


cd WonderSource/

mvn validate -e -X

[WARNING] The POM for = org.objectstyle.cayenne:cayenne:jar:1.2M12 is missing, no dependency = information available
[ERROR] [ERROR] Some problems were encountered = while processing the POMs:
[WARNING]= 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21
[ERROR] Unresolveable build extension: = Plugin org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its = dependencies could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @ 
 @ 
[ERROR] The build could not read 1 project = -> [Help 1]
org.apache.maven.project.ProjectBuildingException: = Some problems were encountered while processing = the POMs:
[WARNING] 'build.plugins.plugin.version' for = org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 132, = column 21
[ERROR] Unresolveable build extension: Plugin = org.wocommunity:wolifecycle-maven-plugin:2.3 or one of its dependencies = could not be resolved: Failed to collect dependencies at = org.wocommunity:wolifecycle-maven-plugin:jar:2.3 -> = org.objectstyle.woproject.ant:woproject-ant-tasks:jar:2.0.15 -> = ant:ant-junit:jar:1.6.5 @ 



<= br class=3D"">= --Apple-Mail=_E4E74ABF-13ED-4AB8-954D-6E0153DFCE5A--