jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-7486) mongo-srv schema doesn't work in OSGi
Date Thu, 01 Nov 2018 10:46:00 GMT

     [ https://issues.apache.org/jira/browse/OAK-7486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcel Reutegger resolved OAK-7486.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.10

Fixed by updating the driver to 3.8.2. See OAK-7645.

> mongo-srv schema doesn't work in OSGi
> -------------------------------------
>
>                 Key: OAK-7486
>                 URL: https://issues.apache.org/jira/browse/OAK-7486
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk, mongomk
>    Affects Versions: 1.9.0
>            Reporter: Tomek Rękawek
>            Assignee: Marcel Reutegger
>            Priority: Major
>             Fix For: 1.10, 1.9.10
>
>
> The mongo-java-driver 3.6.x introduces a new URI schema support, which allows to reduce
the length of the MongoDB Atlas connection string: mongo-srv. However, it doesn't work in
the OSGi environment. Following exception is logged when trying to use {{mongo-srv}} URIs:
> {noformat}
> 08.05.2018 13:18:51.063 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-store-document
bundle org.apache.jackrabbit.oak-store-document:1.9.0 (108)[org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(224)]
: The activate method has thrown an exception (java.lang.NoClassDefFoundError: javax/naming/NamingException)
> java.lang.NoClassDefFoundError: javax/naming/NamingException
>         at com.mongodb.ConnectionString.<init>(ConnectionString.java:321) [org.mongodb.mongo-java-driver:3.6.3]
>         at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:234) [org.mongodb.mongo-java-driver:3.6.3]
>         at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:216) [org.mongodb.mongo-java-driver:3.6.3]
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStore(DocumentNodeStoreService.java:279)
[org.apache.jackrabbit.oak-store-document:1.9.0]
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStoreIfPossible(DocumentNodeStoreService.java:252)
[org.apache.jackrabbit.oak-store-document:1.9.0]
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.activate(DocumentNodeStoreService.java:236)
[org.apache.jackrabbit.oak-store-document:1.9.0]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message