Problem with change control

when a table has a format change control in the word document is being presented with the following error

(11-08-2014 16:08:46) Inicia conversión
(11-08-2014 16:08:46) Inicia Validacion Licencia
(11-08-2014 16:08:46) Fin Validacion Licencia
java.lang.RuntimeException: java.lang.NullPointerException
at com.aspose.words.ëE3.ëY(Unknown Source)
at com.aspose.words.ëE1.ëZ(Unknown Source)
at com.aspose.words.ëDN.ëZ(Unknown Source)
at com.aspose.words.ëDC.ëZ(Unknown Source)
at com.aspose.words.ëDT.ëZ(Unknown Source)
at com.aspose.words.ëE0.ëZ(Unknown Source)
at com.aspose.words.ëDZ.ëZ(Unknown Source)
at com.aspose.words.ëDQ.ëZ(Unknown Source)
at com.aspose.words.ëE3.ëV(Unknown Source)
at com.aspose.words.ëE3.ëZ(Unknown Source)
at com.aspose.words.Document.ëRy(Unknown Source)
at com.aspose.words.ëKN.ëZ(Unknown Source)
at com.aspose.words.Document.ëZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at Tester.testAspose(Tester.java:37)
at Tester.main(Tester.java:22)
Caused by: java.lang.NullPointerException
at com.aspose.words.ëZH.ëX(Unknown Source)
at com.aspose.words.ëZH.ëZ(Unknown Source)
at com.aspose.words.ëE3.ëZ(Unknown Source)
at com.aspose.words.ëE3.ëY(Unknown Source)
… 16 more

Hi Daniel,

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


  • Please attach your input Word document.
  • Please

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

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

Hi

attachment document and class used for the conversion


clase java

java.io.File importación;
java.io.FileInputStream importación;
com.aspose.words.Document importación;
com.megasoft.neon.util.ApplicationUtil importación;

public class Tester {

/ **
* @ param args
* /
(String [] args) {public void
try {
System.out.println ("(" + ApplicationUtil.todayDateHour () + ") Inicia conversión");
licencia com.aspose.words.License = new com.aspose.words.License ();
Archivo asposeLicenseFile = new File ("C: //Aspose.Words.lic");
System.out.println ("(" + ApplicationUtil.todayDateHour () + ") Inicia Validacion Licencia");
license.setLicense (new FileInputStream (asposeLicenseFile));
System.out.println ("(" + ApplicationUtil.todayDateHour () + ") Fin Validacion Licencia");
testAspose ("C: / Users / amanrique / Escritorio / 437 PES (F) DOCUMENTOS DE ESTUDIOS PREVIOS.doc");
System.out.println ("(" + ApplicationUtil.todayDateHour (+) ") Finaliza conversión");
} Catch (Exception e) {
e.printStackTrace ();
}
}

/ **
*
* @ Param nombre de archivo
*throws Excepción
* /
private static void testAspose (String filename) throws Exception {
Doc Documento = new Documento (nombre de fichero);
doc.save (filename.substring (0, filename.lastIndexOf ()) + "1.pdf" '.');
}
}

Hi Daniel,

Thanks for your inquiry. Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v14.7.0, I am unable to reproduce the shared issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v14.7.0 and let us know how it goes on your side. I hope, this will help. I have attached the output Pdf document with this post for your kind reference.

hi

cambiar la biblioteca y el error persiste

Hi Daniel,

Thanks for your inquiry. Could you please zip the Jar files which you are using in your project and share that zip file here for investigation purposes. I will investigate the issue and provide you more information.

Hi
attachment lib

Hi Daniel,

Thanks
for your feedback. You have shared the Aspose.Words Jar file. Please share the Jar file which you are using in your project e.g saaj.jar, sandbox.jar etc. Please check the error.png here. Moreover, please share following detail also.

What environment are you running on?

  • OS (Windows Version or Linux Version)
  • Architecture (32 / 64 bit)
  • Java version


  • Windows 7 Professional
  • 32 bits
  • java 6

Hi Daniel,

I am afraid I have not found the requested Jar files in attachment. You shared the Aspose.Words Jar file only. Please
share the Jar file which you are using in your project e.g saaj.jar,
sandbox.jar etc.


I have tested the scenario at Windows 7, Java 6 using latest version of Aspose.Words v14.7.0 and have not found the shared issue. I have attached the output Pdf file with this post for your kind reference.

I suggest you please create a separate application and convert the Doc to Pdf and share your findings here for our reference. Please include only Aspose.Words Jar file in your application.

Moreover, please make sure that you have shared the correct Word document in this forum thread for which you are getting the exception.