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 13:19:03 GMT
Yes,I checked the s4r file,there is jnetpcap.jar.
I edited the native libraries of jnetpcap.jar in eclipse.However,there are no native libraries
in the s4r file.
I don't know how to add the native libraries to s4r file.

------------------ 原始邮件 ------------------
发件人: "Matthieu Morel"<>;
发送时间: 2013年5月9日(星期四) 晚上6:53
收件人: "<>"<>; 

主题: Re: 回复: dependency

  On May 9, 2013, at 05:26 , 唐装鼠 wrote:
    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(
     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.
 If your dependency is not in the standard maven repository, make sure it is in the lib directory.
 The jnetpcap.jar file must be embedded in the generated s4r file, can you make sure this
is the case (just unzip to check)?
 ------------------ 原始邮件 ------------------
  发件人: "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