Results 1 to 2 of 2

Thread: Looking for a jar that contains WMSReadWriteLock

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Looking for a jar that contains WMSReadWriteLock

    I am trying to locate the Jar in the lib folder that contains the following reference:
    edu/emory/mathcs/backport/java/util/concurrent/locks/WMSReadWriteLock

    I do not seem to see it listed in there by itself, I am guess it is rolled into another jar?

    I am trying to setup a unit test against IApplicationInstance using mockito test framework. It is hung up on resolving this reference. Anyone have any idea where this is located?

    I tried adding a maven reference to it for all available versions 1-3.1 and still no luck getting past the error. The full error is:

    java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/WMSReadWriteLock
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
    at java.lang.Class.getDeclaredMethods(Class.java:1860)
    at org.mockito.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:349)
    at org.mockito.cglib.proxy.Enhancer.getMethods(Enhancer.java:427)
    at org.mockito.cglib.proxy.Enhancer.generateClass(Enhancer.java:457)
    at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
    at org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:217)
    at org.mockito.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)
    at org.mockito.cglib.proxy.Enhancer.createClass(Enhancer.java:318)
    at org.mockito.internal.creation.jmock.ClassImposterizer.createProxyClass(ClassImposterizer.java:110)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:62)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:56)
    at org.mockito.internal.creation.CglibMockMaker.createMock(CglibMockMaker.java:23)
    at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26)
    at org.mockito.internal.MockitoCore.mock(MockitoCore.java:51)
    at org.mockito.Mockito.mock(Mockito.java:1243)
    at org.mockito.Mockito.mock(Mockito.java:1120)

    the test case looks like this:

    IApplicationInstance appInstance = mock(IApplicationInstance.class);



    Anyone encountered this issues trying to mock this class? Any help would be great.

  2. #2

    Default

    Hello there.

    Do you have this import statement:
    import edu.emory.mathcs.backport.java.util.concurrent.locks.*;
    If so you and it still doesn't work, might consider opening a ticket with support. To do so follow this guide and send requested information to support@wowza.com
    How to create a compressed zip file in Windows, OS X, and Linux

    Regards,

    Salvadore

Similar Threads

  1. WowzaServerAddOnCollection contains no jar files
    By bison121261 in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 03-12-2013, 02:09 AM
  2. Replies: 1
    Last Post: 09-05-2012, 06:25 PM
  3. smil file The F4M document contains errors URL missing from Media tag
    By hockey_dave in forum Live Streaming and Encoder Discussion
    Replies: 7
    Last Post: 04-25-2012, 10:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •