[jitsi-users] How can i run jitsi hammer?


#1

Hi all, please help me fix this error. I think exec-maven-plugin:1.4.0
failed.I'm an intern, I need to run test to persuade my boss use jitsi for
our product.

[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ jitsi-hammer ---
Nov 30, 2017 2:36:30 PM org.jitsi.util.Logger warn
WARNING: Codec org.jitsi.impl.neomedia.codec.audio.mp3.JNIEncoder is NOT
success
                                            fully registered
java.lang.UnsatisfiedLinkError: no jnffmpeg in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at org.jitsi.util.JNIUtils.loadLibrary(JNIUtils.java:41)
        at org.jitsi.impl.neomedia.codec.FFmpeg.<clinit>(FFmpeg.java:228)
        at
org.jitsi.impl.neomedia.codec.audio.FFmpegAudioEncoder.assertFindAVCo

                              dec(FFmpegAudioEncoder.java:49)
        at
org.jitsi.impl.neomedia.codec.audio.mp3.JNIEncoder.<clinit>(JNIEncode

                              r.java:64)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.neomedia.codec.FMJPlugInConfiguration.registerCustomCo

                              decs(FMJPlugInConfiguration.java:234)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.setupFMJ(MediaServiceImpl.ja

                              va:1618)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.<clinit>(MediaServiceImpl.ja

                              va:250)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.initializeService(Li

                              bJitsiImpl.java:173)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.getService(LibJitsiI

                              mpl.java:131)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:91)
        at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.

                              java:95)
        at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.j

                              ava:172)
        at
org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124

                              )
        at
org.jitsi.hammer.utils.MediaDeviceChooser.<init>(MediaDeviceChooser.j

                              ava:84)
        at
org.jitsi.hammer.utils.CmdLineArguments.getMediaDeviceChooser(CmdLine

                              Arguments.java:357)
        at org.jitsi.hammer.Main.main(Main.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

                              java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

                              sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        at java.lang.Thread.run(Thread.java:748)

Nov 30, 2017 2:36:30 PM org.jitsi.util.Logger warn
WARNING: Codec org.jitsi.impl.neomedia.codec.audio.amrwb.JNIDecoder is NOT
succe
                                          ssfully registered
java.lang.NoClassDefFoundError: Could not initialize class
org.jitsi.impl.neomed
                                                          ia.codec.FFmpeg
        at
org.jitsi.impl.neomedia.codec.audio.FFmpegAudioDecoder.assertFindAVCo

                              dec(FFmpegAudioDecoder.java:42)
        at
org.jitsi.impl.neomedia.codec.audio.amrwb.JNIDecoder.<clinit>(JNIDeco

                              der.java:34)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.neomedia.codec.FMJPlugInConfiguration.registerCustomCo

                              decs(FMJPlugInConfiguration.java:234)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.setupFMJ(MediaServiceImpl.ja

                              va:1618)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.<clinit>(MediaServiceImpl.ja

                              va:250)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.initializeService(Li

                              bJitsiImpl.java:173)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.getService(LibJitsiI

                              mpl.java:131)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:91)
        at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.

                              java:95)
        at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.j

                              ava:172)
        at
org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124

                              )
        at
org.jitsi.hammer.utils.MediaDeviceChooser.<init>(MediaDeviceChooser.j

                              ava:84)
        at
org.jitsi.hammer.utils.CmdLineArguments.getMediaDeviceChooser(CmdLine

                              Arguments.java:357)
        at org.jitsi.hammer.Main.main(Main.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

                              java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

                              sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        at java.lang.Thread.run(Thread.java:748)

Nov 30, 2017 2:36:30 PM org.jitsi.util.Logger warn
WARNING: Codec org.jitsi.impl.neomedia.codec.audio.amrwb.JNIEncoder is NOT
succe
                                          ssfully registered
java.lang.NoClassDefFoundError: Could not initialize class
org.jitsi.impl.neomed
                                                          ia.codec.FFmpeg
        at
org.jitsi.impl.neomedia.codec.audio.FFmpegAudioEncoder.assertFindAVCo

                              dec(FFmpegAudioEncoder.java:49)
        at
org.jitsi.impl.neomedia.codec.audio.amrwb.JNIEncoder.<clinit>(JNIEnco

                              der.java:35)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.neomedia.codec.FMJPlugInConfiguration.registerCustomCo

                              decs(FMJPlugInConfiguration.java:234)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.setupFMJ(MediaServiceImpl.ja

                              va:1618)
        at
org.jitsi.impl.neomedia.MediaServiceImpl.<clinit>(MediaServiceImpl.ja

                              va:250)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.initializeService(Li

                              bJitsiImpl.java:173)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.getService(LibJitsiI

                              mpl.java:131)
        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:91)
        at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.

                              java:95)
        at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.j

                              ava:172)
        at
org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124

                              )
        at
org.jitsi.hammer.utils.MediaDeviceChooser.<init>(MediaDeviceChooser.j

                              ava:84)
        at
