Open 1Map opened 3 years ago
Having the same issue
We can't investigate anything without more information...
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
Getting following error when trying to print: