[
http://jira.amdatu.org/jira/browse/AMDATUMNGMNT-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12051#comment-12051
]
Manuel Stampe commented on AMDATUMNGMNT-5:
------------------------------------------
With a plain vanilla ACE server I also get the problem. At least I assume it is
the same, because I don't see a log file. First I created a feature via the
vaadin interface, I tried to modify with REST calls. Following I post the curl
commands and their responses:
curl -i -X 'POST' http://localhost:8080/client/work/
{noformat}
HTTP/1.1 302 Found
Location: http://localhost:8080/client/work/work/rest-4
Content-Length: 0
Server: Jetty(6.1.x)
{noformat}
curl -i -X 'GET' http://localhost:8080/client/work/rest-4/feature
{noformat}
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Jetty(6.1.x)
["group-name-newFeature"]
{noformat}
curl -i -X 'GET'
http://localhost:8080/client/work/rest-4/feature/group-name-newFeature
{noformat}
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Jetty(6.1.x)
{"attributes":{"description":"desc","name":"newFeature"},"tags":{}}
{noformat}
curl -i -X 'PUT' -d
'{"attributes":{"description":"UPDATED","name":"newFeature"},"tags":{}}'
http://localhost:8080/client/work/rest-4/feature/group-name-newFeature
{noformat}
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Server: Jetty(6.1.x)
{noformat}
> Updating entities via REST interface doesn't work in AMS Release with ACE
> Server
> --------------------------------------------------------------------------------
>
> Key: AMDATUMNGMNT-5
> URL: http://jira.amdatu.org/jira/browse/AMDATUMNGMNT-5
> Project: Amdatu Management
> Issue Type: Bug
> Affects Versions: 0.0.1
> Environment: - Amdatu AMS with opensocial
> - REST call from within opensocial gadget
> Reporter: Manuel Stampe
>
> When I want to update an entity, for example a feature via a REST call, I get
> the NullPointerException below:
> Retrieving a single feature works, like:
> GET http://localhost:8080/client/work/rest-30/feature/group-name-newFeature
> But when I update the very same feature via
> PUT http://localhost:8080/client/work/rest-30/feature/group-name-newFeature
> with the according JSON representation of the object, the error appears.
> In the debugger it seems, that also the entityId is set to "feature" instead
> of its actual name.
>
> Error log snippet:
> {noformat}
> --------------------------
> [2012-01-16 15:05:09] WARNING:
> /client/work/rest-30/feature/group-name-newFeature
> [org.apache.felix.http.jetty]
> null
> java.lang.NullPointerException
> at
> org.apache.ace.client.rest.Workspace.updateObjectWithData(Workspace.java:218)
> at
> org.apache.ace.client.rest.RESTClientServlet.doPut(RESTClientServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.amdatu.web.dispatcher.handler.ServletHandler.handle(ServletHandler.java:70)
> at
> org.amdatu.web.dispatcher.dispatch.CustomFilterChain.doFilter(CustomFilterChain.java:56)
> at
> org.amdatu.web.dispatcher.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:35)
> at
> org.amdatu.web.dispatcher.handler.FilterHandler.handle(FilterHandler.java:82)
> at
> org.amdatu.web.dispatcher.dispatch.CustomFilterChain.doFilter(CustomFilterChain.java:53)
> at
> org.amdatu.web.dispatcher.dispatch.CustomFilterPipeline.dispatch(CustomFilterPipeline.java:59)
> at
> org.amdatu.web.dispatcher.dispatch.ExtenderFilterChain.doFilter(ExtenderFilterChain.java:53)
> at
> org.amdatu.web.dispatcher.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:35)
> at
> org.amdatu.opensocial.profile.service.TenantHostnameDispatchExtenderFilter.doFilter(TenantHostnameDispatchExtenderFilter.java:63)
> at
> org.amdatu.web.dispatcher.handler.FilterHandler.handle(FilterHandler.java:78)
> at
> org.amdatu.web.dispatcher.dispatch.ExtenderFilterChain.doFilter(ExtenderFilterChain.java:50)
> at
> org.amdatu.web.dispatcher.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:35)
> at
> org.amdatu.web.dispatcher.handler.FilterHandler.handle(FilterHandler.java:82)
> at
> org.amdatu.web.dispatcher.dispatch.ExtenderFilterChain.doFilter(ExtenderFilterChain.java:50)
> at
> org.amdatu.web.dispatcher.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:35)
> at
> org.amdatu.web.tenantresolver.hostname.service.HostnameTenantResolverExtenderFilter.doFilter(HostnameTenantResolverExtenderFilter.java:71)
> at
> org.amdatu.web.dispatcher.handler.FilterHandler.handle(FilterHandler.java:78)
> at
> org.amdatu.web.dispatcher.dispatch.ExtenderFilterChain.doFilter(ExtenderFilterChain.java:50)
> at
> org.amdatu.web.dispatcher.dispatch.ExtenderFilterPipeline.dispatch(ExtenderFilterPipeline.java:44)
> at
> org.amdatu.web.dispatcher.service.DispatcherServiceImpl.dispatchRequest(DispatcherServiceImpl.java:155)
> at
> org.amdatu.web.dispatcher.filter.DispatchInterceptFilter.doFilter(DispatchInterceptFilter.java:80)
> at
> org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:80)
> at
> org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:68)
> at
> org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> at
> org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> at
> org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
> at
> org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
> at
> org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:55)
> 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.handle(ServletHandler.java:390)
> 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.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers