dma-ais / aisview Goto Github PK
View Code? Open in Web Editor NEWAisViewer allows aggregation and publishing of data from both real time and historic AIS data sources
License: Other
AisViewer allows aggregation and publishing of data from both real time and historic AIS data sources
License: Other
http://servername:8090/vessel_target_details?id=mmsi will give a HTTP500 and some Java Exceptions on the conole.
I try to get a simple example going with the Docker container:
version: '3'
services:
aisview:
image: dmadk/ais-view
environment:
- SOURCES=free=hd-sf.com:9009
- BACKUP=/tmp/empty
Does not work. See output below.
Would be good to have a docker-compose file just to get a basic example going. Suggestions?
Output:
bergtwvd@app-docker05:~/tests/dmadk$ docker-compose up
Creating network "dmadk_default" with the default driver
Creating dmadk_aisview_1 ...
Creating dmadk_aisview_1 ... done
Attaching to dmadk_aisview_1
aisview_1 | 2019-03-30 23:48:03,465 INFO [main] [AisStoreDaemon] AisStoreDaemon created.
aisview_1 | 2019-03-30 23:48:03,699 INFO [TargetTrackerFileBackupService STARTING] [TargetTrackerFileBackupService] class dk.dma.ais.tracker.targetTracker.TargetTrackerFileBackupService startUp
aisview_1 | 2019-03-30 23:48:03,772 INFO [Thread-2] [AisTcpReader] Connecting to source hd-sf.com:9009
aisview_1 | 2019-03-30 23:48:03,774 INFO [main] [AisStoreDaemon] Creating unsecure Cassandra connection.
aisview_1 | 2019-03-30 23:48:03,953 ERROR [main] [AisViewDaemon] Uncaught exception in thread java.lang.Thread: Expected the service to be TERMINATED, but the service has FAILED
aisview_1 | java.lang.IllegalStateException: Expected the service to be TERMINATED, but the service has FAILED
aisview_1 | at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:285)
aisview_1 | at com.google.common.util.concurrent.AbstractService.awaitTerminated(AbstractService.java:255)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.execute(AbstractDmaApplication.java:131)
aisview_1 | at dk.dma.commons.app.AbstractCommandLineTool.execute(AbstractCommandLineTool.java:87)
aisview_1 | at dk.dma.ais.view.AisViewDaemon.main(AisViewDaemon.java:156)
aisview_1 | Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
aisview_1 | at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:223)
aisview_1 | at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
aisview_1 | at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1230)
aisview_1 | at com.datastax.driver.core.Cluster.init(Cluster.java:157)
aisview_1 | at com.datastax.driver.core.Cluster.connect(Cluster.java:245)
aisview_1 | at com.datastax.driver.core.Cluster.connect(Cluster.java:278)
aisview_1 | at dk.dma.db.cassandra.CassandraConnection.doStart(CassandraConnection.java:65)
aisview_1 | at com.google.common.util.concurrent.AbstractService.startAsync(AbstractService.java:174)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.start(AbstractDmaApplication.java:107)
aisview_1 | at dk.dma.ais.store.cli.baseclients.AisStoreDaemon.connect(AisStoreDaemon.java:62)
aisview_1 | at dk.dma.ais.view.AisViewDaemon.runDaemon(AisViewDaemon.java:128)
aisview_1 | at dk.dma.commons.app.AbstractDaemon.run(AbstractDaemon.java:67)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.execute(AbstractDmaApplication.java:125)
aisview_1 | ... 2 more
aisview_1 | 2019-03-30 23:48:03,959 INFO [Thread-1] [AbstractDaemon] Shutdown request received
aisview_1 | 2019-03-30 23:48:03,960 INFO [Thread-1] [AbstractDmaApplication] Shutting down all services
aisview_1 | 2019-03-30 23:48:03,960 INFO [Thread-1] [AbstractDmaApplication] Trying to shut down dk.dma.ais.tracker.targetTracker.TargetTrackerFileBackupService
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Succeeded in shutting down dk.dma.ais.tracker.targetTracker.TargetTrackerFileBackupService
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Trying to shut down dk.dma.ais.view.AisViewDaemon$1
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Succeeded in shutting down dk.dma.ais.view.AisViewDaemon$1
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Trying to shut down dk.dma.ais.view.AisViewDaemon$2
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Succeeded in shutting down dk.dma.ais.view.AisViewDaemon$2
aisview_1 | 2019-03-30 23:48:03,961 INFO [Thread-1] [AbstractDmaApplication] Trying to shut down dk.dma.ais.reader.AisReaderGroup$2
aisview_1 | 2019-03-30 23:48:03,963 INFO [ STOPPING] [AisReaderGroup] Trying to stop reader AisTcpReader [sourceId = free, current host=hd-sf.com:9009]
aisview_1 | 2019-03-30 23:48:03,963 INFO [ STOPPING] [AisReaderGroup] Trying to join reader threadAisTcpReader [sourceId = free, current host=hd-sf.com:9009]
aisview_1 | 2019-03-30 23:48:03,963 INFO [Thread-1] [AbstractDmaApplication] Succeeded in shutting down dk.dma.ais.reader.AisReaderGroup$2
aisview_1 | 2019-03-30 23:48:03,963 INFO [Thread-1] [AbstractDmaApplication] Trying to shut down dk.dma.db.cassandra.CassandraConnection
aisview_1 | 2019-03-30 23:48:03,963 ERROR [Thread-1] [AisViewDaemon] Uncaught exception in thread null: Expected the service to be TERMINATED, but the service has FAILED
aisview_1 | java.lang.IllegalStateException: Expected the service to be TERMINATED, but the service has FAILED
aisview_1 | at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:285)
aisview_1 | at com.google.common.util.concurrent.AbstractService.awaitTerminated(AbstractService.java:255)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.shutdown(AbstractDmaApplication.java:144)
aisview_1 | at dk.dma.ais.view.AisViewDaemon.shutdown(AisViewDaemon.java:142)
aisview_1 | at dk.dma.commons.app.AbstractDaemon$1.run(AbstractDaemon.java:51)
aisview_1 | Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
aisview_1 | at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:223)
aisview_1 | at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
aisview_1 | at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1230)
aisview_1 | at com.datastax.driver.core.Cluster.init(Cluster.java:157)
aisview_1 | at com.datastax.driver.core.Cluster.connect(Cluster.java:245)
aisview_1 | at com.datastax.driver.core.Cluster.connect(Cluster.java:278)
aisview_1 | at dk.dma.db.cassandra.CassandraConnection.doStart(CassandraConnection.java:65)
aisview_1 | at com.google.common.util.concurrent.AbstractService.startAsync(AbstractService.java:174)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.start(AbstractDmaApplication.java:107)
aisview_1 | at dk.dma.ais.store.cli.baseclients.AisStoreDaemon.connect(AisStoreDaemon.java:62)
aisview_1 | at dk.dma.ais.view.AisViewDaemon.runDaemon(AisViewDaemon.java:128)
aisview_1 | at dk.dma.commons.app.AbstractDaemon.run(AbstractDaemon.java:67)
aisview_1 | at dk.dma.commons.app.AbstractDmaApplication.execute(AbstractDmaApplication.java:125)
aisview_1 | at dk.dma.commons.app.AbstractCommandLineTool.execute(AbstractCommandLineTool.java:87)
aisview_1 | at dk.dma.ais.view.AisViewDaemon.main(AisViewDaemon.java:156)
The service is not found at the domain hd-sf.com, any alternatives?
Maven COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /ais/devel/AisView/src/main/java/dk/dma/ais/view/rest/LegacyResource.java:[55,26] dk.dma.ais.tracker.TargetInfoToAisTarget is not public in dk.dma.ais.tracker; cannot be accessed from outside package
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.908s
[INFO] Finished at: Tue Apr 21 18:29:24 CEST 2015
[INFO] Final Memory: 28M/167M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ais-view: Compilation failure
[ERROR] /ais/devel/AisView/src/main/java/dk/dma/ais/view/rest/LegacyResource.java:[55,26] dk.dma.ais.tracker.TargetInfoToAisTarget is not public in dk.dma.ais.tracker; cannot be accessed from outside package
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
While trying to build AisView with maven, using the following command:
mvn clean install
I encountered some errors about the repository for parent pom project not being available:
[INFO] Scanning for projects...
Downloading from dma-releases: http://repository-dma.forge.cloudbees.com/release/dk/dma/dma-root-pom/22/dma-root-pom-22.pom
Downloading from central: https://repo.maven.apache.org/maven2/dk/dma/dma-root-pom/22/dma-root-pom-22.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for dk.dma.ais.view:ais-view:0.4-SNAPSHOT: Could not transfer artifact dk.dma:dma-root-pom:pom:22 from/to dma-releases (http://repository-dma.forge.cloudbees.com/release/): repository-dma.forge.cloudbees.com: Name or service not known and 'parent.relativePath' points at wrong local POM @ line 5, column 10
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project dk.dma.ais.view:ais-view:0.4-SNAPSHOT (/AisView/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for dk.dma.ais.view:ais-view:0.4-SNAPSHOT: Could not transfer artifact dk.dma:dma-root-pom:pom:22 from/to dma-releases (http://repository-dma.forge.cloudbees.com/release/): repository-dma.forge.cloudbees.com: Name or service not known and 'parent.relativePath' points at wrong local POM @ line 5, column 10: Unknown host repository-dma.forge.cloudbees.com: Name or service not known -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.