inolen/gremlin-node

Tests failing on Mavericks OS X

Closed this issue · 5 comments

MAC OS X version: version 10.9 Mavericks

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

Node version: v0.10.22
Npm version: 1.3.14

> gremlin@0.3.0 test /Users/emkei/projects/nodejs/experiments/gremlin-node
> make test

node_modules/mocha/bin/mocha --ui tdd --reporter=spec


  graph-wrapper
    ◦ Non ThreadedTransactionalGraph instances do not start unique transactions:    ✓ Non ThreadedTransactionalGraph instances do not start unique transactions 
    ✓ ThreadedTransactionalGraph starts unique transactions 
    ✓ addVertex(id) 
    ✓ getVertex(id) 
    ✓ removeVertex(v) 
    ✓ addEdge(id, v1, v2) 
    ✓ getEdge(id) 
    ✓ removeEdge(e) 
    ✓ setProperty(key, value) / getProperty(key) 
    ✓ setProperties(props) / getProperties(props) 
    ✓ removeProperty(key) 
    ✓ removeProperties(props) 
    1) getProperties()
    ✓ v(id) with single id 
    ✓ v(id...) with id list 
    ✓ v(id...) with id array 
    ✓ v(id) with invalid id 

  pipeline-wrapper
    ✓ V(string key, object value) 
    ✓ E(string key, object value) 
    ✓ has(string key, object value) 
    ✓ has(string key, token, object value) 
    ✓ has(string key, predicate, object value) 
    ✓ hasNot(string key, object value) 
    ✓ hasNot(string key, object value) 
    ✓ interval(string key, object start, object end) 
    ✓ bothE(string... labels) 
    ✓ bothE(int branchFactor, string... labels) 
    ✓ both(string... labels) 
    ✓ both(int branchFactor, string... labels) 
    ✓ bothV() 
    ✓ copySplit(), _(), and fairMerge() 
    ✓ as() and back() 
    ✓ dedup() 
    ✓ filter() (1069ms)
    ✓ aggregate() 
    ✓ groupCount(map, closure) (62ms)
    ✓ store() 
    2) groupCount() and cap()


  36 passing (2s)
  2 failing

  1) graph-wrapper getProperties():
     Uncaught Error: Error running instance method
java.lang.InternalError
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:61)
    at java.lang.reflect.Method.invoke(Method.java:588)

      at /Users/emkei/projects/nodejs/experiments/gremlin-node/lib/element-wrapper.js:46:17

  2) pipeline-wrapper groupCount() and cap():
     Uncaught Error: Error running instance method
java.lang.InternalError
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:61)
    at java.lang.reflect.Method.invoke(Method.java:588)

      at Gremlin.wrap (/Users/emkei/projects/nodejs/experiments/gremlin-node/lib/gremlin.js:196:33)
      at /Users/emkei/projects/nodejs/experiments/gremlin-node/lib/pipeline-wrapper.js:431:28



make: *** [test] Error 2
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

I am installing XCode on my Mavericks machine now so that I can test.

I'll try and do some research and figure out why node-java is having issues here.

In the interim, if you can, try Java 1.7 or ignore the get/setProperties functions (they aren't necessary).

@mariuskubilius did you have any luck with 1.7?

Have not tried yet. Have a lot of work before christmas craziness :) Will let you know when will have a chance to run the tests.

Any luck with this?