On Mon, Feb 10, 2020, at 17:37, Emmanuel Lécharny wrote:
> Hi !
> 
> 
>   Can you provide the stack trace, and the entry you are trying to read ?
> 
> I'm interested to know on which attribute it fails.
> 
> 
> Thanks !
> 
> On 10/02/2020 22:36, Lucas Raab wrote:
> > This time with attachments :)
> >
> > On Mon, Feb 10, 2020 at 03:32:36PM -0600, Lucas Raab wrote:
> >> Hello,
> >>
> >> I'm getting NPE's while attempting to read from a fresh AD install with
> >> a 2012R2 level domain. If I don't load the schema (relaxed or strict),
> >> the search runs normally. if I do load the schema, then the search
> >> throws the NPE. No error is thrown when I attempted similar searches
> >> against an OpenDJ 6.5 server.
> >>
> >> It appears to come from attempting to determine if an LdapSyntax from
> >> an AttributeType is human readable or not. The LdapSyntax object looks
> >> to be null, but is visible when dumping the AttributeType. I'm not
> >> entirely sure where the schema-aware attribute loading is happening to
> >> try and fix it myself so here I am :)
> >>
> >> Attached is a log and sample source file. I can provide credentials in
> >> a private mail for any debugging.
> >>
> >> Thanks,
> >> Lucas
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: api-unsubscr...@directory.apache.org
> >> For additional commands, e-mail: api-h...@directory.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: api-unsubscr...@directory.apache.org
> For additional commands, e-mail: api-h...@directory.apache.org
> 
>

Hm, the log I attached seems to have been dropped...

Here's the stack trace and let me know if you need/want more

2020-02-10 15:16:24,027 DEBUG - Attribute: cn: Test Bind
2020-02-10 15:16:24,027 DEBUG - Attribute: cn: Test Bind
2020-02-10 15:16:24,027 WARN  - 
java.lang.NullPointerException
  at 
org.apache.directory.api.ldap.model.entry.DefaultAttribute.<init>(DefaultAttribute.java:424)
  at 
org.apache.directory.api.ldap.model.entry.DefaultEntry.<init>(DefaultEntry.java:324)
  at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.searchResultEntryReceived(LdapNetworkConnection.java:2818)
  at 
org.apache.directory.ldap.client.api.LdapNetworkConnection.messageReceived(LdapNetworkConnection.java:2944)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128)
  at 
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413)
  at 
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128)
  at 
org.apache.mina.filter.ssl.SslHandler.flushMessageReceived(SslHandler.java:330)
  at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:552)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128)
  at 
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
  at 
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:643)
  at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:539)
  at 
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)
  at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1222)
  at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1211)
  at 
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)
  at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
  at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  at java.base/java.lang.Thread.run(Thread.java:834)

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@directory.apache.org
For additional commands, e-mail: api-h...@directory.apache.org

Reply via email to