Skip to content

Instantly share code, notes, and snippets.

@RLChris-Lim
Created February 9, 2018 17:45
Show Gist options
  • Save RLChris-Lim/4e2db5b3b6b3618e122fd19faef0ddc0 to your computer and use it in GitHub Desktop.
Save RLChris-Lim/4e2db5b3b6b3618e122fd19faef0ddc0 to your computer and use it in GitHub Desktop.
HTTP JSON response
{
"success": true,
"message": null,
"error": {
"cause": null,
"stackTrace": [
{
"methodName": "writeContentAsset",
"fileName": "AssetDmContentProcessor.java",
"lineNumber": 148,
"className": "org.craftercms.studio.impl.v1.content.pipeline.AssetDmContentProcessor",
"nativeMethod": false
},
{
"methodName": "process",
"fileName": "AssetDmContentProcessor.java",
"lineNumber": 91,
"className": "org.craftercms.studio.impl.v1.content.pipeline.AssetDmContentProcessor",
"nativeMethod": false
},
{
"methodName": "processContent",
"fileName": "ContentProcessorPipelineImpl.java",
"lineNumber": 51,
"className": "org.craftercms.studio.impl.v1.content.pipeline.ContentProcessorPipelineImpl",
"nativeMethod": false
},
{
"methodName": "processContent",
"fileName": "ProcessContentExecutorImpl.java",
"lineNumber": 60,
"className": "org.craftercms.studio.impl.v1.executor.ProcessContentExecutorImpl",
"nativeMethod": false
},
{
"methodName": "processContent",
"fileName": "ContentServiceImpl.java",
"lineNumber": 1795,
"className": "org.craftercms.studio.impl.v1.service.content.ContentServiceImpl",
"nativeMethod": false
},
{
"methodName": "writeContentAsset",
"fileName": "ContentServiceImpl.java",
"lineNumber": 377,
"className": "org.craftercms.studio.impl.v1.service.content.ContentServiceImpl",
"nativeMethod": false
},
{
"methodName": "invoke0",
"fileName": "NativeMethodAccessorImpl.java",
"lineNumber": -2,
"className": "sun.reflect.NativeMethodAccessorImpl",
"nativeMethod": true
},
{
"methodName": "invoke",
"fileName": "NativeMethodAccessorImpl.java",
"lineNumber": 62,
"className": "sun.reflect.NativeMethodAccessorImpl",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "DelegatingMethodAccessorImpl.java",
"lineNumber": 43,
"className": "sun.reflect.DelegatingMethodAccessorImpl",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "Method.java",
"lineNumber": 497,
"className": "java.lang.reflect.Method",
"nativeMethod": false
},
{
"methodName": "invokeJoinpointUsingReflection",
"fileName": "AopUtils.java",
"lineNumber": 333,
"className": "org.springframework.aop.support.AopUtils",
"nativeMethod": false
},
{
"methodName": "invokeJoinpoint",
"fileName": "ReflectiveMethodInvocation.java",
"lineNumber": 190,
"className": "org.springframework.aop.framework.ReflectiveMethodInvocation",
"nativeMethod": false
},
{
"methodName": "proceed",
"fileName": "ReflectiveMethodInvocation.java",
"lineNumber": 157,
"className": "org.springframework.aop.framework.ReflectiveMethodInvocation",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "MethodBeforeAdviceInterceptor.java",
"lineNumber": 52,
"className": "org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor",
"nativeMethod": false
},
{
"methodName": "proceed",
"fileName": "ReflectiveMethodInvocation.java",
"lineNumber": 168,
"className": "org.springframework.aop.framework.ReflectiveMethodInvocation",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "ExposeInvocationInterceptor.java",
"lineNumber": 92,
"className": "org.springframework.aop.interceptor.ExposeInvocationInterceptor",
"nativeMethod": false
},
{
"methodName": "proceed",
"fileName": "ReflectiveMethodInvocation.java",
"lineNumber": 179,
"className": "org.springframework.aop.framework.ReflectiveMethodInvocation",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "JdkDynamicAopProxy.java",
"lineNumber": 213,
"className": "org.springframework.aop.framework.JdkDynamicAopProxy",
"nativeMethod": false
},
{
"methodName": "writeContentAsset",
"fileName": null,
"lineNumber": -1,
"className": "com.sun.proxy.$Proxy57",
"nativeMethod": false
},
{
"methodName": "call",
"fileName": null,
"lineNumber": -1,
"className": "org.craftercms.studio.api.v1.service.content.ContentService$writeContentAsset",
"nativeMethod": false
},
{
"methodName": "writeContentAsset",
"fileName": "SpringContentServices.groovy",
"lineNumber": 216,
"className": "scripts.api.impl.content.SpringContentServices",
"nativeMethod": false
},
{
"methodName": "call",
"fileName": null,
"lineNumber": -1,
"className": "scripts.api.impl.content.SpringContentServices$writeContentAsset",
"nativeMethod": false
},
{
"methodName": "writeContentAsset",
"fileName": "ContentServices.groovy",
"lineNumber": 259,
"className": "scripts.api.ContentServices",
"nativeMethod": false
},
{
"methodName": "call",
"fileName": null,
"lineNumber": -1,
"className": "scripts.api.ContentServices$writeContentAsset$0",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "write-content.post.groovy",
"lineNumber": 60,
"className": "write-content_post",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "GroovyScriptEngine.java",
"lineNumber": 605,
"className": "groovy.util.GroovyScriptEngine",
"nativeMethod": false
},
{
"methodName": "execute",
"fileName": "GroovyScript.java",
"lineNumber": 55,
"className": "org.craftercms.engine.scripting.impl.GroovyScript",
"nativeMethod": false
},
{
"methodName": "executeScript",
"fileName": "RestScriptsController.java",
"lineNumber": 165,
"className": "org.craftercms.engine.controller.rest.RestScriptsController",
"nativeMethod": false
},
{
"methodName": "handleRequestInternal",
"fileName": "RestScriptsController.java",
"lineNumber": 99,
"className": "org.craftercms.engine.controller.rest.RestScriptsController",
"nativeMethod": false
},
{
"methodName": "handleRequest",
"fileName": "AbstractController.java",
"lineNumber": 174,
"className": "org.springframework.web.servlet.mvc.AbstractController",
"nativeMethod": false
},
{
"methodName": "handle",
"fileName": "SimpleControllerHandlerAdapter.java",
"lineNumber": 50,
"className": "org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter",
"nativeMethod": false
},
{
"methodName": "doDispatch",
"fileName": "DispatcherServlet.java",
"lineNumber": 963,
"className": "org.springframework.web.servlet.DispatcherServlet",
"nativeMethod": false
},
{
"methodName": "doService",
"fileName": "DispatcherServlet.java",
"lineNumber": 897,
"className": "org.springframework.web.servlet.DispatcherServlet",
"nativeMethod": false
},
{
"methodName": "processRequest",
"fileName": "FrameworkServlet.java",
"lineNumber": 970,
"className": "org.springframework.web.servlet.FrameworkServlet",
"nativeMethod": false
},
{
"methodName": "doPost",
"fileName": "FrameworkServlet.java",
"lineNumber": 872,
"className": "org.springframework.web.servlet.FrameworkServlet",
"nativeMethod": false
},
{
"methodName": "service",
"fileName": "HttpServlet.java",
"lineNumber": 661,
"className": "javax.servlet.http.HttpServlet",
"nativeMethod": false
},
{
"methodName": "service",
"fileName": "FrameworkServlet.java",
"lineNumber": 846,
"className": "org.springframework.web.servlet.FrameworkServlet",
"nativeMethod": false
},
{
"methodName": "service",
"fileName": "HttpServlet.java",
"lineNumber": 742,
"className": "javax.servlet.http.HttpServlet",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 231,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "WsFilter.java",
"lineNumber": 52,
"className": "org.apache.tomcat.websocket.server.WsFilter",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilterInternal",
"fileName": "CsrfFilter.java",
"lineNumber": 124,
"className": "org.springframework.security.web.csrf.CsrfFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "OncePerRequestFilter.java",
"lineNumber": 107,
"className": "org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod": false
},
{
"methodName": "invokeDelegate",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 346,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 262,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 317,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "FilterSecurityInterceptor.java",
"lineNumber": 127,
"className": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterSecurityInterceptor.java",
"lineNumber": 91,
"className": "org.springframework.security.web.access.intercept.FilterSecurityInterceptor",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ExceptionTranslationFilter.java",
"lineNumber": 114,
"className": "org.springframework.security.web.access.ExceptionTranslationFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "AnonymousAuthenticationFilter.java",
"lineNumber": 111,
"className": "org.springframework.security.web.authentication.AnonymousAuthenticationFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "SecurityContextHolderAwareRequestFilter.java",
"lineNumber": 170,
"className": "org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "StudioAuthenticationTokenProcessingFilter.java",
"lineNumber": 104,
"className": "org.craftercms.studio.impl.v1.web.security.access.StudioAuthenticationTokenProcessingFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilterInternal",
"fileName": "HeaderWriterFilter.java",
"lineNumber": 64,
"className": "org.springframework.security.web.header.HeaderWriterFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "OncePerRequestFilter.java",
"lineNumber": 107,
"className": "org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilterInternal",
"fileName": "WebAsyncManagerIntegrationFilter.java",
"lineNumber": 56,
"className": "org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "OncePerRequestFilter.java",
"lineNumber": 107,
"className": "org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "SecurityContextPersistenceFilter.java",
"lineNumber": 105,
"className": "org.springframework.security.web.context.SecurityContextPersistenceFilter",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 331,
"className": "org.springframework.security.web.FilterChainProxy$VirtualFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilterInternal",
"fileName": "FilterChainProxy.java",
"lineNumber": 214,
"className": "org.springframework.security.web.FilterChainProxy",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "FilterChainProxy.java",
"lineNumber": 177,
"className": "org.springframework.security.web.FilterChainProxy",
"nativeMethod": false
},
{
"methodName": "invokeDelegate",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 346,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 262,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "SiteContextResolvingFilter.java",
"lineNumber": 46,
"className": "org.craftercms.engine.servlet.filter.SiteContextResolvingFilter",
"nativeMethod": false
},
{
"methodName": "invokeDelegate",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 346,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 262,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ExceptionHandlingFilter.java",
"lineNumber": 56,
"className": "org.craftercms.engine.servlet.filter.ExceptionHandlingFilter",
"nativeMethod": false
},
{
"methodName": "invokeDelegate",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 346,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "DelegatingFilterProxy.java",
"lineNumber": 262,
"className": "org.springframework.web.filter.DelegatingFilterProxy",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "RequestContextBindingFilter.java",
"lineNumber": 79,
"className": "org.craftercms.commons.http.RequestContextBindingFilter",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "MultiReadHttpServletRequestWrapperFilter.java",
"lineNumber": 36,
"className": "org.craftercms.studio.impl.v1.web.filter.MultiReadHttpServletRequestWrapperFilter",
"nativeMethod": false
},
{
"methodName": "internalDoFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 193,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "doFilter",
"fileName": "ApplicationFilterChain.java",
"lineNumber": 166,
"className": "org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "StandardWrapperValve.java",
"lineNumber": 198,
"className": "org.apache.catalina.core.StandardWrapperValve",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "StandardContextValve.java",
"lineNumber": 96,
"className": "org.apache.catalina.core.StandardContextValve",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "AuthenticatorBase.java",
"lineNumber": 504,
"className": "org.apache.catalina.authenticator.AuthenticatorBase",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "StandardHostValve.java",
"lineNumber": 140,
"className": "org.apache.catalina.core.StandardHostValve",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "ErrorReportValve.java",
"lineNumber": 81,
"className": "org.apache.catalina.valves.ErrorReportValve",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "AbstractAccessLogValve.java",
"lineNumber": 650,
"className": "org.apache.catalina.valves.AbstractAccessLogValve",
"nativeMethod": false
},
{
"methodName": "invoke",
"fileName": "StandardEngineValve.java",
"lineNumber": 87,
"className": "org.apache.catalina.core.StandardEngineValve",
"nativeMethod": false
},
{
"methodName": "service",
"fileName": "CoyoteAdapter.java",
"lineNumber": 342,
"className": "org.apache.catalina.connector.CoyoteAdapter",
"nativeMethod": false
},
{
"methodName": "service",
"fileName": "Http11Processor.java",
"lineNumber": 803,
"className": "org.apache.coyote.http11.Http11Processor",
"nativeMethod": false
},
{
"methodName": "process",
"fileName": "AbstractProcessorLight.java",
"lineNumber": 66,
"className": "org.apache.coyote.AbstractProcessorLight",
"nativeMethod": false
},
{
"methodName": "process",
"fileName": "AbstractProtocol.java",
"lineNumber": 790,
"className": "org.apache.coyote.AbstractProtocol$ConnectionHandler",
"nativeMethod": false
},
{
"methodName": "doRun",
"fileName": "NioEndpoint.java",
"lineNumber": 1459,
"className": "org.apache.tomcat.util.net.NioEndpoint$SocketProcessor",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "SocketProcessorBase.java",
"lineNumber": 49,
"className": "org.apache.tomcat.util.net.SocketProcessorBase",
"nativeMethod": false
},
{
"methodName": "runWorker",
"fileName": "ThreadPoolExecutor.java",
"lineNumber": 1142,
"className": "java.util.concurrent.ThreadPoolExecutor",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "ThreadPoolExecutor.java",
"lineNumber": 617,
"className": "java.util.concurrent.ThreadPoolExecutor$Worker",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "TaskThread.java",
"lineNumber": 61,
"className": "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "Thread.java",
"lineNumber": 745,
"className": "java.lang.Thread",
"nativeMethod": false
}
],
"message": null,
"localizedMessage": null,
"suppressed": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment