NPE in CustomXMLBinding with old JAXB 2.1.2
Posted: Mon Oct 18, 2010 4:49 am
Hello,
I have recently come across docx4j which by far is the best doc generation that I have found for java.
My setup includes:
docx4j-2.5.0
JAXB2_20100510.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.2.jar
jaxp-api-1.4.1.jar
jre1.5.0_11
While I have managed to create a sample docx file, I would like to use custom XML binding.
I am trying to run the sample CustomXMLBinding.java.It throws an exception which I have attached as txt file in "Exception.zip".
I can see the dynamic value that I inject through code in the customXml(item1.xml) but due to this exception, the main document.xml is empty which is because it is failing when trying applyBindings?
I have referred the previous forums regarding the NPE but the example I am using already has .toLowerCase() applied on itemId.
Thanks in advance.
I have recently come across docx4j which by far is the best doc generation that I have found for java.
My setup includes:
docx4j-2.5.0
JAXB2_20100510.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.2.jar
jaxp-api-1.4.1.jar
jre1.5.0_11
While I have managed to create a sample docx file, I would like to use custom XML binding.
I am trying to run the sample CustomXMLBinding.java.It throws an exception which I have attached as txt file in "Exception.zip".
I can see the dynamic value that I inject through code in the customXml(item1.xml) but due to this exception, the main document.xml is empty which is because it is failing when trying applyBindings?
I have referred the previous forums regarding the NPE but the example I am using already has .toLowerCase() applied on itemId.
Thanks in advance.