Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using OpenGeo Suite 3.0.2

I created an app using Client SDK.

Stored the raster and vector data on postgreSQL/PostGIS

print tool is not working, giving error i.e. "Java.io.IOException: the byte array is not recognized imageformat."

  • @require plugins/Print.js
    • @require GeoExt.ux/PrintPreview.js
    • @require GeoExt/widgets/PrintMapPanel.js
    • @require GeoExt/plugins/PrintProviderField.js
    • @require GeoExt/plugins/PrintPageField.js
    • @require OpenLayers/Control/ScaleLine.js

These are the dependencies, I included.

{ ptype: "gxp_print", customParams: {outputFilename: 'DAA Map-PDF'}, printService: "/geoserver/pdf/", actionTarget: "map.tbar", showButtonText: true }

This is the code I included for print service.

share|improve this question
Can you show the part of your code that it's failing? –  pconcepcion Jun 4 '13 at 14:31
please add a fuller description of your set up –  iant Jun 4 '13 at 14:48
I am not able to post here so I edited the Question –  user2273001 Jun 4 '13 at 16:23
It looks like the error is occurring in GeoServer. Could you check the layer in the GeoServer layer preview? Take a look in the GeoServer logs for a more complete error message and supporting information (INFO and WARN messages preceding the error) –  smithkm Jun 4 '13 at 18:24
Also, how exactly did you load the data into PostGIS and how do you set up the layer in GeoServer? –  smithkm Jun 4 '13 at 18:27

1 Answer 1

You must resolve the dependencies, so, you need to activate the printing module in geoserver. Please, follow the steps in http://docs.geoserver.org/stable/en/user/community/printing/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.