Oracle duplicate attributeType prevents featureTypes being created
------------------------------------------------------------------
Key: GEOS-402
URL: http://jira.codehaus.org/browse/GEOS-402
Project: GeoServer
Type: Bug
Components: Oracle
Versions: 1.3-rc2
Reporter: Chris Holmes
Assigned to: Sean Geoghegan
Fix For: 1.3.1
Ok, we've not got 3+ users complaining about this on oracle, and other users apparently have no problem. The problem appears to be that whenever creating a new featureType in the web admin tool it gets something like this:
java.lang.IllegalArgumentException: Duplicate AttributeTypes
DefaultAttributeType [name=F001_GEOM , type=class com.vividsolutions.jts.geom.
Geometry , nillable=true, min=1, max=1]
at org.geotools.feature.FeatureTypeBuilder.check(FeatureTypeBuilder.java:
602)
at org.geotools.feature.FeatureTypeBuilder.addType(FeatureTypeBuilder.
java:349)
at org.geotools.feature.FeatureTypeBuilder.addTypes(FeatureTypeBuilder.
java:329)
at org.geotools.feature.FeatureTypeFactory.
And popping up ungracefully in the web-admin tool as a servlet error, to boot. Something in the oracle builder must be trying to read in the geometries twice?
Need some help from users on this one, since the few oracle dbs we have access to don't seem to have the problem.
What version of oracle are you using?
Is this a problem on _all_ tables? Like are you ever able to create a featureType? If not, what is unique about these tables?
Could you try ones that don't have any geometry? (not sure if this is possible with oracle + gt2, but I know on postgis it is)
What is the structure of your tables?
Is your geometry properly registered in the oracle meta table (I forget what it's called at the moment).
Any other relevant information you can think of?
Basically GeoTools seems to think that there are two attributes of the same name. I have no idea why...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira