Announcement Announcement Module
Collapse
No announcement yet.
UnsatisfiedLinkError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • UnsatisfiedLinkError

    Hey All,

    I am trying to include the xuggler library in my grails app:


    repositories {
    inherits true // Whether to inherit repository definitions from plugins
    grailsPlugins()
    grailsHome()
    grailsCentral()
    mavenCentral()
    mavenRepo "http://xuggle.googlecode.com/svn/trunk/repo/share/java/"
    // uncomment these to enable remote dependency resolution from public Maven repositories
    //mavenCentral()
    //mavenLocal()
    //mavenRepo "http://snapshots.repository.codehaus.org"
    //mavenRepo "http://repository.codehaus.org"
    //mavenRepo "http://download.java.net/maven/2/"
    //mavenRepo "http://repository.jboss.com/maven2/"
    }
    dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
    build "xuggle:xuggle-xuggler:5.2"
    runtime "xuggle:xuggle-xuggler:5.2"
    // runtime 'mysql:mysql-connector-java:5.1.16'
    }

    This is working in the IDE (I can auto-complete on the xuggler classes and eclipse knows about them), but at runtime I get:

    UnsatisfiedLinkError: no xuggle in java.library.path
    ...
    Could not initialize class com.xuggle.xuggler.IContainer. Stacktrace follows:
    org.codehaus.groovy.grails.web.servlet.mvc.excepti ons.ControllerExecutionException: Executing action [upload] of controller [com.company.model.VideoPostController] caused exception: Runtime error executing action
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886) [na:1.6.0_21]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908) [na:1.6.0_21]
    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_21]
    Caused by: org.codehaus.groovy.grails.web.servlet.mvc.excepti ons.ControllerExecutionException: Runtime error executing action
    ... 3 common frames omitted
    Caused by: java.lang.reflect.InvocationTargetException: null
    ... 3 common frames omitted
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.xuggle.xuggler.IContainer
    at com.xuggle.mediatool.MediaReader.<init>(MediaReade r.java:137) ~[xuggle-xuggler-5.2.jar:5.2.0]
    at com.xuggle.mediatool.ToolFactory.makeReader(ToolFa ctory.java:77) ~[xuggle-xuggler-5.2.jar:5.2.0]
    at com.company.model.VideoPostController$_closure1.do Call(VideoPostController.groovy:147) ~[classes/:na]
    ... 3 common frames omitted
    Where am I going wrong?


    Thanks,

    Matt Tyson

  • #2
    This turned out to be Xuggler related. Had to upgrade to 5.4 (from 5.2).

    Comment

    Working...
    X