incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "唐装鼠" <>
Subject 回复: dependency
Date Thu, 09 May 2013 03:26:02 GMT
Hi,I have read the dependency document;
I want to use jnetpcap in my project.
I edited the build.gradle by adding compile ':jnetpcap' to dependencies {}.
And while I run the command "./s4 s4r -a=hello.HelloApp -b=`pwd`/build.gradle myApp",it showed
"build successful".
However,while the project was running,it came below errors:

10:39:18.003 [itoa] ERROR org.apache.s4.core.S4Node - Uncaught exception in thread itoa
java.lang.NoClassDefFoundError: Could not initialize class org.jnetpcap.packet.PcapPacket
    at hello.AbstractPE.onEvent( ~[phishApp.jar:unspecified]
    at OverloadDispatcher192.dispatchEvent(Unknown Source) ~[na:na]
    at org.apache.s4.core.ProcessingElement.handleInputEvent( ~[s4-core-0.6.0-incubating.jar:0.6.0-incubating]
    at org.apache.s4.core.Stream$ ~[s4-core-0.6.0-incubating.jar:0.6.0-incubating]
    at org.apache.s4.comm.staging.BlockingThreadPoolExecutorService$
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ~[na:1.7.0_19]
    at java.util.concurrent.ThreadPoolExecutor$ ~[na:1.7.0_19]
    at ~[na:1.7.0_19]

I don't know what caused the error.I check the *.jar file compiled by the s4r command.In the
*.jar file ,there is class org.jnetpcap.packet.PcapPacket in jnetpcap.jar file.

------------------ 原始邮件 ------------------
发件人: "Matthieu Morel"<>;
发送时间: 2013年5月8日(星期三) 晚上9:42
收件人: "s4-user"<>; 

主题: Re: dependency

Please check the 0.6.0 documentation here:

Hope this helps,


On May 8, 2013, at 15:39 , 唐装鼠 wrote:

How to add dependencies to my S4 application?

I want to use jnetpcap in one PE.
How to add dependencies to my s4 application?
View raw message