Page 1 of 1

PDF Conversion failing in Unx - tariq

PostPosted: Thu Feb 27, 2014 11:12 pm
by tariq47
Im facing the same issue.
Conversion from xhtml to pdf works absolutely fine in windows but it fails in linux
Following are the error logs.
Code: Select all
2014-02-27 17:19:50 INFO  WordprocessingMLPackage:361 - Using paper size: LETTER
2014-02-27 17:19:50 INFO  WordprocessingMLPackage:365 - Landscape orientation: false
2014-02-27 17:19:50 INFO  Context:65 - java.vendor=Sun Microsystems Inc.
2014-02-27 17:19:50 INFO  Context:66 - java.version=1.6.0_22
2014-02-27 17:19:50 INFO  NamespacePrefixMapperUtils:56 - Using NamespacePrefixMapperSunInternal, which is suitable for Java 6
2014-02-27 17:19:50 INFO  Context:99 - Using Java 6/7 JAXB implementation
2014-02-27 17:19:58 INFO  Context:137 - Not using MOXy.
2014-02-27 17:19:59 INFO  PageDimensions:209 - Using paper size: LETTER
2014-02-27 17:19:59 INFO  PageDimensions:213 - Landscape orientation: false
2014-02-27 17:19:59 INFO  RelationshipsPart:430 - adding part with proposed name: /word/document.xml
2014-02-27 17:19:59 INFO  Base:291 - shortcut was set
2014-02-27 17:19:59 INFO  JaxbXmlPartXPathAware:299 - For org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart, unmarshall via binder
2014-02-27 17:19:59 INFO  XmlUtils:157 - Using com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
2014-02-27 17:19:59 INFO  XmlUtils:200 - Using com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
2014-02-27 17:19:59 INFO  RelationshipsPart:430 - adding part with proposed name: /word/styles.xml
2014-02-27 17:19:59 INFO  Base:291 - shortcut was set
2014-02-27 17:19:59 INFO  XPathFactoryUtil:22 - xpath implementation: org.apache.xpath.jaxp.XPathFactoryImpl
2014-02-27 17:19:59 INFO  RelationshipsPart:430 - adding part with proposed name: /docProps/core.xml
2014-02-27 17:19:59 INFO  Base:291 - shortcut was set
2014-02-27 17:19:59 INFO  RelationshipsPart:430 - adding part with proposed name: /docProps/app.xml
2014-02-27 17:19:59 INFO  Base:291 - shortcut was set
2014-02-27 17:19:59 INFO  RelationshipsPart:430 - adding part with proposed name: /word/numbering.xml
2014-02-27 17:19:59 INFO  Base:291 - shortcut was set
2014-02-27 17:19:59 INFO  JaxbXmlPartXPathAware:299 - For org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart, unmarshall via binder
2014-02-27 17:19:59 INFO  XHTMLImporterImpl:309 - tableFormatting: CLASS_PLUS_OTHER
2014-02-27 17:19:59 INFO  XHTMLImporterImpl:310 - paragraphFormatting: CLASS_PLUS_OTHER
2014-02-27 17:19:59 INFO  XHTMLImporterImpl:311 - runFormatting: CLASS_PLUS_OTHER
2014-02-27 17:19:59 INFO  MainDocumentPart:169 - Preparing StyleTree
2014-02-27 17:19:59 INFO  StyleDefinitionsPart:426 - Style with name Normal, id 'Normal' is default paragraph style
2014-02-27 17:19:59 WARN  StyleDefinitionsPart:328 - Added virtual style, id 'DocDefaults', name 'DocDefaults'
2014-02-27 17:19:59 WARN  StyleDefinitionsPart:330 - <w:style w:styleId="DocDefaults" w:type="paragraph" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:ns21="urn:schemas-microsoft-com:office:powerpoint" xmlns:ns23="http://schemas.microsoft.com/office/2006/coverPageProps" xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:odx="http://opendope.org/xpaths" xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy" xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram" xmlns:ns17="urn:schemas-microsoft-com:office:excel" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:odi="http://opendope.org/components" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:ns9="http://schemas.openxmlformats.org/schemaLibrary/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:ns32="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:ns30="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:ns12="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing" xmlns:ns31="http://schemas.openxmlformats.org/drawingml/2006/compatibility" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:odq="http://opendope.org/questions" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:odc="http://opendope.org/conditions" xmlns:oda="http://opendope.org/answers">
    <w:name w:val="DocDefaults"/>
    <w:pPr>
        <w:spacing w:lineRule="auto" w:line="276" w:after="200"/>
    </w:pPr>
    <w:rPr>
        <w:rFonts w:cstheme="minorBidi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:asciiTheme="minorHAnsi"/>
        <w:sz w:val="22"/>
        <w:szCs w:val="22"/>
        <w:lang w:bidi="ar-SA" w:eastAsia="en-US" w:val="en-US"/>
    </w:rPr>
</w:style>
2014-02-27 17:19:59 INFO  StyleDefinitionsPart:426 - Style with name Default Paragraph Font, id 'DefaultParagraphFont' is default character style
2014-02-27 17:20:00 WARN  SpaceAfter:81 - No support for unit: CSS_EMS; instead of em, please use an absolute unit.
2014-02-27 17:20:01 ERROR AbstractExporter:78 - Exception exporting package
java.lang.NumberFormatException: Zero length BigInteger
   at java.math.BigInteger.<init>(BigInteger.java:296)
   at java.math.BigInteger.<init>(BigInteger.java:470)
   at com.sun.xml.internal.bind.DatatypeConverterImpl._parseInteger(DatatypeConverterImpl.java:76)
   at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$22.parse(RuntimeBuiltinLeafInfoImpl.java:730)
   at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$22.parse(RuntimeBuiltinLeafInfoImpl.java:728)
   at com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:230)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:191)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:470)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:448)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
   at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:200)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:179)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:230)
   at org.docx4j.XmlUtils.deepCopy(XmlUtils.java:720)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyContent(PartialDeepCopy.java:210)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.copyPart(PartialDeepCopy.java:194)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyPart(PartialDeepCopy.java:170)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyRelationships(PartialDeepCopy.java:155)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.process(PartialDeepCopy.java:71)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:72)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:124)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:51)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:32)
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:60)
   at org.docx4j.Docx4J.toFO(Docx4J.java:467)
   at com.rapidflowapps.subcontracting.util.convert.DocFormatConversion.convertXHTMLtoPDF_docx4j(DocFormatConversion.java:220)
   at com.rapidflowapps.subcontracting.web.AjaxSaveDocAction.downloadContract(AjaxSaveDocAction.java:198)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
   at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
   at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
   at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
   at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
   at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
   at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:679)
2014-02-27 17:20:01 ERROR DocFormatConversion:222 - Exception exporting package
org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:79)
   at org.docx4j.Docx4J.toFO(Docx4J.java:467)



any help would be appreciated.

Re: Urgent Need Help docx4j 2.8.1 PDF Conversion failing in

