Comments (8)
Although I had never seen this warning before, I believe that I have been able to identify and correct the problem.
Virtually all public classes within the LDAP SDK include a ThreadSafety annotation that is intended to provide developers with information about whether or not instances of that class are expected to be safe for concurrent use across multiple threads. The ThreadSafety annotation should include a ThreadSafetyLevel value, where ThreadSafetyLevel is an enum with values like COMPLETELY_THREADSAFE, MOSTLY_THREADSAFE, MOSTLY_NOT_THREADSAFE, and NOT_THREADSAFE (and in cases where the value is MOSTLY_THREADSAFE or MOSTLY_NOT_THREADSAFE, the Javadoc should provide more details about which uses are/are not threadsafe).
I believe that the problem you've encountered is that the ThreadSafetyLevel enum was marked with a ThreadSafety annotation, and that annotation included a ThreadSafetyLevel value. The compiler doesn't like that the enum is marked with an annotation that references a value of that enum.
I have just committed an update to the LDAP SDK that removed the ThreadSafety annotation from the ThreadSafetyLevel enum, and I believe that this should fix the problem.
from ldapsdk.
That would be great thank you!
from ldapsdk.
The commit is in the repository now, so you can check out and build the LDAP SDK for yourself to see if that fixes the problem. The code in the repository is always kept in a production-ready state, so you shouldn't have any concerns about using a jar that you built for yourself. As long as you don't alter the LDAP SDK itself when you build it, we will provide the same level of support for any version that you build yourself as we do for official builds that we release.
from ldapsdk.
I've tested the fix, and it works now. Do you have any idea when you might publish the next release? I'm asking because we are moving toward a maven build which automatically resolves external dependencies (hopefully including the ldapsdk).
For now, we'll keep using the manually built jar. Thank you for the quick support!
from ldapsdk.
I don't have a specific date right now, but my guess is that the next official release will be in mid to late December. It will almost certainly be before the end of the year.
from ldapsdk.
Great, thank you for your help
from ldapsdk.
I've been dealing with this warning as well. Looking forward to the next release!
from ldapsdk.
With the new release, I assume that this issue can now be closed. Thanks for the help.
from ldapsdk.
Related Issues (20)
- Unable to add entries to LDAP server HOT 1
- Is there way to use objectGuid instead of dn in API ? HOT 1
- What is the best option to remove object by objectGuid ? HOT 2
- Is there way to add user to multiple groups using single ldap request ? HOT 5
- How to get group by primaryGroupId ? How to convert primaryGroupId to groupDn? HOT 8
- How to search entry by operational attribute (PrimaryGroupToken)? HOT 2
- search with ALL_OPERATIONAL_ATTRIBUTES doesn't return any operational attributes HOT 2
- Filter.createSubstringFilter with "subInitial" or "subFinal" set to an empty string HOT 1
- Unable to login with AdditionalBindCredentials when certain OperationTypes are part of AuthenticationRequiredOperationTypes (Supressing Anonymous Connections) HOT 3
- Metric to show potentially available connections HOT 3
- Memory 'leak' in GSSAPIBindRequest HOT 5
- transactions support in unboundid ldap HOT 3
- Is there way to encrypt LDAP password ? (at least Base 64) HOT 1
- Is there way to get page number N during pagination request without iterating over previous pages ? HOT 13
- IdleTimeout parameter for pooled connections HOT 6
- KeyStoreKeyManager doesn't expose alternative KeyStore loading mechanisms. HOT 4
- InMemoryDirectoryServer is single threaded and blocks for searches HOT 1
- Simple bind fails if password contains latin character HOT 2
- multihomed ldap server HOT 3
- Unable to read or decode an LDAP message: Invalid value length of 0 for an ASN.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldapsdk.