Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException při zpracování katastrálních území #25

Open
cikorka opened this issue May 15, 2014 · 4 comments
Open

Comments

@cikorka
Copy link

cikorka commented May 15, 2014

Ahoj,
díky za skvělý nástroj... !

Bohužel při importu dat, mi to při zpracování katastrálních území vyhazuje NullPointerException. Chyba se stává jen u některých souborů.

Dík

$ java -cp ruian2pgsql-1.5.0-jar-with-dependencies.jar –com.fordfrog.ruian2pgsql.App  --db-connection-url >"jdbc:postgresql://localhost/ruian?user=spring&password=spring" --no-gis --truncate-all --create-tables --input-dir "/Users/cikorka/Downloads"
Initializing database schema...
Truncating all data tables...
Processing file /Users/cikorka/Downloads/20140228_ST_UZSZ.xml.gz
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 VerzeVFR
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 PlatnostDatK
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISUI
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISKN
File processed in 17701 ms
Processing file /Users/cikorka/Downloads/20140331_ST_UZSZ.xml.gz
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 VerzeVFR
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 PlatnostDatK
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISUI
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISKN
Exception in thread "main" java.lang.NullPointerException
        at com.fordfrog.ruian2pgsql.convertors.KatastralniUzemiConvertor.fill(KatastralniUzemiConvertor.java:121)
        at com.fordfrog.ruian2pgsql.convertors.KatastralniUzemiConvertor.fill(KatastralniUzemiConvertor.java:41)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.insertItem(AbstractSaveConvertor.java:283)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.saveData(AbstractSaveConvertor.java:246)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.convert(AbstractSaveConvertor.java:168)
        at com.fordfrog.ruian2pgsql.convertors.CollectionConvertor.processElement(CollectionConvertor.java:93)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.DataConvertor.processElement(DataConvertor.java:184)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.ExchangeFormatConvertor.processElement(ExchangeFormatConvertor.java:73)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processElement(MainConvertor.java:308)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.readInputStream(MainConvertor.java:287)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processFile(MainConvertor.java:244)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.convert(MainConvertor.java:131)
        at com.fordfrog.ruian2pgsql.App.main(App.java:133)
$ java -cp ruian2pgsql-1.5.0-jar-with-dependencies.jar com.fordfrog.ruian2pgsql.App  --db-connection-url "jdbc:postgresql://localhost/ruian?user=spring&password=spring" --no-gis --truncate-all --create-tables --input-dir "/Users/cikorka/Downloads"                 
Initializing database schema...
Truncating all data tables...
Unsupported file extension, ignoring file /Users/cikorka/Downloads/.DS_Store
Processing file /Users/cikorka/Downloads/20140228_OB_599999_UZSZ.xml.gz
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 VerzeVFR
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 PlatnostDatK
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISUI
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISKN
Exception in thread "main" java.lang.AbstractMethodError: org.postgresql.jdbc3.Jdbc3Connection.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;
        at com.fordfrog.ruian2pgsql.utils.PreparedStatementEx.setIntArray(PreparedStatementEx.java:158)
        at com.fordfrog.ruian2pgsql.convertors.StavebniObjektConvertor.fill(StavebniObjektConvertor.java:195)
        at com.fordfrog.ruian2pgsql.convertors.StavebniObjektConvertor.fill(StavebniObjektConvertor.java:42)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.insertItem(AbstractSaveConvertor.java:283)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.saveData(AbstractSaveConvertor.java:246)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.convert(AbstractSaveConvertor.java:168)
        at com.fordfrog.ruian2pgsql.convertors.CollectionConvertor.processElement(CollectionConvertor.java:93)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.DataConvertor.processElement(DataConvertor.java:220)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.ExchangeFormatConvertor.processElement(ExchangeFormatConvertor.java:73)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processElement(MainConvertor.java:308)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.readInputStream(MainConvertor.java:287)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processFile(MainConvertor.java:244)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.convert(MainConvertor.java:131)
        at com.fordfrog.ruian2pgsql.App.main(App.java:133)
@xificurk
Copy link
Contributor

xificurk commented Aug 9, 2014

UZSZ - co to je za soubory? Mám pocit, že tyhle podporované nejsou.

@cikorka
Copy link
Author

cikorka commented Sep 25, 2014

Zkusil jsem pouzit upnou sadu a chyba se opakuje...

Processing file /Users/cikorka/Downloads/20140831_OB_500011_UKSH.xml
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 VerzeVFR
Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:VymennyFormatTypy:v1 PlatnostDatK
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISUI
  Warning: Ignoring unsupported element urn:cz:isvs:ruian:schemas:CommonTypy:v1 ISKN
Exception in thread "main" java.lang.AbstractMethodError: org.postgresql.jdbc3.Jdbc3Connection.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;
        at com.fordfrog.ruian2pgsql.utils.PreparedStatementEx.setIntArray(PreparedStatementEx.java:158)
        at com.fordfrog.ruian2pgsql.convertors.StavebniObjektConvertor.fill(StavebniObjektConvertor.java:195)
        at com.fordfrog.ruian2pgsql.convertors.StavebniObjektConvertor.fill(StavebniObjektConvertor.java:42)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.insertItem(AbstractSaveConvertor.java:283)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.saveData(AbstractSaveConvertor.java:246)
        at com.fordfrog.ruian2pgsql.convertors.AbstractSaveConvertor.convert(AbstractSaveConvertor.java:168)
        at com.fordfrog.ruian2pgsql.convertors.CollectionConvertor.processElement(CollectionConvertor.java:93)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.DataConvertor.processElement(DataConvertor.java:227)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.ExchangeFormatConvertor.processElement(ExchangeFormatConvertor.java:73)
        at com.fordfrog.ruian2pgsql.convertors.AbstractConvertor.convert(AbstractConvertor.java:77)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processElement(MainConvertor.java:315)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.readInputStream(MainConvertor.java:294)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.processFile(MainConvertor.java:253)
        at com.fordfrog.ruian2pgsql.convertors.MainConvertor.convert(MainConvertor.java:138)
        at com.fordfrog.ruian2pgsql.App.main(App.java:133)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants