-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XMLTransform failing with NullPointerException #17
Comments
Sorry, I opened two by mistake. Let's delete 16. Ok. Basically, in Confluent Cloud Connect VM, we installed the jar. I tried with our xsd as well as the sample Book xsd given by you. Same error. Please advise. |
When I used books.xsd, the following java files were created in /tmp BookForm.java Later, it failed with the NullPointerException described above. |
I used note.xsd and note.xml with fileStreamSource connector and did log:TRACE Please find attached the note.xsd , note.xml, trace.txt, note.java and the objectfactory.java |
I'm trying to use jcustenborder's XmlTransform to convert XML to AVRO.
It fails with NullPointerException. It doesn't give cause for the NullPointer.
Can you please help me with fixing this error.
I'm passing the config
transforms.xmlToAvro.package = com.github.jcustenborder.kafka.connect.transform.xml.model
transforms.xmlToAvro.schema.path = [path/test.xsd]
transforms.xmlToAvro.type = class com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value
transforms.xmlToAvro.xjc.options.automatic.name.conflict.resolution.enabled = true
transforms.xmlToAvro.xjc.options.strict.check.enabled = true
transforms.xmlToAvro.xjc.options.verbose.enabled = true
It fails with the error
ERROR Failed to start task dev-XATest-0 (org.apache.kafka.connect.runtime.Worker)
org.apache.kafka.connect.errors.ConnectException: java.lang.NullPointerException
at org.apache.kafka.connect.runtime.ConnectorConfig.transformations(ConnectorConfig.java:264)
at org.apache.kafka.connect.runtime.Worker.buildWorkerTask(Worker.java:520)
at org.apache.kafka.connect.runtime.Worker.startTask(Worker.java:472)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startTask(DistributedHerder.java:1147)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.access$1600(DistributedHerder.java:126)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder$12.call(DistributedHerder.java:1162)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder$12.call(DistributedHerder.java:1158)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at com.github.jcustenborder.kafka.connect.transform.xml.XSDCompiler.compileContext(XSDCompiler.java:146)
at com.github.jcustenborder.kafka.connect.transform.xml.FromXml.configure(FromXml.java:130)
at org.apache.kafka.connect.runtime.ConnectorConfig.transformations(ConnectorConfig.java:261)
The text was updated successfully, but these errors were encountered: