After upgrade from version 4 to v5.1.3 (local) backup creation does not work anymore and an error occurs.

Hi,

We've upgraded to version 5.1.3.0g64f23292 per rpm package on Centos 8 Stream linux.
After this we are no longer able to create a (local) backup from the Admin/Backup menu (Create Backup).

Can you help us finding the cause and a fix?

In the UI this message appears:
org.apache.cxf.binding.soap.SoapFault: Unmarshalling Error: unexpected element (uri:"", local:"includeDatabase"). Expected elements are <{}password>,<{}skipDatabase>

In the backend this is in the logs:
26 Jan 2022 14:15:14 | WARN Interceptor for {http://ws.djigzo.com}Backup#{http://ws.djigzo.application.mitm/\}backupDirect has thrown exception, unwinding now (org.apache.cxf.phase.PhaseInterceptorChain) [defaultEventExecutorGroup-4-3]
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"", local:"includeDatabase"). Expected elements are <{}password>,<{}skipDatabase>
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:932)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:738)
        at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:170)
        at org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
        at org.apache.cxf.transport.http.netty.server.NettyHttpDestination.doService(NettyHttpDestination.java:174)
        at org.apache.cxf.transport.http.netty.server.NettyHttpHandler.handle(NettyHttpHandler.java:66)
        at org.apache.cxf.transport.http.netty.server.NettyHttpContextHandler.handle(NettyHttpContextHandler.java:83)
        at org.apache.cxf.transport.http.netty.server.NettyHttpServletHandler.handleHttpServletRequest(NettyHttpServletHandler.java:137)
        at org.apache.cxf.transport.http.netty.server.NettyHttpServletHandler.channelRead(NettyHttpServletHandler.java:112)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
        at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
        at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
        at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 163; unexpected element (uri:"", local:"includeDatabase"). Expected elements are <{}password>,<{}skipDatabase>]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:483)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:417)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:394)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.doUnmarshal(JAXBEncoderDecoder.java:881)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.access$200(JAXBEncoderDecoder.java:103)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder$3.run(JAXBEncoderDecoder.java:920)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:918)
        ... 19 more
Caused by: com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 163; unexpected element (uri:"", local:"includeDatabase"). Expected elements are <{}password>,<{}skipDatabase>
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:741)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:262)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:257)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:124)
        at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:105)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:268)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:574)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:556)
        at com.sun.xml.bind.v2.runtime.unmarshaller.MTOMDecorator.startElement(MTOMDecorator.java:111)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:246)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:180)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:415)
        ... 25 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"includeDatabase"). Expected elements are <{}password>,<{}skipDatabase>
        ... 37 more

Hi,

We've upgraded to version 5.1.3.0g64f23292 per rpm package on Centos
8 Stream linux.
After this we are no longer able to create a (local) backup from the
Admin/Backup menu (Create Backup).

Can you help us finding the cause and a fix?

In the UI this message appears:
org.apache.cxf.binding.soap.SoapFault: Unmarshalling Error:
unexpected element (uri:"", local:"includeDatabase"). Expected
elements are <{}password>,<{}skipDatabase>

Did you restart the back-end and front-end?

Kind regards,

Martijn

···

On Wed, 2022-01-26 at 13:33 +0000, danny.pijl--- via Users wrote:

In the backend this is in the logs:
26 Jan 2022 14:15:14 | WARN Interceptor for {
http://ws.djigzo.com}Backup#{http://ws.djigzo.application.mitm/\}backupDirect
has thrown exception, unwinding
now (org.apache.cxf.phase.PhaseInterceptorChain)
[defaultEventExecutorGroup-4-3]
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected
element (uri:"", local:"includeDatabase"). Expected elements are
<{}password>,<{}skipDatabase>
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:932)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:738)
        at
org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:170)
        at
org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.handleMessag
e(DocLiteralInInterceptor.java:109)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:308)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
ationObserver.java:121)
        at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(Abstract
HTTPDestination.java:267)
        at
org.apache.cxf.transport.http.netty.server.NettyHttpDestination.doSer
vice(NettyHttpDestination.java:174)
        at
org.apache.cxf.transport.http.netty.server.NettyHttpHandler.handle(Ne
ttyHttpHandler.java:66)
        at
org.apache.cxf.transport.http.netty.server.NettyHttpContextHandler.ha
ndle(NettyHttpContextHandler.java:83)
        at
org.apache.cxf.transport.http.netty.server.NettyHttpServletHandler.ha
ndleHttpServletRequest(NettyHttpServletHandler.java:137)
        at
org.apache.cxf.transport.http.netty.server.NettyHttpServletHandler.ch
annelRead(NettyHttpServletHandler.java:112)
        at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abst
ractChannelHandlerContext.java:379)
        at
io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractCha
nnelHandlerContext.java:61)
        at
io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelH
andlerContext.java:370)
        at
io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecuto
r.java:66)
        at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread
EventExecutor.java:989)
        at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java
:74)
        at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
unnable.java:30)
        at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 163;
unexpected element (uri:"", local:"includeDatabase"). Expected
elements are <{}password>,<{}skipDatabase>]
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStrea
mException(UnmarshallerImpl.java:483)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:417)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
nmarshallerImpl.java:394)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.doUnmarshal(JAXBEncoderDecoder
.java:881)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.access$200(JAXBEncoderDecoder.
java:103)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder$3.run(JAXBEncoderDecoder.java:
920)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:918)
        ... 19 more
Caused by: com.sun.istack.SAXParseException2; lineNumber: 1;
columnNumber: 163; unexpected element (uri:"",
local:"includeDatabase"). Expected elements are
<{}password>,<{}skipDatabase>
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleE
vent(UnmarshallingContext.java:741)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.ja
va:262)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.ja
va:257)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChild
Element(Loader.java:124)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.j
ava:105)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement
(StructureLoader.java:268)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startE
lement(UnmarshallingContext.java:574)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startEl
ement(UnmarshallingContext.java:556)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.MTOMDecorator.startElement(M
TOMDecorator.java:111)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleSt
artElement(StAXStreamConnector.java:246)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(S
tAXStreamConnector.java:180)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:415)
        ... 25 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element
(uri:"", local:"includeDatabase"). Expected elements are
<{}password>,<{}skipDatabase>
        ... 37 more

--
CipherMail email encryption
Email encryption with support for S/MIME,
OpenPGP, PDF Messenger and Webmail Messenger

Yes; rebooted even the machines after the upgrade.

Did you clear the Tomcat cache dir after the upgrade?

https://www.ciphermail.com/documentation/gateway-installation-guide/update.html#id4

Kind regards,

Martijn

···

--
CipherMail email encryption
Email encryption with support for S/MIME,
OpenPGP, PDF Messenger and Webmail Messenger

On Mon, 2022-02-07 at 08:20 +0000, danny.pijl--- via Users wrote:

Yes; rebooted even the machines after the upgrade.

The referenced directories do not exist on my systems (CentOS Stream):
/var/cache/tomcat[5-9]/Catalina/localhost/ciphermail
/var/cache/tomcat[5-9]/Catalina/localhost/web

Closest I have is: /usr/share/tomcat/work/Catalina/localhost/ROOT (which is empty, but removed anyway - to be recreated on restart tomcat but still empty).