directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Breu <...@hot-shot.com>
Subject [ApacheDS]: Error in Kerberos part when building
Date Fri, 21 Nov 2008 09:40:52 GMT
hi list

here's what happened:

a) checkout mina 2 trunk, build successful
b) update working copy of apacheds-mina
c) superclean
d) successful build of daemon
e) tried to build whole project -> fail

here is what went wrong:

-------------------------------------------------------------------------------
Test set: org.apache.directory.server.kerberos.kdc.SaslGssapiBindITest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.87 sec 
<<< FAILURE!
testSaslGssapiBind(org.apache.directory.server.kerberos.kdc.SaslGssapiBindITest)  
Time elapsed: 3.862 sec  <<< ERROR!
java.lang.IllegalArgumentException: maximumPoolSize: 0
    at 
org.apache.mina.filter.executor.OrderedThreadPoolExecutor.<init>(OrderedThreadPoolExecutor.java:113)
    at 
org.apache.mina.filter.executor.OrderedThreadPoolExecutor.<init>(OrderedThreadPoolExecutor.java:100)
    at 
org.apache.mina.filter.executor.OrderedThreadPoolExecutor.<init>(OrderedThreadPoolExecutor.java:86)
    at 
org.apache.mina.filter.executor.OrderedThreadPoolExecutor.<init>(OrderedThreadPoolExecutor.java:81)
    at 
org.apache.mina.filter.executor.OrderedThreadPoolExecutor.<init>(OrderedThreadPoolExecutor.java:77)
    at 
org.apache.directory.server.ldap.LdapService.start(LdapService.java:335)
    at 
org.apache.directory.server.unit.AbstractServerTest.setUp(AbstractServerTest.java:273)
    at 
org.apache.directory.server.kerberos.kdc.SaslGssapiBindITest.setUp(SaslGssapiBindITest.java:84)
    at junit.framework.TestCase.runBare(TestCase.java:132)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
    at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)



And here is line 335 in LdapService.java:



 // Now inject an ExecutorFilter for the write operations
        // We use the same number of thread than the number of IoProcessor
        // (NOTE : this has to be double checked)
        ((DefaultIoFilterChainBuilder)chain).addLast( "executor",
                new ExecutorFilter( new OrderedThreadPoolExecutor( 
getNbTcpThreads() ),
                    IoEventType.WRITE ) );



Mime
View raw message