[Geoserver-users] java.lang.ArrayIndexOutOfBoundsException: 0

Hi,
I'm using Windows XP, java (version 1.4 and 1.5), Geoserver 1.5.1 and I'm
looking for help about a blocking problem.

I create various Shapefiles/FeatureType/ Styles.
While adding the layers in Web Map Server Configuration:
1) When I Generate the SRS I obtain the error: could not determine CRS
identifier!
I solved correcting manually the SRS (EPSG:4326).
2) After the second/fourth layers' apply/save, after the save, happens this
error (see attachment 1.txt):
GeoServer - Exception
The following exception was thrown:
java.lang.ArrayIndexOutOfBoundsException: 0
3) After that the "Geoserver start" ends always in error (see attachment
2.txt) and I had to reinstall Geoserver.
4) After the installation Geoserver shows various messages (depending on how
many shapefiles I created):
test_shp:test org.vfny.geoserver.global.ConfigurationException:
FeatureTypeInfo test_shp:::test could not be used - DataStore test_shp is
not defined!
and I had to rewrite from scratch all shapefiles/feature/style/layers.

Does anyone know how to solve this problem ? Is it possible to recover the
previous shapefiles, etc. ?
http://www.nabble.com/file/p11946696/1.txt 1.txt
http://www.nabble.com/file/p11946696/2.txt 2.txt
Thanks,
Franco

--
View this message in context: http://www.nabble.com/java.lang.ArrayIndexOutOfBoundsException%3A-0-tf4200422.html#a11946696
Sent from the GeoServer - User mailing list archive at Nabble.com.

franco_t ha scritto:

Hi,
I'm using Windows XP, java (version 1.4 and 1.5), Geoserver 1.5.1 and I'm
looking for help about a blocking problem.

I create various Shapefiles/FeatureType/ Styles.
While adding the layers in Web Map Server Configuration:
1) When I Generate the SRS I obtain the error: could not determine CRS
identifier!
I solved correcting manually the SRS (EPSG:4326). 2) After the second/fourth layers' apply/save, after the save, happens this
error (see attachment 1.txt):
GeoServer - Exception
The following exception was thrown:
java.lang.ArrayIndexOutOfBoundsException: 0
3) After that the "Geoserver start" ends always in error (see attachment
2.txt) and I had to reinstall Geoserver.
4) After the installation Geoserver shows various messages (depending on how
many shapefiles I created):
test_shp:test org.vfny.geoserver.global.ConfigurationException:
FeatureTypeInfo test_shp:::test could not be used - DataStore test_shp is
not defined!
and I had to rewrite from scratch all shapefiles/feature/style/layers.

Does anyone know how to solve this problem ? Is it possible to recover the
previous shapefiles, etc. ?

Hmm... somehow the service.xml file got ruined, don't know why (will have a look and see if I manage to reproduce the issue). It should be enough to replace that one, leaving the rest untouched.
If you already replaced catalog.xml too, then you'll have to reconfigure
all of your shapefiles I fear...

Btw, which version of GeoServer are you using?

Cheers
Andrea

The GeoServer version is 1.5.1.

This time first of all I make a copy of services.xml.
Then I add a new layer and the apply/save went fine (apart the error: could
not determine CRS identifier!).
When I add a second layer (the fourth in total), after the save, I got the
error: java.lang.ArrayIndexOutOfBoundsException: 0.
Restoring services.xml saves the previous work.

At this point, I can save my work but (after many attempts) I'm not able to
go beyond the third layer.

Thanks,
Franco

aaime wrote:

franco_t ha scritto:

Hi,
I'm using Windows XP, java (version 1.4 and 1.5), Geoserver 1.5.1 and I'm
looking for help about a blocking problem.

I create various Shapefiles/FeatureType/ Styles.
While adding the layers in Web Map Server Configuration:
1) When I Generate the SRS I obtain the error: could not determine CRS
identifier!
I solved correcting manually the SRS (EPSG:4326).
2) After the second/fourth layers' apply/save, after the save, happens
this
error (see attachment 1.txt):
GeoServer - Exception
The following exception was thrown:
java.lang.ArrayIndexOutOfBoundsException: 0
3) After that the "Geoserver start" ends always in error (see attachment
2.txt) and I had to reinstall Geoserver.
4) After the installation Geoserver shows various messages (depending on
how
many shapefiles I created):
test_shp:test org.vfny.geoserver.global.ConfigurationException:
FeatureTypeInfo test_shp:::test could not be used - DataStore test_shp is
not defined!
and I had to rewrite from scratch all shapefiles/feature/style/layers.

Does anyone know how to solve this problem ? Is it possible to recover
the
previous shapefiles, etc. ?

Hmm... somehow the service.xml file got ruined, don't know why (will
have a look and see if I manage to reproduce the issue). It should be
enough to replace that one, leaving the rest untouched.
If you already replaced catalog.xml too, then you'll have to reconfigure
all of your shapefiles I fear...

Btw, which version of GeoServer are you using?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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/java.lang.ArrayIndexOutOfBoundsException%3A-0-tf4200422.html#a11948724
Sent from the GeoServer - User mailing list archive at Nabble.com.

franco_t ha scritto:

The GeoServer version is 1.5.1.

This time first of all I make a copy of services.xml.
Then I add a new layer and the apply/save went fine (apart the error: could
not determine CRS identifier!).
When I add a second layer (the fourth in total), after the save, I got the
error: java.lang.ArrayIndexOutOfBoundsException: 0.
Restoring services.xml saves the previous work.

At this point, I can save my work but (after many attempts) I'm not able to
go beyond the third layer.

Hmm... Franco, it seems you're configuring a basemap (group) layer, since the code where the thing breaks is storing the basemap layers exactly.

But I don't understand how do you manage to get there... can you
send me the layers you're configuring by private mail, as well as
what how you configured them (one by one)?

Cheers
Andrea