On 28.04.14 16:30, Oscar Vargas Torres wrote:
Hello Martin.
Thanks a lot for helping us.
Following your suggestion gives this error:
https://github.com/Optrak/akkaPersistenceWithAndroid/blob/master/errorMsg6.txt
Line 13:
04-28 08:54:25.036 12011-12032/com.optrak.sample I/System.out﹕ Caused by:
com.typesafe.config.ConfigException$Missing: No configuration setting found for
key 'journal.plugin'
The problem is that you've commented out the "plugin" key (inside
journal { ... }) in your application conf file. For using the LevelDB
Java port, make sure that you also have the following settings included
(assuming that reference.conf is not loaded on Android for whatever
reason).
akka {
persistence {
journal {
...
plugin = "akka.persistence.journal.leveldb"
leveldb {
class = "akka.persistence.journal.leveldb.LeveldbJournal"
plugin-dispatcher =
"akka.persistence.dispatchers.default-plugin-dispatcher"
replay-dispatcher =
"akka.persistence.dispatchers.default-replay-dispatcher"
dir = "journal"
fsync = on
checksum = off
native = off
}
...
}
}
More details how to configure journals at
http://doc.akka.io/docs/akka/2.3.2/scala/persistence.html#storage-plugins
This error shows that the configuration by default provided by
"reference.conf" isn't merged or automatically included **on
Android**, as it usually happens on a "normal" development
environment. Maybe this answers your question
> why do you copy&paste settings from reference.conf into your
application.conf file?
And also this error (take a look at line 49
https://github.com/Optrak/akkaPersistenceWithAndroid/blob/master/errorMsg6.txt#L49)
04-28 08:54:25.046 12011-12032/com.optrak.sample I/System.out﹕ Caused by:
akka.actor.InvalidActorNameException: actor name [snapshot-store] is not unique!
This (kind of) error
actor name [xxx] is not unique!
has been troubling us and have no idea what is the source of problem (on
Android)
------
By the way, did you read this (from a previous message)? What do you think?
> https://github.com/Optrak/akkaPersistenceWithAndroid/blob/master/errorMsg2.txt#L203
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FOptrak%2FakkaPersistenceWithAndroid%2Fblob%2Fmaster%2FerrorMsg2.txt%23L203&sa=D&sntz=1&usg=AFQjCNFzmWHIjI1wFOwMfqLpGT4O6FzazA>
> shows the guilty guy:
>
> pfn: can see what exactly is null there
> pfn:*public static final int CPU_DATA_MODEL =
Integer.getInteger("sun.arch.data.model");*
>
pfn:https://github.com/dain/leveldb/blob/master/leveldb/src/main/java/org/iq80/leveldb/impl/Iq80DBFactory.java#L32
<https://github.com/dain/leveldb/blob/master/leveldb/src/main/java/org/iq80/leveldb/impl/Iq80DBFactory.java#L32>
> pfn: there you go
> pfn:*leveldb won't even work on android*
> pfn: there is no system property sun.arch.data.model
> pfn: so it returns null, unboxing to int => nullpointer
This error was obtained before removing every reference to leveldb in my
application.conf. After that, it seemed I had some progress, because the next
error message (errorMsg5.txt) seemed to be related to permissions to
write on the Android device.
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.