GithubHelp home page GithubHelp logo

Comments (9)

GHGautamGH avatar GHGautamGH commented on June 11, 2024 2

Re-posting the dependencies to be added to pom.xml as the formatting was missed --

<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>connect-api</artifactId>
    <version>2.0.0</version>
</dependency>
<dependency>
    <groupId>org.apache.kafka</groupId>
    <artifactId>connect-transforms</artifactId>
    <version>2.0.0</version>
</dependency>

from kafka-connect-spooldir.

ngwwm avatar ngwwm commented on June 11, 2024 1

From the README, it just mentions to do a 'mvn clean package'. I though it would grap the appropriate kafka version. So, could you let me know how to build the package with Confluent 5.0?

from kafka-connect-spooldir.

GHGautamGH avatar GHGautamGH commented on June 11, 2024 1

Hi,

This is what I did to bypass the errors --

  1. Added the below to the end of in pom.xml --
org.apache.kafka connect-api 2.0.0 org.apache.kafka connect-transforms 2.0.0
  1. Build as below --

mvn clean package -DskipTests

Thanks.

from kafka-connect-spooldir.

liko9 avatar liko9 commented on June 11, 2024

I believe this connector has a minimum requirement of Confluent 4.1 or higher. (Apache Kafka 1.1 or higher)

from kafka-connect-spooldir.

ngwwm avatar ngwwm commented on June 11, 2024

I got the same error on Windows. Did I miss anything?

from kafka-connect-spooldir.

GHGautamGH avatar GHGautamGH commented on June 11, 2024

@ngwwm -- are you using Confluent 4.1 or higher?

from kafka-connect-spooldir.

martindupond avatar martindupond commented on June 11, 2024

Hello,
I got the same error with the following configuration:
Maven 3.5.4
Confluent 5.0.0
Debian 9
Java 1.8
using:
~/confluent-5.0.0/plugin/kafka-connect-spooldir$ mvn -X clean package |tee kafka-connect-spooldir_build-X_20180920.log

some error messages:

...
sept. 20, 2018 4:53:42 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
AVERTISSEMENT: Class 'com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceTaskTest' could not be resolved.
sept. 20, 2018 4:53:43 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
AVERTISSEMENT: Class 'com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest' could not be resolved.
sept. 20, 2018 4:53:43 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
AVERTISSEMENT: Class 'com.github.jcustenborder.kafka.connect.spooldir.NamedTest' could not be resolved.
Running com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.4 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest
foo() Time elapsed: 0.389 sec <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/kafka/connect/header/Header
at com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest.foo(CsvSchemaGeneratorTest.java:35)
Caused by: java.lang.ClassNotFoundException: org.apache.kafka.connect.header.Header
at com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest.foo(CsvSchemaGeneratorTest.java:35)

Running com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceTaskTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceTaskTest
version() Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceTaskTest.configureIndent(SpoolDirSourceTaskTest.java:72)

poll() Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
...

Failed tests:
SpoolDirCsvSourceConnectorTest.startWithoutSchemaMismatch:81 Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
SpoolDirJsonSourceConnectorTest.startWithoutSchemaMismatch:80 Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
...

more details available if needed
Thank you for your help

Martin

from kafka-connect-spooldir.

Odyno avatar Odyno commented on June 11, 2024

Hello,
I got the same error with the following configuration:

  • Code Tag: 1.0.31
  • Apache Kafka (2.11) 0.10.2.2
  • Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
  • Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
  • Default locale: en, platform encoding: UTF-8
  • OS name: "linux", version: "4.15.0-39-generic", arch: "amd64", family: "unix"
  • Using: mvn -X clean package

Result:



