jRuby pacer-titan and 'The feature supportsThreadIsolatedTransactions was not specified' error

40 views
Skip to first unread message

Corey Smaller

unread,
May 26, 2015, 5:19:36 PM5/26/15
to pacer...@googlegroups.com

titan/GraphDB noob here...im doing a basic  Pacer Titan extensions tutorial here: 

https://github.com/xnlogic/pacer/wiki/Pacer-extensions


this is my setup. Its in the controller of an MVC Jruby project. 


require 'pacer-titan'
require 'lib/titan-berkeleyje-0.4.4.jar'
require 'lib/je-5.0.73.jar'

g = Pacer.titan Rails.root.join("config", "titan-berkeleydb.properties").to_s

g.transaction do

@lax = g.create_vertex(airport: 'LAX', city: 'Los Angeles')
@lga = g.create_vertex(airport: 'LGA', city: 'New York')


end
g.transaction do
# this is where it all crashes!~
@lga.add_edges_to(:flies_to, @lax, {airline: 'Delta'})

end



and here is the error: 

Java::JavaLang::IllegalStateException (The feature supportsThreadIsolatedTransactions was not specified):

  com.tinkerpop.blueprints.Features.checkCompliance(com/tinkerpop/blueprints/Features.java:189)



question is: where do I set SupportsThreadedIsolatedTransactions ?  i tried 

titan-berkeleyje-0.5.4.jar and titan-berkeleyje-0.5.0.jar
as well. 


Darrick Wiebe

unread,
May 26, 2015, 5:25:29 PM5/26/15
to Pacer Group
Hi Corey,

I suspect that you're using the wrong version of Titan with the pacer-titan gem, but can't be sure as I'm not very familiar with it. I'd be cautious about using Titan in general now that it's been largely abandoned by it's creators. Have you considered using Neo4j or Orient instead? Both of those have first class Pacer support, as well.

Cheers,
Darrick

--
You received this message because you are subscribed to the Google Groups "pacer-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pacer-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Corey Smaller

unread,
May 26, 2015, 6:20:12 PM5/26/15
to pacer...@googlegroups.com
thanks Darrick!  yes, i think i am using the wrong version, i just dont know which one i should be using.  I think i am kinda stuck using TitanDB with our AWS.

Ilya Kardailsky

unread,
May 27, 2015, 4:42:25 AM5/27/15
to pacer...@googlegroups.com
Hi Corey,

The pacer-titan gem is a bit outdated and needs some work to get it going with the latest lock_jar changes and Pacer, I've got some code running on AWS with Titan 0.5.4 and a version of the pacer-Titan gem that I can publish if you'd like. I will probably hard code it to use the Cassandra backend to make the jar inclusion a bit more user friendly.

However I'm actually moving my Titan project to orientdb at the moment because we need a stable production DB now and there are too many changes being planned with TinkerPop 3 and Titan 1.0.

Corey Smaller

unread,
May 27, 2015, 10:41:04 AM5/27/15
to pacer...@googlegroups.com
Hi Ilya
Thank you so much for your help. that is just what we are looking for
I know Titan has been taken over by another group and there is some inconsistencies there, the docs don't really help too much Ive tried three different versions of titan jars.  let me know if where and when you publish or you can share with me coreys...@gmail.com  

thanks again!

Ilya Kardailsky

unread,
May 31, 2015, 8:46:28 PM5/31/15
to pacer...@googlegroups.com
Hi Corey,
I've updated the gem to use Titan 0.5.4 with Cassandra and ES, check my github (https://github.com/mrbotch/pacer-titan), this current version is also on RubyGems. A few of the Pacer tests are failing, I unfortunately don't have time to fully support this gem so see how you go, you're very welcome to modify it as you see fit. Let me know if you still have problems starting this up.
Good luck!
Ilya
Reply all
Reply to author
Forward
0 new messages