• Error when $ in any of fields on export to Word or PDF

    By Paul W Stockinger 4 years ago
    If I have a field on the Xpage with content such as "Reduced support costs by $500" and go to Generate Document, I receive an error as follows. Is $ a delimiter in the document generation code that can be replaced with a less common character for a US-based user?
    
    
    POI 4 XPages -> ERROR
    --------------------------------------------------------------
    Error    : Error during Documentgeneration
    POI LIB  : 1.2.6.201312211419
    StackTrace:
    java.lang.IllegalArgumentException: Illegal group reference
        at java.util.regex.Matcher.appendReplacement(Matcher.java:724)
        at java.util.regex.Matcher.replaceAll(Matcher.java:824)
        at java.lang.String.replaceAll(String.java:1591)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processBookmarks2Run(DocumentProcessor.java:129)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processBookmarks2Paragraph(DocumentProcessor.java:118)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processBookmarks2Table(DocumentProcessor.java:110)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processBookmarks2Document(DocumentProcessor.java:84)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processDocument(DocumentProcessor.java:193)
        at biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.generateNewFile(DocumentProcessor.java:143)
        at biz.webgate.dominoext.poi.component.containers.UIDocument.processAjaxRequest(UIDocument.java:208)
        at biz.webgate.dominoext.poi.component.actions.DocumentGenerationServerAction.invoke(DocumentGenerationServerAction.java:48)
        at com.ibm.xsp.application.ActionListenerImpl.processAction(ActionListenerImpl.java:60)
        at javax.faces.component.UICommand.broadcast(UICommand.java:324)
        at com.ibm.xsp.component.UIEventHandler.broadcast(UIEventHandler.java:366)
        at com.ibm.xsp.component.UIDataPanelBase.broadcast(UIDataPanelBase.java:400)
        at com.ibm.xsp.extlib.component.layout.UIVarPublisherBase.broadcast(UIVarPublisherBase.java:185)
        at com.ibm.xsp.component.UIViewRootEx.broadcast(UIViewRootEx.java:1535)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:307)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:428)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:94)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:96)
        at com.ibm.xsp.controller.FacesControllerImpl.execute(FacesControllerImpl.java:256)
        at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:228)
        at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:157)
        at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)
        at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)
        at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
        at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576)
        at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1335)
        at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:853)
        at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:796)
        at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:565)
        at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1319)
        at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:662)
        at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:357)
        at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:313)
        at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
    • By Christian Güdemann 4 years ago

      Could you please try the latest build:
      http://www.webgate.biz/ftp/openntf/POI4XPages/snapshot/biz.webgate.dominoext.poi-1.3.0-SNAPSHOT.zip

      Btw there is a mailinglist in place to be informed about development builds:
      http://mm.wgcdev.ch/mailman/listinfo

      • By Paul W Stockinger 4 years ago

        That worked beautifully. Thank you for the info on the mailing list!