Problem with updateFieldCode

I’m trying to rename merge fields, and it’s working for most, but having trouble with some patterns found.


If you have any advice, I’d be glad to have it!

Thanks,
Andy

Some examples (last one with full exception stack trace:

field code found: [ MERGEFIELD ${doc.fileBundle.form_516.terms.projectCity} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_terms.terms.projectCity}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_terms.terms.projectCity} * MERGEFORMAT ]
raw XML: [ MERG</w:instrText></w:r><w:r w:rsidRPr=“002559E5” w:rsidR=“006214D1”><w:rPr><w:iCs /></w:rPr><w:instrText>EFIELD ${doc.fileBundle.form_51</w:instrText></w:r><w:r w:rsidRPr=“002559E5” w:rsidR=“009470D6”><w:rPr><w:iCs /></w:rPr><w:instrText xml:space=“preserve”>6.terms.projectCity} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_499.authorized.company} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_engagement.authorized.company}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_engagement.authorized.company} * MERGEFORMAT ]
raw XML: [ MERGE</w:instrText></w:r><w:r w:rsidR=“00F77ACE”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>FIELD ${doc.fileBundle.form_499.authorized</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>.</w:instrText></w:r><w:r w:rsidR=“00F77ACE”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>company</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText xml:space=“preserve”>} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_499.authorized.address} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_engagement.authorized.address}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_engagement.authorized.address} * MERGEFORMAT ]
raw XML: [ MERGE</w:instrText></w:r><w:r w:rsidR=“00F77ACE”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>FIELD ${doc.fileBundle.form_499.authorized</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>.</w:instrText></w:r><w:r w:rsidR=“00F77ACE”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>ad</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText xml:space=“preserve”>dress} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_516.broker.company} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_terms.broker.company}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_terms.broker.company} * MERGEFORMAT ]
raw XML: [MERGEFIELD ${</w:instrText></w:r><w:r w:rsidR=“00DE1B2E”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText xml:space=“preserve”>doc.fileBundle.form_516.broker.company} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_499.authorized.borrowerTitle} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_engagement.authorized.borrowerTitle}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_engagement.authorized.borrowerTitle} * MERGEFORMAT ]
raw XML: [ MERGE</w:instrText></w:r><w:r><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>FIELD ${doc.fileBundle.form_499</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C” w:rsidR=“002C257D”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>.</w:instrText></w:r><w:r><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText>authorized.borrowerTitle</w:instrText></w:r><w:r w:rsidRPr=“00A34B9C” w:rsidR=“002C257D”><w:rPr><w:rFonts w:ascii=“Arial” w:hAnsi=“Arial” w:cs=“Arial” /><w:sz w:val=“22” /><w:szCs w:val=“22” /></w:rPr><w:instrText xml:space=“preserve”>} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_516.terms.projectAddress} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_terms.terms.projectAddress}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_terms.terms.projectAddress} * MERGEFORMAT ]
raw XML: [ MERGE</w:instrText></w:r><w:r><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText>FIELD ${doc.fileBundle.form_516</w:instrText></w:r><w:r w:rsidRPr=“00D34395”><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText>.</w:instrText></w:r><w:r><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText>terms.projectAddress</w:instrText></w:r><w:r w:rsidRPr=“00D34395”><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText xml:space=“preserve”>} * MERGEFORMAT ]