[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.github.jcustenborder.kafka.connect:kafka-connect-spooldir:jar:1.0-SNAPSHOT
[WARNING] The expression ${pom.issueManagement.url} is deprecated. Please use ${project.issueManagement.url} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ---< com.github.jcustenborder.kafka.connect:kafka-connect-spooldir >----
[INFO] Building kafka-connect-spooldir 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ kafka-connect-spooldir ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ kafka-connect-spooldir ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- git-changelog-maven-plugin:1.49:git-changelog (GenerateGitChangelogMinimal) @ kafka-connect-spooldir ---
[INFO] #
[INFO] # Wrote: /app/wth-csv-importer/kafka-connect-spooldir/target/CHANGELOG.md
[INFO] #
[INFO] 
[INFO] --- git-changelog-maven-plugin:1.49:git-changelog (git-changelog-rst) @ kafka-connect-spooldir ---
[INFO] #
[INFO] # Wrote: /app/wth-csv-importer/kafka-connect-spooldir/target/changelog.rst
[INFO] #
[INFO] 
[INFO] --- kafka-connect-documentation-plugin:0.1.2:documentation (default) @ kafka-connect-spooldir ---
[INFO] Loading /app/wth-csv-importer/kafka-connect-spooldir/pom.xml
[INFO] Loading /app/wth-csv-importer/kafka-connect-spooldir/pom.xml
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info/contributors.rst
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info.rst
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info/install.rst
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info/license.rst
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info/support.rst
[INFO] Writing /app/wth-csv-importer/kafka-connect-spooldir/target/docs/info/source.rst
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kafka-connect-spooldir ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /app/wth-csv-importer/kafka-connect-spooldir/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ kafka-connect-spooldir ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ kafka-connect-spooldir ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ kafka-connect-spooldir ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ kafka-connect-spooldir ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Dec 02, 2018 7:02:34 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
WARNING: Class 'com.github.jcustenborder.kafka.connect.spooldir.NamedTest' could not be resolved.
Dec 02, 2018 7:02:34 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
WARNING: Class 'com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceTaskTest' could not be resolved.
Dec 02, 2018 7:02:34 PM org.junit.jupiter.engine.discovery.JavaElementsResolver resolveClass
WARNING: Class 'com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest' could not be resolved.
Running com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest
19:02:34.690 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorConfig - SpoolDirJsonSourceConnectorConfig values: 
	batch.size = 1000
	cleanup.policy = MOVE
	empty.poll.wait.ms = 250
	error.path = /tmp/1543777354663-0/error
	file.minimum.age.ms = 0
	finished.path = /tmp/1543777354663-0/finished
	halt.on.error = true
	input.file.pattern = ^.*\.json$
	input.path = /tmp/1543777354663-0/input
	key.schema = 
	parser.timestamp.date.formats = [yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd' 'HH:mm:ss]
	parser.timestamp.timezone = UTC
	processing.file.extension = .PROCESSING
	schema.generation.enabled = true
	schema.generation.key.fields = []
	schema.generation.key.name = com.github.jcustenborder.kafka.connect.model.Key
	schema.generation.value.name = com.github.jcustenborder.kafka.connect.model.Value
	timestamp.field = 
	timestamp.mode = PROCESS_TIME
	topic = dummy
	value.schema = 
19:02:34.695 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnector - Key or Value schema was not defined. Running schema generator.
19:02:34.897 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354663-0/input/input0.json
19:02:34.900 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354663-0/input/input1.json
19:02:34.916 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorConfig - SpoolDirJsonSourceConnectorConfig values: 
	batch.size = 1000
	cleanup.policy = MOVE
	empty.poll.wait.ms = 250
	error.path = /tmp/1543777354914-0/error
	file.minimum.age.ms = 0
	finished.path = /tmp/1543777354914-0/finished
	halt.on.error = true
	input.file.pattern = ^.*\.json$
	input.path = /tmp/1543777354914-0/input
	key.schema = 
	parser.timestamp.date.formats = [yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd' 'HH:mm:ss]
	parser.timestamp.timezone = UTC
	processing.file.extension = .PROCESSING
	schema.generation.enabled = true
	schema.generation.key.fields = []
	schema.generation.key.name = com.github.jcustenborder.kafka.connect.model.Key
	schema.generation.value.name = com.github.jcustenborder.kafka.connect.model.Value
	timestamp.field = 
	timestamp.mode = PROCESS_TIME
	topic = dummy
	value.schema = 
19:02:34.917 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnector - Key or Value schema was not defined. Running schema generator.
19:02:34.918 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354914-0/input/input0.json
19:02:34.918 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354914-0/input/input1.json
Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.474 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest
startWithoutSchemaMismatch()  Time elapsed: 0.25 sec  <<< FAILURE!
org.opentest4j.AssertionFailedError: Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.startWithoutSchemaMismatch(SpoolDirJsonSourceConnectorTest.java:80)
Caused by: java.lang.NoClassDefFoundError: org/apache/kafka/connect/header/Header
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.lambda$startWithoutSchemaMismatch$0(SpoolDirJsonSourceConnectorTest.java:81)
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.startWithoutSchemaMismatch(SpoolDirJsonSourceConnectorTest.java:80)
Caused by: java.lang.ClassNotFoundException: org.apache.kafka.connect.header.Header
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.lambda$startWithoutSchemaMismatch$0(SpoolDirJsonSourceConnectorTest.java:81)
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.startWithoutSchemaMismatch(SpoolDirJsonSourceConnectorTest.java:80)

startWithoutSchema()  Time elapsed: 0.038 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.spooldir.JsonSchemaGenerator
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceConnectorTest.startWithoutSchema(SpoolDirJsonSourceConnectorTest.java:56)

Running com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest
19:02:34.946 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorConfig - SpoolDirCsvSourceConnectorConfig values: 
	batch.size = 1000
	cleanup.policy = MOVE
	csv.case.sensitive.field.names = false
	csv.escape.char = 92
	csv.file.charset = UTF-8
	csv.first.row.as.header = false
	csv.ignore.leading.whitespace = true
	csv.ignore.quotations = false
	csv.keep.carriage.return = false
	csv.null.field.indicator = NEITHER
	csv.quote.char = 34
	csv.separator.char = 44
	csv.skip.lines = 0
	csv.strict.quotes = false
	csv.verify.reader = true
	empty.poll.wait.ms = 250
	error.path = /tmp/1543777354936-0/error
	file.minimum.age.ms = 0
	finished.path = /tmp/1543777354936-0/finished
	halt.on.error = true
	input.file.pattern = ^.*\.csv$
	input.path = /tmp/1543777354936-0/input
	key.schema = 
	parser.timestamp.date.formats = [yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd' 'HH:mm:ss]
	parser.timestamp.timezone = UTC
	processing.file.extension = .PROCESSING
	schema.generation.enabled = true
	schema.generation.key.fields = []
	schema.generation.key.name = com.github.jcustenborder.kafka.connect.model.Key
	schema.generation.value.name = com.github.jcustenborder.kafka.connect.model.Value
	timestamp.field = 
	timestamp.mode = PROCESS_TIME
	topic = dummy
	value.schema = 
19:02:34.948 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnector - Key or Value schema was not defined. Running schema generator.
19:02:34.949 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354936-0/input/input1.csv
19:02:34.949 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354936-0/input/input0.csv
19:02:34.955 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorConfig - SpoolDirCsvSourceConnectorConfig values: 
	batch.size = 1000
	cleanup.policy = MOVE
	csv.case.sensitive.field.names = false
	csv.escape.char = 92
	csv.file.charset = UTF-8
	csv.first.row.as.header = false
	csv.ignore.leading.whitespace = true
	csv.ignore.quotations = false
	csv.keep.carriage.return = false
	csv.null.field.indicator = NEITHER
	csv.quote.char = 34
	csv.separator.char = 44
	csv.skip.lines = 0
	csv.strict.quotes = false
	csv.verify.reader = true
	empty.poll.wait.ms = 250
	error.path = /tmp/1543777354952-0/error
	file.minimum.age.ms = 0
	finished.path = /tmp/1543777354952-0/finished
	halt.on.error = true
	input.file.pattern = ^.*\.csv$
	input.path = /tmp/1543777354952-0/input
	key.schema = 
	parser.timestamp.date.formats = [yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd' 'HH:mm:ss]
	parser.timestamp.timezone = UTC
	processing.file.extension = .PROCESSING
	schema.generation.enabled = true
	schema.generation.key.fields = []
	schema.generation.key.name = com.github.jcustenborder.kafka.connect.model.Key
	schema.generation.value.name = com.github.jcustenborder.kafka.connect.model.Value
	timestamp.field = 
	timestamp.mode = PROCESS_TIME
	topic = dummy
	value.schema = 
19:02:34.955 [main] INFO  com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnector - Key or Value schema was not defined. Running schema generator.
19:02:34.957 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354952-0/input/input1.csv
19:02:34.957 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceConnectorTest - cleanupTempDir() - Removing /tmp/1543777354952-0/input/input0.csv
Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.075 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest
startWithoutSchemaMismatch()  Time elapsed: 0.044 sec  <<< FAILURE!
org.opentest4j.AssertionFailedError: Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest.startWithoutSchemaMismatch(SpoolDirCsvSourceConnectorTest.java:81)
Caused by: java.lang.NoClassDefFoundError: com.github.jcustenborder.kafka.connect.spooldir.SchemaGenerator
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest.lambda$startWithoutSchemaMismatch$0(SpoolDirCsvSourceConnectorTest.java:82)
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest.startWithoutSchemaMismatch(SpoolDirCsvSourceConnectorTest.java:81)

startWithoutSchema()  Time elapsed: 0.03 sec  <<< ERROR!
java.lang.NoClassDefFoundError: com.github.jcustenborder.kafka.connect.spooldir.SchemaGenerator
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnectorTest.startWithoutSchema(SpoolDirCsvSourceConnectorTest.java:57)

Running com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilderTest
19:02:35.672 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - Building SchemaConversion
19:02:35.682 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - Mapping log field 'date' to schema field 'date'
19:02:35.687 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - Mapping log field 'time' to schema field 'time'
19:02:35.688 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - Mapping log field 'sc-bytes' to schema field 'sc_bytes'
19:02:35.688 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - Mapping log field 'sc-status' to schema field 'sc_status'
19:02:35.689 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilder - build() - found date and time field. Creating datetime field.
19:02:35.766 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.converters.LogFieldConverter - convert() - Setting date to Mon Mar 14 00:00:00 UTC 2011
19:02:35.772 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.converters.LogFieldConverter - convert() - Setting time to Thu Jan 01 12:00:00 UTC 1970
19:02:35.772 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.converters.LogFieldConverter - convert() - Setting sc_bytes to 12341
19:02:35.773 [main] TRACE com.github.jcustenborder.kafka.connect.spooldir.elf.converters.LogFieldConverter - convert() - Setting sc_status to 200
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.676 sec - in com.github.jcustenborder.kafka.connect.spooldir.elf.SchemaConversionBuilderTest
Running com.github.jcustenborder.kafka.connect.spooldir.elf.SpoolDirELFSourceTaskTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.github.jcustenborder.kafka.connect.spooldir.elf.SpoolDirELFSourceTaskTest
Running com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceTaskTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.SpoolDirJsonSourceTaskTest
version()  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceTaskTest.configureIndent(SpoolDirSourceTaskTest.java:72)

poll()  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory

Running com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:35.919 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:37.848 [main] INFO  org.reflections.Reflections - Reflections took 1884 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:38.167 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:38.182 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:39.046 [main] INFO  org.reflections.Reflections - Reflections took 861 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:39.055 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:39.057 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:39.799 [main] INFO  org.reflections.Reflections - Reflections took 739 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:39.808 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:39.810 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:40.537 [main] INFO  org.reflections.Reflections - Reflections took 723 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:40.545 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:40.547 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:41.372 [main] INFO  org.reflections.Reflections - Reflections took 822 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:41.379 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:41.381 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:42.141 [main] INFO  org.reflections.Reflections - Reflections took 758 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:42.148 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:42.149 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:42.833 [main] INFO  org.reflections.Reflections - Reflections took 681 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:42.839 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:42.841 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:43.488 [main] INFO  org.reflections.Reflections - Reflections took 645 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:43.495 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:43.497 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:44.221 [main] INFO  org.reflections.Reflections - Reflections took 722 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:44.226 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:44.228 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:44.909 [main] INFO  org.reflections.Reflections - Reflections took 679 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:44.914 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:44.917 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:45.602 [main] INFO  org.reflections.Reflections - Reflections took 683 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:45.607 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:45.609 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:46.317 [main] INFO  org.reflections.Reflections - Reflections took 707 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:46.321 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
19:02:46.324 [main] INFO  com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest - before() - class com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
19:02:46.932 [main] INFO  org.reflections.Reflections - Reflections took 606 ms to scan 38 urls, producing 14159 keys and 24811 values 
19:02:46.936 [main] INFO  com.github.jcustenborder.kafka.connect.utils.templates.model.Example - Loading /com/github/jcustenborder/kafka/connect/spooldir/SpoolDirCsvSourceConnector/tsv.json with class class com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector
Tests run: 13, Failures: 0, Errors: 13, Skipped: 0, Time elapsed: 11.115 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.DocumentationTest
confluentSources()  Time elapsed: 2.362 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

rstTransformations()  Time elapsed: 3.233 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

confluentSinks()  Time elapsed: 3.986 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

readmeRST()  Time elapsed: 0.733 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

readmeMD()  Time elapsed: 0.833 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

confluent()  Time elapsed: 0.768 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

rstSinks()  Time elapsed: 1.459 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

confluentSinkConfigs()  Time elapsed: 2.115 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

confluentSourceConfigs()  Time elapsed: 2.851 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

validateExamples()  Time elapsed: 3.541 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

rstSchemas()  Time elapsed: 4.227 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

rstSources()  Time elapsed: 4.943 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

rstConnectors()  Time elapsed: 0.614 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.lambda$before$4(BaseDocumentationTest.java:143)
	at com.github.jcustenborder.kafka.connect.utils.BaseDocumentationTest.before(BaseDocumentationTest.java:132)

Running com.github.jcustenborder.kafka.connect.spooldir.JsonSchemaGeneratorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.JsonSchemaGeneratorTest
schema()  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.spooldir.JsonSchemaGenerator
	at com.github.jcustenborder.kafka.connect.spooldir.JsonSchemaGeneratorTest.schema(JsonSchemaGeneratorTest.java:34)

Running com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceTaskTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceTaskTest
version()  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory
	at com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSourceTaskTest.configureIndent(SpoolDirSourceTaskTest.java:72)

poll()  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.github.jcustenborder.kafka.connect.utils.jackson.ObjectMapperFactory

Running com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest
foo()  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: com.github.jcustenborder.kafka.connect.spooldir.SchemaGenerator
	at com.github.jcustenborder.kafka.connect.spooldir.CsvSchemaGeneratorTest.foo(CsvSchemaGeneratorTest.java:35)


Results :

Failed tests: 
  SpoolDirCsvSourceConnectorTest.startWithoutSchemaMismatch:81 Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
  SpoolDirJsonSourceConnectorTest.startWithoutSchemaMismatch:80 Unexpected exception type thrown ==> expected: <org.apache.kafka.connect.errors.DataException> but was: <java.lang.NoClassDefFoundError>
Tests in error: 
  CsvSchemaGeneratorTest.foo:35 NoClassDefFound com.github.jcustenborder.kafka.c...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  BaseDocumentationTest.before:132->lambda$before$4:143 » NoClassDefFound Could ...
  JsonSchemaGeneratorTest.schema:34 NoClassDefFound Could not initialize class c...
  SpoolDirCsvSourceConnectorTest.startWithoutSchema:57 » NoClassDefFound com.git...
  SpoolDirCsvSourceTaskTest>SpoolDirSourceTaskTest.configureIndent:72 » NoClassDefFound
  SpoolDirSourceTaskTest.configureIndent:72 NoClassDefFound Could not initialize...
  SpoolDirJsonSourceConnectorTest.startWithoutSchema:56 » NoClassDefFound Could ...
  SpoolDirJsonSourceTaskTest>SpoolDirSourceTaskTest.configureIndent:72 » NoClassDefFound
  SpoolDirSourceTaskTest.configureIndent:72 NoClassDefFound Could not initialize...

Tests run: 46, Failures: 2, Errors: 21, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.823 s
[INFO] Finished at: 2018-12-02T19:02:47Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project kafka-connect-spooldir: There are test failures.
[ERROR] 
[ERROR] Please refer to /app/wth-csv-importer/kafka-connect-spooldir/target/surefire-reports for the individual test results.
[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

from kafka-connect-spooldir.

Odyno avatar Odyno commented on June 11, 2024

sorry, before added the #60 (comment) I'm in to #69

from kafka-connect-spooldir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.