struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4911) JSONResult exception in struts2-json-plugin-2.5.14.1.jar
Date Thu, 25 Jan 2018 06:29:00 GMT

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

Yasser Zamani commented on WW-4911:
-----------------------------------

{quote}What differences between json-plugin-13 and 14?
{quote}
In 14, user can inject a customized {{json writer}} so we had to re-define {{JSONUtil}} as
an injectable bean for {{JSONResult}}.

Could you please run
{code:java}
import com.opensymphony.xwork2.util.ClassLoaderUtil;

Iterator<URL> pluginsXmls = ClassLoaderUtil.getResources("struts-plugin.xml", this.getClass(),
false);
while (pluginsXmls.hasNext()) {
    System.out.println("COPY ME: " + pluginsXmls.next().toString());
}
{code}
inside your action then examine the output and copy all lines started with {{COPY ME: }} ,
here.
{quote}Is it OK to use the json-plugin-2.5.13 with the new struts-2.5.14, since my application
does not have any crafted JSON messages?
{quote}
 Maybe ... but please let finish this issue as maybe there is an important issue with Struts
or your app. Thanks!

> JSONResult exception in struts2-json-plugin-2.5.14.1.jar 
> ---------------------------------------------------------
>
>                 Key: WW-4911
>                 URL: https://issues.apache.org/jira/browse/WW-4911
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.5.14.1
>         Environment: Java, JSON, Hibernate, Struts2
>            Reporter: nick
>            Priority: Critical
>              Labels: test
>             Fix For: 2.5.15
>
>         Attachments: server.log.json14
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Error log:
> 12:09:16,381 ERROR [stderr] (http-/127.0.0.1:8080-4) ERROR DefaultActionInvocation There
was an exception while instantiating the result of type org.apache.struts2.json.JSONResult
> 12:09:16,397 ERROR [stderr] (http-/127.0.0.1:8080-4)  com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found
for dependency [type=org.apache.struts2.json.JSONUtil, name='default'] in public void org.apache.struts2.json.JSONResult.setJsonUtil(org.apache.struts2.json.JSONUtil).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message