PostPosted: Fri Feb 28, 2014 6:02 am
by jason
Please provide a sample docx which causes this issue.

I note your stack trace is similar to the recent thread about Google Docs.

Re: PDF Conversion failing in Unx - tariq

PostPosted: Fri Feb 28, 2014 3:25 pm
by tariq47
I am not converting a document file. I am converting an XHTML file, an example of which is
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
[
<!ENTITY nbsp " ">
]>
<html xmlns="http://www.w3.org/1999/xhtml">

<!--?xml version="1.0" encoding="UTF-8"?-->
<style type="text/css"><!--/*paged media */ div.header {display: none }div.footer {display: none } /*@media print { */@page { size: A4; margin: 10%; @top-center {content: element(header) } @bottom-center {content: element(footer) } }/*element styles*/ .del  {text-decoration:line-through;color:red;} .ins {text-decoration:none;background:#c0ffc0;padding:1px;}
/* TABLE STYLES */

/* PARAGRAPH STYLES */
p.DocDefaults {display:block;margin-top: 0in;margin-bottom: 0in;line-height: 100%;}
p.Normal {display:block;}
p.Subtitle {display:block;text-align: center;font-weight: bold;text-decoration: underline;}
p.ParaLevel5 {display:block;position: relative; margin-left: 2in;text-indent: 0.5in;vertical-align: baseline;font-size: 12.0pt;}
p.BodyTextIndent3 {display:block;text-align: justify;position: relative; text-indent: 0.94in;margin-bottom: 4mm;font-size: 12.0pt;}
p.BodyTextIndent2 {display:block;text-align: justify;position: relative; text-indent: 1in;margin-bottom: 4mm;font-size: 12.0pt;}
p.Footer {display:block;}
p.ParaLevel1 {display:block;position: relative; text-indent: 0.5in;vertical-align: baseline;font-size: 12.0pt;}
p.Heading2 {display:block;text-align: justify;page-break-after: avoid;position: relative; margin-left: 2.5in;text-indent: -2.5in;margin-bottom: 0.12in;font-weight: bold;}

/* CHARACTER STYLES */ span.DefaultParagraphFont {display:inline;}
span.PageNumber {display:inline;}
span.DeltaViewInsertion {display:inline;font-weight: bold;color: #0000FF;text-decoration: underline;}
-->
</style>
<!-- userBodyTop goes here -->
<div class="document">
<p class="Subtitle Normal DocDefaults " style="text-align: right; margin-bottom: 0.12in;">&nbsp;</p>

<p class="Subtitle Normal DocDefaults " style="text-align: center; margin-bottom: 0.12in;"><strong><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">NON-DISCLOSURE AGREEMENT</span></strong></p>

<p class="Normal DocDefaults "><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman;">THIS AGREEMENT (the &quot;</span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; font-weight: bold;">Agreement</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span>&rdquo;</span><span style="font-family: Times New Roman; white-space: pre-wrap;">) is entered into on this ____day of ___________ by and between </span></span><span involved="" of="" other="" party="" style="background-color: rgb(250, 235, 215);" title="Name">wTechnologies</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">, located at </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> ___________________ ( the</span><span>&rdquo; </span></span><span class="DefaultParagraphFont " style="font-size: 11pt; font-weight: bold;"><span style="font-family: Times New Roman;">Disclosing Party</span><span>&rdquo;</span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">), and ___________________________ with an </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman;">address at ______________________ (the </span><span>&ldquo;</span></span><span class="DefaultParagraphFont " style="font-size: 11pt; font-weight: bold;"><span style="font-family: Times New Roman;">Receiving Party</span><span>&rdquo;</span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">).</span></p>

<p class="Normal DocDefaults ">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 0.5in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">The Receiving Party </span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">hereto desires to participate in discussions regarding ____</span></span><span involved="" of="" other="" party="" style="background-color: rgb(250, 235, 215);" title="Name">wTechnologies</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">________ (the </span><span>&ldquo;</span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold;">Transaction</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span>&rdquo;</span><span style="font-family: Times New Roman; white-space: pre-wrap;">). During these discussions, Disclosing Party may share certain proprietary information with the </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Receiving Party. Therefore, in consideration of the mutual promises and covenants contained in this Agreement, and other good and valuable consideration, the receipt and sufficiency of which is hereby acknowledged, the parties hereto agree as follows:</span></p>

