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
What's available in Unmanaged Extensions?
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
  8 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
 
Nicholas Stuart  
View profile  
 More options Aug 9 2012, 6:10 pm
From: Nicholas Stuart <nicholasastu...@gmail.com>
Date: Thu, 9 Aug 2012 15:10:03 -0700 (PDT)
Local: Thurs, Aug 9 2012 6:10 pm
Subject: What's available in Unmanaged Extensions?

I'm following the guide  
http://docs.neo4j.org/chunked/milestone/server-unmanaged-extensions.html to
create my own unmanaged extension, but I noticed that is says I can get a
Logger, but I tried to get it through the Context and was unable to. What's
available from the @Context?


 
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 Aug 9 2012, 6:15 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Fri, 10 Aug 2012 00:15:54 +0200
Local: Thurs, Aug 9 2012 6:15 pm
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

you can use a java.util.logging logger there.

If that's ok with you?

Michael
Am 10.08.2012 um 00:10 schrieb Nicholas Stuart:


 
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.
Nicholas Stuart  
View profile  
 More options Aug 9 2012, 10:04 pm
From: Nicholas Stuart <nicholasastu...@gmail.com>
Date: Thu, 9 Aug 2012 19:04:30 -0700 (PDT)
Local: Thurs, Aug 9 2012 10:04 pm
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

I attempted to do this, using @Context Logger logger in my constructor but
got an error when I tried to deploy to 1.8 M06.


 
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 Aug 9 2012, 10:09 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Fri, 10 Aug 2012 04:09:42 +0200
Local: Thurs, Aug 9 2012 10:09 pm
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

Just the usual

Logger logger = Logger.getLogger(MyClasss.class.getName());

Am 10.08.2012 um 04:04 schrieb Nicholas Stuart:


 
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.
Nicholas Stuart  
View profile  
 More options Aug 13 2012, 5:07 pm
From: Nicholas Stuart <nicholasastu...@gmail.com>
Date: Mon, 13 Aug 2012 14:07:41 -0700 (PDT)
Local: Mon, Aug 13 2012 5:07 pm
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

Thanks Michael. What else is available though? I'm trying to return a a
Collection Class through a JSON ResponseBuilder Object and am getting an
exception when I try to. Do you have any suggestions on how to perform this
function?

javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A
message body writer for Java class java.util.HashSet, and Java type class
java.util.HashSet, and MIME media type application/json was not found
at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java :285)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(We bApplicationImpl.java:1437)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(Web ApplicationImpl.java:1349)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(Web ApplicationImpl.java:1339)
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java :416)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContai ner.java:537)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContai ner.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle r.java:1166)
at
org.neo4j.server.statistic.StatisticFilter.doFilter(StatisticFilter.java:62 )
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle r.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:1 14)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnecti on.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410 )
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:58 2)
Caused by: com.sun.jersey.api.MessageException: A message body writer for
Java class java.util.HashSet, and Java type class java.util.HashSet, and
MIME media type application/json was not found
... 25 more


 
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.
Lasse Westh-Nielsen  
View profile  
 More options Aug 14 2012, 3:24 am
From: Lasse Westh-Nielsen <lasse.westh-niel...@neopersistence.com>
Date: Tue, 14 Aug 2012 08:24:20 +0100
Local: Tues, Aug 14 2012 3:24 am
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

Nicholas,

I can't remember if Jersey/ JSON work with Sets, but I do remember Maps and
Lists wirk nicely - try converting your time to one of those perhaps?

Lasse

On Mon, Aug 13, 2012 at 10:07 PM, Nicholas Stuart <nicholasastu...@gmail.com


 
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.
Nicholas Stuart  
View profile  
 More options Aug 14 2012, 9:58 am
From: Nicholas Stuart <nicholasastu...@gmail.com>
Date: Tue, 14 Aug 2012 06:58:45 -0700 (PDT)
Local: Tues, Aug 14 2012 9:58 am
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

It should just marshal it into a Collection, which it should be able to
handle, but I changed it to a List/ArrayList and it was still the same
error.


 
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.
Nicholas Stuart  
View profile  
 More options Aug 14 2012, 1:25 pm
From: Nicholas Stuart <nicholasastu...@gmail.com>
Date: Tue, 14 Aug 2012 10:25:09 -0700 (PDT)
Local: Tues, Aug 14 2012 1:25 pm
Subject: Re: [Neo4j] What's available in Unmanaged Extensions?

So I got it working in a way. If I take my set and return it as a String,
but with a @Produces of JSON, it returns it as a JSON list.


 
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 »