Hi Andrea,

Thanks! The issue seems solved with your patch. For the record the, or 
another issue appeared in a different form in 2.1-beta3 (see below) but 
seems fixed as well. This all is on Ubuntu 9.10 32b (I never do Windows).

I checked first with unpatched 2.1-beta3 and saw 2 types of issues with 
those shapefiles:
1) 21 Dec 11:37:22 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: The requested Style can not be 
used with this layer.  The style specifies an attribute of STRNAAMNL and 
the layer is: inspire:gn_wegdeel_punt
        at 
org.geoserver.wms.map.GetMapKvpRequestReader.checkStyle(GetMapKvpRequestReader.java:1051)

2) 21 Dec 11:54:58 ERROR [geotools.rendering] - PropertyDescriptor is 
null - did you request a property that does not exist?
org.geotools.data.DataSourceException: PropertyDescriptor is null - did 
you request a property that does not exist?
        at 
org.vfny.geoserver.global.GeoServerFeatureSource.getFeatures(GeoServerFeatureSource.java:344)
        at 
org.vfny.geoserver.global.GeoServerFeatureSource.getFeatures(GeoServerFeatureSource.java:66)
        at 
org.geotools.renderer.lite.StreamingRenderer.queryLayer(StreamingRenderer.java:1078)
        at 
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1892)
        at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:759)
        at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:429)

I was sure that these attributes as refered in the SLD exist. When going 
to the layer edit page, there was only the geometry attribute of the 
layer. When clicking "Reload feature type", all other attributes 
appeared and the above errors were gone. However the errors reappeared 
after each GS restart.

After substituting your gt-shapefile-2.7-SNAPSHOT.jar for the one in 
2.1-beta3 the issues never occurred again. The more strange since both 
versions of gt-shapefile-2.7-SNAPSHOT.jar were equal in size and just 
differed in one byte:
cmp gt-shapefile-2.7-SNAPSHOT.jar 
../../gt-shapefile-2.7-SNAPSHOT.jar.old differ: byte 11, line 2 . But 
ok, one byte can make all the difference !

best,

Just van den Broecke
www.justobjects.nl



On 19-12-10 09:55, Andrea Aime wrote:
> On Thu, Dec 9, 2010 at 6:30 PM, Just van den Broecke
> <j...@justobjects.nl>  wrote:
>> On 09-12-10 16:32, Andrea Aime wrote:
>>> On Thu, Dec 9, 2010 at 3:13 PM, Just van den Broecke
>>> <j...@justobjects.nl>    wrote:
>>>> Hi Andrea,
>>>>
>>>> On 09-12-10 14:05, Andrea Aime wrote:
>>>>> On Thu, Dec 9, 2010 at 11:59 AM, Just van den Broecke
>>>>> <j...@justobjects.nl>      wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I upgraded GS from 2.0.2 to 2.1-beta2. I now get OOM exceptions and
>>>>>> locking errors (see below) from Java NIO FileChannel (memory mapped
>>>>>> files I think) when serving Shapefiles several times via WMS. Usually
>>>>>> the first rendering after a fresh start of GS went OK. The same
>>>>>> config/Shapefiles did not cause these exceptions in 2.0.2.
>>>>>
>>>>> Are you running on Windows? I'd suggest to disable memory mapping there,
>>>>> the OS is simply not good enough to handle memory maps effectively.
>>>> No on Ubuntu Linux, settings:
>>>> Ubuntu 9.10 32b, 12 GB RAM, Sun JDK 1.6_22, native JAI+ImageIO, Tomcat
>>>> 6.0.29, no Gdal bindings. Tomcat JAVA_OPTS="-server -Xmx1500M -Xms256M
>>>> -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:MaxPermSize=512m -XX:+UseParallelGC"
>>>>
>>>> I use a directory of (10) Shape files as a datastore. The problem
>>>> happens only with one Shape file (the largest: 370MB dbf).
>>>
>>> Hmmm... odd, during the FOSS4G shootout we had 1.7GB .shp and
>>> dbf files over 2GB and found no issues.
>> That was 2.1-beta1 probably ? Like said in 2.0.2 I also had no issues.
>>>
>>> Is it possible to have the shapefile in question along with the style
>>> and the request that makes it break?
>> Ok, already sent privately.
>
> Ok, finally found some time to look into this. I can confirm this is an issue
> happening on windows only, the memory mapping failed to be disabled
> according to configuration
>
> I fixed it, but not in time for beta3. However I've attached fixed shapefile
> store jar which should work as a replacement for the one in beta3 here:
> http://jira.codehaus.org/browse/GEOS-4268
>
> Past the patch I tried to display a 4.5GB (total, shp + dbf) shapefile
> which was part of the
> FOSS4G 2010 exercise on windows and had no issues
>
> Cheers
> Andrea
>
>
> -----------------------------------------------------
> Ing. Andrea Aime
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584962313
> fax:     +39 0584962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -----------------------------------------------------
>
>




------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to