We have a java process which creates pivot tables under v2.4.3 without problems using Apsose Cells. We want to upgrade this to use v7.3.2. We have downloaded the new package and obtained a temp licence from Aspose. We have amended our java source to take account of differences between v2.4.3 and v7.3.2 and the new version compiles without problems. When we run the new version, it obtains the licence without problem - but then fails as soon as we try and create a new workbook as follows:
this.workbook = new Workbook();
…a section of our code is shown below…
// Set system
public void setLicence() throws PivException {
// Licence
try {
this.license = new License();
FileInputStream licstream = new FileInputStream(“Aspose.Cells.lic”);
this.license.setLicense(licstream);
}
catch (Exception e)
{
e.printStackTrace();
}
}
// Create workbook
public String createWorkbook(String filename) throws PivException {
if (filename.trim().equals("")) {
throw new PivException(“Filename cannot be blank.”);
}
try {
//Instantiating an Workbook object
this.workbook = new Workbook();
// Open work book
this.xstream = new FileInputStream(filename);
…we get this error…
MCH3601 Escape 40 22/10/12 12:16:56.725464 #doexcep 0001F8 QJVADBSV QSYS *STMT
To module . . . . . . . . . : QJVADBSV
To procedure . . . . . . . : main
Statement . . . . . . . . . : 12 *PRCLT
Message . . . . : Pointer not set for location referenced.
Cause . . . . . : A pointer was used, either directly or as a basing
pointer, that has not been set to an address.
JVAB56D Diagnostic 00 22/10/12 12:17:01.317728 QJVAJVMXIF QSYS *STMT QJVAJVMXIF QSYS *STMT
From module . . . . . . . . : QJVAJVMXIF
From procedure . . . . . . : sendMessage__10QjvaJvmXifFPcN21
Statement . . . . . . . . . : 10
To module . . . . . . . . . : QJVAJVMXIF
To procedure . . . . . . . : check_J9_Envvar__10QjvaJvmXifFv
MSGID TYPE SEV DATE TIME FROM PGM LIBRARY INST TO PGM LIBRARY INST
Statement . . . . . . . . . : 122
Message . . . . : Java Virtual Machine is Classic.
MCH74A5 Escape 40 22/10/12 12:20:36.717568 realcftrap2 001534 QJVAJNICLS QSYS *STMT
To module . . . . . . . . . : QJVAJNICLS
To procedure . . . . . . . : CallObjectMethodA__FP7JNIEnv_iT2P6jvalue
Statement . . . . . . . . . : 1
Message . . . . : The Java Virtual Machine has ended.
Cause . . . . . : Java Virtual Machine 1 has ended because of reason 2. The
reason codes are defined as follows: 01- A Java program called the
java.lang.System.exit method with a zero status code. 02- A Java program
called the java.lang.System.exit method with a non zero status code of 134.
No changes have been made to the system apart from changing the java source to account for differences and replacing the JAR aspose-cells-2.4.3.jar with the aspose-cells-7.3.2.jar and amending the classpath.
Hi,
Thanks for your posting and using Aspose.Cells for Java.
Please let us know your System Environment (OS, JDK etc). Please also make sure you are using all the required libararies by Aspose.Cells for Java by adding them in your class path.
These are the following.
- bcprov-jdk16-146.jar
- dom4j-1.6.1.jar
- stax2-api-3.0.2.jar
- woodstox-core-asl-4.1.1.jar
You can download them from major release as per your JDK version:
Aspose.Cells for Java 7.3.2
Once, you get all the files, then update aspose.cells.jar file with the latest version:
Aspose.Cells
for Java v7.3.2.4
Please provide us your runnable and simpler sample code replicating your issue with the latest version. Please also provide us your source files if you are using any in your code.
We will look into your issue and help you asap.