field code found: [ MERGEFIELD ${doc.fileBundle.form_516.terms.projectState} * MERGEFORMAT ]
new merge field text: [${doc.fileBundle.model_terms.terms.projectState}]
new merge field name: [ MERGEFIELD ${doc.fileBundle.model_terms.terms.projectState} * MERGEFORMAT ]
raw XML: [ ME</w:instrText></w:r><w:r><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText>RGEFIELD ${doc.fileBundle.form_516.terms.project</w:instrText></w:r><w:r w:rsidRPr=“00D34395”><w:rPr><w:iCs /><w:color w:val=“212121” /></w:rPr><w:instrText xml:space=“preserve”>State} * MERGEFORMAT ]
exception: [java.util.regex.Matcher.group(Matcher.java:485), java_util_regex_MatchResult$group.call(Unknown Source), net.saberco.MergeField$$EPJZtSIi.updateFieldCode(AdminService.groovy:876), net.saberco.MergeField$$EPJZtSIi.setName(AdminService.groovy:864), net.saberco.MergeField$$DPJZtSIi.setName(Unknown Source), net.saberco.MergeField.setName(AdminService.groovy), net.saberco.MergeField$setName.call(Unknown Source), net.saberco.AdminService$$EPJZtSIi.$tt__convertDocxBytesToModel(AdminService.groovy:403), net.saberco.AdminService$$DPJZtSIi.$tt__convertDocxBytesToModel(Unknown Source), net.saberco.AdminService.$tt__convertDocxBytesToModel(AdminService.groovy), net.saberco.AdminService$_convertDocxBytesToModel_closure20$$EPJZtSIi.doCall(AdminService.groovy), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), org.springsource.loaded.ri.ReloadedTypeInvoker$2.invoke(ReloadedTypeInvoker.java:122), org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1299), org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90), groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207), groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016), groovy.lang.Closure.call(Closure.java:423), net.saberco.AdminService$_convertDocxBytesToModel_closure20.call(AdminService.groovy), groovy.lang.Closure.call(Closure.java:439), net.saberco.AdminService$_convertDocxBytesToModel_closure20.call(AdminService.groovy), org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:88), org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133), org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:85), net.saberco.AdminService$$EPJZtSIi.convertDocxBytesToModel(AdminService.groovy), net.saberco.AdminService$$DPJZtSIi.convertDocxBytesToModel(Unknown Source), net.saberco.AdminService.convertDocxBytesToModel(AdminService.groovy), net.saberco.AdminService$convertDocxBytesToModel$1.call(Unknown Source), net.saberco.json.AdminJsonController$$EPJZsEbA.convertDocumentToModelById(AdminJsonController.groovy:193), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), org.springsource.loaded.ri.ReloadedTypeInvoker$2.invoke(ReloadedTypeInvoker.java:122), org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1299), org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90), groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207), groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1152), groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016), org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66), org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145), net.saberco.json.AdminJsonController$_convertAllDocumentsToModels_closure1$$EPJZsEbA.doCall(AdminJsonController.groovy:158), sun.reflect.GeneratedMethodAccessor994.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), org.springsource.loaded.ri.ReloadedTypeInvoker$2.invoke(ReloadedTypeInvoker.java:122), org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1299), org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90), groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207), groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110), groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016), groovy.lang.Closure.call(Closure.java:423), net.saberco.json.AdminJsonController$_convertAllDocumentsToModels_closure1.call(AdminJsonController.groovy), groovy.lang.Closure.call(Closure.java:439), net.saberco.json.AdminJsonController$_convertAllDocumentsToModels_closure1.call(AdminJsonController.groovy), org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1379), org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1372), org.codehaus.groovy.runtime.dgm$149.invoke(Unknown Source), org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271), org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53), org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45), org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108), org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116), net.saberco.json.AdminJsonController$$EPJZsEbA.convertAllDocumentsToModels(AdminJsonController.groovy:148), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), org.springsource.loaded.ri.ReloadedTypeInvoker$2.invoke(ReloadedTypeInvoker.java:122), org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1299), org.codehaus.groovy.grails.web.servlet.mvc.MixedGrailsControllerHelper.invoke(MixedGrailsControllerHelper.java:154), org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleAction(AbstractGrailsControllerHelper.java:375), org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.executeAction(AbstractGrailsControllerHelper.java:252), org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:205), org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:126), org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:72), org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50), org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:347), org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870), org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961), org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852), javax.servlet.http.HttpServlet.service(HttpServlet.java:621), org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837), javax.servlet.http.HttpServlet.service(HttpServlet.java:728), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749), org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487), org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412), org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339), org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:178), org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:144), org.codehaus.groovy.grails.web.mapping.UrlMappingUtils.forwardRequestForUrlMappingInfo(UrlMappingUtils.java:135), org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal(UrlMappingsFilter.java:216), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330), org.springframework.security.web.authentication.switchuser.SwitchUserFilter.doFilter(SwitchUserFilter.java:181), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118), org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146), grails.plugin.springsecurity.web.filter.GrailsRememberMeAuthenticationFilter.doFilter(GrailsRememberMeAuthenticationFilter.java), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199), grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87), org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342), org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192), org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160), org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344), org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:69), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.codehaus.groovy.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88), org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107), org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344), org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222), org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123), org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118), org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408), org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023), org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589), org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:745)]


Hi Andy,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please

    create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.

Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.