PostgisDataStore does not support java.lang.Short
-------------------------------------------------

                 Key: GEOT-1758
                 URL: http://jira.codehaus.org/browse/GEOT-1758
             Project: GeoTools
          Issue Type: Bug
          Components: data postgis
    Affects Versions: 2.4.0, 2.4-RC0
         Environment: linux
            Reporter: Lars Aksel Opsahl
            Assignee: Justin Deoliveira
            Priority: Minor


The error you get is 
java.io.IOException: Type 'class java.lang.Short' not supported!
        at 
org.geotools.data.postgis.PostgisDataStore.makeSqlCreate(PostgisDataStore.java:1555)
        at 
org.geotools.data.postgis.PostgisDataStore.createSchema(PostgisDataStore.java:1228)

It's easy to fix just add
CLASS_MAPPINGS.put(Short.class, "SMALLINT");
in the PostgisDatastore.java






-- 
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

        

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to