gsethi / addama

Automatically exported from code.google.com/p/addama
Apache License 2.0
1 stars 0 forks source link

jcr-repository-svc POST to create or update a node returns 500 Internal Server Error #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
- create or update a node via the trunk version of jcr-repository-svc
- see client side request and response below 
- see server log message below

What is the expected output? What do you see instead?
- expected 200 OK and possibly the properties of the created/updated node
- actual: 500 Internal Server Error but the node was created/updated correctly 
on the server

~>post_sage /addama/repositories/sage-content-repo/demo2/datasets/TestNode6 
JSON '{"this":"is an update"}'
param size:  2
index:  0
name: JSON
value: {"this":"is an update"}
POST 
https://deflaux-test3.appspot.com/addama/repositories/sage-content-repo/demo2/da
tasets/TestNode6
params: JSON=%7B%22this%22%3A%22is+an+update%22%7D
500 Internal Server Error

DEBUG [http-8080-2] 19:06:25,914 AbstractApplicationContext - Publishing event i
n context [org.springframework.web.context.support.XmlWebApplicationContext@aae8
a]: ServletRequestHandledEvent: url=[/jcr-repositories-svc/addama/repositories/s
age-content-repo/demo2/datasets/TestNode6]; client=[64.233.172.20]; method=[POST
]; servlet=[jcrrepos]; session=[null]; user=[null]; time=[99ms]; status=[failed:
 javax.servlet.ServletException: Could not resolve view with name 'addama/reposi
tories/sage-content-repo/demo2/datasets/TestNode6' in servlet with name 'jcrrepo
s']

~>post_sage /addama/repositories/sage-content-repo/demo2/datasets/TestNode7 
JSON '{"this":"is a new node"}'
param size:  2
index:  0
name: JSON
value: {"this":"is a new node"}
POST 
https://deflaux-test3.appspot.com/addama/repositories/sage-content-repo/demo2/da
tasets/TestNode7
params: JSON=%7B%22this%22%3A%22is+a+new+node%22%7D
500 Internal Server Error

DEBUG [http-8080-2] 19:06:59,124 AbstractApplicationContext - Publishing event 
in context 
[org.springframework.web.context.support.XmlWebApplicationContext@aae8a]: 
ServletRequestHandledEvent: 
url=[/jcr-repositories-svc/addama/repositories/sage-content-repo/demo2/datasets/
TestNode7]; client=[64.233.172.20]; method=[POST]; servlet=[jcrrepos]; 
session=[null]; user=[null]; time=[79ms]; status=[failed: 
javax.servlet.ServletException: Could not resolve view with name 
'addama/repositories/sage-content-repo/demo2/datasets/TestNode7' in servlet 
with name 'jcrrepos']
'

Original issue reported on code.google.com by nicole.d...@gtempaccount.com on 4 Nov 2010 at 7:13

GoogleCodeExporter commented 8 years ago
see revisions 304 and 305

Original comment by nicole.d...@gtempaccount.com on 12 Nov 2010 at 12:48