I am using RexterClient to access Titan-gremlin graph in java. But I got the beloww error on running :

Message received response timeoutConnection (8000 s)
    at com.tinkerpop.rexster.client.RexsterClient.execute(RexsterClient.java:185)

Below is my pom:

 <dependency>
        <groupId>com.tinkerpop.rexster</groupId>
        <artifactId>rexster-protocol</artifactId>
        <version>2.6.0</version>
    </dependency>
   <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-all</artifactId>
            <version>1.0.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.jersey</groupId>
                    <artifactId>jersey-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jersey</groupId>
                    <artifactId>jersey-json</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jersey</groupId>
                    <artifactId>jersey-server</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-core</artifactId>
            <version>1.0.0</version>
        </dependency>

If you guys have any idea please tell me how to fix

1

There are 1 answers

0
Jason Plurad On BEST ANSWER

You have some dependency mismatches there.

  • Rexster is from TinkerPop 2. You can tell because the package name starts with com.tinkerop.
  • Titan 1.0 uses Apache TinkerPop 3.0.1. You can tell because the package name starts with org.apache.tinkerpop. It is not compatible with TinkerPop 2. enter image description here

Some pointers you should look into: