mapfish / mapfish-print

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
http://mapfish.github.io/mapfish-print-doc/
BSD 2-Clause "Simplified" License
183 stars 416 forks source link

RawImageInputStream not found #1812

Open 1Map opened 3 years ago

1Map commented 3 years ago

Getting following error when trying to print:

Error while processing request:
java.lang.NoClassDefFoundError: com/sun/media/imageio/stream/RawImageInputStream
carolgit commented 1 year ago

Having the same issue

sbrunner commented 1 year ago

We can't investigate anything without more information...

renegaebler commented 1 year ago

Hi, we have the same issue. I will give you some more details. Our customers has the requirement to see the scalebar also as value. So i include the following lines: A4_hochformat_basis.jrxml

<parameter name="mapContext" class="org.mapfish.print.attribute.map.MapfishMapContext"/>
...
<textField>
    <reportElement x="391" y="5" width="116" height="24" uuid="501e9e7b-13d1-4202-b611-bb6eeb2a0746"/>
    <textElement><font fontName="SansSerif" size="8"/></textElement>
    <!--textFieldExpression><![CDATA[String.format("1:%.0f", $P{mapContext}.getGeodeticScale().getDenominator())]]></textFieldExpression-->
    <textFieldExpression><![CDATA[String.format("1:%.0f", $P{mapContext}.getScale().getDenominator())]]></textFieldExpression>
</textField>

The printer response: Error while processing request: java.lang.NoClassDefFoundError: com/sun/media/imageio/stream/RawImageInputStream We currently use: print-servlet-3.28.2.war but the error occurs also with version print-servlet-3.30.3.war BS: Debian Bullseye and Tomcat9 We didn't use a docker environment, because there are not exists a security clearance from our IT.

Hope this helps. Kind regards