struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay Srivastava (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4846) Not able to convert Spring object to the JSON response
Date Tue, 29 Aug 2017 15:20:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145466#comment-16145466
] 

Vijay Srivastava edited comment on WW-4846 at 8/29/17 3:19 PM:
---------------------------------------------------------------

Full stack trace..


{Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 88 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 93 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 98 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 103 more
Caused by: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 108 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:249)
	... 113 more
Caused by: java.io.FileNotFoundException: C:\sep_rel\src\VZW-Cloud-WebApp\VZW-Cloud-Web\src\main\webapp
(Access is denied)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:282)
	at org.eclipse.jetty.util.resource.ResourceCollection.getInputStream(ResourceCollection.java:325)
	... 118 more
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.write(JSONWriter.java:110)
	at org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:194)
	at org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:222)
	at org.apache.struts2.json.JSONResult.execute(JSONResult.java:196)
	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
	at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260)
	at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:52)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:199)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:115)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:88)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:246)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:99)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:139)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:157)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:174)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:123)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:171)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:201)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:193)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.vzw.cloud.interceptor.CloudInterceptor.intercept(CloudInterceptor.java:157)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:53)
	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:577)
	at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
	at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:143)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at com.vzw.cloud.filter.CloudSessionFilter.doFilter(CloudSessionFilter.java:115)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 88 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 93 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 98 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 103 more
Caused by: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 108 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:249)
	... 113 more
Caused by: java.io.FileNotFoundException: C:\sep_rel\src\VZW-Cloud-WebApp\VZW-Cloud-Web\src\main\webapp
(Access is denied)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:282)
	at org.eclipse.jetty.util.resource.ResourceCollection.getInputStream(ResourceCollection.java:325)}


was (Author: vijays2017):
Full stack trace..


Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 88 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 93 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 98 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 103 more
Caused by: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 108 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:249)
	... 113 more
Caused by: java.io.FileNotFoundException: C:\sep_rel\src\VZW-Cloud-WebApp\VZW-Cloud-Web\src\main\webapp
(Access is denied)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:282)
	at org.eclipse.jetty.util.resource.ResourceCollection.getInputStream(ResourceCollection.java:325)
	... 118 more
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.write(JSONWriter.java:110)
	at org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:194)
	at org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:222)
	at org.apache.struts2.json.JSONResult.execute(JSONResult.java:196)
	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
	at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260)
	at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:52)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:199)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:115)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:88)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:246)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:99)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:139)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:157)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:174)
	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:123)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:171)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:201)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:193)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at com.vzw.cloud.interceptor.CloudInterceptor.intercept(CloudInterceptor.java:157)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)
	at org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:53)
	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:577)
	at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
	at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:143)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at com.vzw.cloud.filter.CloudSessionFilter.doFilter(CloudSessionFilter.java:115)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 88 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 93 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 98 more
Caused by: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 103 more
Caused by: org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
	at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:428)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:254)
	... 108 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:249)
	... 113 more
Caused by: java.io.FileNotFoundException: C:\sep_rel\src\VZW-Cloud-WebApp\VZW-Cloud-Web\src\main\webapp
(Access is denied)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:282)
	at org.eclipse.jetty.util.resource.ResourceCollection.getInputStream(ResourceCollection.java:325)

> Not able to convert Spring object to the JSON response
> ------------------------------------------------------
>
>                 Key: WW-4846
>                 URL: https://issues.apache.org/jira/browse/WW-4846
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Results, Plugin - JSON
>    Affects Versions: 2.5.13
>            Reporter: Vijay Srivastava
>            Priority: Blocker
>
> Hi,
> I am using latest version of struts struts-2.5.12 and and spring 4.1 as advised. I am
having an issue in JSON response. There is an action class which is returning Spring request
scoped object as JSON response however I am getting error as below 
> ERROR ExceptionMappingInterceptor org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
>  org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:
java.lang.reflect.InvocationTargetException
> 	at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:269)
> 	at org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:197)
> 	at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:182)
> 	at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:143)
> 	at org.
> Any idea what's wrong here ? I am using Java 1.8. I think below code in JSONWriter is
not working as expected
> protected Method findBaseAccessor(Class clazz, Method accessor) {
>         Method baseAccessor = null;
>         if (clazz.getName().contains("$$EnhancerByCGLIB$$")) {
>             try {
>                 baseAccessor = Thread.currentThread().getContextClassLoader().loadClass(
>                         clazz.getName().substring(0, clazz.getName().indexOf("$$"))).getMethod(
>                         accessor.getName(), accessor.getParameterTypes());
>             } catch (Exception ex) {
>                 LOG.debug(ex.getMessage(), ex);
>             }
>         } else if (clazz.getName().contains("$$_javassist")) {
>             try {
>                 baseAccessor = Class.forName(
>                         clazz.getName().substring(0, clazz.getName().indexOf("_$$")))
>                         .getMethod(accessor.getName(), accessor.getParameterTypes());
>             } catch (Exception ex) {
>                 LOG.debug(ex.getMessage(), ex);
>             }
>             
>         //in hibernate4.3.7,because javassist3.18.1's class name generate rule is '_$$_jvst'+...
>         } else if(clazz.getName().contains("$$_jvst")){
>             try {
>                 baseAccessor = Class.forName(
>                         clazz.getName().substring(0, clazz.getName().indexOf("_$$")))
>                         .getMethod(accessor.getName(), accessor.getParameterTypes());
>             } catch (Exception ex) {
>                 LOG.debug(ex.getMessage(), ex);
>             }
>         }
>         else {
>             return accessor;
>         }
>         return baseAccessor;
>     }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message