[Geoserver-users] Geoserver + GeoExt + Mapfish

Hi,

I would like to print a map. I've been trying it through my Geoserver using
the Geoserver Printing Module
(http://docs.geoserver.org/2.2.x/en/user/community/printing/) and using the
next example that uses GeoExt
(http://api.geoext.org/1.1/examples/print-page.html).

When I try to print it I obtan a empty PDF file and in Geoserver are shown
some errors:

The problem is with two layer that are loaded by WMS. Do you know what's
wrong? If I do it with the Tasmania Layer as in the example, it works
properly.

Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
What are the errors? I think that part of your email got lost. :wink:

Jonathan

On 1 August 2013 12:46, FNK <pablo.fnk.foncas@anonymised.com> wrote:

Hi,

I would like to print a map. I’ve been trying it through my Geoserver using
the Geoserver Printing Module
(http://docs.geoserver.org/2.2.x/en/user/community/printing/) and using the
next example that uses GeoExt
(http://api.geoext.org/1.1/examples/print-page.html).

When I try to print it I obtan a empty PDF file and in Geoserver are shown
some errors:

The problem is with two layer that are loaded by WMS. Do you know what’s
wrong? If I do it with the Tasmania Layer as in the example, it works
properly.

Thanks.


View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

I see the full post but the part that you don't see is a part that there is
between , so, I paste it:

2013-08-01 13:34:21,712 WARN [print.PDFUtils] - Server returned an error for
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Error (status=502) while reading the image from
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,713 WARN [print.PDFCustomBlocks] - Error while adding a
PDF elementjava.io.IOException: Error (status=502) while reading the image
from
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,800 WARN [print.PDFUtils] - Server returned an error for
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Error (status=502) while reading the image from
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,801 WARN [print.PDFCustomBlocks] - Error while adding a
PDF elementjava.io.IOException: Error (status=502) while reading the image
from
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Bad Gateway

The problem is with two layer that are loaded by WMS. Do you know what's
wrong? If I do it with the Tasmania Layer as in the example, it works
properly.

Thanks

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204p5070216.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Pablo,
Are these layers coming from a machine other than localhost? Because looking at those errors my immediate guess would be they are and that GeoServer/MFP cannot access that machine.

Also, be sure to set your MFP host configuration section to allow that host (idee.es).

Just guessing here. Others may know exactly what the problem is; I’m using MFP as a separate instance from GeoServer; it looks like you’re using the GeoServer extension.

Jonathan

On 1 August 2013 13:10, FNK <pablo.fnk.foncas@anonymised.com> wrote:

I see the full post but the part that you don’t see is a part that there is
between , so, I paste it:

2013-08-01 13:34:21,712 WARN [print.PDFUtils] - Server returned an error for
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Error (status=502) while reading the image from
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,713 WARN [print.PDFCustomBlocks] - Error while adding a
PDF elementjava.io.IOException: Error (status=502) while reading the image
from
http://www.idee.es/wms/PNOA/PNOA?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=pnoa&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,800 WARN [print.PDFUtils] - Server returned an error for
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Error (status=502) while reading the image from
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Bad Gateway
2013-08-01 13:34:21,801 WARN [print.PDFCustomBlocks] - Error while adding a
PDF elementjava.io.IOException: Error (status=502) while reading the image
from
http://www.ign.es/wms-inspire/ign-base?BBOX=-25.77858%2C25.032246%2C11.609558%2C45.94651&HEIGHT=491&WIDTH=877&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A75&LAYERS=Fondo%2CPaises&REQUEST=GetMap&STYLES=%2C&SRS=EPSG%3A4326:
Bad Gateway

The problem is with two layer that are loaded by WMS. Do you know what’s
wrong? If I do it with the Tasmania Layer as in the example, it works
properly.

Thanks


View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204p5070216.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi, thanks for your help.

I have added both servers to the config.yaml file of mapfish, if I remove
them from that file another kind of error is launched.

You are right, I'm using Mapfish togheter with Geoserver through the
Geoserver print extension
(http://docs.geoserver.org/latest/en/user/community/printing/index.html).

I thought the same that you have said, some problem connecting from
Geoserver to the servers but it works right with the Tasmania map which is
in a remote server too.

Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204p5070238.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Finally I've solved the problem. I published the layers in my Geoserver in a
WMS datastore and now the print tool is working properly.

If someone read this in the future, before publish the layer, read this
post:
http://osgeo-org.1560.x6.nabble.com/Cascading-WMS-problem-with-PNOA-service-v2-1-3-td4977996.html#a5070395
. I don't know why it's neccesary but it works.

Thanks for your help Jonathan.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-GeoExt-Mapfish-tp5070204p5070399.html
Sent from the GeoServer - User mailing list archive at Nabble.com.