org.jitsi.hammer.utils.CmdLineArguments.getMediaDeviceChooser(CmdLine

                              Arguments.java:357)
        at org.jitsi.hammer.Main.main(Main.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

                              java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

                              sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        at java.lang.Thread.run(Thread.java:748)

log4j:WARN No appenders could be found for logger
(org.apache.http.impl.conn.tsc

cm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.
Nov 30, 2017 2:36:32 PM org.jivesoftware.smack.XMPPConnection
callConnectionClos
                                                      edOnErrorListener
WARNING: Connection closed with error
org.igniterealtime.jbosh.BOSHException: Could not obtain response
        at
org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(ApacheHTTPR

                              esponse.java:246)
        at
org.igniterealtime.jbosh.ApacheHTTPResponse.getBody(ApacheHTTPRespons

                              e.java:187)
        at
org.igniterealtime.jbosh.BOSHClient.processExchange(BOSHClient.java:1

                              032)
        at
org.igniterealtime.jbosh.BOSHClient.processMessages(BOSHClient.java:9

                              77)
        at
org.igniterealtime.jbosh.BOSHClient.access$000(BOSHClient.java:98)
        at org.igniterealtime.jbosh.BOSHClient$1.run(BOSHClient.java:216)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException:
java.security.NoSuchAlgorithmException: Err

    or constructing implementation (algorithm: Default, provider: SunJSSE,
class: su

n.security.ssl.SSLContextImpl$DefaultSSLContext)
        at
javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory

                              .java:248)
        at
javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.j

                              ava:255)
        at
org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFacto

                              ry.java:288)
        at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnect

                              ion(DefaultClientConnectionOperator.java:119)
        at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.ja

                              va:147)
        at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPool

                              edConnAdapter.java:108)
        at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReq

                              uestDirector.java:415)
        at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl

                              ient.java:641)
        at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl

                              ient.java:576)
        at
org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(ApacheHTTPR

                              esponse.java:230)
        ... 6 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing
implementa
                                              tion (algorithm: Default,
provider: SunJSSE, class: sun.security.ssl.SSLContextI

              mpl$DefaultSSLContext)
        at java.security.Provider$Service.newInstance(Provider.java:1617)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
        at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
        at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
        at
javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
        at
javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLC

                              onnection.java:332)
        at
org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.jav

        at
org.apache.http.conn.ssl.SSLSocketFactory.<clinit>(SSLSocketFactory.j

                              ava:166)
        at
org.igniterealtime.jbosh.ApacheHTTPSender.initHttpClient(ApacheHTTPSe

                              nder.java:146)
        at
org.igniterealtime.jbosh.ApacheHTTPSender.init(ApacheHTTPSender.java:

                              81)
        at org.igniterealtime.jbosh.BOSHClient.init(BOSHClient.java:664)
        at org.igniterealtime.jbosh.BOSHClient.<init>(BOSHClient.java:350)
        at org.igniterealtime.jbosh.BOSHClient.create(BOSHClient.java:368)
        at
org.jivesoftware.smack.bosh.XMPPBOSHConnection.connectInternal(XMPPBO

                              SHConnection.java:162)
        at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396

                              )
        at org.jitsi.hammer.FakeUser.start(FakeUser.java:286)
        at org.jitsi.hammer.Hammer.startUsersAnonymous(Hammer.java:447)
        at org.jitsi.hammer.Hammer.start(Hammer.java:373)
        at org.jitsi.hammer.Main.main(Main.java:281)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

                              java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

                              sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        ... 1 more
Caused by: java.security.PrivilegedActionException:
java.io.FileNotFoundExceptio
                                                                n:
meet.jit.si.ks (The system cannot find the file specified)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.security.ssl.SSLContextImpl$DefaultManagersHolder.getKeyManagers(

                              SSLContextImpl.java:822)
        at
sun.security.ssl.SSLContextImpl$DefaultManagersHolder.<clinit>(SSLCon

                              textImpl.java:758)
        at
sun.security.ssl.SSLContextImpl$DefaultSSLContext.<init>(SSLContextIm

                              pl.java:913)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

                              orAccessorImpl.java:62)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

                              onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.security.Provider$Service.newInstance(Provider.java:1595)
        ... 25 more
Caused by: java.io.FileNotFoundException: meet.jit.si.ks (The system cannot
find
                                         the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:93)
        at
sun.security.ssl.SSLContextImpl$DefaultManagersHolder$2.run(SSLContex

                              tImpl.java:826)
        at
sun.security.ssl.SSLContextImpl$DefaultManagersHolder$2.run(SSLContex

                              tImpl.java:823)
        ... 34 more

org.jivesoftware.smack.SmackException$NotConnectedException
        at
org.jivesoftware.smack.bosh.XMPPBOSHConnection.loginAnonymously(XMPPB

                              OSHConnection.java:306)
        at org.jitsi.hammer.FakeUser.start(FakeUser.java:287)
        at org.jitsi.hammer.Hammer.startUsersAnonymous(Hammer.java:447)
        at org.jitsi.hammer.Hammer.start(Hammer.java:373)
        at org.jitsi.hammer.Main.main(Main.java:281)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

                              java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

                              sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        at java.lang.Thread.run(Thread.java:748)
Stopping Jitsi-Hammer...
Nov 30, 2017 2:36:32 PM org.jitsi.util.Logger warn
WARNING: Hammer already stopped !
Exiting the program...

···

a:255)