Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents

blank.docx (14.8 KB)

we use the following aspose word version

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>21.5</version>
    <classifier>jdk16</classifier>
</dependency>
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>21.5</version>
    <classifier>javadoc</classifier>
</dependency>

When I call

Document doc = new Document(fullPath);

and the fullPath point to the attached word file (blank.docx), the following exception is thrown:

 The document appears to be corrupted and cannot be loaded.: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.FileFormatUtil.zzY(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.Document.zzY(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.Document.zzZ(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.Document.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.Document.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.service.WordService.generateDocx(WordService.java:2555)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.service.WordService.createDocxFromOutFolder(WordService.java:2571)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.service.WordService.createSLBlankDocx(WordService.java:7063)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.service.WordService.unzipDocx(WordService.java:2458)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.sun.proxy.$Proxy189.unzipDocx(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.service.LibrarySectionService.uploadSLDocx(LibrarySectionService.java:1484)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.sun.proxy.$Proxy186.uploadSLDocx(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.controller.UploadSectionServlet.doPost(UploadSectionServlet.java:241)
 at javax.servlet.api@2.0.0.Final//javax.servlet.http.HttpServlet.service(HttpServlet.java:523)
 at javax.servlet.api@2.0.0.Final//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:155)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//hk.housingauthority.XXXX.security.WebSEALAuthenticationFilter.doFilter(WebSEALAuthenticationFilter.java:101)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 at io.undertow.core@2.2.5.Final//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
 at io.undertow.core@2.2.5.Final//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
 at io.undertow.core@2.2.5.Final//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
 at io.undertow.core@2.2.5.Final//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
 at io.undertow.core@2.2.5.Final//io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:64)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
 at org.wildfly.extension.undertow@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
 at io.undertow.servlet@2.2.5.Final//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
 at io.undertow.core@2.2.5.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
 at io.undertow.core@2.2.5.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
 at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
 at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
 at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
 at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
 at org.jboss.xnio@3.8.4.Final//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
 at java.base/java.lang.Thread.run(Thread.java:829)
 Caused by: java.lang.IllegalStateException: XMLStreamException: Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents
 at [row,col {unknown-source}]: [2,86]
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZYH.zzZ(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZYH.read(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZYI.zzkJ(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzIP.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzIP.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zzZ4U.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz1D.<init>(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz2U.zzX(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz2U.zzOk(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz1O.zzD(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz2U.zzKG(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz23.zzZtO(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zz23.zzKG(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.zzYYS.zzKG(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.Document.zzY(Unknown Source)

... 139 more
 
 Caused by: com.aspose.words.internal.zzZU5: Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents
 at [row,col {unknown-source}]: [2,86]
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZT4.zzzF(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZT4.zzW(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZTE.zzXs(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZTE.zzXt(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZTE.zzXu(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZTE.zzNM(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZTE.next(Unknown Source)
 at deployment.XXXXEAR-0.0.1-SNAPSHOT.ear.XXXX-0.0.1-SNAPSHOT.war//com.aspose.words.internal.zzZYH.read(Unknown Source)
 ... 152 more

why will this happen?
what is the problem of the attached blank.docx?

Thanks.

@tong123123 Your document is damaged. MS Word also shows an error while opening it. Particularly the problem is in styles.xml, it contains an empty namespace, that violates XML specification:

<w:styles xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:ns0="" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh">

See xmlns:ns0="". If remove it the document works fine.