[JAVA-3829] Connection failure on OSGi environment Created: 01/Sep/20  Updated: 28/Oct/23  Resolved: 02/Sep/20

Status: Closed
Project: Java Driver
Component/s: Build
Affects Version/s: 4.1.0
Fix Version/s: 4.1.1

Type: Bug Priority: Major - P3
Reporter: Pierre-Louis JAEGER Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OSGi


Attachments: PNG File mongo failure.png    
Issue Links:
Related
related to JAVA-3656 Support Keep alive probes in Java 11+ Closed

 Description   

In scope of JAVA-3656 we added a dependency on jdk.net.ExtendedSocketOptions, which is in the package for which there previously was not a dependency. For OSGi, that means we need a new Import-Package entry in the manifest.



 Comments   
Comment by Jeffrey Yemin [ 02/Sep/20 ]

Merged PR into master and backported to 4.1.x branch.

Thanks again, gawen57@gmail.com

Comment by Githook User [ 02/Sep/20 ]

Author:

{'name': 'Pierre-Louis JAEGER', 'email': 'pilou@tour-bois.com', 'username': 'Gawen-pjr'}

Message: Add Import-Package entry for jdk.net used in SocketStreamHelper (#570)

JAVA-3829
Branch: 4.1.x
https://github.com/mongodb/mongo-java-driver/commit/1345688638f57a121410d014c1d40a63e915f393

Comment by Githook User [ 02/Sep/20 ]

Author:

{'name': 'Pierre-Louis JAEGER', 'email': 'pilou@tour-bois.com', 'username': 'Gawen-pjr'}

Message: Add Import-Package entry for jdk.net used in SocketStreamHelper (#570)

JAVA-3829
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/f4c93c9e09db25e24c00887ceb39868134b9abba

Comment by Cloud GitHub Webhooks [ 02/Sep/20 ]

jyemin merged a pull request (JAVA-3829 Fix Import-Package entry for jdk.net) into the following branch:
master: f4c93c9e09db25e24c00887ceb39868134b9abba

Comment by Jeffrey Yemin [ 02/Sep/20 ]

gawen57@gmail.com

Thanks for the report, and for the fix.  

Unfortunately, at this point we don't have any automated test coverage for OSGi environments so we didn't catch this before the release.

Comment by Pierre-Louis JAEGER [ 01/Sep/20 ]

Added pull request : https://github.com/mongodb/mongo-java-driver/pull/570

Comment by Pierre-Louis JAEGER [ 01/Sep/20 ]

The build script seems to miss an Import-Package entry for jdk.net, which causes startup failure on OSGI environment.

Generated at Thu Feb 08 09:00:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.