<p class="ParaLevel5 Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">1. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Definition of Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="ParaLevel5 Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; margin-left: 0in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(a)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">For purposes of this Agreement, &ldquo;</span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold;">Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">&rdquo; means any data or information that is proprietary to the </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Disclosing Party</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> and not generally known to the public, whether in tangible or intangible form, </span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal; white-space: pre-wrap;">in whatever medium provided, whether unmodified or modified by Receiving Party or its Representatives (as defined herein), </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">whenever and however disclosed, including, but not limited to: (i) any marketing strategies, plans, financial information, or projections, operations, sales estimates, business plans and performance results relating to the past, present or future business activities of such party, its affiliates, subsidiaries and affiliated companies; (ii) plans for products or services, and customer or supplier lists; (iii) any scientific or technical information, invention, design, process, procedure, formula, improvement, technology or method; (iv) any concepts, reports, data, know-how, works-in-progress, designs, development tools, specifications, computer software, source code, object code, flow charts, databases, inventions, information and trade secrets; (v) any other information that should reasonably be recognized as confidential information of the Disclosing Party</span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal;">; and (vi) any information generated by the Receiving Party or by its Representatives that contains, reflects, or is derived from any of the foregoing</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; white-space: pre-wrap;">. </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">Confidential Information need not be </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">novel, unique, patentable, copyrightable or constitute a trade secret in order to be designated Confidential Information. The </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Receiving Party</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">acknowledges that the Confidential Information is proprietary to the Disclosing Party, has been developed and obtained through great efforts by the Disclosing Party and that</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> Disclosing Party regards all of its Confidential Information as trade secrets</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; margin-bottom: 0.12in;"><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">(b)</span><span style="font-family: Times New Roman; white-space: pre-wrap;">Notwithstanding anything in the foregoing to the contrary, Confidential Information shall not include information which: </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">a) was lawfully possessed, as evidenced by the Receiving Party&rsquo;s records, by the Receiving Party prior to receiving the Confidential Information from the Disclosing Party; (b) becomes rightfully known by the Receiving Party from a third-party source not under an obligation to Disclosing Party to maintain confidentiality; (c) is </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">generally known by the public</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> through no fault of or failure to act by the Receiving Party </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">inconsistent with its obligations under</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> this Agreement; (d) is required to be disclosed in a judicial or administrative proceeding, or is otherwise requested or required to be disclosed by law or regulation, although the requirements of paragraph 4 hereof shall apply prior to any disclosure being made; and (e) is or has been independently developed by employees, consultants or agents of the Receiving Party without violation of the terms of this Agreement, as evidenced by the Receiving Party&rsquo;s records, and without </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">reference or access to any Confidential Information.</span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">2. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Disclosure of Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">From time to time, the Disclosing Party may disclose Confidential Information to the Receiving Party. The Receiving Party will: (a) limit disclosure of any Confidential Information to its </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">directors, officers, employees, agents or representatives (collectively &ldquo;</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold;">Representatives</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">&rdquo;) who have a need to know such Confidential Information in connection with the current or contemplated business relationship between the parties to which this Agreement relates, and only for that purpose; (b) advise its Representatives of the proprietary nature of the Confidential Information and of the obligations set forth in this Agreement,</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> require such Representatives to </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">be bound by written confidentiality restrictions no less stringent than those contained herein, and assume full liability for acts or omissions by its Representatives that are inconsistent with its obligations under this Agreement; (c)</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> keep all Confidential Information strictly confidential by using a reasonable degree of care, but not less than the degree of care used by it in safeguarding its own confidential information; and (d) not disclose any Confidential Information received by it to any third parties (except as otherwise provided for herein). </span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">3. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Use of Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">The Receiving Party agrees to use the Confidential Information solely in connection with the current or contemplated business relationship between the parties and not for any purpose other than as authorized by this Agreement without the prior written consent of an authorized representative of the Disclosing Party. No other right or license, whether expressed or implied, in the Confidential Information is granted to the Receiving Party hereunder. Title to the Confidential Information will remain solely in the Disclosing Party. All use of Confidential Information by the Receiving Party shall be for the benefit of the Disclosing Party and any modifications and improvements thereof by the Receiving Party shall be the sole property of the Disclosing Party.</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; white-space: pre-wrap;"> </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">Nothing contained herein is intended to modify the parties' existing agreement that their discussions in furtherance of a potential business relationship are governed by Federal Rule of Evidence 408</span><span class="DefaultParagraphFont " style="color: rgb(0, 128, 0); font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;">&nbsp;</p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">4. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Compelled Disclosure of Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Notwithstanding anything in the foregoing to the contrary, the Receiving Party may disclose Confidential Information pursuant to any governmental, judicial, or administrative order, subpoena, discovery request, regulatory request or similar method, provided that the Receiving Party promptly notifies, to the extent practicable, the Disclosing Party in writing of such demand for disclosure so that the Disclosing Party, at its sole expense, may seek to make such disclosure subject to a protective order or other appropriate remedy to preserve the confidentiality of the Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">; provided </span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal;">that the Receiving Party will disclose only that portion of the requested Confidential Information that, in the written opinion of its legal counsel, it is required to disclose</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">. The Receiving Party agrees that it shall not oppose and shall cooperate with efforts by, to the extent practicable, the Disclosing Party with respect to any such request fo</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">r a protective order or other relief. Notwithstanding the foregoing, </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">if the Disclosing Party is unable to obtain or does not seek a protective order and the Receiving Party is legally requested or required to disclose such Confidential Information, disclosure of such Confidential Information may be made without liability.</span></p>

<p class="Normal DocDefaults " style="text-align: justify;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; page-break-after: avoid; position: relative;">5. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Term</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">. </span></p>

<p class="BodyTextIndent2 Normal DocDefaults " style="margin-bottom: 0.12in; page-break-after: avoid;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">This Agreement shall remain in effect for a two-year term (subject to a one year extension if the parties are still discussing and considering the Transaction at the end of the second year). Notwithstanding the foregoing, the Receiving Party&rsquo;s </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">duty to hold in confidence Confidential Information that was disclosed during term shall remain in effect indefinitely.</span></p>

<p class="Normal DocDefaults " style="text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">6. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Remedies</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman;">Both parties acknowledge that the Confidential Information to be disclosed hereunder is of a unique and valuable character, and that the unauthorized dissemination of the Confidential Information would destroy or diminish the value of such information. The damages to Disclosing Party that would result from the unauthorized dissemination of the Confidential Information would be impossible to calculate. Therefore, both parties hereby agree that the Disclosing Party shall be entitled to injunctive relief preventing the dissemination of any Confidential Information in violation of the terms hereof. Such injunctive relief shall be in addition to any other remedies available hereunder, whether at law or in equity. Disclosing Party shall be entitled to recover its costs and fees, including reasonable attorneys</span><span>&rsquo; </span><span style="font-family: Times New Roman;">fees, incurred in obtaining any such relief.</span></span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> Further, </span></span><span style="font-family: Times New Roman; white-space: pre-wrap;">in the event of litigation relating to this Agreement, </span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;">the prevailing party shall be entitled to recover its reasonable attorney</span><span>&rsquo;</span><span style="font-family: Times New Roman; white-space: pre-wrap;">s fees and expenses. </span></span></p>

<p class="Normal DocDefaults " style="text-indent: 0.56in; margin-bottom: 0.12in; margin-left: -0.06in; position: relative;">7. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Return of Confidential Information</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">Receiving Party </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">shall immediately return and redeliver </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">to </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Disclosing Party</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> all tangible material embodying </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">any Confidential Information provided hereunder </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">and all notes, </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">summaries, memoranda, drawings, manuals, records, excerpts </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">or derivative information deriving </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">therefrom,</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> </span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">and all other documents or materials (</span><span>&ldquo;</span><span style="font-family: Times New Roman;">Notes</span><span>&rdquo;</span><span style="font-family: Times New Roman;">) (and all copies of any of the foregoing, including </span><span>&ldquo;</span><span style="font-family: Times New Roman;">copies</span><span>&rdquo; </span><span style="font-family: Times New Roman;">that have been converted to computerized media in the form of image, data</span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">,</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> word processing</span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">, or other types of</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> files either manually or by image capture) based on or including any Confidential Information,</span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> in whatever form of storage or retrieval, </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">upon the earlier of (i) the completion or termination of the dealings between the parties contemplated hereunder; (ii) the termination of this Agreement; or (iii) at such time as the Disclosing Party may so request</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">; provided however that the Receiving Party may retain such of its documents as is necessary to enable it to comply with its reasonable </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">document retention policies</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">. Alternatively, the Receiving Party, with the written consent of the Disclosing Party may (or in the case of Notes, at the Receiving Party</span><span>&rsquo;</span><span style="font-family: Times New Roman;">s option) immediately destroy any of the foregoing embodying Confidential Information (or the reasonably nonrecoverable data erasure of computerized data) and, upon request, certify in writing such destruction by an authorized officer of the Receiving Party supervising the destruction).</span></span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; position: relative;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 0.5in; margin-bottom: 0.12in; margin-left: 0in; position: relative;">8. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Notice of Breach</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="BodyTextIndent3 Normal DocDefaults " style="text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Receiving Party shall notify the Disclosing Party immediately upon discovery of, or suspicion of, (1)</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> any unauth</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">orized use or disclosure of Confidential Information by Receiving Party or its Representatives</span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal;">; or (2) any actions by Receiving Party or its Representatives inconsistent with their respective obligations under</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">this Agreement,</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> Receiving Party </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">shall</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> cooperate with any and all efforts of </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">the Disclosing Party to help the Disclosing Party regain possession of Confidential Information and prevent its further unauthorized use.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">9. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">No Binding Agreement for Transaction</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">. </span></p>

