Closed remi-parain closed 9 years ago
No idea, but @barjo probably know the answer...
Hi, I am not sure from where it could come from. I will have a look a orient recent change.
@remi-parain I just update the snapshot version to orient 2.0.4. Let me know if it solves the problem. I can also cut a release if needed. Since the current snapshot is based on wisdom 0.7.0, if your project use 0.7.1-SNAPSHOT, it may have an impact too?
Would it be possible that the dependency became a bundle without the right native directives in its manifest ?
Sent from my iPhone
On 4 mars 2015, at 05:02, Jonathan Bardin notifications@github.com wrote:
@remi-parain https://github.com/remi-parain I just update the snapshot version to orient 2.0.4. Let me know if it solves the problem. I can also cut a release if needed. Since the current snapshot is based on wisdom 0.7.0, if your project use 0.7.1-SNAPSHOT, it may have an impact too?
— Reply to this email directly or view it on GitHub https://github.com/wisdom-framework/wisdom-orientdb/issues/22#issuecomment-77093547 .
@cescoffier All orient dep. are bundles, it was already the case with previous versions. It doesn't seems that they have any embedded native actually. The orient core depends on org.xerial.snappy 1.1.0.1 that has the following native instruction: http://central.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.0.1/snappy-java-1.1.0.1.pom
<Bundle-NativeCode>
org/xerial/snappy/native/Windows/x86_64/snappyjava.dll;osname=win32;processor=x86-64,
org/xerial/snappy/native/Windows/x86/snappyjava.dll;osname=win32;processor=x86,
org/xerial/snappy/native/Mac/x86/libsnappyjava.jnilib;osname=macosx;processor=x86,
org/xerial/snappy/native/Mac/x86_64/libsnappyjava.jnilib;osname=macosx;processor=x86-64,
org/xerial/snappy/native/Linux/x86_64/libsnappyjava.so;osname=linux;processor=x86-64,
org/xerial/snappy/native/Linux/x86/libsnappyjava.so;osname=linux;processor=x86,
org/xerial/snappy/native/SunOS/x86/libsnappyjava.so;osname=sunos;processor=x86,
org/xerial/snappy/native/SunOS/sparc/libsnappyjava.so;osname=sunos;processor=sparc,
org/xerial/snappy/native/SunOS/x86_64/libsnappyjava.so;osname=sunos;processor=x86-64,
org/xerial/snappy/native/Linux/arm/libsnappyjava.so;osname=linux;processor=arm
</Bundle-NativeCode>
If that's the culprit we can exclude it and require version > 1.1.1; but am not sure if the api has change.
Do you know why orientdb need this bundle ?
They do some compression with snappy, but I think it's disabled by default :-?
I find some possible problem with the snappy dep. of the wisdom orient-core. I think it should be alright now. I should also contact Orient to know if they could put the snappy package as optional. ( By default the snappy compression is disabled)
Apparently they move from org.iq80.snappy (pure java) to org.xerial.snappy :(
thanks @barjo, the sample is now working well at runtime ( with the current wisdom 0.7.1-SNAPSHOT, compiled 2 days ago)
The issue occurs only on mac and is related to the snappy library as we can find trace of this specific issue since 2012 https://github.com/xerial/snappy-java/issues/6 https://github.com/thinkaurelius/titan/issues/62 https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/bqvT83TwZTc
I found this workaround (jvm parameters) but it didn't worked for me : "-Dorg.xerial.snappy.tempdir=~/tmp -Dorg.xerial.snappy.lib.name=libsnappyjava.jnilib"
maybe orient should update their version of snappy
btw : thanks !
Thanks, I open an issue in Orient, and snappy will be optional for the bundle in the next release.
Jonathan
On Wed, Mar 4, 2015 at 4:19 PM, PARAIN Rémi notifications@github.com wrote:
thanks @barjo https://github.com/barjo, the sample is now working well at runtime ( with the current wisdom 0.7.1-SNAPSHOT, compiled 2 days ago)
The issue occurs only on mac and is related to the snappy library as we can find trace of this specific issue since 2012 xerial/snappy-java#6 https://github.com/xerial/snappy-java/issues/6 thinkaurelius/titan#62 https://github.com/thinkaurelius/titan/issues/62
https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/bqvT83TwZTc
I found this workaround (jvm parameters) but it didn't worked for me : "-Dorg.xerial.snappy.tempdir=~/tmp -Dorg.xerial.snappy.lib.name =libsnappyjava.jnilib"
maybe orient should update their version of snappy
btw : thanks !
— Reply to this email directly or view it on GitHub https://github.com/wisdom-framework/wisdom-orientdb/issues/22#issuecomment-77121862 .
Could you post the ticket link ?
2015-03-04 10:55 GMT+01:00 Jonathan Bardin notifications@github.com:
Thanks, I open an issue in Orient, and snappy will be optional for the bundle in the next release.
Jonathan
On Wed, Mar 4, 2015 at 4:19 PM, PARAIN Rémi notifications@github.com wrote:
thanks @barjo https://github.com/barjo, the sample is now working well at runtime ( with the current wisdom 0.7.1-SNAPSHOT, compiled 2 days ago)
The issue occurs only on mac and is related to the snappy library as we can find trace of this specific issue since 2012 xerial/snappy-java#6 https://github.com/xerial/snappy-java/issues/6 thinkaurelius/titan#62 <https://github.com/thinkaurelius/titan/issues/62
https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/bqvT83TwZTc
I found this workaround (jvm parameters) but it didn't worked for me : "-Dorg.xerial.snappy.tempdir=~/tmp -Dorg.xerial.snappy.lib.name =libsnappyjava.jnilib"
maybe orient should update their version of snappy
btw : thanks !
— Reply to this email directly or view it on GitHub < https://github.com/wisdom-framework/wisdom-orientdb/issues/22#issuecomment-77121862
.
— Reply to this email directly or view it on GitHub https://github.com/wisdom-framework/wisdom-orientdb/issues/22#issuecomment-77126747 .
Here is the OrientDB ticket: https://github.com/orientechnologies/orientdb/issues/3693
The pull request has been accepted on their develop branch, It will be release with the orientdb 2.1 milestone.
It's gonna be solved in orientdb 2.1 rc1
I don't know what happened, I recently got an exception at startup about snappyjava lib not boing loaded on my project. All my invalid bundles relies on OrientDB to work.
I got the same error when I compile the wisdom-orient-db sample project from this repo ( compilation with java 8 sdk and java 7sdk )
any idea ?