Your message dated Sun, 24 May 2015 13:32:15 +0000
with message-id <e1yww0l-0002m4...@franck.debian.org>
and subject line Bug#785257: fixed in osmosis 0.43.1-3+deb8u1
has caused the Debian Bug report #785257,
regarding osmosis: ClassCastException when reading from pgsnapshot
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
785257: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785257
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: osmosis
Version: 0.43.1-4
Severity: normal

I recently dropped my pgsimple database and created a new pgsnapshot
database.  But although osmosis successfully writes to it (both
initially and every night using replication), a read fails:

/--------
| $ osmosis -q --read-pgsimp 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 13, 2015 5:30:03 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 13, 2015 5:30:03 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)
\--------

Shell tracing /usr/bin/osmosis shows the final command as

/--------
| exec java -server -Xmx4G -Djava.io.tmpdir=/tmp/user/1000 -cp 
/usr/share/java/plexus-classworlds.jar -Dapp.home=/usr/share/osmosis 
-Dclassworlds.conf=/etc/osmosis/plexus.conf 
-Dlog4j.configuration=file:/etc/osmosis/log4j.properties 
org.codehaus.classworlds.Launcher -q --read-pgsimp database=osm --dataset-dump 
--write-null
\--------

My database was created using the SQL from
/usr/share/doc/osmosis/examples/pgsnapshot_schema_0.6*, and the table
definitions look reasonable - here's the nodes table:

/--------
| osm=# \d nodes
|                   Table "public.nodes"
|     Column    |            Type             | Modifiers 
| --------------+-----------------------------+-----------
|  id           | bigint                      | not null
|  version      | integer                     | not null
|  user_id      | integer                     | not null
|  tstamp       | timestamp without time zone | not null
|  changeset_id | bigint                      | not null
|  tags         | hstore                      | 
|  geom         | geometry(Point,4326)        | 
| Indexes:
|     "pk_nodes" PRIMARY KEY, btree (id)
|     "idx_nodes_geom" gist (geom)
\--------

P.S. the log4j warnings start appearing once I use pgsnapshot operations,
and didn't with pgsimple - related to Bug #579206, perhaps?


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel

