print module error "java.net.SocketException: Connection reset "

286 views
Skip to first unread message

James Barrientos Santos

unread,
Jan 7, 2013, 3:03:20 PM1/7/13
to geoext-vi...@googlegroups.com
hi all .. 

I have a problem with the printer module, initially worked well but did not print wms layers external to the server and then displayed the error "java.net.SocketException: Connection refused" 

I changed the version of the JVM and now the geoserver log shows this error message: 

"VERSION = 1.1.1, FORMAT = image / png, SERVICE = WMS, HEIGHT = 256, REQUEST = GetMap, LAYERS = SEIA: poelcz, STYLES =, SRS = EPSG: 900913, WIDTH = 256} 
RequestCharset = UTF-8 
Version = 1.1.1 
07/01/2013 13:20:18,515 DEBUG [org.geotools.image] - Encoded input image for png writer 
07/01/2013 13:20:18,515 DEBUG [org.geotools.image] - Getting a writer 
07/01/2013 13:20:18,516 DEBUG [org.geotools.image] - Setting write parameters for this writer 
07/01/2013 13:20:18,516 DEBUG [org.geotools.image] - Writer is NOT native 
07/01/2013 13:20:18,516 DEBUG [org.geotools.image] - About to write png image 
07/01/2013 13:20:30,822 WARN [org.mapfish.print.PDFUtils] - Server returned an error for Connection reset 
07/01/2013 13:20:30,823 WARN [org.mapfish.print.PDFCustomBlocks] - Error while adding a PDF elementjava.net.SocketException: Connection reset 
I appreciate any comments on it 

thanks

Just van den Broecke

unread,
Jan 8, 2013, 6:36:43 AM1/8/13
to geoext-vi...@googlegroups.com
Hi James,

Very hard to tell from your output without info on your setup:

- Heron and MapFish Print module versions
- do you use GeoServer with embedded MF Print module (tends to be old
version)?
- is your server connecting to a remote WMS or locally?
- on your server, can you connect/ping to 187.157.191.30?
- the BaseUrl = http://187.157.191.30:80/geoserver/ is the admin site,
http://187.157.191.30/geoserver/wms the WMS

The WMS seems ok, even I can connect to it:
http://187.157.191.30/geoserver/wms?service=WMS&request=GetCapabilities

At first sight it looks like a connectivity issue (DNS, hosts file), not
a software issue. MapFish Print is not part of the Heron project, you
may also try the MapFish Users mailing list:
http://lists.mapfish.org/mailman/listinfo/users

best,

Just
> --
> You received this message because you are subscribed to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
> geoext-vi...@googlegroups.com
> To unsubscribe from this group, send email to
> geoext-viewer-d...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en

James Barrientos Santos

unread,
Jan 8, 2013, 2:55:04 PM1/8/13
to geoext-vi...@googlegroups.com


El lunes, 7 de enero de 2013 14:03:20 UTC-6, James Barrientos Santos escribió:
hi all .. 

I have a problem with the printer module, initially worked well but did not print wms layers external to the server and then displayed the error "java.net.SocketException: Connectron refused" 

James Barrientos Santos

unread,
Jan 8, 2013, 2:55:56 PM1/8/13
to geoext-vi...@googlegroups.com, jus...@gmail.com
Hi Just van 




here is the information:


- heron ver. 0.70
- MapFish print geoserver-2.1-SNAPSHOT-printing-plugin
- i have a server, here is installed geoserver and postgre/postgis; i published two layers (SEIA (POEL Laguna de Cozumel), and SEIA (POEL Laguna de Bacalar))
as WMS. All worked fine and i could print those local layers but i could not print the OpenStreet layer or google layers. Now i cannot print anything
- yes, in my server i can connect with 187.157.191.30

Here is more info
- Tomcat 6.0
- JRE 6
- Apache 2.2.21 with mod_jk/1.2.32
- my server is administrated by another government institution, the server uses a proxy for internet conection, i suspect there is the problem.

i attached the logs generated recently and one example of the print file.

I'll look into http://lists.mapfish.org/mailman/listinfo/users  for more information, otherwise i´ll reinstall all again.


thanks for yor time

Best regards


James
geoserver-logs.zip
tomcat-logs.zip
mapfish-print (85).pdf

Anders Erlandsson

unread,
Feb 13, 2015, 5:47:11 PM2/13/15
to geoext-vi...@googlegroups.com
Hi James
Did you find out what was the problem? I've got a similar problem using Mapfish to render a map containing two layers from Geoserver. I get the following error:
.mapfish.print.PDFCustomBlocks - Error while adding a PDF element 
java.net.SocketException: Connection reset

Regards
Anders Erlandsson

Michael Räder

unread,
Feb 18, 2015, 9:13:42 AM2/18/15
to geoext-vi...@googlegroups.com

Hi, there are differences between version 2.0 and 2.1 of MapfishPrint:

There is a special element, which has to define diferent as in 2.0.

tammanagari tirupathi reddy

unread,
Nov 7, 2015, 11:19:26 AM11/7/15
to Heron Mapping Client Development
HI, I am also getting the same, error. I have not understood your answer. can u elaborate, or

Anders Erlandssor how ddid you solve the problem, can you share with me thank you.

tammanagari tirupathi reddy

unread,
Nov 7, 2015, 11:20:13 AM11/7/15
to Heron Mapping Client Development
HI, did you find solution to your problem, can you share with me your solution.

Thank you.

Anders Erlandsson

unread,
Nov 24, 2015, 10:18:37 AM11/24/15
to Heron Mapping Client Development
Hi
I have not been able to solve the problem yet. It seems to occur now and then, but most of the time MapFish and Geoserver communicate fine without Connection reset from Geoserver

I've read some other article where Geoserver was put behind IIS 7.5, using URLRewrite to proxy the requests to Jetty where Geoserver is runnuning. They solved the problem by changing the rewrite filter.
We are using exactly that design, and therefor it seemed to be a possible cause for our failure. But I havent been able to find out a filter that works. 

Do you use any proxy in front of Geoserver or does MapFish access it right on?

Regards
Anders
Reply all
Reply to author
Forward
0 new messages