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
neo4j constructor issue
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
  2 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
 
neo4j-na  
View profile  
 More options May 1 2012, 5:19 pm
From: neo4j-na <naveen.aggar...@gmail.com>
Date: Tue, 1 May 2012 14:19:08 -0700 (PDT)
Local: Tues, May 1 2012 5:19 pm
Subject: neo4j constructor issue
Hi.
I have a Spring based program and I  am trying to get it to connect to
the neo4j remote database using REST.
When I run the jar....I get the following exception:

com.sun.jersey.api.client.ClientHandlerException:
com.sun.jersey.api.client.Clie
ntHandlerException: A message body writer for Java type, class
java.lang.String,
 and MIME media type, application/json, was not found
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle
(URLConnectionClientHandler.java:131)
        at
com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasic
AuthFilter.java:81)
        at com.sun.jersey.api.client.Client.handle(Client.java:616)
        at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)
        at com.sun.jersey.api.client.WebResource.access
$200(WebResource.java:72)

        at com.sun.jersey.api.client.WebResource
$Builder.get(WebResource.java:45
4)
        at
org.neo4j.rest.graphdb.ExecutingRestRequest.get(ExecutingRestRequest.
java:114)
        at
org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQu
eryEngine.java:56)
        at
org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query
(SpringRestCypherQueryEngine.java:35)
        at
org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query
(SpringRestCypherQueryEngine.java:25)
        at
com.rfp.application.CorrelationApplicationRun.run(CorrelationApplicat
ion.java:51)
        at
com.rfp.application.CorrelationApplication.main(CorrelationApplicatio
n.java:37)
        at com.rfp.application.Start.main(Start.java:22)
Caused by: com.sun.jersey.api.client.ClientHandlerException: A message
body writ
er for Java type, class java.lang.String, and MIME media type,
application/json,
 was not found
        at
com.sun.jersey.api.client.TerminatingClientHandler.writeRequestEntity
(TerminatingClientHandler.java:293)
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invok
e(URLConnectionClientHandler.java:182)
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle
(URLConnectionClientHandler.java:129)
        ... 12 more

If I am reading this right, it is able to connect but it does not know
how to process the data that is returning...
I have the jersey-json in my dependency list but I am still seeing the
error. Do I need to pass something into the constructor via the
appContext?

Thanks.


 
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 May 1 2012, 5:31 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Tue, 1 May 2012 23:31:17 +0200
Local: Tues, May 1 2012 5:31 pm
Subject: Re: [Neo4j] neo4j constructor issue
Can you please share the code that you use to create the RestGraphdatabase ? and also the uri and auth parameters used?
Best would be a test that exhibits the problem.

Is the server running on the given port?

Which version of server and java-rest-client did you use?
Also which maven dependency did you use (or did you pull or build the jar on your own) ?

Cheers

Michael

Am 01.05.2012 um 23:19 schrieb neo4j-na:


 
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 »