directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Henne (JIRA) <>
Subject [jira] Commented: (DIRSERVER-699) Known Controls except PSearchControl cause NPE
Date Tue, 08 Aug 2006 07:25:16 GMT
    [ ] 
Jörg Henne commented on DIRSERVER-699:

Sure. Here we go:

[09:22:19] WARN [$LdapProtocolHandler]
- [/] Unexpected exception forcing session to close: sending disconnect notice
to client.
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.NullPointerException (Hexdump:
	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(
	at org.apache.mina.filter.ThreadPoolFilter.processEvent(
	at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(
	at org.apache.mina.filter.ThreadPoolFilter$
Caused by: java.lang.NullPointerException
	at org.apache.mina.filter.codec.asn1.Asn1CodecDecoder.decode(
	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(
	... 6 more

What I failed to mention is that the control I tries to use was the SubentriesControl.
The exception is not that odd actually, if you look at the code:

- TwixTransformer:742 initializes the ControlImpl to null
- in :746 PSearchControls are handled
- in :757 the generic ones with just a byte array
- both conditions above don't catch,
- therefore we fall out at the bottom and try to add a null ControlImpl in :783.

> Known Controls except PSearchControl cause NPE
> ----------------------------------------------
>                 Key: DIRSERVER-699
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0-RC4
>            Reporter: Jörg Henne
> Known controls, i.e. those which are decoded to a class instance instead of a byte array,
cause a NPE as the TwixTransformer:783 tries to set a null value to the snickersMessage.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message