<p class="BodyTextIndent2 Normal DocDefaults " style="margin-bottom: 0.12in;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">The parties agree that neither party will be under any legal obligation of any kind whatsoever with respect to a Transaction by virtue of this Agreement, except for the matters specifically agreed to herein. The parties further acknowledge and agree that they each reserve the right, in their sole and absolute discretion, to reject any and all proposals and to terminate discussions and negotiations with respect to a Transaction at any time. This Agreement does not create a joint venture or partnership between the parties. If a Transaction goes forward, the non-disclosure provisions of any applicable transaction documents entered into between the parties (or their respective affiliates) for the Transaction shall supersede this Agreement. In the event such provision is not provided for in said transaction documents, this Agreement shall control.</span></p>

<p class="BodyTextIndent2 Normal DocDefaults " style="margin-bottom: 0.12in;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; position: relative;">10. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Warranty</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">. </span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold;">NO WARRANTIES ARE MADE BY EITHER PARTY UNDER THIS AGREEMENT WHATSOEVER</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;">. The parties acknowledge that although they shall each endeavor to include in the Confidential Information all information that they each believe relevant for the purpose of the evaluation of a Transaction, the parties understand that no representation or warranty as to the accuracy or completeness of the Confidential Information is being made by the Disclosing Party. Further, neither party is under any obligation under this Agreement to disclose any Confidential Information it chooses not to disclose. Neither Party hereto shall have any liability to the other party or to the other party</span><span>&rsquo;</span><span style="font-family: Times New Roman; white-space: pre-wrap;">s Representatives resulting from any use of the Confidential Information except with respect to disclosure of such Confidential Information in violation of this Agreement. </span></span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: -0.5in; margin-bottom: 0.12in; margin-left: 1in; page-break-after: avoid; position: relative;">11. <span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; text-decoration: underline;">Miscellaneous</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; page-break-after: avoid; position: relative;"><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">(a)</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;">This Agreement constitutes the entire understanding between the parties and </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">supersedes any and all prior or contemporaneous understandings and agreements, </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">whether oral or written,</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> between the parties</span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">, </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">with respect to the subject matter</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> hereof. </span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">This Agreement can only be modified by a written amendment signed by the party against whom enforcement of such modification is sought.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(b)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">The validity, construction and performance of this Agreement shall be governed and construed in accordance with the laws of _____________________ (state) applicable to contracts made and to be wholly performed within such state, without giving effect to any conflict of laws provisions thereof. The Federal and state courts located in _______________ (state) shall have sole and exclusive jurisdiction over any disputes arising</span><span style="font-family: Times New Roman; white-space: pre-wrap;"> under</span></span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal;">, or in any way connected with or related to,</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; white-space: pre-wrap;"> </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">the terms of this Agreement</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold; white-space: pre-wrap;"> </span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal; white-space: pre-wrap;">and Receiving Party: (i) consents to personal jurisdiction therein; and (ii) waives the right to raise </span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-style: italic; font-weight: normal;">forum non conveniens</span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; font-weight: normal; white-space: pre-wrap;"> or any similar objection.</span><span class="DeltaViewInsertion " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;"> </span></p>

<p class="BodyTextIndent2 Normal DocDefaults " style="margin-bottom: 0.12in;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(c)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">Any failure by either party to enforce the other party&rsquo;s strict performance of any provision of this Agreement will not constitute a waiver of its right to subsequently enforce such provision or any other provision of this Agreement.</span></span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">(d)</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman;">Although the restrictions contained in this Agreement are considered by the parties to be reasonable for the purpose of protecting the Confidential Information</span></span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">, </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">if any such restriction is found by a court of competent jurisdiction </span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">to be unenforceable, such provision will be modified, rewritten or interpreted to include as much of its nature and scope as will render it enforceable. If it cannot be so modified, rewritten or interpreted to be enforceable in any respect, it will not be given effect, and the remainder of the Agreement will be enforced as if such provision was not included. </span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(e)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">Any notices or communications required or permitted to be given hereunder may be delivered by hand, deposited with a nationally recognized overnight carrier, electronic-mail, or mailed by certified mail, return receipt requested, postage prepaid, in each case, to the address of the other party first indicated above (or such other addressee as may be furnished by a party in accordance with this paragraph). All such notices or communications shall be deemed to have been given and received (a) in the case of personal delivery or electronic-mail, on the date of such delivery, (b) in the case of delivery by a nationally recognized overnight carrier, on the third business day following dispatch and (c) in the case of mailing, on the seventh business day following such mailing.</span></span></p>

<p class="ParaLevel1 Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(f)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;">This Agreement is personal in nature, and neither party may directly or indirectly assign or transfer it by operation of law or otherwise without the prior written consent of the other party, which consent will not be unreasonably withheld. </span></span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">All obligations contained in this Agreement shall </span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">extend to and be binding upon the parties to this Agreement and their respective successors, assigns and designees.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 1in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(g)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">The receipt of Confidential Information pursuant to this Agreement will not prevent or in any way limit either party from: (i) developing, making or marketing products or services that are or may be competitive with the products or services of the other; or (ii) providing products or services to others who compete with the other.</span></span></p>

<p class="BodyTextIndent2 Normal DocDefaults " style="margin-bottom: 0.12in;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">(h)</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">Paragraph headings used in this Agreement are for reference only and shall not be used or relied upon in the interpretation of this Agreement.</span></span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 0.5in; margin-bottom: 0.12in; position: relative;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; font-weight: bold;">IN WITNESS WHEREOF</span><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">, the parties hereto have executed this Agreement as of the date first above written.</span></p>

<p class="Normal DocDefaults " style="text-align: justify; text-indent: 0.5in; margin-bottom: 0.12in; position: relative;">&nbsp;</p>

<p class="Heading2 Normal DocDefaults "><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 11pt;">Disclosing Party</span><span class="DefaultParagraphFont " style="color: rgb(0, 0, 0); font-size: 11pt;"><span style="font-family: Times New Roman;">Receiving Party</span></span><span class="DefaultParagraphFont " style="font-size: 12pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> </span></span></p>

<p class="Normal DocDefaults " style="text-align: justify; margin-bottom: 0.12in;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">By</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">By</span></span><span class="DefaultParagraphFont " style="font-size: 11pt; text-decoration: underline;"><span style="font-family: Times New Roman;">_____</span></span></p>

<p class="Normal DocDefaults " style="text-align: justify;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt; white-space: pre-wrap;">Name: </span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">Name:</span></span></p>

<p class="Normal DocDefaults " style="text-align: justify;"><a name="OLE_LINK1"></a><a name="OLE_LINK2"></a><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 11pt;">Title:</span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman; white-space: pre-wrap;"> </span></span><span class="DefaultParagraphFont " style="font-size: 11pt;"><span style="font-family: Times New Roman;">Title:</span></span></p>

<p class="Normal DocDefaults " style="text-align: justify; margin-bottom: 0.12in;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: justify; margin-bottom: 0.12in;">&nbsp;</p>
</div>

