Cannot get Jruby to work with Neo4j
-----------------------------------

                 Key: JRUBY-2496
                 URL: http://jira.codehaus.org/browse/JRUBY-2496
             Project: JRuby
          Issue Type: New Feature
          Components: Java Integration
    Affects Versions: JRuby 1.1
         Environment: OSX Leopard
            Reporter: Marius Mathiesen
         Attachments: basic_test.rb

The network oriented database Neo4j (www.neo4j.org) made med pick up Jruby 
again. However, it fails badly in Jruby, and I'm unable to make much of the 
stack trace generated. It seems to originate from somewhere deep within Jruby 
(org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling, the full trace 
follows (jruby code included as attachment):

TxManager.java:721:in `org.neo4j.impl.transaction.TxManager.getStatus': 
java.lang.NullPointerException: null (NativeException)
        from UserTransactionImpl.java:91:in 
`org.neo4j.impl.transaction.UserTransactionImpl.getStatus'
        from TransactionUtil.java:66:in 
`org.neo4j.impl.transaction.TransactionUtil.beginTx'
        from Transaction.java:91:in `org.neo4j.api.core.Transaction.begin'
        from NativeMethodAccessorImpl.java:-2:in 
`sun.reflect.NativeMethodAccessorImpl.invoke0'
        from NativeMethodAccessorImpl.java:39:in 
`sun.reflect.NativeMethodAccessorImpl.invoke'
        from DelegatingMethodAccessorImpl.java:25:in 
`sun.reflect.DelegatingMethodAccessorImpl.invoke'
        from Method.java:585:in `java.lang.reflect.Method.invoke'
        from JavaMethod.java:196:in 
`org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
         ... 9 levels...
        from Main.java:174:in `org.jruby.Main.runInterpreter'
        from Main.java:120:in `org.jruby.Main.run'
        from Main.java:95:in `org.jruby.Main.main'
Complete Java stackTrace
java.lang.NullPointerException
        at org.neo4j.impl.transaction.TxManager.getStatus(TxManager.java:721)
        at 
org.neo4j.impl.transaction.UserTransactionImpl.getStatus(UserTransactionImpl.java:91)
        at 
org.neo4j.impl.transaction.TransactionUtil.beginTx(TransactionUtil.java:66)
        at org.neo4j.api.core.Transaction.begin(Transaction.java:91)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:196)
        at org.jruby.javasupport.JavaMethod.invoke_static(JavaMethod.java:182)
        at 
org.jruby.javasupport.JavaClass$StaticMethodInvoker.execute(JavaClass.java:371)
        at 
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:81)
        at org.jruby.RubyObject.compilerCallMethod(RubyObject.java:508)
        at 
org.jruby.javasupport.util.CompilerHelpers.doInvokeDynamic(CompilerHelpers.java:124)
        at EVAL5275383.__file__(EVAL5275383:6)
        at EVAL5275383.run(EVAL5275383)
        at org.jruby.Ruby.compileOrFallbackAndRun(Ruby.java:322)
        at org.jruby.Main.runInterpreter(Main.java:229)
        at org.jruby.Main.runInterpreter(Main.java:174)
        at org.jruby.Main.run(Main.java:120)
        at org.jruby.Main.main(Main.java:95)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to