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] [Comment Edited] (DIRSERVER-2174) ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE, tag 0x47
Date Tue, 06 Dec 2016 04:41:01 GMT

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

Emmanuel Lecharny edited comment on DIRSERVER-2174 at 12/6/16 4:40 AM:
-----------------------------------------------------------------------

2 things :
- first, set the logs level so that you don't get so many logs. There is a log4j.properties
file where you can tweak the logs to fit your need
- second, don't let any application but those needing to access the LDAP server send request
which are not LDAP.

The log you provided shows that the LDAP server is receiving plain HTTP requests on port 10389,
which does not make any sense :

{noformat}
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A 
G  E  T     /     H  T  T  P  /  1  .  1

55 73 65 72 2D 41 67 65 6E 74 3A 20 63 75 72 6C 2F 37 2E 32 39 2E 30 0D 0A
U  s  e  r  -  A  g  e  n  t  :     c  u  r  l  /  7  .  2  9  .   0

48 6F 73 74 3A 20 31 32 37 2E 30 2E 30 2E 31 3A 31 30 33 38 39 0D 0A 
H  o  s  t  :     1  2  7  .  0  .  0  .  1  :  1  0  3  8  9

41 63 63 65 70 74 3A 20 2A 2F 2A 0D 0A 
A  c  c  e  p  t  :     *  /  *

0D 0A 
00 00
etc, etc.
{noformat}


was (Author: elecharny):
2 things :
- first, set the logs level so that you don't get so many logs. There is a log4j.properties
file where you can tweak the logs to fit your need
- second, don't let any application but those needing to access the LDAP server send request
which are not LDAP.

The log you provided sows that the LDAP server s receiving plain HTTP requests on port 10389,
which does not make any sense :

{noformat}
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A 
G  E  T     /     H  T  T  P  /  1  .  1

55 73 65 72 2D 41 67 65 6E 74 3A 20 63 75 72 6C 2F 37 2E 32 39 2E 30 0D 0A
U  s  e  r  -  A  g  e  n  t  :     c  u  r  l  /  7  .  2  9  .   0

48 6F 73 74 3A 20 31 32 37 2E 30 2E 30 2E 31 3A 31 30 33 38 39 0D 0A 
H  o  s  t  :     1  2  7  .  0  .  0  .  1  :  1  0  3  8  9

41 63 63 65 70 74 3A 20 2A 2F 2A 0D 0A 
A  c  c  e  p  t  :     *  /  *

0D 0A 
00 00
etc, etc.
{noformat}

> ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE, tag 0x47
> -----------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-2174
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2174
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: asn1
>    Affects Versions: 2.0.0-M23
>         Environment: Docker containers on Jelastic. Created containers with Alpine 3.4
as well as CentOS 7 and both result in the same 'ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition
from state START_STATE, tag 0x47' error.
>            Reporter: Mark van den Broek
>            Priority: Critical
>
> Running ApacheDS 2.0.0-M23 results in a huge amount of the error listed below in apacheds.log.
Log file grows > 100 MB within a day. ApacheDS however seems to function properly. I can
connect to it and manage it with Apache Directory Studio. The huge amount of errors and the
64Kb hexdump on every occurrence, renders ApacheDS completely unusable.
> {{[12:17:20] ERROR [org.apache.directory.api.asn1.ber.grammar.AbstractGrammar] - ERR_00001_BAD_TRANSITION_FROM_STATE
Bad transition from state START_STATE, tag 0x47
> [12:17:20] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception
forcing session to close: sending disconnect notice to client.
> org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.directory.api.ldap.codec.api.ResponseCarryingException:
ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE, tag 0x47 (Hexdump:
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A 55 73 65 72 2D 41 67 65 6E 74 3A 20 63 75
72 6C 2F 37 2E 32 39 2E 30 0D 0A 48 6F 73 74 3A 20 31 32 37 2E 30 2E 30 2E 31 3A 31 30 33
38 39 0D 0A 41 63 63 65 70 74 3A 20 2A 2F 2A 0D 0A 0D 0A 00 00 ... [snip 64Kb!] ... 00 00)
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:239)
> 	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.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1097)
> 	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.directory.api.ldap.codec.api.ResponseCarryingException: ERR_00001_BAD_TRANSITION_FROM_STATE
Bad transition from state START_STATE, tag 0x47
> 	at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:178)
> 	at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:94)
> 	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:230)
> 	... 15 more
> Caused by: org.apache.directory.api.asn1.DecoderException: ERR_00001_BAD_TRANSITION_FROM_STATE
Bad transition from state START_STATE, tag 0x47
> 	at org.apache.directory.api.asn1.ber.grammar.AbstractGrammar.executeAction(AbstractGrammar.java:125)
> 	at org.apache.directory.api.asn1.ber.Asn1Decoder.treatTLVDoneState(Asn1Decoder.java:600)
> 	at org.apache.directory.api.asn1.ber.Asn1Decoder.decode(Asn1Decoder.java:736)
> 	at org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:145)
> 	... 17 more}}



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

Mime
View raw message