java-rest-binding building failure (different to other post)

118 views
Skip to first unread message

Philip Garnett

unread,
May 2, 2012, 11:08:51 AM5/2/12
to ne...@googlegroups.com
Hello,

I'm having issues getting java-rest-binding to build.

Firstly using jersey version 1.4 doesn't work. I changed it to 1.12 but now I get the following errors. I'm not sure they are connected.

[INFO] Compilation failure

/home/philip/JavaLibs/java-rest-binding/src/main/java/org/neo4j/rest/graphdb/traversal/RestPathParser.java:[129,22] name clash: lastElement(Collection<Map<?,?>>) and lastElement(Collection<String>) have the same erasure
/home/philip/JavaLibs/java-rest-binding/src/main/java/org/neo4j/rest/graphdb/traversal/RestPathParser.java:[129,22] name clash: lastElement(Collection<Map<?,?>>) and lastElement(Collection<String>) have the same erasure
/home/philip/JavaLibs/java-rest-binding/src/main/java/org/neo4j/rest/graphdb/traversal/RestPathParser.java:[75,47] method lastElement in class RestPathParser cannot be applied to given types

Bit of a strange one.

Phil

Michael Hunger

unread,
May 2, 2012, 1:17:06 PM5/2/12
to ne...@googlegroups.com
what jdk are you using?

Michael

Philip Garnett

unread,
May 4, 2012, 4:55:08 AM5/4/12
to ne...@googlegroups.com
I tried both the latest 1.6 but also a 1.7 beta. If I rename the methods I can get it to compile but it then fails when the tests run.

Michael Hunger

unread,
May 4, 2012, 1:07:19 PM5/4/12
to ne...@googlegroups.com
Philip I renamed one of the methods, should be fine now the project is rebuild and the jars redeployed.

Michael

Am 02.05.2012 um 17:08 schrieb Philip Garnett:

Philip Garnett

unread,
Jun 14, 2012, 6:47:00 AM6/14/12
to ne...@googlegroups.com
It does now work. I also had to add in the jersey-servlet as a dependency in pom file to get it to work.

Peter Neubauer

unread,
Jun 15, 2012, 10:39:02 AM6/15/12
to ne...@googlegroups.com
Cool,
feel free to issue a PR.

Cheers,

/peter neubauer

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

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j

Santiago Baldrich

unread,
Aug 3, 2012, 11:36:48 AM8/3/12
to ne...@googlegroups.com
Hello Michael, I've just cloned the repository and I'm getting the exact same error Phillip had, did this name changing take part on a branch different to master? 

Thank you.

- Santiago 

Peter Neubauer

unread,
Aug 20, 2012, 7:41:30 AM8/20/12
to ne...@googlegroups.com
Santiago,
did you get any further here?

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.

Michael Hunger

unread,
Aug 21, 2012, 1:25:17 AM8/21/12
to ne...@googlegroups.com
What exactly did you do?

Am 21.08.2012 um 05:41 schrieb Jonas Wu:

It seems that the 'zip' and 'tar' file don't be updated to the latest version, still having this error!

Peter Neubauer於 2012年8月20日星期一UTC+8下午7時41分30秒寫道:
--
 
 

Jonas Wu

unread,
Aug 21, 2012, 1:51:13 AM8/21/12
to ne...@googlegroups.com
Hello Michael:
 
I download the source code by 'zip' or 'tar.gz' format instead of 'git clone' from github.
When I try to build *.jar from source by 'mvn install' the error stiil happened.
Following is the error message:

[ERROR] \neo4j-java-rest-binding-0117d15\src\main\java\org\neo4j\rest\graphdb\tr
aversal\RestPathParser.java:[131,22] error: name clash: lastElement(Collection<M

ap<?,?>>) and lastElement(Collection<String>) have the same erasure

Michael Hunger於 2012年8月21日星期二UTC+8下午1時25分17秒寫道:

Michael Hunger

unread,
Aug 21, 2012, 2:37:26 AM8/21/12
to ne...@googlegroups.com
I downloaded it from here:

by clicking on the "download as zip" link.

and it worked without problems with mvn clean install

--
 
 

Jonas Wu

unread,
Aug 23, 2012, 4:05:57 AM8/23/12
to ne...@googlegroups.com
Hi Michael:

I download the same zip file and this error still happens.
So let me check first: Is the function name has really been changed? 
Or this error should not happened? Maybe the environment setting causes it?
Thanks a lot.

JDK version: 1.7.0_06
Maven version: 3.0.4
OS: Windows XP SP3 x86

/Jonas

Michael Hunger於 2012年8月21日星期二UTC+8下午2時37分26秒寫道:

Michael Hunger

unread,
Aug 23, 2012, 4:46:31 AM8/23/12
to ne...@googlegroups.com
Sorry, that was a regression that slipped through and is not complained about by JDK 6.

I pushed a new version to github, please retry.

Thanks

MIchael

--
 
 

Reply all
Reply to author
Forward
0 new messages