[ 
https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593387#action_12593387
 ] 

vasu nori commented on SHINDIG-210:
-----------------------------------

>I also combined the RestGuiceModule into the SocialApiGuiceModule as they 
>should be one and the same.

agreed.

>Just one comment though - why is the beanXmlConverter passed around through 
>all of those methods?
>Can't it just be moved into the abstract base class as a field? I think that 
>would simplify things a lot.

agreed. stupid me, I saved that cleanup once I got the guice working.. and then 
I forgot.

>The reason I haven't checked this in though is that I just realized that the 
>urls you thought were working
>for the restful server aren't working in svn head. No exceptions are being 
>thrown..
>I keep just getting Not Found xml responses from abdera.
>Does abdera swallow exceptions? Is there a good way to debug this, or better 
>yet,
>do you know what the problem is?

abdera swallows reason for "not found" exception, if it occurs inside abdera
but it propagates other exceptions back to the user.

I usually debug in 2 ways. I have logging.properties file like the following 
and place it in classpath.
     handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler
     .level = FINEST
     java.util.logging.ConsoleHandler.level = FINEST
     java.util.logging.FileHandler.level = ALL
     java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter
    com.google.level = INFO
    org.apache.abdera.level=FINEST
    org.google.inject.level=FINEST

If that doesn't give me info, I then use eclipse to step through code. thats 
more painful.

hey, maybe you can send me the patch you are trying to checkin (with your 
changes) and I can test it out.
usually, problem could be (1) web.xml doesn't have abdera param for the REST 
servlet
(2) or url is wrong - so rest servlet is not receiving the request 

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the 
> opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to