Bug#785257: closed by Sebastiaan Couwenberg <sebastic at xs4all.nl> (Re: Bug#785257: osmosis: ClassCastException when reading from pgsnapshot)
Toby Speight
T.M.Speight.90 at cantab.net
Thu May 14 07:35:37 UTC 2015
reopen 785257
thanks
0> In article <handler.785257.D785257.14315564474590.notifdone at bugs.debian.org>,
0> Debian Bug Tracking System <URL:mailto:owner at bugs.debian.org> ("Debian") wrote:
>> /--------
>> | $ osmosis -q --read-pgsimp database=osm --dataset-dump --write-null
Debian> You should use --read-pgsql for the snapshot schema.
Oops, that's an error in my report. I pasted that command from the wrong
terminal.
I am using --read-pgsql, not --read-pgsimp; here's my actual command and output:
/--------[ $ osmosis -q --read-pgsql database=osm --dataset-dump --write-null ]
| log4j:WARN No appenders could be found for logger (org.springframework.jdbc.datasource.DataSourceTransactionManager).
| log4j:WARN Please initialize the log4j system properly.
| log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
| May 14, 2015 8:27:59 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
| SEVERE: Thread for task 1-read-pgsql failed
| java.lang.ClassCastException: java.util.HashMap cannot be cast to org.openstreetmap.osmosis.hstore.PGHStore
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.EntityRowMapper.mapCommonEntityData(EntityRowMapper.java:80)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.NodeRowMapper.mapRow(NodeRowMapper.java:30)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.NodeRowMapper.mapRow(NodeRowMapper.java:17)
| at org.openstreetmap.osmosis.pgsnapshot.common.RowMapperRowCallbackListener.processRow(RowMapperRowCallbackListener.java:46)
| at org.springframework.jdbc.core.JdbcTemplate$RowCallbackHandlerResultSetExtractor.extractData(JdbcTemplate.java:1493)
| at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:446)
| at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:396)
| at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:456)
| at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:460)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.EntityDao.getFeaturelessEntity(EntityDao.java:178)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.EntityDao.iterate(EntityDao.java:227)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.EntityDao.iterate(EntityDao.java:256)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.PostgreSqlDatasetContext.iterate(PostgreSqlDatasetContext.java:208)
| at org.openstreetmap.osmosis.dataset.v0_6.DumpDataset.process(DumpDataset.java:48)
| at org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlDatasetReader.run(PostgreSqlDatasetReader.java:53)
| at java.lang.Thread.run(Thread.java:745)
|
| May 14, 2015 8:28:00 AM org.openstreetmap.osmosis.core.Osmosis main
| SEVERE: Execution aborted.
| org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
| at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
| at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
| at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
| 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:606)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
| at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
| at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
| at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
|
\--------
Sorry for the mistake!
More information about the Pkg-grass-devel
mailing list