<div class="footnotes">
<p class="Normal DocDefaults ">&nbsp;</p>
</div>

<div class="footer">
<p class="Footer Normal DocDefaults "><span style="font-size: 11pt;">1</span></p>

<p class="Normal DocDefaults " style="line-height: 100%;"><span class="DefaultParagraphFont " style="font-family: Times New Roman; font-size: 9pt;">#886871</span></p>

<p class="Normal DocDefaults " style="line-height: 100%;">&nbsp;</p>

<p class="Normal DocDefaults " style="text-align: center;">&nbsp;</p>

<p class="Normal DocDefaults ">&nbsp;</p>

<p class="Normal DocDefaults ">&nbsp;</p>
</div>
<!-- userBodyTail goes here --><div id="signDiv" class="sigBox">
         
         
         <h4>Signatures:</h4>
         
         <div class="signInnerBox">
         
         <table>
         <tbody><tr>
         <td>
             <div class="Sbox">
             <p> <label>Name :</label>m tq</p>
             <p> <label>Email id :</label> game.tariq@gmail.com</p>
             <p> <label>Date : :</label> 20-Jan-2014 03:35:54 PST</p>
             <p> <label>From IP :</label> 182.73.242.91</p>
             <div class="cl"></div>
             </div>
            </td>
            <td>
             <div class="Sbox">
            
            <p><img alt="signature" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAABkCAYAAACoy2Z3AAACzElEQVR42u3cMa7TMBwHYAsJsXEGNkYuwCFyBk7RCXVnY4AHa0+A4BAMHIKFnYXhTcWvSiPXL46dtjSt+D7Jw2ubOHqV/OvfjhMCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwJl9CuF1bNvYOv8NAI4JkNUS/d+F8C72/ed9CM99GwA35GMIL+IA/ju2zRL9fw7hzZIBBsCNBggA/0GAxM88je1XXzFcbN1kpN/7uxBe+fYAbiRA+vWKbdaa1y/WITx56G/O9RX63DdVE8BSkkX07zEIns0Z/JP1i2KIJOcfa6ssxLpCeHT5tcTXvqlEAC6s8qt+O2dRuxRASbg8qhSS/ncBMBYgtbvDkvO7/RjgUpIB++QAyQbz1chrmxnX02UVRrEq6kNIBQKwlGSBenIKqzEAhqmsORsUk+NXY39PXLP9IwBXUI0UAySpCEarlVgFvE3ukupOCJBNcmyxuhgLLACuLEBGprs2E+8N79eqiKkqqJ/+KoZDS+gBsGCAJAP75FpDdqfVbuBPjp2zv2R3bC1AWu8cA+AyAfJowK5NJRXOM3y+9TlX6+y23Fq/SYDYBwKwlKkF6VolkOs/Pwz8rc+5Wh+usXQNi+gCBOCaA6S0wa8SBF/2AXLkLvdV9ndXCCoPYARYUvLrf7TSSAbyyUokGdSHCqR27sLx+SL8WfaqAPAP1KaqGneu79uPDyG8zM5dXUcZm5ZqCBG70AGW1E9j/awN8hNBMnXH1H6KrGushKpVhceYAHCUOXtMAECAAHCaOZsUAUCAAHC2APEoEwAECACXCxCPcweg3XrGDncAOND6pF8AOPAwjRVD5Ks1EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAm/YXMCP5sc88UmUAAAAASUVORK5CYII="/></p>
             </div>
             </td>
             </tr>
             </tbody></table>
         <div class="cl"></div>
         
         <table>
         <tbody><tr>
         <td>
             <div class="Sbox">
             <p> <label>Name :</label>govind </p>
             <p> <label>Email id :</label> gsmahara@rapidflowapps.com</p>
             <p> <label>Date : :</label> 13-Jan-2014 23:24:40 PST</p>
             <p> <label>From IP :</label> 182.73.242.91</p>
             <div class="cl"></div>
             </div>
            </td>
            <td>
             <div class="Sbox">
            
            <p><img alt="signature" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACWCAYAAADwkd5lAAAFvklEQVR42u3dL2hdVxwH8G6EEVhERERFREU3KiIiulHRQcXEREREoRURFYNFVERkEEbEhTLC2kFgFRMbq6ioqIiYiAgjIqJibBMRERURHUSUrWNhVFS8nfvuCbk9ve9P0ryXvHc/H/iJkuRd7rmP8+09595zzp0DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGqncSXUrVCfhZoKNa5NAOgmPBoV9TzUk1APQy2HuhnqcqgxbQZAHiCftgiQdrUXaivU96EWQl0LNaEtAeoXIrOh7odaD7UT6tUxQiWvZ6EehZpzpwJQ31CZDHU1zo3cicHwa6j9LsMk/70Hxd0JABThcj4OW92Ody5POgTL0ziPMqntAKgKlulQi/FOpVWYrMcJ+VHtBUBVmMx2GOLKn/L6IYbJBe0FwEGALB7jya6NOCSWhVoKdVE7AtQvQLJSOGzGf6/GIaz9I4TKiLYEqG+AZMnPRuITXlmcgBcgAHQTIG/87mh8y/12/LvMEBaAAOkiQADgMEDulQJkSXsAden88vcZPi8Np/SqZoa0/fIhqd1SgFzxnQKGsbM7H5fr6OaN6l7UEIZIc+mT0kQ4wPB1dHlwvOxzYAx5gOQT368txjjjewYMWye33qZT345vSWeGsI7ctkuldlzzXQOGpXO7HFeVTZcr34qPkNow6e3bOPP0FTCMHVsaHC9CzWsbAQJQ1aFdjHcd6TDVQ7voCRCAVp3Z1YqnqvJNji5pGwEC0KojG40bGZXD4552ESAAnTqy+8neE9PaRIAAdOrEVof/ZT0BAtDLDsywlQAB6Krzmkoe1V2tcVuMh1row8uQaW0KEGDQOsyJuAHRQef1c83DY++Ul2hpFNvaApz9TvNBspPdZI3bYuEMhMd+va8BMCgdZrqA3+Wat0dWsR95P2vJuzbAoHSYFvBrHSCZ9gDQYWoPgBPuMB+WOszlmrfFVDKBbiIboEWHmc5/1PiN88a1ZIOsvWLHRQCqOk3zH0U7XEjuPPZMZAO07zgz4/35JliNP0rt8LS4MwNAgLQPj63k/QsLRwIIkLbnPhlqp3T+rywcCSBAOp33bFymvhwe130fAARIq/MdrViufr94AgsAAVJ9rleSIau8tot3PwAQIG+e4wehvgn1VxIe34X60HcAQIBUnd+1ULtJcLwINefaAwiQVncd34b6NwmPn4qhLAAESHd3HfkTV7dcbwABUnUu+bped0P9k4THj6E+dq0BBEjVedwI9UsSHL+Hmg/1rusMMLAB0txzfaIHnztS8V5HXo97czwA+hgg+Ra5zWXSX57sdrmNT2JQlIPjt1BfhHrHtQUY/ABZTJZJnz2Bz5yJj+O66wA4pQBZer0D7skxppNNq/JaP/6S6Y2FZB2rP0N9Geo91xOgfwEynTzqOtKj49yrmKfIh7TuFOtTdf05X4X6r/QZWxZBBDi9ECnviT7bo2NkFQFyULudj9t4P9TXFUNWH7l+AKcXIHOlTnnn5PcBbz6BtVk6xoNQGxVBUhrWaj5dNRODJ69HFeEx5toBnG6AjMUlzXsQIo3xZK/xxuGOf42boZ61GNa60eaOZdU1Azg7ITKVdPR7xdzC286JNCe8y53/SkV4rVRMsv/dYs4kc60Azl6IXKq4W3geh4/mi58f6fMmks9b7nDsjRahcTcG0XnXCODshsjVioUI06XQ1+JdQ9ahNpM7mi4CoLkQYhpiC64LwGCEyGj8H/92myA5ah3hDfQ8aJoBdfC3M64JwOCFycUYJmsVb353WyvHOO7BU1jCA2CIAuV6MZ/RcQhr+fCJKwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoE/+Bw7QGaYZDeZvAAAAAElFTkSuQmCC"/></p>
             </div>
             </td>
             </tr>
             </tbody></table>
         <div class="cl"></div>
         
         </div>
         
         </div></html>

