[Geoserver-users] mimetype mismatch

I am trying geoserver 1.7b2, and I am getting an unexpected error message.

Using this url
http://localhost:9305/geoserver/gwc/service/wms?LAYERS=rtqms:BEL_DTRF_4_GENT&STYLES=&SRS=EPSG%3A900913&FORMAT=image%2Fpng8&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=391357.58482010313,6574807.424977706,430493.3433021133,6613943.183459716&WIDTH=256&HEIGHT=256

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected image/png8
but got image/png from
http://localhost:9305/geoserver/wms?format_options=regionateby:auto&layers=rtqms%3ABEL_DTRF_4_GENT&width=1024&styles=dtrf_lines_ora&srs=EPSG%3A900913&format=image%2Fpng8&tiled=false&version=1.1.1&exceptions=application%2Fvnd.ogc.se_inimage&height=768&bbox=313086.06781249866%2C6574807.424062502%2C469629.10171874985%2C6692214.699492186&request=GetMap&transparent=true

      null

Replacing the png8 in the original url with png works, and leaving the png8
but hitting geoserver directly (geoserver/wms instead of
geoserver/gwc/service/wms) works.

I would really like to use the png8 format with the geowebcache plugin. Is
anyone else seeing this error message? Is there any other information I
could supply which would be useful in diagnosing this issue?

Thanks,
Craig

--
View this message in context: http://www.nabble.com/mimetype-mismatch-tp18928524p18928524.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Craig,

you've found a new bug (wohoo!). It stems from some recent changes I made to provide better error reporting, which includes stringent checks on what GeoServer returns. Unfortunately it does not accomodate for the fact that a request for image/png8 will result in a image/png response.

I'll email back in an hour or two with a .jar and instructions,

-Arne

geoman wrote:

I am trying geoserver 1.7b2, and I am getting an unexpected error message.

Using this url
http://localhost:9305/geoserver/gwc/service/wms?LAYERS=rtqms:BEL_DTRF_4_GENT&STYLES=&SRS=EPSG%3A900913&FORMAT=image%2Fpng8&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=391357.58482010313,6574807.424977706,430493.3433021133,6613943.183459716&WIDTH=256&HEIGHT=256

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected image/png8
but got image/png from
http://localhost:9305/geoserver/wms?format_options=regionateby:auto&layers=rtqms%3ABEL_DTRF_4_GENT&width=1024&styles=dtrf_lines_ora&srs=EPSG%3A900913&format=image%2Fpng8&tiled=false&version=1.1.1&exceptions=application%2Fvnd.ogc.se_inimage&height=768&bbox=313086.06781249866%2C6574807.424062502%2C469629.10171874985%2C6692214.699492186&request=GetMap&transparent=true

      null

Replacing the png8 in the original url with png works, and leaving the png8
but hitting geoserver directly (geoserver/wms instead of
geoserver/gwc/service/wms) works.

I would really like to use the png8 format with the geowebcache plugin. Is
anyone else seeing this error message? Is there any other information I
could supply which would be useful in diagnosing this issue?

Thanks,
Craig

Hi again,

Please try the following:
1) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:

I am trying geoserver 1.7b2, and I am getting an unexpected error message.

Using this url
http://localhost:9305/geoserver/gwc/service/wms?LAYERS=rtqms:BEL_DTRF_4_GENT&STYLES=&SRS=EPSG%3A900913&FORMAT=image%2Fpng8&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=391357.58482010313,6574807.424977706,430493.3433021133,6613943.183459716&WIDTH=256&HEIGHT=256

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected image/png8
but got image/png from
http://localhost:9305/geoserver/wms?format_options=regionateby:auto&layers=rtqms%3ABEL_DTRF_4_GENT&width=1024&styles=dtrf_lines_ora&srs=EPSG%3A900913&format=image%2Fpng8&tiled=false&version=1.1.1&exceptions=application%2Fvnd.ogc.se_inimage&height=768&bbox=313086.06781249866%2C6574807.424062502%2C469629.10171874985%2C6692214.699492186&request=GetMap&transparent=true

      null

Replacing the png8 in the original url with png works, and leaving the png8
but hitting geoserver directly (geoserver/wms instead of
geoserver/gwc/service/wms) works.

I would really like to use the png8 format with the geowebcache plugin. Is
anyone else seeing this error message? Is there any other information I
could supply which would be useful in diagnosing this issue?

Thanks,
Craig

Hi Arne,

Thanks for the quick turnaround, but I don't think it is quite right yet.
With the new geowebcache jar file, neither Firefox nor IE were able to serve
this image directly. I hard some difficulty seeing the headers in FF's
LiveHttpHeaders, so I tried Fiddler with IE, and I saw the Content-Type was
set to image/png8. I believe the Content-Type http header should be
image/png.

Best,
Craig

Arne Kepp-2 wrote:

Hi again,

Please try the following:
1) Download
http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the
file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected
image/png8
but got image/png from ...

--
View this message in context: http://www.nabble.com/mimetype-mismatch-tp18928524p18935378.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Yeah, you're right, wrong MIME type in the response. Strangely enough, it did actually work when I tested in Firefox 3, but only when viewing the tiles through OpenLayers (not if I then did "view image" on one).

