[Neo4j] GremlinPlugin in REST

2011-09-13 Thread Javier de la Rosa
Hi, all,

Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
run some of my tests and some of them falied, what related to Gremlin
plugin.
If I run using Neo4j 1.4.1 I get the next:

$ curl http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
{
  extends : graphdb,
  description : execute a Gremlin script with 'g' set to the
Neo4jGraph and 'results' containing the results. Only results of one
object type is supported.,
  name : execute_script,
  parameters : [ {
description : The Gremlin script,
optional : false,
name : script,
type : string
  }, {
description : JSON Map of additional parameters for script variables,
optional : true,
name : params,
type : string
  } ]
}

But when I use the Neo4j 1.5.M01:

$ curl http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
html
head
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/
titleError 500 INTERNAL_SERVER_ERROR/title
/head
bodyh2HTTP ERROR 500/h2
pProblem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. Reason:
preINTERNAL_SERVER_ERROR/pre/ph3Caused
by:/h3prejava.lang.NullPointerException
at 
org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
[...]
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
/pre
hr /ismallPowered by Jetty:///small/ibr/
br/
[...]
br/

/body
/html


Is that normal? is there something that I'm doing wrong?

Thanks.

-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GremlinPlugin in REST

2011-09-13 Thread Peter Neubauer
Wohow,
this is actually a bug introduced when we added Maps as parameter
types. I added a test for it in the gremlin-plugin, and fixed it in
server, 
https://github.com/neo4j/community/commit/ed42542e191de9966e1b5ada80bf8a6684bd6d1d

As snapshots get out, you should be able to run it normally in Neo4j
Server 1.5-SNAPSHOT.

Thanks for reporting it - it surfaces only when you do a GET on the
Gremlin plugin URL!

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 13, 2011 at 10:11 PM, Javier de la Rosa ver...@gmail.com wrote:
 Hi, all,

 Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
 run some of my tests and some of them falied, what related to Gremlin
 plugin.
 If I run using Neo4j 1.4.1 I get the next:

 $ curl 
 http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
 {
  extends : graphdb,
  description : execute a Gremlin script with 'g' set to the
 Neo4jGraph and 'results' containing the results. Only results of one
 object type is supported.,
  name : execute_script,
  parameters : [ {
    description : The Gremlin script,
    optional : false,
    name : script,
    type : string
  }, {
    description : JSON Map of additional parameters for script variables,
    optional : true,
    name : params,
    type : string
  } ]
 }

 But when I use the Neo4j 1.5.M01:

 $ curl 
 http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/
 titleError 500 INTERNAL_SERVER_ERROR/title
 /head
 bodyh2HTTP ERROR 500/h2
 pProblem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. 
 Reason:
 pre    INTERNAL_SERVER_ERROR/pre/ph3Caused
 by:/h3prejava.lang.NullPointerException
        at 
 org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
        [...]
        at 
 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
 /pre
 hr /ismallPowered by Jetty:///small/ibr/
 br/
 [...]
 br/

 /body
 /html


 Is that normal? is there something that I'm doing wrong?

 Thanks.

 --
 Javier de la Rosa
 http://versae.es
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GremlinPlugin in REST

2011-09-13 Thread Javier de la Rosa
Thank you for the very quick response and fix. I'll try the new snapshot.

Regards!

On Tue, Sep 13, 2011 at 16:39, Peter Neubauer
peter.neuba...@neotechnology.com wrote:
 Wohow,
 this is actually a bug introduced when we added Maps as parameter
 types. I added a test for it in the gremlin-plugin, and fixed it in
 server, 
 https://github.com/neo4j/community/commit/ed42542e191de9966e1b5ada80bf8a6684bd6d1d

 As snapshots get out, you should be able to run it normally in Neo4j
 Server 1.5-SNAPSHOT.

 Thanks for reporting it - it surfaces only when you do a GET on the
 Gremlin plugin URL!

 Cheers,

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 http://www.neo4j.org               - Your high performance graph database.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



 On Tue, Sep 13, 2011 at 10:11 PM, Javier de la Rosa ver...@gmail.com wrote:
 Hi, all,

 Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
 run some of my tests and some of them falied, what related to Gremlin
 plugin.
 If I run using Neo4j 1.4.1 I get the next:

 $ curl 
 http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
 {
  extends : graphdb,
  description : execute a Gremlin script with 'g' set to the
 Neo4jGraph and 'results' containing the results. Only results of one
 object type is supported.,
  name : execute_script,
  parameters : [ {
    description : The Gremlin script,
    optional : false,
    name : script,
    type : string
  }, {
    description : JSON Map of additional parameters for script variables,
    optional : true,
    name : params,
    type : string
  } ]
 }

 But when I use the Neo4j 1.5.M01:

 $ curl 
 http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/
 titleError 500 INTERNAL_SERVER_ERROR/title
 /head
 bodyh2HTTP ERROR 500/h2
 pProblem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. 
 Reason:
 pre    INTERNAL_SERVER_ERROR/pre/ph3Caused
 by:/h3prejava.lang.NullPointerException
        at 
 org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
        [...]
        at 
 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
 /pre
 hr /ismallPowered by Jetty:///small/ibr/
 br/
 [...]
 br/

 /body
 /html


 Is that normal? is there something that I'm doing wrong?

 Thanks.

 --
 Javier de la Rosa
 http://versae.es
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user