Re: PDF Conversion failing in Unx - tariq

PostPosted: Fri Feb 28, 2014 8:25 pm
by jason
I used docx4j-ImportXHTML sample ConvertInXHTMLFile to convert your XHTML to docx, which I saved.

I then uploaded the file to the webapp to convert it to PDF.

That worked. And its a Linux box. Its running docx4j 3.0.1

tariq47 wrote:   at java.math.BigInteger.<init>(BigInteger.java:296)
   at java.math.BigInteger.<init>(BigInteger.java:470)
   at com.sun.xml.internal.bind.DatatypeConverterImpl._parseInteger(DatatypeConverterImpl.java:76)
:
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:230)
at org.docx4j.XmlUtils.deepCopy(XmlUtils.java:720)
at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyContent(PartialDeepCopy.java:210)
at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.copyPart(PartialDeepCopy.java:194)
at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyPart(PartialDeepCopy.java:170)
at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyRelationships(PartialDeepCopy.java:155)
at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.process(PartialDeepCopy.java:71)
at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:72)
at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:124)
at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:51)
at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:32)
at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:60)
at org.docx4j.Docx4J.toFO(Docx4J.java:467)
at com.rapidflowapps.subcontracting.util.convert.DocFormatConversion.convertXHTMLtoPDF_docx4j(DocFormatConversion.java:220)
at com.rapidflowapps.subcontracting.web.AjaxSaveDocAction.downloadContract(AjaxSaveDocAction.java:198)


What does DocFormatConversion.convertXHTMLtoPDF_docx4j do, exactly?

Re: PDF Conversion failing in Unx - tariq

PostPosted: Fri Feb 28, 2014 9:57 pm
by tariq47
this is the method which is used to convert xhtml content to pdf

Code: Select all
public static OutputStream convertXHTMLtoPDF_docx4j(String xhtmlContent) {
      long startTime = System.currentTimeMillis();
      OutputStream os = null;
      try {
         WordprocessingMLPackage docxOut = WordprocessingMLPackage
               .createPackage();
         
         NumberingDefinitionsPart ndp = new NumberingDefinitionsPart();
         docxOut.getMainDocumentPart().addTargetPart(ndp);
         ndp.unmarshalDefaultNumbering();
         
         XHTMLImporterImpl XHTMLImporter = new XHTMLImporterImpl(docxOut);
         XHTMLImporter.setHyperlinkStyle("Hyperlink");
         docxOut.getMainDocumentPart().getContent()
               .addAll(XHTMLImporter.convert(xhtmlContent, null));         
         
         //output to pdf
         FOSettings foSettings = Docx4J.createFOSettings();
         //to save fo dump
         //foSettings.setFoDumpFile(new java.io.File(destFilePath + ".fo"));
         foSettings.setWmlPackage(docxOut);
         os = new ByteArrayOutputStream();
         Docx4J.toFO(foSettings, os, Docx4J.FLAG_NONE);
      } catch (Exception e) {
         logger.error(e.getMessage(),e);
      }
      logger.info( "Generated pdf with {} ms ",( System.currentTimeMillis() - startTime ) );
      return os;
   }

Re: PDF Conversion failing in Unx - tariq

PostPosted: Fri Feb 28, 2014 11:12 pm
by tariq47
Hi jason
first of all thanks for all your responses. And this is a wonderful library which has come too handy for me.

yes i did check today that in my linux machine if I convert the xhtml to docx using according to ConvertInXHTMLFile samples then it is converting correctly, problem only comes when I am converting xhtml to pdf, using the code i had pasted before. However one point to note is that the same code rune perfectly fine in my windows machine for converting xhtml to pdf.

Thnx once again

Re: PDF Conversion failing in Unx - tariq

PostPosted: Fri Feb 28, 2014 11:27 pm
by jason
On the problematic machine, you seem to be running Java 1.6.0_22

What are you running on Windows?

Can you try a newer Java on the Unix box, or a recent JAXB reference implementation (via endorsed dir mechanism, or whatever your app server requires)

Re: PDF Conversion failing in Unx - tariq

PostPosted: Mon Mar 03, 2014 5:05 pm
by tariq47
Hi jason
On windows Im running Java 1.6.0_25-b06

on the linux box I tried with recent implentation of JAXB via endorsed dir, but still the error persists
following are the logs in debug mode. I am pasting the starting head of the log and the tail end where error occurs, skipping the recurring portion which is too long. Plz tell if u need full log
Code: Select all
2014-03-03 11:25:07 INFO  WordprocessingMLPackage:375 - Using paper size: LETTER
2014-03-03 11:25:07 INFO  WordprocessingMLPackage:379 - Landscape orientation: false
2014-03-03 11:25:07 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /


