javax.xml.stream.util.XMLEventAllocator not found by Aspose_Word

Hi Awais,

How are you, Hope you are doing well.

just wanted to check can you give me one demo license file through which I can test that it’s working or not at my end with my Application.

Thanks and Regards,
Subrata

@subrata.mettle,

You can request a 30-day Temporary License. Please refer to How to get a Temporary License?. Or you can contact our sales team via Aspose.Purchase forum.

Regarding WORDSJAVA-1949, this issue is currently pending for analysis and is in the queue. We will inform you via this thread as soon as this issue is resolved or any further updates are available. We apologize for your inconvenience.

@subrata.mettle,

Regarding WORDSJAVA-1949, we have completed the analysis of this issue and the root cause has been identified. To fix this issue, we will update the MANIFEST file in the next release of Aspose.Words for Java. In the meantime, while you are waiting for a fix, please use the following solution as a temporary workaround.

You need to manually import some missing classes. The following should do the trick:

<bundle>wrap:mvn:com.aspose/aspose-words/18.6-jdk16$Bundle-SymbolicName=com.aspose.words&amp;Import-Package=javax.xml.*,javax.print.*,org.w3c.*,javax.imageio.*&amp;overwrite=merge</bundle>

P.S. the above solution was taken from the following thread:
Aspose.Words NamespaceContext not found when used as OSGI

Hope, this helps.

Thanks Awais for providing the solution but can you please let me know where I have to add the above line?
in the licence File or in the POM file.

Thanks and Regards,
Subrata

@subrata.mettle,

We are checking this scenario and will get back to you soon.

@subrata.mettle,

There are several ways to do it. It depends on the environment

1) From the OSGi shell.

For example, how it works in apache-karaf is as follows:

karaf@root()> bundle:install 'wrap:file:///X:/aspose-words-18.12-jdk16.jar$Bundle-SymbolicName=com.aspose.words&Import-Package=javax.xml.*,javax.crypto.*,javax.imageio.*,javax.print.*,javax.swing.*,org.w3c.*,org.xml.*&overwrite=merge'
Bundle ID: 108

You can check what ID the Aspose.Words for Java bundle has.

karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
—±----------±----±---------------±-------------------------------------------
21 | Active | 80 | 4.2.0 | Apache Karaf :: OSGi Services :: Event
90 | Resolved | 80 | 1.0.0.SNAPSHOT | osgi-app
108 | Installed | 80 | 18.12 | Aspose.Words for Java

You can also check the overridden Import-Package:

karaf@root()> headers 108
 
Overriden headers:
		
Import-Package =
        javax.xml.namespace, // <---
        javax.xml.parsers,
        javax.xml.stream,
        javax.xml.stream.events,  // <---
        javax.xml.stream.util,
        javax.xml.transform,
        javax.xml.transform.dom,
        javax.xml.transform.sax,
        javax.xml.transform.stream,
        javax.xml.xpath,
        javax.crypto,
        javax.crypto.interfaces,
        javax.crypto.spec,
        javax.imageio,
        javax.imageio.metadata,
        javax.imageio.spi,
        javax.imageio.stream,
        javax.print,
        javax.print.attribute,
        javax.print.attribute.standard,
        javax.swing,
        org.w3c.dom,
        org.xml.sax

2) From features.xml see section 5.10. Creating bundles for non OSGi third party dependencies

I am afraid, we would not be able to work any further on this topic. However, we will include the fix of this issue in our future Aspose.Words for Java releases. We will inform you via this thread as soon as the release containing the fix of this issue will be published in future. We apologize for any inconvenience.

Hi Awais,

Thanks for all your input !

Still I am not able to figuring out how to handle missing package with the current one.

I have tried with the 18.12 latest version also , getting the same issue? is the fixed available with 18.12? or it will be released on later version?

Thanks and Regards,
Subrata

@subrata.mettle,

No, the current version 18.12 does not contain the fix of this issue. The fix will be included in future releases. We will inform you via this thread as soon as the release containing the fix of this issue will be published in future. We apologize for any inconvenience.

Hi Awais,

Can you please let us know the expected date for the next release I believe fixes will be there in 18.13 version?

By any chance can you give us the hot fix so that we can start working on our functionality before official release.

Thanks and Regards,
Subrata

@subrata.mettle,

We will release next version of Aspose.Words for Java i.e. 19.1 during the start of next week. The next version will also contain the fix of this issue.

Many Thanks @awais.hafeez for this update.

The issues you have found earlier (filed as WORDSJAVA-1949) have been fixed in this Aspose.Words for .NET 19.1 update and this Aspose.Words for Java 19.1 update.

Thanks @aspose.notifier and @awais.hafeez for all your help to resolve the Image issue in Document creation.
if any additional information require then we will inform you.

Thanks and Regards,
Subrata

@subrata.mettle,

Sure, please let us know anytime you have any further queries.