UnsatisfiedLinkError while running tests which uses level b

619 views
Skip to first unread message

Suresh Kumar

unread,
Jun 24, 2014, 7:44:38 AM6/24/14
to akka...@googlegroups.com

Hi All,

We are getting the below error when running tests through SBT (version 0.13). I have tried the work around which are mentioned in the http://doc.akka.io/docs/akka/2.3.2/scala/persistence.html, but still getting the error UnsatisfiedLinkError during build (but the test works fines in eorkspace)

 

java.lang.UnsatisfiedLinkError: org/fusesource/leveldbjni/internal/NativeOptions.init()V
 at org.fusesource.leveldbjni.internal.NativeOptions.<clinit>(NativeOptions.java:54)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
 at org.fusesource.leveldbjni.JniDBFactory$OptionsResourceHolder.init(JniDBFactory.java:98)
 at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:167)
 at akka.persistence.journal.leveldb.LeveldbStore$class.preStart(LeveldbStore.scala:114)
 at akka.persistence.journal.leveldb.LeveldbJournal.preStart(LeveldbJournal.scala:19)

 Here is my configuration (native = off as per akka persistance documentation)
 
  persistence {
    journal.plugin = "akka.persistence.journal.leveldb"
    journal.leveldb-shared.store.native = off
   
  }

  Here is my build.scala (fork := True as per akka persistance documentation)
 
   lazy val analytics = MYProject(
    eclipseName = "com.ibm.csi.npm.myproject",
    settings = standardSettings ++ Seq(fork in Test := true)
  ) dependsOn(
      akkaContrib,
      thirdpartyAkka % "compile->compile;test->test",
      thirdpartyScalatest % "test->test")
Please suggest.
 
Thanks,
Suresh

Pavel Zalunin

unread,
Jun 24, 2014, 9:55:39 AM6/24/14
to akka...@googlegroups.com
You're using wrong configuration namespaces (akka. prefix missing) also you should use 'leveldb.native = off' instead of 'leveldb-shared.store.native = off'. This works for me:

akka.persistence.journal.plugin = "akka.persistence.journal.leveldb"
akka.persistence.journal.leveldb.native = off

Pavel.



--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages