RuckusWirelessIL / pentaho-kafka-producer

Apache Kafka producer step plug-in for Pentaho Kettle.
Apache License 2.0
45 stars 33 forks source link

parsing error #10

Closed EinsteinGit closed 8 years ago

EinsteinGit commented 8 years ago

I am getting the following error:

2016/01/12 09:01:57 - Apache Kafka Producer.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Unexpected error 2016/01/12 09:01:57 - Apache Kafka Producer.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : java.lang.ExceptionInInitializerError 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.apache.log4j.Logger.getLogger(Logger.java:104) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.Logging$class.logger(Logging.scala:24) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.VerifiableProperties.logger$lzycompute(VerifiableProperties.scala:26) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.VerifiableProperties.logger(VerifiableProperties.scala:26) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.Logging$class.info(Logging.scala:67) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.VerifiableProperties.info(VerifiableProperties.scala:26) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.utils.VerifiableProperties.verify(VerifiableProperties.scala:217) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at kafka.producer.ProducerConfig.(ProducerConfig.scala:57) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at com.ruckuswireless.pentaho.kafka.producer.KafkaProducerStep.processRow(KafkaProducerStep.java:80) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at java.lang.Thread.run(Thread.java:745) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:854) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - at org.apache.log4j.LogManager.(LogManager.java:127) 2016/01/12 09:01:57 - Apache Kafka Producer.0 - ... 11 more


Note: I am using Pentaho CE 6.0.1 and the producer version buildId="20160110-0357".

Also, please note: I have modified the plugin.xml and plugin lib as follows, so that it agrees with the versions used in the main Pentaho PDI lib. Other wise I had the problem described in Issue #8: "pentaho cannot find library dependencies"

    <libraries>
    <library name="pentaho-kafka-producer.jar"/>
    <library name="lib/jline-0.9.94.jar"/>
    <library name="lib/jopt-simple-3.2.jar"/>
    <library name="lib/junit-3.8.1.jar"/>
    <library name="lib/kafka_2.10-0.8.2.1.jar"/>
    <library name="lib/kafka-clients-0.8.2.1.jar"/>
    <library name="lib/log4j-1.2.17.jar"/>
    <library name="lib/lz4-1.2.0.jar"/>
    <library name="lib/metrics-core-2.2.0.jar"/>
    <library name="lib/netty-3.7.0.Final.jar"/>
    <library name="lib/scala-library-2.10.4.jar"/>
    <library name="lib/slf4j-api-1.7.7.jar"/>
    <library name="lib/slf4j-log4j12-1.7.7.jar"/>
    <library name="lib/snappy-java-1.1.0.jar"/>
    <library name="lib/xercesImpl-2.9.1.jar"/>
    <library name="lib/xml-apis-1.3.04.jar"/>
    <library name="lib/zkclient-0.3.jar"/>
    <library name="lib/zookeeper-3.4.6.jar"/>
</libraries>
spektom commented 8 years ago

Please try the latest version