doru1004 opened a new issue #1542:
URL: https://github.com/apache/camel-k/issues/1542
When using the latest kamel 1.0.0 release and trying to run the Kafka sample
consumer example I get:
```
java -cp
./resources:/etc/camel/conf.d/_configmaps/kafka.props:/etc/camel/resources:/etc/camel/sources/i-source-000:dependencies/com.github.luben.zstd-jni-1.4.0-1.jar:dependencies/commons-io.commons-io-2.6.jar:dependencies/org.apache.camel.camel-api-3.0.1.jar:dependencies/org.apache.camel.camel-base-3.0.1.jar:dependencies/org.apache.camel.camel-bean-3.0.1.jar:dependencies/org.apache.camel.camel-core-engine-3.0.1.jar:dependencies/org.apache.camel.camel-endpointdsl-3.0.1.jar:dependencies/org.apache.camel.camel-jaxp-3.0.1.jar:dependencies/org.apache.camel.camel-kafka-3.0.1.jar:dependencies/org.apache.camel.camel-main-3.0.1.jar:dependencies/org.apache.camel.camel-management-api-3.0.1.jar:dependencies/org.apache.camel.camel-support-3.0.1.jar:dependencies/org.apache.camel.camel-util-3.0.1.jar:dependencies/org.apache.camel.camel-util-json-3.0.1.jar:dependencies/org.apache.camel.k.camel-k-loader-java-1.1.0.jar:dependencies/org.apache.camel.k.camel-k-runtime-core-1.1.0.jar:dependencies/org.apache.camel.k.camel-k-runtime-main-1.1.0.jar:dependencies/org.apache.camel.spi-annotations-3.0.1.jar:dependencies/org.apache.commons.commons-lang3-3.9.jar:dependencies/org.apache.kafka.kafka-clients-2.3.1.jar:dependencies/org.apache.logging.log4j.log4j-api-2.13.0.jar:dependencies/org.apache.logging.log4j.log4j-core-2.13.0.jar:dependencies/org.apache.logging.log4j.log4j-slf4j-impl-2.13.0.jar:dependencies/org.jooq.joor-java-8-0.9.12.jar:dependencies/org.lz4.lz4-java-1.6.0.jar:dependencies/org.slf4j.slf4j-api-1.7.29.jar:dependencies/org.xerial.snappy.snappy-java-1.1.7.3.jar
org.apache.camel.k.main.Application
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: java.nio.file.NoSuchFileException:
/etc/camel/conf/application.properties
at
org.apache.camel.k.support.PropertiesSupport.loadProperties(PropertiesSupport.java:78)
at
org.apache.camel.k.support.PropertiesSupport.loadProperties(PropertiesSupport.java:61)
at
org.apache.camel.k.main.ApplicationSupport.configureLogging(ApplicationSupport.java:35)
at org.apache.camel.k.main.Application.<clinit>(Application.java:33)
Caused by: java.nio.file.NoSuchFileException:
/etc/camel/conf/application.properties
at
java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at
java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.Files.newByteChannel(Files.java:370)
at java.base/java.nio.file.Files.newByteChannel(Files.java:421)
at
java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:155)
at java.base/java.nio.file.Files.newBufferedReader(Files.java:2838)
at java.base/java.nio.file.Files.newBufferedReader(Files.java:2870)
at
org.apache.camel.k.support.PropertiesSupport.loadProperties(PropertiesSupport.java:73)
... 3 more
```
This error does not occur when using kamel RC2 and the sample consumer is
deployed successfully.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]