Ciao Chris,
please, read below...

Regards,
Simone Giannecchini
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Mon, Apr 22, 2013 at 10:07 PM, Chris Gervais <[email protected]> wrote:
> Good Day List,
>
> Currently having an issue making a request to Geoserver using the
> Transparent argument. I currently have a list of image mosaic raster layers
> which are all generated the same way and added to geoserver the same way but
> yet only one works with 'transparent=true.'
>
> So that was convoluted. Anyway, make a WMS request and I get back an image.
> Example:
> http://localhost:8080/geoserver/ENV-792B/wms?service=WMS&version=1.1.0&request=GetMap&layers=ENV-792B:300mb_For_Guppy&styles=&bbox=47.968125,23.989358857500005,64.968125,39.989358297500004&width=512&height=481&srs=EPSG:4326&format=image%2Fpng
>
> Works Great, everybody happy.
>
> Now I make a the same request with &transparent=true at the end and boom:
> java hates me and kicks me in the balls

Wow, that's bad! Which java version are you using? Mine just throws
exception, it never kicked where it was not supposed to; you might
want to conside changing version ;)

> (Short copy below and
> GeoserverError.txt attached is the full request and error):
>
> Error: One factory fails for the operation "Mosaic"
> Occurs in: org.geoserver.jai.ConcurrentOperationRegistry
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ……..
> Caused by: java.lang.IllegalArgumentException: Alpha images must be
> single-banded.
>     at
> com.sun.media.jai.opimage.MosaicOpImage.<init>(MosaicOpImage.java:234)
>     at com.sun.media.jai.opimage.MosaicRIF.create(MosaicRIF.java:47)
>     ... 87 more
> 22 Apr 16:02:22 ERROR [geoserver.ows] -
> java.lang.RuntimeException: - Unable to render RenderedOp for this
> operation.
>
> Hmmm, unfortunate. Well for grins I was messing around testing and tried
> http://localhost:8080/geoserver/ENV-792B/wms?service=WMS&version=1.1.0&request=GetMap&layers=ENV-792B:300mb_For_Guppy,ENV-792B:300mb_For_Guppy&styles=&bbox=47.968125,23.989358857500005,64.968125,39.989358297500004&width=512&height=481&srs=EPSG:4326&format=image%2Fpng&transparent=true
> which is the same request just with the exact same layer twice and it works.
> Transparency works. Everyone is happy. I am using the default raster SLD
> that ships with geoserver but for grins I have gone through and changed it
> slightly to use use an opacity of 0.99 and no difference. I'm at a complete
> loss. Please tell me I'm doing something stupid and this is an easy fix.
>
> Thank you for your time.
> --
> Chris Gervais

The error looks strange indeed. As Andrea suggested it would be great
if you could open a Jira report with some sample data.
You might even to try and disable accelerated rendering with
-Dorg.geoserver.render.raster.direct.disable=true and see what happen.


>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to