2014-03-03 11:25:07 INFO  Context:73 - java.vendor=Sun Microsystems Inc.
2014-03-03 11:25:07 INFO  Context:74 - java.version=1.6.0_22
2014-03-03 11:25:07 INFO  Context:214 -
jar:file:/opt/accountsight_tomcat/endorsed/jaxb-core.jar!/META-INF/MANIFEST.MF
2014-03-03 11:25:07 INFO  Context:217 - Implementation-Title : JAXB Reference Implementation
2014-03-03 11:25:07 INFO  Context:217 - Implementation-Version : 2.2.7
2014-03-03 11:25:07 INFO  Context:217 - Manifest-Version : 1.0
2014-03-03 11:25:07 INFO  Context:217 - Specification-Vendor : Oracle Corporation
2014-03-03 11:25:07 INFO  Context:217 - Class-Path : jaxb-api.jar
2014-03-03 11:25:07 INFO  Context:217 - Created-By : 1.6.0_41-b02 (Sun Microsystems Inc.)
2014-03-03 11:25:07 INFO  Context:217 - Ant-Version : Apache Ant 1.8.4
2014-03-03 11:25:07 INFO  Context:217 - Implementation-Vendor : Oracle Corporation
2014-03-03 11:25:07 INFO  Context:217 - Implementation-Vendor-Id : com.sun
2014-03-03 11:25:07 INFO  Context:217 - Specification-Title : Java Architecture for XML Binding
2014-03-03 11:25:07 INFO  Context:217 - Specification-Version : 2.2.7
2014-03-03 11:25:07 INFO  Context:217 - Extension-Name : com.sun.xml.bind.core
2014-03-03 11:25:07 INFO  Context:217 - Build-Id : 04/24/2013 06:10 PM(yaroska)
2014-03-03 11:25:08 INFO  Context:214 -
jar:file:/opt/accountsight_tomcat/endorsed/jaxb-core.jar!/META-INF/MANIFEST.MF
2014-03-03 11:25:08 INFO  Context:217 - Implementation-Title : JAXB Reference Implementation
2014-03-03 11:25:08 INFO  Context:217 - Implementation-Version : 2.2.7
2014-03-03 11:25:08 INFO  Context:217 - Manifest-Version : 1.0
2014-03-03 11:25:08 INFO  Context:217 - Specification-Vendor : Oracle Corporation
2014-03-03 11:25:08 INFO  Context:217 - Class-Path : jaxb-api.jar
2014-03-03 11:25:08 INFO  Context:217 - Created-By : 1.6.0_41-b02 (Sun Microsystems Inc.)
2014-03-03 11:25:08 INFO  Context:217 - Ant-Version : Apache Ant 1.8.4
2014-03-03 11:25:08 INFO  Context:217 - Implementation-Vendor : Oracle Corporation
2014-03-03 11:25:08 INFO  Context:217 - Implementation-Vendor-Id : com.sun
2014-03-03 11:25:08 INFO  Context:217 - Specification-Title : Java Architecture for XML Binding
2014-03-03 11:25:08 INFO  Context:217 - Specification-Version : 2.2.7
2014-03-03 11:25:08 INFO  Context:217 - Extension-Name : com.sun.xml.bind.core
2014-03-03 11:25:08 INFO  Context:217 - Build-Id : 04/24/2013 06:10 PM(yaroska)
2014-03-03 11:25:08 DEBUG ResourceUtils:50 - Not using MOXy, since no resource: org/docx4j/wml/jaxb.properties
2014-03-03 11:25:08 INFO  Context:97 - No MOXy JAXB config found; assume not intended..
2014-03-03 11:25:08 DEBUG Context:98 - org/docx4j/wml/jaxb.properties not found via classloader.
2014-03-03 11:25:09 INFO  NamespacePrefixMapperUtils:61 - Using NamespacePrefixMapperSunInternal, which is suitable for Java 6
2014-03-03 11:25:09 INFO  Context:106 - Using Java 6/7 JAXB implementation
2014-03-03 11:25:17 INFO  Context:144 - Not using MOXy; using com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl
2014-03-03 11:25:18 DEBUG Context:162 - .. other contexts loaded ..
2014-03-03 11:25:18 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /word/document.xml


2014-03-03 11:25:18 INFO  PageDimensions:209 - Using paper size: LETTER
2014-03-03 11:25:18 INFO  PageDimensions:213 - Landscape orientation: false
2014-03-03 11:25:18 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-package.relationships+xml on part /_rels/.rels


2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:18 DEBUG ContentTypeManager:572 - Registered rels
2014-03-03 11:25:18 INFO  RelationshipsPart:430 - adding part with proposed name: /word/document.xml
2014-03-03 11:25:18 DEBUG RelationshipsPart:472 - Relativising target /word/document.xml against source /
2014-03-03 11:25:18 DEBUG RelationshipsPart:491 - Result word/document.xml
2014-03-03 11:25:18 DEBUG RelationshipsPart:377 - Loading part /word/document.xml
2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart
2014-03-03 11:25:18 DEBUG WordprocessingMLPackage:196 - Set shortcut for mainDoc
2014-03-03 11:25:18 INFO  Base:291 - shortcut was set
2014-03-03 11:25:18 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml on part /word/styles.xml


2014-03-03 11:25:18 INFO  JaxbXmlPartXPathAware:299 - For org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart, unmarshall via binder
2014-03-03 11:25:18 DEBUG JaxbXmlPartXPathAware:309 - info: com.sun.xml.internal.bind.v2.runtime.BinderImpl
2014-03-03 11:25:18 DEBUG XmlUtils:126 - Sun Microsystems Inc.
2014-03-03 11:25:18 DEBUG XmlUtils:127 - 1.6.0_22
2014-03-03 11:25:18 INFO  XmlUtils:158 - Using com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
2014-03-03 11:25:18 INFO  XmlUtils:201 - Using com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
2014-03-03 11:25:18 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-package.relationships+xml on part /word/_rels/document.xml.rels


2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:18 DEBUG ContentTypeManager:572 - Registered rels
2014-03-03 11:25:18 INFO  RelationshipsPart:430 - adding part with proposed name: /word/styles.xml
2014-03-03 11:25:18 DEBUG RelationshipsPart:472 - Relativising target /word/styles.xml against source /word/document.xml
2014-03-03 11:25:18 DEBUG RelationshipsPart:491 - Result styles.xml
2014-03-03 11:25:18 DEBUG RelationshipsPart:377 - Loading part /word/styles.xml
2014-03-03 11:25:18 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart
2014-03-03 11:25:18 INFO  Base:291 - shortcut was set
2014-03-03 11:25:19 INFO  XPathFactoryUtil:22 - xpath implementation: org.apache.xpath.jaxp.XPathFactoryImpl
2014-03-03 11:25:19 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-package.core-properties+xml on part /docProps/core.xml


2014-03-03 11:25:19 INFO  RelationshipsPart:430 - adding part with proposed name: /docProps/core.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:472 - Relativising target /docProps/core.xml against source /
2014-03-03 11:25:19 DEBUG RelationshipsPart:491 - Result docProps/core.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:377 - Loading part /docProps/core.xml
2014-03-03 11:25:19 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.DocPropsCorePart
2014-03-03 11:25:19 DEBUG WordprocessingMLPackage:184 - Set shortcut for docPropsCorePart
2014-03-03 11:25:19 INFO  Base:291 - shortcut was set
2014-03-03 11:25:19 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.extended-properties+xml on part /docProps/app.xml


2014-03-03 11:25:19 INFO  RelationshipsPart:430 - adding part with proposed name: /docProps/app.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:472 - Relativising target /docProps/app.xml against source /
2014-03-03 11:25:19 DEBUG RelationshipsPart:491 - Result docProps/app.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:377 - Loading part /docProps/app.xml
2014-03-03 11:25:19 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.DocPropsExtendedPart
2014-03-03 11:25:19 DEBUG WordprocessingMLPackage:188 - Set shortcut for docPropsExtendedPart
2014-03-03 11:25:19 INFO  Base:291 - shortcut was set
2014-03-03 11:25:19 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml on part /word/numbering.xml


