title: Connection of Titan graph DB to Gephi through Gremlin console
body: <p>I am trying to connect to gephi(0.9.1) through gremlin console. I have a graph in my titan database. I also have the streaming server enabled in my gephi. And through gremlin i executed the following commands:</p>
  
  <ol>
  <li>:plugin use tinkerpop.gephi</li>
  <li>g = TinkerFactory.createModern()</li>
  <li>:remote connect tinkerpop.gephi</li>
  </ol>
  
  <p>All these worked fine.But when i ran the last command:</p>
  
  <pre><code>                      :&gt; g
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>==&gt;tinkergraph[vertices:6 edges:6]
  16:07:16.783 [main] DEBUG groovyx.net.http.HTTPBuilder - POST http://localhost:8080/workspace0?format=JSON&amp;operation=updateGraph
  16:07:16.801 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Get connection for route {}-&gt;http://localhost:8080
  16:07:16.809 [main] DEBUG o.a.h.i.c.DefaultClientConnectionOperator - Connecting to localhost:8080
  16:07:16.817 [main] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: default
  16:07:16.822 [main] DEBUG o.a.h.c.protocol.RequestAuthCache - Auth cache not set in the context
  16:07:16.826 [main] DEBUG o.a.h.c.p.RequestTargetAuthentication - Target auth state: UNCHALLENGED 
  16:07:16.831 [main] DEBUG o.a.h.c.p.RequestProxyAuthentication - Proxy auth state: UNCHALLENGED
  16:07:16.836 [main] DEBUG o.a.h.impl.client.DefaultHttpClient - Attempt 1 to execute request
  16:07:16.840 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Sending request: POST /workspace0?format=JSON&amp;operation=updateGraph HTTP/1.1
  16:07:16.850 [main] DEBUG org.apache.http.wire -  &gt;&gt; "POST /workspace0?format=JSON&amp;operation=updateGraph HTTP/1.1[\r][\n ]"
  16:07:16.862 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Accept: */*[\r][\n]"
  16:07:16.868 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Content-Length: 23[\r][\n]"
  16:07:16.873 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Content-Type: application/json[\r][\n]"
  16:07:16.879 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Host: localhost:8080[\r][\n]"
  16:07:16.885 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Connection: Keep-Alive[\r][\n]"
  16:07:16.890 [main] DEBUG org.apache.http.wire -  &gt;&gt; "[\r][\n]"
  16:07:16.895 [main] DEBUG org.apache.http.headers - &gt;&gt; POST /workspace0?format=JSON&amp;operation=updateGraph HTTP/1.1
  16:07:16.900 [main] DEBUG org.apache.http.headers - &gt;&gt; Accept: */*
  16:07:16.905 [main] DEBUG org.apache.http.headers - &gt;&gt; Content-Length: 23
  16:07:16.910 [main] DEBUG org.apache.http.headers - &gt;&gt; Content-Type: application/json
  16:07:16.915 [main] DEBUG org.apache.http.headers - &gt;&gt; Host: localhost:8080
  16:07:16.920 [main] DEBUG org.apache.http.headers - &gt;&gt; Connection: Keep-Alive
  16:07:16.925 [main] DEBUG org.apache.http.wire -  &gt;&gt; "{"dn":{"filter":"ALL"}}"
  16:07:16.935 [main] DEBUG org.apache.http.wire -  &lt;&lt; "HTTP/1.1 404 Not Found[\r][\n]"
  16:07:16.940 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Cache-Control: must-revalidate,no-cache,no-store[\r][\n]"
  16:07:16.945 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Content-Type: text/html;charset=ISO-8859-1[\r][\n]"
  16:07:16.951 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Content-Length: 1277[\r][\n]"
  16:07:16.956 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Server: Jetty(8.1.17.v20150415)[\r][\n]"
  16:07:16.961 [main] DEBUG org.apache.http.wire -  &lt;&lt; "[\r][\n]"
  16:07:16.966 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Receiving response: HTTP/1.1 404 Not Found
  16:07:16.971 [main] DEBUG org.apache.http.headers - &lt;&lt; HTTP/1.1 404 Not Found
  16:07:16.978 [main] DEBUG org.apache.http.headers - &lt;&lt; Cache-Control: must-revalidate,no-cache,no-store
  16:07:16.984 [main] DEBUG org.apache.http.headers - &lt;&lt; Content-Type: text/html;charset=ISO-8859-1 
  16:07:16.991 [main] DEBUG org.apache.http.headers - &lt;&lt; Content-Length: 1277
  16:07:16.996 [main] DEBUG org.apache.http.headers - &lt;&lt; Server: Jetty(8.1.17.v20150415)
  16:07:17.002 [main] DEBUG o.a.h.impl.client.DefaultHttpClient - Connection can be kept alive indefinitely
  16:07:17.010 [main] DEBUG groovyx.net.http.HTTPBuilder - Response code: 404; found handler: org.codehaus.groovy.runtime. MethodClosure@2c768ada
  16:07:17.020 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;html&gt;[\n]"
  16:07:17.024 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;head&gt;[\n]"
  16:07:17.029 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/&gt;[\n]"
  16:07:17.039 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;title&gt;Error 404 Not Found&lt;/title&gt;[\n]"
  16:07:17.043 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;/head&gt;[\n]"
  16:07:17.048 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;body&gt;[\n]"
  16:07:17.052 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;h2&gt;HTTP ERROR: 404&lt;/h2&gt;[\n]"
  16:07:17.057 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;p&gt;Problem accessing /workspace0. Reason:[\n]"
  16:07:17.062 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;pre&gt;    Not Found&lt;/pre&gt;&lt;/p&gt;[\n]"
  16:07:17.068 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;hr /&gt;&lt;i&gt;&lt;small&gt;Powered by Jetty://&lt;/small&gt;&lt;/i&gt;[\n]"
  16:07:17.074 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                           [\n]"
  16:07:17.079 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                               [\n]"
   16:07:17.083 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.088 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.093 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.098 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.103 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.107 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.111 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.116 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.121 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.125 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.130 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.136 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.141 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.146 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.151 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.156 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.160 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.165 [main] DEBUG org.apache.http.wire -  &lt;&lt; "                                                [\n]"
   16:07:17.170 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;/body&gt;[\n]"
   16:07:17.174 [main] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;/html&gt;[\n]"
   16:07:17.178 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@c1fca2a
   16:07:17.188 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Connection can be kept alive indefinitely Not Found
   Display stack trace? [yN]
  </code></pre>
  
  <p>And also often i get:</p>
  
  <pre><code> 15:38:20.276 [Finalizer] DEBUG o.a.h.i.conn.DefaultClientConnection - Connection 0.0.0.0:60710&lt;-&gt;127.0.0.1:8080 closed
  </code></pre>
  
  <p>I have checked for the opened ports, and i also found that 8080 port is opened.</p>