directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Johnson" <wjohn...@mqsoftware.com>
Subject org.apache.mina.filter.codec.ProtocolEncoderException
Date Wed, 18 Jul 2007 18:27:24 GMT
When I turn up debugging for ApacheDS and attempt to bind, the socket gets closed and I see
this in the log:
 
[13:19:19] WARN [org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler]
- [/127.0.0.1:4284] Unexpected exception forcing session to close: sending disconnect notice
to client.
org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException
 at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:241)
 at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:573)
...
 
I did notice that we were getting logging from org.apache.directory.shared.ldap.codec.TwixTransformer,
and I thought we had disabled that with the log4j.properties line:
 
log4j.logger.org.apache.directory.shared.codec=WARN

as suggested in the docs.
 
Is this a bug that I should report with Jira?
 
Here's my full log4j.properties file:
====
# This is not needed by Jetty - but it helps with many web apps.
 
# Log all info and above to the Tataki Wrapper stdout log.
log4j.rootLogger=INFO, stdout, com.mqsoftware.ws, org.apache.axis, org.apache.directory, org.apache.slide
 
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
 
# Also make a logger for the Web Services.
log4j.category.com.mqsoftware.ws=DEBUG, com.mqsoftware.ws
log4j.appender.com.mqsoftware.ws=org.apache.log4j.RollingFileAppender
# Don't inherite the stdout logger's appender
log4j.additivity.com.mqsoftware.ws=false
log4j.appender.com.mqsoftware.ws.File=qpws-sws.log
 
log4j.appender.com.mqsoftware.ws.ImmediateFlush=true
log4j.appender.com.mqsoftware.ws.Append=false
 
log4j.appender.com.mqsoftware.ws.MaxFileSize=1024Kb
# Keep one backup file
log4j.appender.com.mqsoftware.ws.MaxBackupIndex=5
 
log4j.appender.com.mqsoftware.ws.layout=org.apache.log4j.PatternLayout
log4j.appender.com.mqsoftware.ws.layout.ConversionPattern=%d [%t] %c %-5p %x - %m%n
 
# Also make a logger for Axis
log4j.category.org.apache.axis=DEBUG, org.apache.axis
log4j.appender.org.apache.axis=org.apache.log4j.RollingFileAppender
# Don't inherite the stdout logger's appender
log4j.additivity.org.apache.axis=false
log4j.appender.org.apache.axis.File=qpws-axis.log
 
log4j.appender.org.apache.axis.ImmediateFlush=true
log4j.appender.org.apache.axis.Append=false
 
log4j.appender.org.apache.axis.MaxFileSize=1024Kb
# Keep 5 backup files
log4j.appender.org.apache.axis.MaxBackupIndex=5
 
log4j.appender.org.apache.axis.layout=org.apache.log4j.PatternLayout
log4j.appender.org.apache.axis.layout.ConversionPattern=%d [%t] %c %-5p %x - %m%n
 
# Also make a logger for ApacheDS
log4j.category.org.apache.directory=DEBUG, org.apache.directory
log4j.appender.org.apache.directory=org.apache.log4j.RollingFileAppender
# Don't inherite the stdout logger's appender
log4j.additivity.org.apache.directory=false
log4j.appender.org.apache.directory.File=qpws-apacheds.log
 
log4j.appender.org.apache.directory.ImmediateFlush=true
log4j.appender.org.apache.directory.Append=false
 
log4j.appender.org.apache.directory.MaxFileSize=1024KB
# Keep 5 backup files
log4j.appender.org.apache.directory.MaxBackupIndex=5
 
log4j.appender.org.apache.directory.layout=org.apache.log4j.PatternLayout
log4j.appender.org.apache.directory.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
 
log4j.category.org.apache.slide=DEBUG, org.apache.slide
log4j.appender.org.apache.slide=org.apache.log4j.RollingFileAppender
# Don't inherite the stdout logger's appender
log4j.additivity.org.apache.slide=false
log4j.appender.org.apache.slide.File=qpws-slide.log
 
log4j.appender.org.apache.slide.ImmediateFlush=true
log4j.appender.org.apache.slide.Append=false
 
log4j.appender.org.apache.slide.MaxFileSize=1024KB
# Keep 5 backup files
log4j.appender.org.apache.slide.MaxBackupIndex=5
 
log4j.appender.org.apache.slide.layout=org.apache.log4j.PatternLayout
log4j.appender.org.apache.slide.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
 
# with these we'll not get innundated when switching to DEBUG
log4j.logger.org.apache.directory.shared.ldap.name=WARN
log4j.logger.org.springframework=WARN
log4j.logger.org.apache.directory.shared.codec=WARN
log4j.logger.org.apache.directory.shared.asn1=WARN

 

Wayne Johnson 
Senior Software Engineer 
MQSoftware, Inc. 
1660 S Highway 100 
Minneapolis, MN 55416 
(952) 345-8628 

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message