-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: NXP-10.x
-
Fix Version/s: None
-
Component/s: HotFix factory
Since HF20, mail logging relies on LogOutputStream which is not readily available on a hotfixed Nuxeo instance.
Verified with a local instance with HF20 installed and the following:
curl -H 'Content-Type:application/json' -X POST http://localhost:8080/nuxeo/site/automation/Document.Mail -u Administrator:Administrator -d '{"input":"/default-domain","params":{"from":"devnull@nuxeo.com","message":"test","subject":"test","to":["devnull@nuxeo.com"]}}'
Exception is
Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.LogOutputStream at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1343) ~[catalina.jar:9.0.14] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1173) ~[catalina.jar:9.0.14] at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] at java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[?:?] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[?:?] at java.net.URLClassLoader.defineClass(URLClassLoader.java:550) ~[?:?] at java.net.URLClassLoader$1.run(URLClassLoader.java:458) ~[?:?] at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?] at java.security.AccessController.doPrivileged(Native Method) ~[?:?] at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?] at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:863) ~[catalina.jar:9.0.14] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1312) ~[catalina.jar:9.0.14] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1173) ~[catalina.jar:9.0.14] at org.nuxeo.mail.MailSessionBuilder.fromJndi(MailSessionBuilder.java:76) ~[nuxeo-mail-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.mail.Mailer.getSession(Mailer.java:188) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.mail.Mailer.newMessage(Mailer.java:215) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.mail.Composer.newTextMessage(Composer.java:176) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.operations.notification.SendMail.createMessage(SendMail.java:246) ~[nuxeo-automation-features-10.10-HF19.jar:?] at org.nuxeo.ecm.automation.core.operations.notification.SendMail.send(SendMail.java:183) ~[nuxeo-automation-features-10.10-HF19.jar:?] at org.nuxeo.ecm.automation.core.operations.notification.SendMail.run(SendMail.java:139) ~[nuxeo-automation-features-10.10-HF19.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-10.10-HF20.jar:?] at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58) ~[nuxeo-automation-server-10.10-HF15.jar:?] at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:70) ~[nuxeo-automation-server-10.10-HF15.jar:?] ... 89 more
Server.log file is attached.
- is related to
-
NXP-28275 Make it possible to redirect 'javax.mail' logs
- Resolved