Please try again, new jar: http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080812.143441-55.jar

Thanks,
-Arne

geoman wrote:

Hi Arne,

Thanks for the quick turnaround, but I don't think it is quite right yet.
With the new geowebcache jar file, neither Firefox nor IE were able to serve
this image directly. I hard some difficulty seeing the headers in FF's
LiveHttpHeaders, so I tried Fiddler with IE, and I saw the Content-Type was
set to image/png8. I believe the Content-Type http header should be
image/png.

Best,
Craig

Arne Kepp-2 wrote:
  

Hi again,

Please try the following:
1) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:
    

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected
image/png8
but got image/png from ...
      

Hi Arne,

With the latest jar file I get the error message again (Empty metatile,
error message: MimeType mismatch, expected image/png8 but got image/png
from...)

-Craig

Arne Kepp-2 wrote:

Yeah, you're right, wrong MIME type in the response. Strangely enough,
it did actually work when I tested in Firefox 3, but only when viewing
the tiles through OpenLayers (not if I then did "view image" on one).

Please try again, new jar:
http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080812.143441-55.jar

Thanks,
-Arne

geoman wrote:

Hi Arne,

Thanks for the quick turnaround, but I don't think it is quite right yet.
With the new geowebcache jar file, neither Firefox nor IE were able to
serve
this image directly. I hard some difficulty seeing the headers in FF's
LiveHttpHeaders, so I tried Fiddler with IE, and I saw the Content-Type
was
set to image/png8. I believe the Content-Type http header should be
image/png.

Best,
Craig

Arne Kepp-2 wrote:
  

Hi again,

Please try the following:
1) Download
http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the
file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:
    

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected
image/png8
but got image/png from ...
      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/mimetype-mismatch-tp18928524p18948975.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Arne,

That one works - thank you!

When I was confirming Content-Type was being set to image/png, I noticed
another header pair:

geowebcache-error: No real CacheControl information available

Is this one an issue?

Thanks,
Craig

Arne Kepp-2 wrote:

Yeah, you're right, wrong MIME type in the response. Strangely enough,
it did actually work when I tested in Firefox 3, but only when viewing
the tiles through OpenLayers (not if I then did "view image" on one).

Please try again, new jar:
http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080812.143441-55.jar

Thanks,
-Arne

geoman wrote:

Hi Arne,

Thanks for the quick turnaround, but I don't think it is quite right yet.
With the new geowebcache jar file, neither Firefox nor IE were able to
serve
this image directly. I hard some difficulty seeing the headers in FF's
LiveHttpHeaders, so I tried Fiddler with IE, and I saw the Content-Type
was
set to image/png8. I believe the Content-Type http header should be
image/png.

Best,
Craig

Arne Kepp-2 wrote:
  

Hi again,

Please try the following:
1) Download
http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the
file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:
    

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected
image/png8
but got image/png from ...
      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/mimetype-mismatch-tp18928524p18948981.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

thank you for testing.

"No real CacheControl information available" is not really an issue.

The reason is that by default GWC tries to provide the same expiration headers as set by the WMS server, but not all WMS servers provide this value. Also, GWC currently does not have a way to persist such a value between restarts, so it doesn't know the value until it makes the first WMS request to the backend for that layer. Hence the "error" that no CacheControl is available.

The default it reverts to is 2 hours, which should work well for most people.

-Arne

geoman wrote:

Hi Arne,

That one works - thank you!

When I was confirming Content-Type was being set to image/png, I noticed
another header pair:

geowebcache-error: No real CacheControl information available

Is this one an issue?

Thanks, Craig

Arne Kepp-2 wrote:
  

Yeah, you're right, wrong MIME type in the response. Strangely enough, it did actually work when I tested in Firefox 3, but only when viewing the tiles through OpenLayers (not if I then did "view image" on one).

Please try again, new jar: http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080812.143441-55.jar

Thanks,
-Arne

geoman wrote:
    

Hi Arne,

Thanks for the quick turnaround, but I don't think it is quite right yet.
With the new geowebcache jar file, neither Firefox nor IE were able to
serve
this image directly. I hard some difficulty seeing the headers in FF's
LiveHttpHeaders, so I tried Fiddler with IE, and I saw the Content-Type
was
set to image/png8. I believe the Content-Type http header should be
image/png.

Best,
Craig

Arne Kepp-2 wrote:
  

Hi again,

Please try the following:
1) Download http://repo.opengeo.org/org/opengeo/geowebcache/1.0-SNAPSHOT/geowebcache-1.0-20080811.184302-54.jar
2) Rename it to geowebcache-1.0-SNAPSHOT.jar
3) Stop your servlet container (Tomcat?)
4) Replace geoserver/WEB-INF/lib/geowebcache-1.0-SNAPSHOT.jar with the file you downloaded and renamed
5) Start container again, and test

Let me know if this solves your problems or not :slight_smile:

-Arne

geoman wrote:
    

I get the error message:
      Empty metatile, error message: MimeType mismatch, expected
image/png8
but got image/png from ...
      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users