gustavoschewinski commented on issue #125:
URL: https://github.com/apache/plc4x-extras/issues/125#issuecomment-2309938090

   Hello @chrisdutz,
   
   Thanks for the quick response. I understand, I'll test it here and try to 
figure it out.
   
   Currently, I have managed to make it appear in Kafka by changing the command 
from `mvn install` to `mvn package`.
   
   However, if I may, I have one more question for you. I'm encountering the 
following error when running a source connector:
   
   Does this error look familiar to you, or do you have any idea what might be 
wrong? I tried adding other dependencies related to `com.fasterxml.jackson` 
that could be missing, but that didn't help.
   
   ```
   [2024-08-26 10:52:34,176] INFO AbstractConfig values: 
           bufferSize = 1000
           connection-name = machineA
           connectionString = 
opcua:tcp://Yoshi.lab.mtu-digilab.io:53530/OPCUA/SimulationServer?discovery=false
           pollReturnInterval = 500
           queries = [jobA|plc-topic-plc4x|1000|counter#ns=3;i=1002]
    (org.apache.kafka.common.config.AbstractConfig)
   [2024-08-26 10:52:34,191] ERROR WorkerSourceTask{id=plc-1-source-13-0} Task 
threw an uncaught and unrecoverable exception. Task is being killed and will 
not recover until manually restarted 
(org.apache.kafka.connect.runtime.WorkerTask)
   java.lang.VerifyError: Bad type on operand stack
   Exception Details:
     Location:
       
org/apache/plc4x/java/scraper/config/ScraperConfiguration.fromYaml(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
 @11: invokespecial
     Reason:
       Type 'com/fasterxml/jackson/dataformat/yaml/YAMLFactory' (current frame, 
stack[2]) is not assignable to 'com/fasterxml/jackson/core/JsonFactory'
     Current Frame:
       bci: @11
       flags: { }
       locals: { 'java/lang/String', 'java/lang/Class' }
       stack: { uninitialized 0, uninitialized 0, 
'com/fasterxml/jackson/dataformat/yaml/YAMLFactory' }
     Bytecode:
       0000000: bb00 0a59 bb00 0c59 b700 0eb7 0012 4d2c
       0000010: 2a2b b600 15b0 4ebb 0018 5912 1a2d b700
       0000020: 1cbf                                   
     Exception Handler Table:
       bci [15, 21] => handler: 22
     Stackmap Table:
       full_frame(@22,{Object[#46],Object[#48],Object[#10]},{Object[#31]})
   
           at 
org.apache.plc4x.java.scraper.config.triggeredscraper.ScraperConfigurationTriggeredImplBuilder.build(ScraperConfigurationTriggeredImplBuilder.java:43)
           at 
org.apache.plc4x.kafka.Plc4xSourceTask.start(Plc4xSourceTask.java:152)
           at 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.initializeAndStart(AbstractWorkerSourceTask.java:283)
           at 
org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:227)
           at 
org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:284)
           at 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.run(AbstractWorkerSourceTask.java:80)
           at 
org.apache.kafka.connect.runtime.isolation.Plugins.lambda$withClassLoader$1(Plugins.java:237)
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   [2024-08-26 10:52:34,195] WARN Failed to close source task with type 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask$$Lambda$1177/0x0000000101f8b040
 (org.apache.kafka.common.utils.Utils)
   java.lang.NullPointerException
           at 
org.apache.plc4x.kafka.Plc4xSourceTask.stop(Plc4xSourceTask.java:243)
           at org.apache.kafka.common.utils.Utils.closeQuietly(Utils.java:1263)
           at 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.close(AbstractWorkerSourceTask.java:317)
           at 
org.apache.kafka.connect.runtime.WorkerTask.doClose(WorkerTask.java:208)
           at 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.doClose(AbstractWorkerSourceTask.java:80)
           at 
org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:241)
           at 
org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:284)
           at 
org.apache.kafka.connect.runtime.AbstractWorkerSourceTask.run(AbstractWorkerSourceTask.java:80)
           at 
org.apache.kafka.connect.runtime.isolation.Plugins.lambda$withClassLoader$1(Plugins.java:237)
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   ```
   
   Thank you in advance for your help!


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to