Problem creating a new FeatureType

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem creating a new FeatureType

Dimitri Chausson
Hi all,

I am using the geoserver 1.3.0-RC3 with Oracle 10g. I have registered a
Datastore, and tried to create a new FeatureType. Unfortunately, I am
getting this error message:

*type* Exception report

*message*

*description* _The server encountered an internal error () that
prevented it from fulfilling this request._

*exception*

javax.servlet.ServletException: Duplicate AttributeTypes DefaultAttributeType [name=ID_COUNTRY , type=class java.math.BigDecimal , nillable=true, min=1, max=1]
        org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
        org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
        org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

java.lang.IllegalArgumentException: Duplicate AttributeTypes DefaultAttributeType [name=ID_COUNTRY , type=class java.math.BigDecimal , nillable=true, min=1, max=1]
        org.geotools.feature.FeatureTypeBuilder.check(FeatureTypeBuilder.java:602)
        org.geotools.feature.FeatureTypeBuilder.addType(FeatureTypeBuilder.java:349)
        org.geotools.feature.FeatureTypeBuilder.addTypes(FeatureTypeBuilder.java:329)
        org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:219)
        org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:169)
        org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:248)
        org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:264)
        org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1171)
        org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:200)
        org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:168)
        org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:388)
        org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:80)
        org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
        org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
        org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

**I then tried the same on other tables, but the same error occurs.
Maybe someone has an idea of what the problem can be ? Thanks very much
in advance,

Dimitri


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users