Hi Markus,
I see corresponding codes in Struts:
if (devMode) {
LOG.error("Could not find action or result: {}", uri, e);
} else if (LOG.isWarnEnabled()) {
LOG.warn("Could not find action or result: {}", uri, e);
}
so it seems you should also have the exception e stack trace logged.
Could you please share it as well? I guess you might affected by [1] but
honestly hard to say how. So the stack trace could help a lot.
Regards,
Yasser
[1]
https://github.com/apache/struts/commit/1c2b491a27b48a0b064b991a6cef63db5e6cb28b
On 8/29/2022 5:22 PM, i...@flyingfischer.ch wrote:
If I see this correctly, this happens only with OPTIONS and HEAD
requests....
Am 29.08.22 um 14:09 schrieb i...@flyingfischer.ch:
After removing commons-digester3-3.2 and leaving commons-digester-2.1
only, I still get the Warnings/Errors in production:
WARN org.apache.struts2.dispatcher.Dispatcher - Could not find action
or result: /context/mypath?url=urlEncodedUrl
Seems to be a new issue in Struts6 and not really related to
commons-digester? Unfortunately I cannot reproduce the issue
straightforward. I just see the error in the log. Calling the path
directly does not cause the issue. May there be a connection with a
not present session?
Markus
Am 29.08.22 um 11:36 schrieb i...@flyingfischer.ch:
Removing commons-digester-2.1 gives:
java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
I am able to remove commons-digester3-3.2: the application does start.
I will replace the application in production and check, if the
Warnings/Errors from org.apache.struts2.dispatcher.Dispatcher disappear.
Regards
Markus
Am 29.08.22 um 10:19 schrieb Lukasz Lenart:
Could you exclude commons-digester in the Tiles plugin?
Regards
Łukasz
pon., 29 sie 2022 o 10:11 i...@flyingfischer.ch
<i...@flyingfischer.ch> napisał(a):
hmm, in production I see from time to time:
WARN org.apache.struts2.dispatcher.Dispatcher - Could not find
action or
result: /context/mypath?url=urlEncodedUrl
The action exists and the result also, as redirectAction
<result name="resultName" type="redirectAction">
<param name="actionName">otherpath</param>
<param name="url">${url}</param>
</result>
This behaviour seems to be new. I cannot reproduce it consistently,
but
there seems to be thrown an error in
org.apache.struts2.dispatcher.Dispatcher, somewhere between these
lines:
try {
String actionNamespace = mapping.getNamespace();
String actionName = mapping.getName();
String actionMethod = mapping.getMethod();
LOG.trace("Processing action, namespace: {}, name: {},
method: {}", actionNamespace, actionName, actionMethod);
ActionProxy proxy = prepareActionProxy(extraContext,
actionNamespace, actionName, actionMethod);
request.setAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY,
proxy.getInvocation().getStack());
// if the ActionMapping says to go straight to a
result, do it!
if (mapping.getResult() != null) {
Result result = mapping.getResult();
result.execute(proxy.getInvocation());
} else {
proxy.execute();
}
// If there was a previous value stack then set it back
onto the request
if (!nullStack) {
request.setAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY,
stack);
}
} catch (ConfigurationException e) {
logConfigurationException(request, e);
sendError(request, response,
HttpServletResponse.SC_NOT_FOUND, e);
}
The artifacts contains two version of commons-digester:
commons-digester-2.1
commons-digester3-3.2
Any idea, what is causing this warning, which seems to be rather an
error?
Best Markus
Am 27.08.22 um 12:28 schrieb i...@flyingfischer.ch:
Works fine here. Tested with tiles-plugin.
Best regards
Markus
Am 25.08.22 um 07:52 schrieb Lukasz Lenart:
Hello,
This is the first patch version of Struts 6.x series. Please take
the
time and test the bits - any help is appreciated. Please report any
problems you will spot.
Here are the changes from the previous 6.0.0 version:
https://github.com/apache/struts/releases/tag/STRUTS_6_0_2
Staging Maven repo
https://repository.apache.org/content/groups/staging/
Standalone artifacts
https://dist.apache.org/repos/dist/dev/struts/6.0.2/
Release notes
https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.2
Kind regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org