434054 (2) [Avatar] Offline
#1
Hi Author,
How are you! I have question need your help:
I was trying run this project with most simple project in chpater2 , but it complain and throw exception:

"C:\Program Files\Java\jdk1.8.0_101\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_101\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\rt.jar;C:\Users\fairymaiden\Desktop\kafka\bbejeck-kafka-streams-in-action-code-5e34e0bf2548\build\classes\main;C:\Users\fairymaiden\Desktop\kafka\bbejeck-kafka-streams-in-action-code-5e34e0bf2548\build\resources\main;C:\Users\fairymaiden\Desktop\kafka\bbejeck-kafka-streams-in-action-code-5e34e0bf2548\libs\kafka-clients-0.10.3.0-SNAPSHOT.jar;C:\Users\fairymaiden\Desktop\kafka\bbejeck-kafka-streams-in-action-code-5e34e0bf2548\libs\kafka-streams-0.10.3.0-SNAPSHOT.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.6.1\b9d63507329a7178e026fc334f87587ee5070ac5\gson-2.6.1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.101tec\zkclient\0.7\e01775a1767d39a549959a8ab51ef7608f52e986\zkclient-0.7.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.yammer.metrics\metrics-core\2.2.0\f82c035cfa786d3cbec362c38c22a5f5b1bc8724\metrics-core-2.2.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.twitter\hbc-core\2.2.0\cc05d8eacbf0f6f627755a62ae8f63502982a896\hbc-core-2.2.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\de.julielab\aliasi-lingpipe\4.1.0\4cb6fc742337a671057c56ad5e8df186e4b7e665\aliasi-lingpipe-4.1.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-core\1.0.5\7f9bb1f5bf8fedcf2bf8487bbcc64b950094939c\dropwizard-core-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.esotericsoftware\kryo\4.0.0\9f5c64c1315ec79bee0f56bb88e4ae94b65048ce\kryo-4.0.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.rocksdb\rocksdbjni\4.9.0\9be2d4f0639e3abddc5ab647240fdba8ef8f7bdb\rocksdbjni-4.9.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.github.javafaker\javafaker\0.12\c27ae49da2b06e6743deedd8df830b6c6b2114e1\javafaker-0.12.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.apache.zookeeper\zookeeper\3.4.6\1b2502e29da1ebaade2357cd1de35a855fa3755\zookeeper-3.4.6.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.2.5\666e26e76f2e87d84e4f16acb546481ae1b8e9a6\httpclient-4.2.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.twitter\joauth\6.0.2\d591272e42c725d3c61354e609aab1063f6077bb\joauth-6.0.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-util\1.0.5\528bb7611243f62debc19c0ab960f2bc9df4fcb4\dropwizard-util-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-jackson\1.0.5\d423f885209e7e488f8978d1aaf619e568485599\dropwizard-jackson-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-validation\1.0.5\e8060e2415ff661e41da3922bd5c52e6c6888bae\dropwizard-validation-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-configuration\1.0.5\2a094c4fe5a734c0eb0190def17253de24ca5c77\dropwizard-configuration-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-logging\1.0.5\dedbf21e30689c4c88d053ac6437d310d8bb2fd0\dropwizard-logging-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-metrics\1.0.5\55e5e07afd826179c20897322b97e715a1b56767\dropwizard-metrics-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-jersey\1.0.5\165d172de3e916122e8abcf8b37880a50911f334\dropwizard-jersey-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-servlets\1.0.5\25cc1b3e2d8311d6b52e1cc35d78850aeb326612\dropwizard-servlets-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-jetty\1.0.5\4c42263daa8f1ddabc3af9131d700e9eaa1b2db1\dropwizard-jetty-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-lifecycle\1.0.5\de655a36a201315c9f530e18f073d9ae6d074185\dropwizard-lifecycle-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-core\3.1.2\224f03afd2521c6c94632f566beb1bb5ee32cf07\metrics-core-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-jvm\3.1.2\ed364e77218e50fdcdebce4d982cb4d1f4a8c187\metrics-jvm-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-servlets\3.1.2\f552e662d790b805f01a8b2997dc4ae9409cd4c8\metrics-servlets-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-healthchecks\3.1.2\e32a01aa7ca4070676e22e707272422baa0f7ecd\metrics-healthchecks-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard\dropwizard-request-logging\1.0.5\3a7024f318fbe31ca5f593351d82402ddcd88a4a\dropwizard-request-logging-1.0.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\net.sourceforge.argparse4j\argparse4j\0.7.0\6f0621d0c3888de39e0f06d01f37ba53a798e657\argparse4j-0.7.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty.toolchain.setuid\jetty-setuid-java\1.0.3\73ae4ab171d396103f32e392970641e985d1a845\jetty-setuid-java-1.0.3.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.esotericsoftware\reflectasm\1.11.3\8b102eed2f12412b254946811111ea48bc03a266\reflectasm-1.11.3.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.esotericsoftware\minlog\1.3.0\ff07b5f1b01d2f92bb00a337f9a94873712f0827\minlog-1.3.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.objenesis\objenesis\2.2\3fb533efdaa50a768c394aa4624144cf8df17845\objenesis-2.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.github.mifmif\generex\1.0.2\b378f873b4e8d7616c3d920e2132cb1c87679600\generex-1.0.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\jline\jline\0.9.94\99a18e9a44834afdebc467294e1138364c207402\jline-0.9.94.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.netty\netty\3.7.0.Final\7a8c35599c68c0bf383df74469aa3e03d9aca87\netty-3.7.0.Final.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.2.4\3b7f38df6de5dd8b500e602ae8c2dd5ee446f883\httpcore-4.2.4.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.1.1\5043bfebc3db072ed80fbd362e7caf00e885d8ae\commons-logging-1.1.1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.6\b7f0fc8f61ecadeb3695f0b9464755eee44374d4\commons-codec-1.6.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.7.8\60e67d4d98018e7e5130cd8d3708e978d4fac060\jackson-annotations-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\joda-time\joda-time\2.9.4\1c295b462f16702ebe720bbb08f62e1ba80da41b\joda-time-2.9.4.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.7.8\eb5f06448049d455daa3b5e8ef29be712165be97\jackson-core-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.7.8\9bc551426f1e19b4e2d87bb4bb2e19f8ecf8d578\jackson-databind-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-guava\2.7.8\70fdd8213d9700091affad0f865958fe87299ca6\jackson-datatype-guava-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jsr310\2.7.8\ccb5582c35fab705cdd3b0d5ca9615e6339662ad\jackson-datatype-jsr310-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-jdk8\2.7.8\563a2c4530c7f6855269a6ed6ce1ff5158fcedaa\jackson-datatype-jdk8-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-afterburner\2.7.8\2f0119ac18b5517b30ecd6236f869206e8748c1b\jackson-module-afterburner-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.datatype\jackson-datatype-joda\2.7.8\3889aef12d1963b02e066574f32b6cf755177144\jackson-datatype-joda-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.hibernate\hibernate-validator\5.2.4.Final\fb18766b576aa6632bcfe9a20a023cbd52bf9769\hibernate-validator-5.2.4.Final.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish\javax.el\3.0.0\dd532526e7c8de48e40419e6af1183658a973379\javax.el-3.0.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.dataformat\jackson-dataformat-yaml\2.7.8\c0de9d9d4fabf1a6901da13cb541f9d4749e3892\jackson-dataformat-yaml-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-logback\3.1.2\7bff405ac68f4d38dcac37ced3814c7a7bb541f7\metrics-logback-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.slf4j\jul-to-slf4j\1.7.21\2f22c882ffa479d1e9ff4eb0e8e2c29f2a0871ed\jul-to-slf4j-1.7.21.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.slf4j\log4j-over-slf4j\1.7.21\b3700d97464d99bdcd42c0177d6e7951c94d75ff\log4j-over-slf4j-1.7.21.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.slf4j\jcl-over-slf4j\1.7.21\331b564a3a42f002a0004b039c1c430da89062cd\jcl-over-slf4j-1.7.21.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-util\9.3.9.v20160517\5a021301220558f405af685c70404f9a058296ea\jetty-util-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.core\jersey-server\2.23.2\f17025b8e32b48bee43b2c9ca40e21fc90cf38fb\jersey-server-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.ext\jersey-metainf-services\2.23.2\2f9cba8cccfc08427ea2d315715b0fd884928f02\jersey-metainf-services-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.ext\jersey-bean-validation\2.23.2\da31d624a9f1c0820a9138d49fcc593b685c5804\jersey-bean-validation-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-jersey2\3.1.2\eedb4a4e3cda157633f93f430681e85383e3aad0\metrics-jersey2-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.jaxrs\jackson-jaxrs-json-provider\2.7.8\5d296e80852477c3b5ea39c8487f3049f9282454\jackson-jaxrs-json-provider-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.containers\jersey-container-servlet\2.23.2\47da89ccedf144858c1a604b69c9b9515c2c9ea\jersey-container-servlet-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-server\9.3.9.v20160517\ce4e2d401f238ada015362af815c817e05e17e45\jetty-server-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-webapp\9.3.9.v20160517\d330768724aa407b7c926dc160c3031e384a8313\jetty-webapp-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-continuation\9.3.9.v20160517\e7951690c798a599d7427a11bf469d8f6eb23f2d\jetty-continuation-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-annotation\3.1.2\7ee8e9afe8e15f921a3bc9f8d4b1109b58b63d46\metrics-annotation-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-jetty9\3.1.2\7f2fe1039424ca687bea5d09ec0bfa372bf7d062\metrics-jetty9-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-servlet\9.3.9.v20160517\c493a29f18a14470890f92650322ea94c85cc7d7\jetty-servlet-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-servlets\9.3.9.v20160517\d205ff2d952ebd1b5b62c9546a0f9db6bda97da1\jetty-servlets-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-http\9.3.9.v20160517\eb1a9715ea144740cd0f8c4be2d7c733adde8f1a\jetty-http-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\io.dropwizard.metrics\metrics-json\3.1.2\88d9e57e1ef6431109d4030c717cf5f927900fd9\metrics-json-3.1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm\5.0.4\da08b8cce7bbf903602a25a3a163ae252435795\asm-5.0.4.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\dk.brics.automaton\automaton\1.11-8\6ebfa65eb431ff4b715a23be7a750cbc4cc96d0f\automaton-1.11-8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\junit\junit\3.8.1\99129f16442844f6a4a11ae22fbbee40b14d774f\junit-3.8.1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\javax.validation\validation-api\1.1.0.Final\8613ae82954779d518631e05daa73a6a954817d5\validation-api-1.1.0.Final.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.jboss.logging\jboss-logging\3.2.1.Final\fedf11b3d4665a434b554a5891fe7f208f029f45\jboss-logging-3.2.1.Final.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml\classmate\1.1.0\dbbd699a1486ad0f2ed6f5af6cfed66acacb9056\classmate-1.1.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.15\3b132bea69e8ee099f416044970997bde80f4ea6\snakeyaml-1.15.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.core\jersey-common\2.23.2\84df56324789921fb408985dc1355f628de0b80c\jersey-common-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.core\jersey-client\2.23.2\90ea1d2edb93653d15fce3c3b4a20f2237690900\jersey-client-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\javax.ws.rs\javax.ws.rs-api\2.0.1\104e9c2b5583cfcfeac0402316221648d6d8ea6b\javax.ws.rs-api-2.0.1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.media\jersey-media-jaxb\2.23.2\25c2d322e193371ab800367f553207290da1cb0b\jersey-media-jaxb-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\javax.annotation\javax.annotation-api\1.2\479c1e06db31c432330183f5cae684163f186146\javax.annotation-api-1.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2\hk2-api\2.5.0-b05\d54a52f5b869b247348cb0ec08edd432c22ef65f\hk2-api-2.5.0-b05.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2.external\javax.inject\2.5.0-b05\aad1872e1bf5e573229b7ec143d6f83f33b753e4\javax.inject-2.5.0-b05.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2\hk2-locator\2.5.0-b05\bed6e7565ce9491a53f047c17e3951b4dfd101fa\hk2-locator-2.5.0-b05.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.jaxrs\jackson-jaxrs-base\2.7.8\7b39f20ed6abff69cde10a0008081e5db548e6ac\jackson-jaxrs-base-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.module\jackson-module-jaxb-annotations\2.7.8\8d2c6c21f4d3a11b9798b2b1fc6f1f4add8076ac\jackson-module-jaxb-annotations-2.7.8.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.containers\jersey-container-servlet-core\2.23.2\c9937b31b90d61bd543f6805f93b6c394de6e842\jersey-container-servlet-core-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\javax.servlet\javax.servlet-api\3.1.0\3cd63d075497751784b2fa84be59432f4905bf7c\javax.servlet-api-3.1.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-io\9.3.9.v20160517\a70b34343d7ba7141159f4ce28728a83d80f03\jetty-io-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-xml\9.3.9.v20160517\f15e6a61342497cc97b5375fe8973001397c0fc1\jetty-xml-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.eclipse.jetty\jetty-security\9.3.9.v20160517\2014e718496f9ad5744ef0f14009122a5c5df5ab\jetty-security-9.3.9.v20160517.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.jersey.bundles.repackaged\jersey-guava\2.23.2\eead3375706f2d5df991e14821efe509bfb182e0\jersey-guava-2.23.2.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2\osgi-resource-locator\1.0.1\4ed2b2d4738aed5786cfa64cba5a332779c4c708\osgi-resource-locator-1.0.1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2\hk2-utils\2.5.0-b05\ede783b3e16339f83603e3293c83bda7a88526bc\hk2-utils-2.5.0-b05.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.glassfish.hk2.external\aopalliance-repackaged\2.5.0-b05\51becf370a71dad73e6bcc554efb7246ad24c492\aopalliance-repackaged-2.5.0-b05.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.javassist\javassist\3.20.0-GA\a9cbcdfb7e9f86fbc74d3afae65f2248bfbf82a0\javassist-3.20.0-GA.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\javax.inject\javax.inject\1\6975da39a7040257bd51d21a231b76c915872d38\javax.inject-1.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.5\6c6c702c89bfff3cd9e80b04d668c5e190d588c6\commons-lang3-3.5.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\20.0\89507701249388e1ed5ddcf8c41f4ce1be7831ef\guava-20.0.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\org.slf4j\slf4j-api\1.7.21\139535a69a4239db087de9bab0bee568bf8e0b70\slf4j-api-1.7.21.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\log4j\log4j\1.2.16\7999a63bfccbc7c247a9aea10d83d4272bd492c6\log4j-1.2.16.jar;C:\Users\fairymaiden\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.1\f7be08ec23c21485b9b5a1cf1654c2ec8c58168d\jsr305-3.0.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain bbejeck.chapter_2.producer.SimpleProducer
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.apache.kafka.common.KafkaException: java.lang.ClassNotFoundException: org.xerial.snappy.SnappyOutputStream
at org.apache.kafka.common.record.MemoryRecordsBuilder.wrapForOutput(MemoryRecordsBuilder.java:395)
at org.apache.kafka.common.record.MemoryRecordsBuilder.<init>(MemoryRecordsBuilder.java:132)
at org.apache.kafka.common.record.MemoryRecords.builder(MemoryRecords.java:291)
at org.apache.kafka.clients.producer.internals.RecordAccumulator.append(RecordAccumulator.java:195)
at org.apache.kafka.clients.producer.KafkaProducer.doSend(KafkaProducer.java:47smilie
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:440)
at bbejeck.chapter_2.producer.SimpleProducer.main(SimpleProducer.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:49smilie
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.SnappyOutputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.kafka.common.record.MemoryRecordsBuilder$1.get(MemoryRecordsBuilder.java:59)
at org.apache.kafka.common.record.MemoryRecordsBuilder$MemoizingConstructorSupplier.get(MemoryRecordsBuilder.java:461)
at org.apache.kafka.common.record.MemoryRecordsBuilder.wrapForOutput(MemoryRecordsBuilder.java:392)
... 11 more


So could you please help us to solev this problem?
and I found you code asking for 10.3.0 snapshot kafkaclient and stream. but with formal download , the highest version is 10.2.1
so, is this some problem?


Thanks!

Bill Bejeck (45) [Avatar] Offline
#2
Hi,

To run the examples you'll need to use the kafka distribution, kafka-streams and kafka-clients jar included with the source code. Instructions on how to get set up and run them are in the README.md file of the zip.

Thanks for reading the book.

-Bill