IsLicensed method failing, Aspose Cells for Java

Hi team!

I am using Aspose cells for Java, and when calling the method isLicensed I am always getting false, even after I set my license correctly.

Here is my code sample:

public class Main {
    public static void main(String[] args) throws Exception
    {
        //Workbook wbk = SaveFileWithLicense();

        Workbook wbk = SaveFileWithoutLicense();

        if (!wbk.isLicensed())
        {
            throw new Exception("The Aspose Cells license is quietly failing, and we're now running an evaluation version");
        }
    }

    public static Workbook SaveFileWithLicense() throws Exception
    {
        com.aspose.cells.License license = new com.aspose.cells.License();
        license.setLicense("C:\\MyPath\\Aspose.Cells.Java.lic");

        Workbook wbk = new Workbook("C:\\MyPath\\SampleExcelFile.xlsx");

        wbk.save("C:\\MyPath\\output_with_license.xlsx");

        return wbk;
    }

    public static Workbook SaveFileWithoutLicense() throws Exception
    {
        Workbook wbk = new Workbook("C:\\MyPath\\SampleExcelFile.xlsx");

        wbk.save("C:\\MyPath\\output_without_license.xlsx");

        return wbk;
    }
}

resources.zip (13.4 KB)

I always run one method at a time. I know the license works because of the output files, but the method is not working properly.

Please help me if I am using the method incorrectly.

@carlos.molina
By using sample code for testing, we can reproduce the issue. It is found that after setting the license, calling the Workbook. isLicensed () method still gets false.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSJAVA-45677

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@carlos.molina ,

This is to inform you that your issue (logged as “CELLSJAVA-45677”) has been resolved. The fix will be included in an upcoming release (Aspose.Cells v23.11) that we plan to release in the first half of November. You will be notified when new versions are released.

1 Like

The issues you have found earlier (filed as CELLSJAVA-45677) have been fixed in Aspose.Cells for Java 23.11.