Kernel: Linux 3.16.7-ckt2-balti (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages osmosis depends on:
ii  default-jre-headless [java6-runtime-headless]    2:1.7-52
ii  libbatik-java                                    1.7+dfsg-5
ii  libcommons-codec-java                            1.10-1
ii  libcommons-compress-java                         1.9-1
ii  libcommons-dbcp-java                             1.4-5
ii  libcommons-pool-java                             1.6-2
ii  libjpf-java                                      1.5.1+dfsg-4
ii  libmysql-java                                    5.1.32-1
ii  libnetty-java                                    1:3.2.6.Final-2
ii  libosmpbf-java                                   1.3.3-3
ii  libplexus-classworlds-java                       1.5.0-5
ii  libpostgis-java                                  2.1.7+dfsg-1
ii  libpostgresql-jdbc-java                          9.2-1002-1
ii  libprotobuf-java                                 2.6.1-1
ii  libspring-beans-java                             3.2.13-1
ii  libspring-context-java                           3.2.13-1
ii  libspring-core-java                              3.2.13-1
ii  libspring-jdbc-java                              3.2.13-1
ii  libspring-transaction-java                       3.2.13-1
ii  libxerces2-java                                  2.11.0-7
ii  libxz-java                                       1.5-1
ii  openjdk-6-jre-headless [java6-runtime-headless]  6b35-1.13.7-1
ii  openjdk-7-jre-headless [java6-runtime-headless]  7u79-2.5.5-1~deb8u1

osmosis recommends no packages.

osmosis suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: osmosis
Source-Version: 0.43.1-3+deb8u1

We believe that the bug you reported is fixed in the latest version of
osmosis, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 785...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <sebas...@debian.org> (supplier of updated osmosis package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 14 May 2015 14:07:55 +0200
Source: osmosis
Binary: osmosis
Architecture: source all
Version: 0.43.1-3+deb8u1
Distribution: stable-proposed-updates
Urgency: medium
Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Changed-By: Bas Couwenberg <sebas...@debian.org>
Description:
 osmosis    - Command line OpenStreetMap data processor
Closes: 785257
Changes:
 osmosis (0.43.1-3+deb8u1) stable-proposed-updates; urgency=medium
 .
   * Add patch from upstream to fix java.lang.ClassCastException for
     java.util.HashMap to org.openstreetmap.osmosis.hstore.PGHStore.
     (closes: #785257)
Checksums-Sha1:
 7cc6797faf91d0849f516062968561773f04e459 2496 osmosis_0.43.1-3+deb8u1.dsc
 b51b0344ffa1487416bb46591f1683d19335956a 44064 
osmosis_0.43.1-3+deb8u1.debian.tar.xz
 97a6d9f7fe6aa375fa3280cfe7e789825c52a543 1132960 
osmosis_0.43.1-3+deb8u1_all.deb
Checksums-Sha256:
 f3bec67dd551d4afaa6d3fd43985774c806398cd0156ba8312d1f1ab48618477 2496 
osmosis_0.43.1-3+deb8u1.dsc
 b8683df4f3bd78579bd5e3f5c4f5944f6fc8cd2d1ba419bd8a4049921ed0b20c 44064 
osmosis_0.43.1-3+deb8u1.debian.tar.xz
 55063541ab51fff035fe37f85d137d50d0b8c6e6c26968551405779275244842 1132960 
osmosis_0.43.1-3+deb8u1_all.deb
Files:
 34947bfe9f7fcb2d0b202fd5e9569237 2496 utils optional 
osmosis_0.43.1-3+deb8u1.dsc
 20f98fab0b8743f1d04bb1f59b9ffe57 44064 utils optional 
osmosis_0.43.1-3+deb8u1.debian.tar.xz
 2d0bbd28f600b1cd4cbefdb37c3d9f3e 1132960 utils optional 
osmosis_0.43.1-3+deb8u1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVYHv3AAoJEGdQ8QrojUrx+wUQAJf3C2W8BsqXQplorzPumJ4i
cnIQbgmn87rR4xXBUrMe/MP3T3knUXJnDhH36gdJINq2wOH3LkaOfNFn8BVsZDFN
eoVYdpfdLSAPt8nZDIlgi1nFr7QtxIJ1zYvVPmgnX86QjTgGD1qP2IU8TaaWIOHT
IQwI5Ldd3WeFHHtC1s834jhJXZZxwmkErX4z2RGDDoNwUP3oxMifxcHHqfAWzi0X
qku+PChP8vDRMMUevELRzl7skb1TrEyy2civtMcAlwhd6NldkJA6QtOALTCWjJAj
0RugfzjPNOFLnoNn9J53sMMEKshp0vUVr195ge8TIOGp5iZqzsOg89oWEEAUPquw
M6aED9o80HJuCIDi4Zsf3OrNI95LynZen/YwWOLrQP2j5D26Shp46nYt3CsyUv71
s6xNSuRdtaZHKQ3to9XciFSo829wHtnrz9JOUuvNriD4cY3hUskEVeM13H4CnZYF
kdbyQvf55mQ/iPgwxCFl6m3b9DQFUyl9uQEByBRL60l6ZhcKO9yTexxgMwt8KjUY
gv5uu+gbVlHMJe/jRWq8bY898p6OWoe8bcxch+xxJAd1BL/+ncuQwg6X235d8VMl
T/wcnQJR2Z/L8MYzORpykx9IzCcdzmRZOuFBoDhdau5bWMrYE9bg9fqGoNfVkBfr
6eJrgulW4Xpy3+eE1Wms
=C0dV
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to