2014-03-03 11:25:19 INFO  RelationshipsPart:430 - adding part with proposed name: /word/numbering.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:472 - Relativising target /word/numbering.xml against source /word/document.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:491 - Result numbering.xml
2014-03-03 11:25:19 DEBUG RelationshipsPart:377 - Loading part /word/numbering.xml
2014-03-03 11:25:19 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart
2014-03-03 11:25:19 INFO  Base:291 - shortcut was set
2014-03-03 11:25:19 INFO  JaxbXmlPartXPathAware:299 - For org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart, unmarshall via binder
2014-03-03 11:25:19 DEBUG JaxbXmlPartXPathAware:309 - info: com.sun.xml.internal.bind.v2.runtime.BinderImpl
2014-03-03 11:25:19 INFO  XHTMLImporterImpl:310 - tableFormatting: CLASS_PLUS_OTHER
2014-03-03 11:25:19 INFO  XHTMLImporterImpl:311 - paragraphFormatting: CLASS_PLUS_OTHER
2014-03-03 11:25:19 INFO  XHTMLImporterImpl:312 - runFormatting: CLASS_PLUS_OTHER
2014-03-03 11:25:19 INFO  MainDocumentPart:172 - Preparing StyleTree
2014-03-03 11:25:19 INFO  StyleDefinitionsPart:474 - Style with name Normal, id 'Normal' is default paragraph style
2014-03-03 11:25:19 INFO  StyleDefinitionsPart:365 - Set virtual style, id 'DocDefaults', name 'DocDefaults'
2014-03-03 11:25:19 DEBUG NamespacePrefixMapperUtils:172 - attempting to setProperty: com.sun.xml.INTERNAL.bind.namespacePrefixMapper
2014-03-03 11:25:19 DEBUG StyleDefinitionsPart:367 - <w:style w:styleId="DocDefaults" w:type="paragraph" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:ns21="urn:schemas-microsoft-com:office:powerpoint" xmlns:ns23="http://schemas.microsoft.com/office/2006/coverPageProps" xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:odx="http://opendope.org/xpaths" xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy" xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram" xmlns:ns17="urn:schemas-microsoft-com:office:excel" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:odi="http://opendope.org/components" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:ns9="http://schemas.openxmlformats.org/schemaLibrary/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:ns32="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:ns30="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:ns12="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing" xmlns:ns31="http://schemas.openxmlformats.org/drawingml/2006/compatibility" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:odq="http://opendope.org/questions" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:odc="http://opendope.org/conditions" xmlns:oda="http://opendope.org/answers">
    <w:name w:val="DocDefaults"/>
    <w:pPr>
        <w:spacing w:lineRule="auto" w:line="276" w:after="200"/>
    </w:pPr>
    <w:rPr>
        <w:rFonts w:cstheme="minorBidi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:asciiTheme="minorHAnsi"/>
        <w:sz w:val="22"/>
        <w:szCs w:val="22"/>
        <w:lang w:bidi="ar-SA" w:eastAsia="en-US" w:val="en-US"/>
    </w:rPr>
</w:style>
2014-03-03 11:25:19 INFO  StyleDefinitionsPart:474 - Style with name Default Paragraph Font, id 'DefaultParagraphFont' is default character style
2014-03-03 11:25:19 DEBUG TraversalUtil:261 - getting children of java.util.ArrayList


and the ending lines of the log containing the error
Code: Select all
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1088 - Processing children of div
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1135 - Done processing children of org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1096 - .. processed child org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1135 - Done processing children of org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1096 - .. processed child org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1135 - Done processing children of org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1096 - .. processed child org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:45 DEBUG XHTMLImporterImpl:1135 - Done processing children of org.docx4j.org.xhtmlrenderer.render.BlockBox
2014-03-03 11:25:46 DEBUG AbstractExporter:60 - Start conversion
2014-03-03 11:25:46 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /


2014-03-03 11:25:46 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /


2014-03-03 11:25:46 DEBUG WordprocessingMLPackage:184 - Set shortcut for docPropsCorePart
2014-03-03 11:25:46 DEBUG WordprocessingMLPackage:192 - Set shortcut for docPropsCustomPart
2014-03-03 11:25:46 DEBUG WordprocessingMLPackage:188 - Set shortcut for docPropsExtendedPart
2014-03-03 11:25:46 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-package.relationships+xml on part /_rels/.rels


2014-03-03 11:25:46 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:46 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.relationships.RelationshipsPart
2014-03-03 11:25:46 DEBUG ContentTypeManager:572 - Registered rels
2014-03-03 11:25:46 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /word/document.xml


2014-03-03 11:25:46 DEBUG Base:137 -
Set contentType application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml on part /word/document.xml


2014-03-03 11:25:46 DEBUG Part:212 - setPackage called for org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart
2014-03-03 11:25:46 DEBUG XmlUtils:738 - deep copy of org.docx4j.wml.Document
2014-03-03 11:25:46 ERROR DocFormatConversion:218 - Exception exporting package
org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:85)
   at org.docx4j.Docx4J.toFO(Docx4J.java:435)
   at com.rapidflowapps.subcontracting.util.convert.DocFormatConversion.convertXHTMLtoPDF_docx4j(DocFormatConversion.java:216)
   at com.rapidflowapps.subcontracting.web.AjaxSaveDocAction.downloadContract(AjaxSaveDocAction.java:199)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
   at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
   at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
   at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:161)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
   at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
   at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
   at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NumberFormatException: Zero length BigInteger
   at java.math.BigInteger.<init>(BigInteger.java:296)
   at java.math.BigInteger.<init>(BigInteger.java:470)
   at com.sun.xml.internal.bind.DatatypeConverterImpl._parseInteger(DatatypeConverterImpl.java:76)
   at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$22.parse(RuntimeBuiltinLeafInfoImpl.java:730)
   at com.sun.xml.internal.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$22.parse(RuntimeBuiltinLeafInfoImpl.java:728)
   at com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:230)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:191)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:470)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:448)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
   at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:200)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:179)
   at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:230)
   at org.docx4j.XmlUtils.deepCopy(XmlUtils.java:760)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyContent(PartialDeepCopy.java:243)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.copyPart(PartialDeepCopy.java:227)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyPart(PartialDeepCopy.java:203)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyRelationships(PartialDeepCopy.java:188)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.process(PartialDeepCopy.java:79)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:74)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:129)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:51)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:32)
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:61)
   ... 68 more
2014-03-03 11:25:46 INFO  DocFormatConversion:220 - Generated pdf with 38528 ms



once again thnx for all ur efforts !!

Re: PDF Conversion failing in Unx - tariq

PostPosted: Tue Mar 04, 2014 5:41 pm
by tariq47
Hi jason,

thnx for all your help. turns out that i was not implementing correctly the endorsed dir method for referencing newer JAXB version. Once i got that fixed, the conversion was now using new JAXB and the process was smooth.