![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0.pre2 |
Assignee:
|
Unassigned |
Components:
|
Java Integration |
Created:
|
17/Aug/12 7:52 AM
|
Description:
|
Looks like the JVM crash or exits when a Java Exception is thrown.
How to Reproduce
----------------
rvm use jruby-1.7.0.preview2
gem install neo4j neo4j-core neo4j-wrapper -v 2.0.1
[1] pry(main)> require 'neo4j'
=> true
[2] pry(main)> Neo4j::VERSION
=> "2.0.1"
[3] pry(main)> Neo4j::Rails::Model.create!(:asd => Neo4j::Rails::Model.create)
I, 2012-08-17T14:33:16.912000 #2841 INFO – : Starting local Neo4j using db /Users/andreasronge/db using Java::OrgNeo4jKernel::EmbeddedGraphDatabase
TopLevelTransaction.java:85:in `failure': org.neo4j.graphdb.TransactionFailureException: Failed to mark transaction as rollback only.
from NativeMethodAccessorImpl.java:-2:in `invoke0'
from NativeMethodAccessorImpl.java:57:in `invoke'
from DelegatingMethodAccessorImpl.java:43:in `invoke'
See below for complete stack trace.
Could not find any JVM crash dump.
The pry/jvm exits/crash !
Expected Behaviour on JRuby 1.6.7
=================================
Andreass-MacBook-Pro-2:~ andreasronge$ pry
[1] pry(main)> require 'neo4j'
=> true
[2] pry(main)> Neo4j::VERSION
=> "2.0.1"
[3] pry(main)> Neo4j::Rails::Model.create!(:asd => Neo4j::Rails::Model.create)
I, 2012-08-17T14:30:10.877000 #2673 INFO – : Starting local Neo4j using db /Users/andreasronge/db using Java::OrgNeo4jKernel::EmbeddedGraphDatabase
NativeException: java.lang.IllegalArgumentException: Unknown property type on: #<Neo4j::Rails::Model:0x3e1f3387>, class org.jruby.RubyObject
from org/neo4j/kernel/impl/nioneo/store/PropertyStore.java:570:in `encodeValue'
[4] pry(main)> exit
See https://gist.github.com/3377725 for complete stack trace (using latest version of neo4j from git)
|
Environment:
|
Mac OS X 10.8
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
|
Project:
|
JRuby
|
Priority:
|
Critical
|
Reporter:
|
Andreas Ronge
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email