|
Greetings, I've compiled MapServer from the CVS HEAD 4.9-dev (2006-07-28) and I'm suposing the msIO_getStdoutBufferBytes is not working properly when used in Java Mapscript. I've written a very simple example to explain how it happens. Please take a look at it : public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOExcept The "byte[] content" stores the result of msIO_stripStdoutBufferContentType and it has some garbage data at the end. After the > 0x3E we have an NL 0x0A and finally a EOF 0x00, BUT the content doesn't stop at this point, there are more data after the 0x00 and the Java Mapscript can "see" it. That's a big problem, because when this "content" is returned, the resulting XML is corrupted. Please check this example bellow. Is it a known bug? I'm afraid this kind of garbage can produce undesirable effects in WMS support. For this simples example I can "manually" remove it but I'm not sure how to deal with it in other cases. I'll be greatful if you could give me some light.000018a0 20 20 20 20 20 20 20 20 20 3c 2f 4c 65 67 65 6e | </Legen| 000018b0 64 55 52 4c 3e 0a 20 20 20 20 20 20 20 20 3c 2f |dURL>. </| 000018c0 53 74 79 6c 65 3e 0a 20 20 20 20 3c 2f 4c 61 79 |Style>. </Lay| 000018d0 65 72 3e 0a 20 20 3c 2f 4c 61 79 65 72 3e 0a 3c |er>. </Layer>.<| 000018e0 2f 43 61 70 61 62 69 6c 69 74 79 3e 0a 3c 2f 57 |/Capability>.</W| 000018f0 4d 54 5f 4d 53 5f 43 61 70 61 62 69 6c 69 74 69 |MT_MS_Capabiliti| 00001900 65 73 3e 0a 00 14 00 00 00 14 00 00 00 14 00 00 |es>.............| 00001910 00 14 00 00 00 14 00 00 00 14 00 00 00 14 00 00 |................| 00001920 00 14 00 00 00 14 00 00 00 14 00 00 00 14 00 |...............| Best regards, --
|
[UMN_MAPSERVER-USERS] WMS Java Mapscript : msIO_getStdoutBufferBytes bug
José Vilson de Mello de Farias Wed, 09 Aug 2006 06:43:24 -0700
- [UMN_MAPSERVER-USERS] WMS Java Mapscript :... José Vilson de Mello de Farias
- Re: [UMN_MAPSERVER-USERS] WMS Java Ma... Howard Butler
- Re: [UMN_MAPSERVER-USERS] WMS Java Ma... Frank Warmerdam
- Re: [UMN_MAPSERVER-USERS] WMS Jav... José Vilson de Mello de Farias
