I have built Geoserver 1.4.x with latest geotools snapshot. The way described
at http://www.nabble.com/GeoServer-1.4.x-tf1985740.html by Saul Farber-2.
Everything is OK (bulding, installation, GML data loading, coverage
creating) but when i try to get map with WMS query
http://localhost:8081/geoserver/wms?bbox=56.112133,57.334564,56.429067,58.025123&styles=line&Format=image/png&request=GetMap&layers=track:tracks&width=550&height=250&srs=EPSG:4326
i get an exception "Caused by:java.lang.IllegalArgumentException: The
provided format image/png is not the same as expected: image/png"
If image format "image/png" replace with "image/gif" error looks like
"Caused by: java.lang.NullPointerException".
Stacktrace part when "image/png" output format:
Caused by: java.lang.IllegalArgumentException: The provided format image/png
is
not the same as expected: image/png
at
org.vfny.geoserver.wms.responses.map.png.PNGMapProducer.formatImageOu
tputStream(PNGMapProducer.java:53)
at
org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.writeTo(Def
aultRasterMapProducer.java:124)
at
org.vfny.geoserver.wms.responses.GetMapResponse.writeTo(GetMapRespons
e.java:359)
at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:572)
... 38 more
In 1.3.2_WCS the same query was fine.
What's does it mean?
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5647603
Sent from the GeoServer - User forum at Nabble.com.
Cial Alexey,
sory about that, I am in the process of rewriting the map producers
for many formats and I just solved this issue.
I am going to commit the changes shortly.
Simone.
On 8/4/06, Alexey Leybman <alexey.leybman@anonymised.com> wrote:
I have built Geoserver 1.4.x with latest geotools snapshot. The way described
at http://www.nabble.com/GeoServer-1.4.x-tf1985740.html by Saul Farber-2.
Everything is OK (bulding, installation, GML data loading, coverage
creating) but when i try to get map with WMS query
http://localhost:8081/geoserver/wms?bbox=56.112133,57.334564,56.429067,58.025123&styles=line&Format=image/png&request=GetMap&layers=track:tracks&width=550&height=250&srs=EPSG:4326
i get an exception "Caused by:java.lang.IllegalArgumentException: The
provided format image/png is not the same as expected: image/png"
If image format "image/png" replace with "image/gif" error looks like
"Caused by: java.lang.NullPointerException".
Stacktrace part when "image/png" output format:
Caused by: java.lang.IllegalArgumentException: The provided format image/png
is
not the same as expected: image/png
at
org.vfny.geoserver.wms.responses.map.png.PNGMapProducer.formatImageOu
tputStream(PNGMapProducer.java:53)
at
org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.writeTo(Def
aultRasterMapProducer.java:124)
at
org.vfny.geoserver.wms.responses.GetMapResponse.writeTo(GetMapRespons
e.java:359)
at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:572)
... 38 more
In 1.3.2_WCS the same query was fine.
What's does it mean?
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5647603
Sent from the GeoServer - User forum at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------
OK
Thanks for reply.
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5647892
Sent from the GeoServer - User forum at Nabble.com.
Ok, changes are committed,
you should be able to play with amny output formts:
gif,
png,
tiff,
geotiff,
jpeg.
Lemme know how it goes.
Simone.
On 8/4/06, Alexey Leybman <alexey.leybman@anonymised.com> wrote:
OK
Thanks for reply.
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5647892
Sent from the GeoServer - User forum at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------
Yes, i have tested new revision. Results:
image/png - OK
image/gif - OK
image/svg - OK
application/pdf - OK
image/tiff - OK
image/geotiff - OK
application/vnd.google-earth.kml+xml - OK.
application/vnd.google-earth.kmz - OK.
Whith image/jpeg i have some problem. The JPEGMapProducerFactory bean cannot
be initialized at applicationContext.xml loading when Tomcat startup. I
comment tags with JPEGMapProducerFactory bean initialization for geoserver
good loading.
The beginning:
INFO: Loading XML bean definitions from URL
[jar:file:/C:/javasoft/geoserver/web
apps/geoserver/WEB-INF/lib/wms-1.4.0-M1.jar!/applicationContext.xml]
06.08.2006 15:03:45 org.springframework.web.context.ContextLoader
initWebApplica
tionContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registerin
g bean with name 'JPEGMapProducerFactory' defined in URL
[jar:file:/C:/javasoft/
geoserver/webapps/geoserver/WEB-INF/lib/wms-1.4.0-M1.jar!/applicationContext.xml
]: Bean class
[org.vfny.geoserver.wms.responses.map.jpeg.JPEGMapProducerFactory]
not found; nested exception is java.lang.ClassNotFoundException:
org.vfny.geose
rver.wms.responses.map.jpeg.JPEGMapProducerFactory
java.lang.ClassNotFoundException:
org.vfny.geoserver.wms.responses.map.jpeg.JPEG
MapProducerFactory
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1365)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1212)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:88)
at
org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c
reateBeanDefinition(BeanDefinitionReaderUtils.java:65)
There is an other error at context initialization when Tomcat startup.
Tomcat cannot recognize the extension words at wkb4j-1.0-RC1.jar
MANIFES.MF-file. Removing strings after "Implementation-Vendor-Id: " in
MANIFES.MF make loading well.
The beginning:
INFO: Installing web application at context path /geoserver from URL
file:C:\jav
asoft\geoserver\webapps\geoserver
06.08.2006 15:10:14 org.apache.catalina.core.StandardHostDeployer install
INFO: Error installing
java.lang.IllegalArgumentException:
log4j,openmap,postgis,jts,junitperf,junit,po
stgresql-Extension-Name
at java.util.jar.Attributes$Name.<init>(Attributes.java:440)
at java.util.jar.Attributes.getValue(Attributes.java:99)
at
org.apache.catalina.util.ManifestResource.getRequiredExtensions(Manif
estResource.java:243)
at
org.apache.catalina.util.ManifestResource.processManifest(ManifestRes
ource.java:212)
at
org.apache.catalina.util.ManifestResource.<init>(ManifestResource.jav
a:96)
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5671122
Sent from the GeoServer - User forum at Nabble.com.
Ok, changes are committed,
you should be able to play with amny output formts:
gif,
png,
tiff,
geotiff,
jpeg.
Lemme know how it goes.
Simone.
On 8/4/06, Alexey Leybman <alexey.leybman@anonymised.com> wrote:
OK
Thanks for reply.
--
View this message in context: http://www.nabble.com/Exception-at-PNGMapProducer-with-GeoServer-1.4.x-tf2050290.html#a5647892
Sent from the GeoServer - User forum at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------
--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions
http://www.geo-solutions.it
-------------------------------------------------------