Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

docker/compose-demo fails with start: java.lang.Integer cannot be cast to java.lang.String #7086

Open
Artgit opened this issue Aug 25, 2018 · 0 comments

Comments

@Artgit
Copy link

Artgit commented Aug 25, 2018

I try to use docker/compose-demo in order to start containers from docker-compose.yml which is paced by the following location: https://github.com/confluentinc/cp-docker-images/tree/master/examples/cp-all-in-one

<image>
	<alias>confluent</alias>
	<name>docker/compose-demo:latest</name>

	<external>
		<type>compose</type>
		<basedir>${project.parent.basedir}/docker</basedir>
		<composeFile>docker-compose.yml</composeFile>
	</external>
</image>		

but it fails with the following error:

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.26.1:start (default-cli) on project api: A type incompatibility occurred while executing io.fabric8:docker-maven-plugin:0.26.1:start: java.lang.Integer cannot be cast to java.lang.String
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.fabric8:docker-maven-plugin:0.26.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Alexander/.m2/repository/io/fabric8/docker-maven-plugin/0.26.1/docker-maven-plugin-0.26.1.jar
[ERROR] urls[1] = file:/C:/Users/Alexander/.m2/repository/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar
[ERROR] urls[2] = file:/C:/Users/Alexander/.m2/repository/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar
[ERROR] urls[3] = file:/C:/Users/Alexander/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[4] = file:/C:/Users/Alexander/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
[ERROR] urls[5] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-unixsocket/0.12/jnr-unixsocket-0.12.jar
[ERROR] urls[6] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-ffi/2.0.9/jnr-ffi-2.0.9.jar
[ERROR] urls[7] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jffi/1.2.11/jffi-1.2.11.jar
[ERROR] urls[8] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jffi/1.2.11/jffi-1.2.11-native.jar
[ERROR] urls[9] = file:/C:/Users/Alexander/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
[ERROR] urls[10] = file:/C:/Users/Alexander/.m2/repository/org/ow2/asm/asm-commons/5.0.3/asm-commons-5.0.3.jar
[ERROR] urls[11] = file:/C:/Users/Alexander/.m2/repository/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar
[ERROR] urls[12] = file:/C:/Users/Alexander/.m2/repository/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar
[ERROR] urls[13] = file:/C:/Users/Alexander/.m2/repository/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar
[ERROR] urls[14] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-x86asm/1.0.2/jnr-x86asm-1.0.2.jar
[ERROR] urls[15] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-constants/0.9.1/jnr-constants-0.9.1.jar
[ERROR] urls[16] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-enxio/0.12/jnr-enxio-0.12.jar
[ERROR] urls[17] = file:/C:/Users/Alexander/.m2/repository/com/github/jnr/jnr-posix/3.0.29/jnr-posix-3.0.29.jar
[ERROR] urls[18] = file:/C:/Users/Alexander/.m2/repository/org/apache/commons/commons-lang3/3.6/commons-lang3-3.6.jar
[ERROR] urls[19] = file:/C:/Users/Alexander/.m2/repository/org/apache/commons/commons-text/1.1/commons-text-1.1.jar
[ERROR] urls[20] = file:/C:/Users/Alexander/.m2/repository/org/json/json/20140107/json-20140107.jar
[ERROR] urls[21] = file:/C:/Users/Alexander/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.57/bcpkix-jdk15on-1.57.jar
[ERROR] urls[22] = file:/C:/Users/Alexander/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.57/bcprov-jdk15on-1.57.jar
[ERROR] urls[23] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/plugins/maven-assembly-plugin/3.1.0/maven-assembly-plugin-3.1.0.jar
[ERROR] urls[24] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[25] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[26] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[27] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[28] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[29] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[30] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
[ERROR] urls[31] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[32] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.9.0/maven-artifact-transfer-0.9.0.jar
[ERROR] urls[33] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/plexus/plexus-archiver/3.5/plexus-archiver-3.5.jar
[ERROR] urls[34] = file:/C:/Users/Alexander/.m2/repository/org/apache/commons/commons-compress/1.14/commons-compress-1.14.jar
[ERROR] urls[35] = file:/C:/Users/Alexander/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar
[ERROR] urls[36] = file:/C:/Users/Alexander/.m2/repository/org/tukaani/xz/1.6/xz-1.6.jar
[ERROR] urls[37] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/file-management/3.0.0/file-management-3.0.0.jar
[ERROR] urls[38] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/maven-shared-io/3.0.0/maven-shared-io-3.0.0.jar
[ERROR] urls[39] = file:/C:/Users/Alexander/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[40] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/shared/maven-filtering/3.1.1/maven-filtering-3.1.1.jar
[ERROR] urls[41] = file:/C:/Users/Alexander/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[42] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/plexus/plexus-io/3.0.0/plexus-io-3.0.0.jar
[ERROR] urls[43] = file:/C:/Users/Alexander/.m2/repository/org/apache/maven/maven-archiver/3.2.0/maven-archiver-3.2.0.jar
[ERROR] urls[44] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
[ERROR] urls[45] = file:/C:/Users/Alexander/.m2/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar
[ERROR] urls[46] = file:/C:/Users/Alexander/.m2/repository/org/yaml/snakeyaml/1.18/snakeyaml-1.18.jar
[ERROR] urls[47] = file:/C:/Users/Alexander/.m2/repository/com/google/guava/guava/23.0-android/guava-23.0-android.jar
[ERROR] urls[48] = file:/C:/Users/Alexander/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[49] = file:/C:/Users/Alexander/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
[ERROR] urls[50] = file:/C:/Users/Alexander/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
[ERROR] urls[51] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
[ERROR] urls[52] = file:/C:/Users/Alexander/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.24/plexus-interpolation-1.24.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
				

what am I doing wrong and how to fix it?

With the following Docker command everything is working fine:
docker-compose up -d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant