Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Parameter Not
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mrwizard  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 5:08 am
From: mrwizard <javi...@gmail.com>
Date: Wed, 30 May 2012 02:08:33 -0700 (PDT)
Local: Wed, May 30 2012 5:08 am
Subject: Parameter Not
Hi,
I'm trying to make this query in a SDN repository:

start g=node:groups("name:*") match u-[b?:belongs]->g<-
[c?:contains*0..8]-p<-[n?:contains]-h where ((u.login AND u.login=~
{query}) OR g.name=~ {query}) and n is null return distinct p order by
p.name skip {from} limit {total}

My code in repository is this:

        @Query(value="start g=node:groups(\"name:*\") " +
                        "match u-[b?:belongs]->g<-[c?:contains*0..8]-p<-[n?:contains]-h " +
                        "where ((u.login AND u.login=~ {query}) " +
                                "and n is null " +
                        "return distinct p " + //, from, total " +
                        "order by p.name skip {from} limit {total}" )
        Iterable<Group> getGroups(
                        @Param( "query" ) String query,
                        @Param( "from"         ) int from,
                        @Param( "total"        ) int total );

When the query returns results, I get an exception caused by a
parameter not being found:

Caused by: org.neo4j.cypher.ParameterNotFoundException: Expected a
parameter named from
        at org.neo4j.cypher.commands.Parameter$$anonfun$apply
$5.apply(Expression.scala:187)
        at org.neo4j.cypher.commands.Parameter$$anonfun$apply
$5.apply(Expression.scala:187)
        at scala.collection.MapLike$class.getOrElse(MapLike.scala:122)
        at scala.collection.immutable.Map$Map2.getOrElse(Map.scala:122)
        at org.neo4j.cypher.commands.Parameter.apply(Expression.scala:187)
        at org.neo4j.cypher.commands.Parameter.apply(Expression.scala:186)
        at org.neo4j.cypher.internal.pipes.SlicePipe.asInt$1(SlicePipe.scala:
37)
        at
org.neo4j.cypher.internal.pipes.SlicePipe.createResults(SlicePipe.scala:
44)
        at
org.neo4j.cypher.internal.pipes.ColumnFilterPipe.createResults(ColumnFilter Pipe.scala:
33)
        at org.neo4j.cypher.internal.ExecutionPlanImpl$$anonfun
$prepareExecutionPlan$3.apply(ExecutionPlanImpl.scala:86)
        at org.neo4j.cypher.internal.ExecutionPlanImpl$$anonfun
$prepareExecutionPlan$3.apply(ExecutionPlanImpl.scala:86)
        at
org.neo4j.cypher.internal.ExecutionPlanImpl.execute(ExecutionPlanImpl.scala :
33)
        at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:59)
        at org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:55)
        at
org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:
78)
        at
org.springframework.data.neo4j.support.query.CypherQueryEngine.parseAndExec uteQuery(CypherQueryEngine.java:
63)
        ... 98 more

I have debugged it as far as I can and in the step createResults of
the SlicePipe I can see "from" and "total" with the correct values as
params.

My version of neo4j is 1.6.M02.

Do you have any idea about why is this error happening and how to
solve it?

Many thanks in advanced.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andres Taylor  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 7:45 am
From: Andres Taylor <andres.tay...@neotechnology.com>
Date: Wed, 30 May 2012 13:45:28 +0200
Local: Wed, May 30 2012 7:45 am
Subject: Re: [Neo4j] Parameter Not

On Wed, May 30, 2012 at 11:08 AM, mrwizard <javi...@gmail.com> wrote:

> My version of neo4j is 1.6.M02.

Looking at http://neo4j.org/download, the latest 1.6 released is 1.6.3. I
suggest that you first try on that version, and then report back if the
issue persists.

HTH,

Andrés


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Santiago Baldrich  
View profile  
 More options Jul 30 2012, 1:26 pm
From: Santiago Baldrich <santiago.baldr...@gmail.com>
Date: Mon, 30 Jul 2012 10:26:19 -0700 (PDT)
Local: Mon, Jul 30 2012 1:26 pm
Subject: Re: [Neo4j] Parameter Not

Hello Andrés, I'm using Neo4j 1.7.2 and this problem still arises. Do you
happen to know a way to avoid it?

Thank you.

- Santiago


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options Jul 31 2012, 3:50 am
From: Peter Neubauer <peter.neuba...@neotechnology.com>
Date: Tue, 31 Jul 2012 09:50:16 +0200
Local: Tues, Jul 31 2012 3:50 am
Subject: Re: [Neo4j] Parameter Not
Mmh,
the code looks legit. Is there any way you could change the name of
the parameter or try if all the others are working if you remove the
"from" parameter? It looks like there might be a parsing error or so?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Wanna learn something new? Come to @graphconnect.

On Mon, Jul 30, 2012 at 7:26 PM, Santiago Baldrich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options Jul 31 2012, 4:21 am
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Tue, 31 Jul 2012 10:21:27 +0200
Local: Tues, Jul 31 2012 4:21 am
Subject: Re: [Neo4j] Parameter Not
What about using a PageRequest parameter which contains the pageSize and offset information and will be added to your query?

Michael

Am 30.05.2012 um 11:08 schrieb mrwizard:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Wielbut  
View profile  
 More options Nov 28 2012, 4:17 pm
From: Matt Wielbut <mwiel...@gmail.com>
Date: Wed, 28 Nov 2012 13:17:51 -0800 (PST)
Local: Wed, Nov 28 2012 4:17 pm
Subject: Re: Parameter Not

Looks like this is still an issue... I'm not able to pass params to LIMIT
or SKIP - keep getting a org.neo4j.cypher.ParameterNotFoundException

I'm on 1.8


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xav`  
View profile  
 More options Dec 2 2012, 10:33 pm
From: Xav` <xav...@2cool4school.fr>
Date: Sun, 2 Dec 2012 19:33:05 -0800 (PST)
Local: Sun, Dec 2 2012 10:33 pm
Subject: Re: Parameter Not

Same in here : I'm using Neo4jPHP client and got the same error on 1.8. To
bypass this problem using it (in PHP), informations are available here
: https://github.com/jadell/neo4jphp/issues/72


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »