Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create an object with null-property #146

Open
uqee opened this issue Sep 6, 2014 · 0 comments
Open

Unable to create an object with null-property #146

uqee opened this issue Sep 6, 2014 · 0 comments

Comments

@uqee
Copy link

uqee commented Sep 6, 2014

Minimal example (in neo4j's console it works well):

db.query('create ({data})', { data: { foo: null } }, callback);

Here's my error stack trace:

Trace: { [Error: (a,null) (of class scala.Tuple2)]
  neo4jError: 
   { message: '(a,null) (of class scala.Tuple2)',
     exception: 'MatchError',
     fullname: 'scala.MatchError',
     stacktrace: 
      [ 'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$org$$$$cc5e771a9d2ffdf71ac346e6f5f9cb3$$$$e$$fromAnyToLiteral$1$1.apply(CreateNode.scala:37)',
        'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$org$$$$cc5e771a9d2ffdf71ac346e6f5f9cb3$$$$e$$fromAnyToLiteral$1$1.apply(CreateNode.scala:37)',
        'scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)',
        'scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)',
        'scala.collection.Iterator$class.foreach(Iterator.scala:727)',
        'scala.collection.AbstractIterator.foreach(Iterator.scala:1157)',
        'scala.collection.IterableLike$class.foreach(IterableLike.scala:72)',
        'scala.collection.AbstractIterable.foreach(Iterable.scala:54)',
        'scala.collection.TraversableLike$class.map(TraversableLike.scala:244)',
        'scala.collection.AbstractTraversable.map(Traversable.scala:105)',
        'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode.org$neo4j$cypher$internal$compiler$v2_1$mutation$CreateNode$$fromAnyToLiteral$1(CreateNode.scala:37)',
        'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$exec$1.apply(CreateNode.scala:74)',
        'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$exec$1.apply(CreateNode.scala:70)',
        'scala.collection.Iterator$$anon$11.next(Iterator.scala:328)',
        'scala.collection.Iterator$$anon$13.next(Iterator.scala:372)',
        'scala.collection.Iterator$$anon$13.next(Iterator.scala:372)',
        'org.neo4j.cypher.internal.compiler.v2_1.pipes.EmptyResultPipe.internalCreateResults(EmptyResultPipe.scala:29)',
        'org.neo4j.cypher.internal.compiler.v2_1.pipes.PipeWithSource.createResults(Pipe.scala:98)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1$$anonfun$apply$2.apply(ExecutionPlanBuilder.scala:119)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1$$anonfun$apply$2.apply(ExecutionPlanBuilder.scala:118)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionWorkflowBuilder.runWithQueryState(ExecutionPlanBuilder.scala:169)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1.apply(ExecutionPlanBuilder.scala:117)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1.apply(ExecutionPlanBuilder.scala:102)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anon$1.execute(ExecutionPlanBuilder.scala:68)',
        'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anon$1.execute(ExecutionPlanBuilder.scala:67)',
        'org.neo4j.cypher.internal.ExecutionPlanWrapperForV2_1.execute(CypherCompiler.scala:126)',
        'org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:75)',
        'org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:69)',
        'org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:84)',
        'org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:114)',
        'java.lang.reflect.Method.invoke(Method.java:483)',
        'org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)',
        'java.lang.Thread.run(Thread.java:745)' ] },
  neo4jException: 'MatchError',
  neo4jStacktrace: 
   [ 'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$org$$$$cc5e771a9d2ffdf71ac346e6f5f9cb3$$$$e$$fromAnyToLiteral$1$1.apply(CreateNode.scala:37)',
     'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$org$$$$cc5e771a9d2ffdf71ac346e6f5f9cb3$$$$e$$fromAnyToLiteral$1$1.apply(CreateNode.scala:37)',
     'scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)',
     'scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)',
     'scala.collection.Iterator$class.foreach(Iterator.scala:727)',
     'scala.collection.AbstractIterator.foreach(Iterator.scala:1157)',
     'scala.collection.IterableLike$class.foreach(IterableLike.scala:72)',
     'scala.collection.AbstractIterable.foreach(Iterable.scala:54)',
     'scala.collection.TraversableLike$class.map(TraversableLike.scala:244)',
     'scala.collection.AbstractTraversable.map(Traversable.scala:105)',
     'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode.org$neo4j$cypher$internal$compiler$v2_1$mutation$CreateNode$$fromAnyToLiteral$1(CreateNode.scala:37)',
     'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$exec$1.apply(CreateNode.scala:74)',
     'org.neo4j.cypher.internal.compiler.v2_1.mutation.CreateNode$$anonfun$exec$1.apply(CreateNode.scala:70)',
     'scala.collection.Iterator$$anon$11.next(Iterator.scala:328)',
     'scala.collection.Iterator$$anon$13.next(Iterator.scala:372)',
     'scala.collection.Iterator$$anon$13.next(Iterator.scala:372)',
     'org.neo4j.cypher.internal.compiler.v2_1.pipes.EmptyResultPipe.internalCreateResults(EmptyResultPipe.scala:29)',
     'org.neo4j.cypher.internal.compiler.v2_1.pipes.PipeWithSource.createResults(Pipe.scala:98)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1$$anonfun$apply$2.apply(ExecutionPlanBuilder.scala:119)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1$$anonfun$apply$2.apply(ExecutionPlanBuilder.scala:118)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionWorkflowBuilder.runWithQueryState(ExecutionPlanBuilder.scala:169)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1.apply(ExecutionPlanBuilder.scala:117)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anonfun$getExecutionPlanFunction$1.apply(ExecutionPlanBuilder.scala:102)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anon$1.execute(ExecutionPlanBuilder.scala:68)',
     'org.neo4j.cypher.internal.compiler.v2_1.executionplan.ExecutionPlanBuilder$$anon$1.execute(ExecutionPlanBuilder.scala:67)',
     'org.neo4j.cypher.internal.ExecutionPlanWrapperForV2_1.execute(CypherCompiler.scala:126)',
     'org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:75)',
     'org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:69)',
     'org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:84)',
     'org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:114)',
     'java.lang.reflect.Method.invoke(Method.java:483)',
     'org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)',
     'java.lang.Thread.run(Thread.java:745)' ],
  statusCode: 400 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant