Skip to content

Problems importing OSM data #19

Closed
Closed

Description

@sweco-semtne

I'm having trouble digesting a cloudmade OSM download of Berlin.

http://downloads.cloudmade.com/europe/western_europe/germany/berlin#downloads_breadcrumbs

Exception in thread "main" java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:99128942 pillarIndex:13589

Activity

  1. mpkossen commented on Mar 28, 2013

    @mpkossen

    I got this a well with http://downloads.cloudmade.com/europe/western_europe/netherlands/zeeland/zeeland.osm.bz2

    Stacktrace

    2013-03-28 14:27:48,961 [main] INFO  graphhopper.reader.OSMReader - 5 107 152, now parsing ways
    2013-03-28 14:27:49.352:WARN:oejuc.AbstractLifeCycle:FAILED o.m.j.p.JettyWebAppContext{/,file:/home/mpkossen/Desktop/test/graphhopper-web/src/main/webapp/},file:/home/mpkossen/Desktop/test/graphhopper-web/src/main/webapp/: java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:1438318922 pillarIndex:67680
    java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:1438318922 pillarIndex:67680
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.handlePillarNode(OSMReaderHelperDoubleParse.java:171)
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.addEdge(OSMReaderHelperDoubleParse.java:125)
        at com.graphhopper.reader.OSMReaderHelper.processWay(OSMReaderHelper.java:141)
        at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:301)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:210)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:167)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:141)
        at com.graphhopper.GraphHopper.load(GraphHopper.java:217)
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:50)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at com.graphhopper.http.GuiceServletConfig.getInjector(GuiceServletConfig.java:40)
        at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
        at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:277)
        at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
        at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    

    -I'm now trying a different download to see what happens.- Nope, other one failed as well:

    2013-03-28 14:51:33,116 [main] INFO  graphhopper.reader.OSMReader - 152 000 000, locs:48 957 124 (0), edges:2 904 791 totalMB:1592, usedMB:403
    2013-03-28 14:51:33.554:WARN:oejuc.AbstractLifeCycle:FAILED o.m.j.p.JettyWebAppContext{/,file:/home/mpkossen/Desktop/test/graphhopper-web/src/main/webapp/},file:/home/mpkossen/Desktop/test/graphhopper-web/src/main/webapp/: java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:1429371088 pillarIndex:1845988
    java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:1429371088 pillarIndex:1845988
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.handlePillarNode(OSMReaderHelperDoubleParse.java:171)
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.addEdge(OSMReaderHelperDoubleParse.java:125)
        at com.graphhopper.reader.OSMReaderHelper.processWay(OSMReaderHelper.java:141)
        at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:301)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:210)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:167)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:141)
        at com.graphhopper.GraphHopper.load(GraphHopper.java:217)
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:50)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at com.graphhopper.http.GuiceServletConfig.getInjector(GuiceServletConfig.java:40)
        at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
        at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:277)
        at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
        at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    
  2. karussell commented on Mar 28, 2013

    @karussell
    Member

    Thanks for the details! I'll investigate. As a temporary workaround - would you try downloading the osm from geofarbik? At least all files I tried there (including berlin) worked.

  3. added a commit that references this issue on Mar 28, 2013
    24188ea
  4. karussell commented on Mar 28, 2013

    @karussell
    Member

    Let me know if my latest commit resolves the issue (ways referencing to none existing nodes).

  5. mpkossen commented on Mar 29, 2013

    @mpkossen

    Hi there,

    Sorry, it didn't work.

    2013-03-29 06:27:56,264 [main] INFO  graphhopper.reader.OSMReader - 5 107 152, now parsing ways
    Exception in thread "main" java.lang.AssertionError: Conversation pillarNode to towerNode already happended!? osmId:1438318922 pillarIndex:67680
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.handlePillarNode(OSMReaderHelperDoubleParse.java:171)
        at com.graphhopper.reader.OSMReaderHelperDoubleParse.addEdge(OSMReaderHelperDoubleParse.java:125)
        at com.graphhopper.reader.OSMReaderHelper.processWay(OSMReaderHelper.java:141)
        at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:301)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:210)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:167)
        at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:141)
        at com.graphhopper.ui.MiniGraphUI.main(MiniGraphUI.java:62)
    

    I've tried in both the app and the web project, both didn't work. The above backtrace is from the app (or main) project.

    Thanks for taking the time to look into this!

  6. karussell commented on Mar 29, 2013

    @karussell
    Member

    This is only in branch 0.1. I tried with your referenced file and one other and had no problems

  7. karussell commented on Apr 2, 2013

    @karussell
    Member

    Ups. Need the confirmation first from you if this fixes your issue ... so reopening

  8. mpkossen commented on Apr 3, 2013

    @mpkossen

    Hi there,

    Thank you again for your time in trying to fix this. Unfortunately, on branch 0.1, it still doesn't work for me. I'll try with a clean checkout later on. Since it works for you now, it probably is something on my end. I'll try to get it to work with one of the geofabrik files. Thanks again! I'll re-open this if there's really no way I can get it to work.

  9. karussell commented on Apr 3, 2013

    @karussell
    Member

    hmmh, did you try with git checkout 0.1; mvn clean install ? I would like to get this fixed for you too :) (or there are some more problems for graphhopper)

  10. mpkossen commented on Apr 3, 2013

    @mpkossen

    Ah, yes, mvn clean install seems to have done the trick. All working now! Thanks a lot!

  11. karussell commented on Apr 3, 2013

    @karussell
    Member

    Nice! Feel free to reopen this or raise new issues if you have further problems! And for questions just ask on the mailing list :)

  12. added a commit that references this issue on Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions