[JAVA-2792] Server Connection Created: 26/Feb/18 Updated: 11/Sep/19 Resolved: 01/Mar/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | pritam dhuri | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
I trying to connect server but I am getting this error Error , }]_ This is my Code: // Creating a Mongo client System.out.println("Connected to the database successfully "); // Accessing the database //Getting the iterable object String s = null; } catch (Exception e) { e.printStackTrace(); Log.i("TAG",""+e); }return s;_ |
| Comments |
| Comment by Ross Lawley [ 01/Mar/18 ] |
|
Thanks pritam@affwl.com - that makes more sense now - due to the limitations of Android JRE the classes aren't available to support Scram Sha 1 authentication. Currently, there are no plans to support this, so I'm closing the ticket as Won't Fix. |
| Comment by pritam dhuri [ 01/Mar/18 ] |
|
Hi Ross Lawley.. Error Message , caused by {java.lang.NoClassDefFoundError: com.mongodb.connection.ScramSha1Authenticator$ScramSha1SaslClient}}] |
| Comment by Ross Lawley [ 27/Feb/18 ] |
|
Hi pritam@affwl.com, The java.lang.NoClassDefFoundError: com.mongodb.connection.ScramSha1Authenticator$ScramSha1SaslClient error points to an incorrectly setup Mongo Java Driver. Please check the class path and ensure you have all the dependencies installed - crucial if downloading the jars manually and not using the uber jar. Please see the installation guide for more information. Just for future reference the best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support. All the best, Ross |