directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2163) ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small
Date Sat, 13 Aug 2016 11:13:22 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15419879#comment-15419879
] 

Emmanuel Lecharny commented on DIRSERVER-2163:
----------------------------------------------

Ok, so you are just using ApacheDS as a way to get LDAP requests, and to send LDAP requests,
regardless to what they do. That's fine, it would have been a valuable information to provide
in you first post.

Now, again, you are on your own. The message you get means the encoding of your response is
incorrect. It's not caused by ApacheDS in any way. When ApacheDS encodes an extended operation,
it has no knowledge about the payload (in your case the content of the 'response' part of
the extendedResponse).

Would you provide the PDU that causes the issue, and the complete description (in ASN.1 form)
of your extended operation  we might be able to give a clue about what's going on, but with
the provided information, we can't do anything.


> ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small
> --------------------------------------------------------------------
>
>                 Key: DIRSERVER-2163
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2163
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M20
>            Reporter: ewelina hojdys
>
> I've a special case. I need to send 3 extended responses for one extedned request. I'm
able to send 2 messages but when I'm sending third one I have warning:
> [2016-08-11 14:45:42,990] WARN [org.apache.directory.server.ldap.LdapProtocolHandler.exceptionCaught(LdapProtocolHandler.java:237)]
- Unexpected exception forcing session to close: sending disconnect notice to client.
> org.apache.mina.filter.codec.ProtocolEncoderException: org.apache.directory.api.ldap.codec.api.MessageEncoderException:
ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL The PDU buffer size is too small !
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:337)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1500(DefaultIoFilterChain.java:48)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953)
> 	at org.apache.mina.filter.executor.ExecutorFilter.filterWrite(ExecutorFilter.java:613)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1500(DefaultIoFilterChain.java:48)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618)
> 	at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502)
> 	at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447)
> 	at com.ericsson.transformers.ldap_proxy_plugin.ldap.handlers.ProxyExtendedRequestHandler.remoteTransportExtended(ProxyExtendedRequestHandler.java:140)
> 	at com.ericsson.transformers.ldap_proxy_plugin.ldap.handlers.ProxyExtendedRequestHandler.handle(ProxyExtendedRequestHandler.java:70)
> 	at com.ericsson.transformers.ldap_proxy_plugin.ldap.handlers.ProxyExtendedRequestHandler.handle(ProxyExtendedRequestHandler.java:29)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
> 	at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221)
> 	at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
> 	at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
> 	at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
> 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:475)
> 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:429)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.directory.api.ldap.codec.api.MessageEncoderException: ERR_00004_PDU_BUFFER_SIZE_TOO_SMALL
The PDU buffer size is too small !
> 	at org.apache.directory.api.ldap.codec.api.LdapEncoder.encodeMessage(LdapEncoder.java:213)
> 	at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolEncoder.encode(LdapProtocolEncoder.java:78)
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:306)
> 	... 28 more
> and message isn't sent. I was trying to change LdapServer PDU buffer, but it doesn't
change anything. Could you suggest me any wokraround or help me fix that issue?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message