mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

RawImageInputStream not found

Open 1Map opened this issue 4 years ago • 3 comments

Getting following error when trying to print:

Error while processing request:
java.lang.NoClassDefFoundError: com/sun/media/imageio/stream/RawImageInputStream

1Map avatar Apr 11 '21 19:04 1Map

Having the same issue

carolgit avatar Sep 12 '22 11:09 carolgit

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

sbrunner avatar Sep 12 '22 11:09 sbrunner

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

renegaebler avatar Jun 22 '23 12:06 renegaebler