Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Apache POI in MI #3172

Closed
SanojPunchihewa opened this issue Nov 18, 2022 · 5 comments
Closed

Upgrade Apache POI in MI #3172

SanojPunchihewa opened this issue Nov 18, 2022 · 5 comments
Assignees
Labels
Component/MI IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Normal Type/Task

Comments

@SanojPunchihewa
Copy link
Contributor

Description

In MI 4.x.x versions we are using Apache POI 3.x.x version which is outdated it's preferred to migrate to 5.x.x version. Since this is a major version change, there will be architectural changes and it's better to evaluate the feasibility and backward compatibility beforehand.

Affected Component

MI

Version

No response

Related Issues

No response

Suggested Labels

No response

@lasanthaS
Copy link
Contributor

Hi all,

I upgraded the Apache POI to its latest version i.e. 5.2.3 but encountered a few compilation issues due to API changes. I am currently looking into those issues. I will update the ticket once the issues are resolved.

Regards,
Lasantha

@lasanthaS
Copy link
Contributor

Hi all,

I could resolve the above compilation issues due to the API changes. However, I encountered a class loading issue in the poi-ooxml jar while deploying a data service. I am currently looking into that issue.

Regards,
Lasantha

@lasanthaS
Copy link
Contributor

Hi all,

We were able to resolve the above class loading issue by packing some missing resource files in poi orbit JARs. However, we are still facing a few more issues and currently looking into those.

@lasanthaS
Copy link
Contributor

Hi all,

I was able to sort the above class loading issue by restructuring OSGi imports/exports. And now the functionality is working fine. But while running tests on the micro-integrator repo, there is a test failure due to a connection refused error as the particular test server is not spawning up correctly. But once a separate MI server is deployed with those test artifacts and pointing the tests to that particular server works as expected. I am working on debugging those respective test cases to isolate the issue right now.

Thanks,
Lasantha

@lasanthaS
Copy link
Contributor

lasanthaS commented Jan 23, 2023

Hi all,

I tried updating the Apache POI version to its latest i.e. 5.2.3, however, encountered some test failures due to conflicting org.apache.xmlbeans versions in the POI dependency and the pack. It seems to be a major change from the product perspective to fix this issue, therefore holding this for a moment and will get back to it later.

Regards,
Lasantha

@tharindu1st tharindu1st transferred this issue from wso2/api-manager Mar 4, 2024
@anupama-pathirage anupama-pathirage added the IceBox Older issues that are not being actively worked on but may be revisited in the future. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component/MI IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Normal Type/Task
Projects
None yet
Development

No branches or pull requests

3 participants