gisgraphy-3.0-beta2: import with java 7 results in IllegalArgumentException
Opened this issue · 8 comments
GoogleCodeExporter commented
Using jdk1.7.0 and running the import results in the following error:
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:41,557]
(btpool0-2,) : 5 regex for gisFeatureImporter
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:44,634]
(btpool0-2,) : 1 regex for gisFeatureImporter
[INFO] [com.gisgraphy.importer.ImporterManager] [27 Dez 2012 12:20:44,723]
(importBackgroundThread,) : will now process GeonamesFileRetriever
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:44,726]
(importBackgroundThread,) : download file
http://download.geonames.org/export/dump/DE.zip to ./data/import/DE.zip
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,002]
(btpool0-2,) : HTTP file size of
http://download.geonames.org/export/dump/DE.zip = 4525174
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,033]
(btpool0-2,) : HTTP file size of
http://download.geonames.org/export/dump/alternateNames.zip = 74924611
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,063]
(btpool0-2,) : HTTP file size of http://download.geonames.org/export/zip/DE.zip
= 220971
[ERROR] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,090]
(btpool0-2,) : Can not determine HTTP file size of
http://download.geonames.org/export/zip/alternateNames.zip because it does not
exists (404)
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,365]
(btpool0-2,) : HTTP file size of
http://download.gisgraphy.com/openstreetmap/version_3_0/DE.tar.bz2 = 746686589
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,854]
(importBackgroundThread,) : ./data/import/DE.zip 4525174
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:45,854]
(importBackgroundThread,) : download file
http://download.geonames.org/export/dump/alternateNames.zip to
./data/import/alternateNames.zip
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:54,949]
(importBackgroundThread,) : ./data/import/alternateNames.zip 74924611
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:54,963]
(importBackgroundThread,) : will Extracting file: DE.zip
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:54,964]
(importBackgroundThread,) : Extracting file: readme.txt to
./data/import/readme.txt
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:54,971]
(importBackgroundThread,) : Extracting file: DE.txt to ./data/import/DE.txt
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:55,683]
(importBackgroundThread,) : will Extracting file: alternateNames.zip
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:55,683]
(importBackgroundThread,) : Extracting file: iso-languagecodes.txt to
./data/import/iso-languagecodes.txt
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:20:55,959]
(importBackgroundThread,) : Extracting file: alternateNames.txt to
./data/import/alternateNames.txt
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:05,616]
(importBackgroundThread,) : DE.txt is an importable File
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:05,617]
(importBackgroundThread,) : 1 files are importable files
[INFO] [com.gisgraphy.importer.ImporterManager] [27 Dez 2012 12:21:05,617]
(importBackgroundThread,) : will now process GeonamesAdmExtracter
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:05,619]
(importBackgroundThread,) : DE.txt is an importable File
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:05,619]
(importBackgroundThread,) : 1 files are importable files
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:06,052]
(importBackgroundThread,) : DE.txt is an importable File
[INFO] [com.gisgraphy.importer.ImporterHelper] [27 Dez 2012 12:21:06,052]
(importBackgroundThread,) : 1 files are importable files
[INFO] [com.gisgraphy.importer.ImporterManager] [27 Dez 2012 12:21:06,566]
(importBackgroundThread,) : will now process GeonamesLanguageImporter
[INFO] [com.gisgraphy.importer.ImporterManager] [27 Dez 2012 12:21:10,454]
(importBackgroundThread,) : will now process GeonamesCountryImporter
[ERROR] [com.gisgraphy.importer.AbstractSimpleImporterProcessor] [27 Dez 2012
12:21:10,612] (importBackgroundThread,) : An error occurred when processing
GeonamesCountryImporter : An error occurred when processing countryInfo.txt :
An Error occurred on Line 1 for AD AND 200 AN Andorra Andorra
la Vella 468 84000 EU .ad EUR Euro 376 AD###
^(?:AD)*(\d{3})$ ca 3041565 ES,FR : IllegalArgumentException
occurred while calling setter of
com.gisgraphy.domain.geoloc.entity.GisFeature.adm; nested exception is
org.hibernate.PropertyAccessException: IllegalArgumentException occurred while
calling setter of com.gisgraphy.domain.geoloc.entity.GisFeature.adm
com.gisgraphy.importer.ImporterException: An error occurred when processing
countryInfo.txt : An Error occurred on Line 1 for AD AND 200 AN
Andorra Andorra la Vella 468 84000 EU .ad EUR
Euro 376 AD### ^(?:AD)*(\d{3})$ ca 3041565 ES,FR :
IllegalArgumentException occurred while calling setter of
com.gisgraphy.domain.geoloc.entity.GisFeature.adm; nested exception is
org.hibernate.PropertyAccessException: IllegalArgumentException occurred while
calling setter of com.gisgraphy.domain.geoloc.entity.GisFeature.adm
at com.gisgraphy.importer.AbstractSimpleImporterProcessor.processFile(AbstractSimpleImporterProcessor.java:393)
at com.gisgraphy.importer.AbstractSimpleImporterProcessor.process(AbstractSimpleImporterProcessor.java:303)
at com.gisgraphy.importer.ImporterManager.importAll(ImporterManager.java:115)
at com.gisgraphy.webapp.action.ImportAction.doImport(ImportAction.java:93)
at com.gisgraphy.webapp.action.ImportAction.execute(ImportAction.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.orm.hibernate3.HibernateSystemException:
IllegalArgumentException occurred while calling setter of
com.gisgraphy.domain.geoloc.entity.GisFeature.adm; nested exception is
org.hibernate.PropertyAccessException: IllegalArgumentException occurred while
calling setter of com.gisgraphy.domain.geoloc.entity.GisFeature.adm
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:659)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:378)
at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:693)
at com.gisgraphy.domain.repository.GenericDao.save(GenericDao.java:112)
at com.gisgraphy.domain.repository.GenericGisDao.save(GenericGisDao.java:384)
at com.gisgraphy.domain.repository.CountryDao.save(CountryDao.java:72)
at com.gisgraphy.domain.repository.CountryDao.save(CountryDao.java:46)
at com.gisgraphy.importer.GeonamesCountryImporter.processData(GeonamesCountryImporter.java:158)
at com.gisgraphy.importer.AbstractSimpleImporterProcessor.readLineAndProcessData(AbstractSimpleImporterProcessor.java:233)
at com.gisgraphy.importer.AbstractSimpleImporterProcessor.processFile(AbstractSimpleImporterProcessor.java:375)
... 12 more
Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException
occurred while calling setter of
com.gisgraphy.domain.geoloc.entity.GisFeature.adm
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:104)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:337)
at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:200)
at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3566)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:277)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:696)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:373)
... 20 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:42)
... 35 more
Using the deprecated jdk6 does not result in this error.
Original issue reported on code.google.com by jens.nac...@gmail.com
on 27 Dec 2012 at 2:30
GoogleCodeExporter commented
hi
can you give more precision, i can not reproduce (os, 32/64 bits, is it oracle
or openjdk, or an other one)
Thanks
Original comment by davidmasclet@gmail.com
on 9 Jan 2013 at 7:20
GoogleCodeExporter commented
This is with latest oracle java 7 under Ubuntu 12.04 LTS.
Original comment by jens.nac...@gmail.com
on 9 Jan 2013 at 1:38
GoogleCodeExporter commented
hi Any updates on this
Original comment by pavankum...@gmail.com
on 17 Apr 2013 at 6:43
GoogleCodeExporter commented
Same error here with java 7, any updates for this?
Original comment by sander.e...@gmail.com
on 12 Jun 2013 at 8:18
GoogleCodeExporter commented
hi
can some one can try this
http://spiritandopportunity.com/list/6/89180.html
from my side, I can not reproduce, so I can not test
Original comment by davidmasclet@gmail.com
on 4 Oct 2013 at 6:58
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
I got the same error. Replacing the data/Import/countryInfo.txt file with this
one (http://download.geonames.org/export/dump/countryInfo.txt) did the trick.
Original comment by keinat...@googlemail.com
on 5 May 2014 at 7:32
GoogleCodeExporter commented
I got the same error to. I'd replaced the countryInfo.txt but the error still
there. can anyone help? I'm using postgres 9.1, postgis 1.5
Original comment by mlg2...@gmail.com
on 8 May 2014 at 4:37