[ https://issues.apache.org/jira/browse/DIRMINA-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527054 ]
Trustin Lee commented on DIRMINA-435: ------------------------------------- I can't reproduce the problem due to some test problem. [EMAIL PROTECTED]:~/workspace/checkout/avis/java/server$ ant testsBuildfile: build.xml compile: compile: compile-main: compile-tests: compile: compile-main: compile-tests: compile: tests: tests: [junit] Running org.avis.config.JUTestOptions [junit] Testsuite: org.avis.config.JUTestOptions [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.036 sec [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.036 sec [junit] [junit] Testcase: basic took 0.013 sec [junit] Testcase: caseIndependence took 0.001 sec [junit] Testcase: units took 0.001 sec [junit] Testcase: multipleInherit took 0.001 sec [junit] Running org.avis.federation.JUTestAstXdrCoding [junit] Testsuite: org.avis.federation.JUTestAstXdrCoding [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.075 sec [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.075 sec [junit] [junit] Testcase: astIO took 0.059 sec [junit] Running org.avis.federation.JUTestFederation [junit] Testsuite: org.avis.federation.JUTestFederation [junit] Tests run: 7, Failures: 0, Errors: 5, Time elapsed: 1.54 sec [junit] Tests run: 7, Failures: 0, Errors: 5, Time elapsed: 1.54 sec [junit] ------------- Standard Output --------------- [junit] 오후 6:59:28: Info: Federation incoming link established with "primary/127.0.0.1", remote server domain "server1", federation class "null" [junit] 오후 6:59:28: Info: Federation outgoing link for ewaf://localhost:29171 established with "primary/127.0.0.1", remote server domain "server2" [junit] 오후 6:59:28: Info: Federation link for ewaf://localhost:29171 with "primary/127.0.0.1" disconnected [junit] 오후 6:59:28: Info: Federation link with "primary/127.0.0.1" disconnected [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: security took 1.455 sec [junit] Testcase: connectTimeout took 0.006 sec [junit] Caused an ERROR [junit] Address already in use [junit] java.net.BindException: Address already in use [junit] at sun.nio.ch.Net.bind(Native Method) [junit] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [junit] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:400) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:235) [junit] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [junit] at java.lang.Thread.run(Thread.java:619) [junit] [junit] Testcase: uri took 0.013 sec [junit] Testcase: basic took 0.005 sec [junit] Caused an ERROR [junit] Address already in use [junit] java.net.BindException: Address already in use [junit] at sun.nio.ch.Net.bind(Native Method) [junit] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [junit] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:400) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:235) [junit] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [junit] at java.lang.Thread.run(Thread.java:619) [junit] [junit] Testcase: addAttributes took 0.007 sec [junit] Caused an ERROR [junit] Address already in use [junit] java.net.BindException: Address already in use [junit] at sun.nio.ch.Net.bind(Native Method) [junit] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [junit] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:400) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:235) [junit] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [junit] at java.lang.Thread.run(Thread.java:619) [junit] [junit] Testcase: reconnect took 0.004 sec [junit] Caused an ERROR [junit] Address already in use [junit] java.net.BindException: Address already in use [junit] at sun.nio.ch.Net.bind(Native Method) [junit] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [junit] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:400) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:235) [junit] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [junit] at java.lang.Thread.run(Thread.java:619) [junit] [junit] Testcase: liveness took 0.004 sec [junit] Caused an ERROR [junit] Address already in use [junit] java.net.BindException: Address already in use [junit] at sun.nio.ch.Net.bind(Native Method) [junit] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [junit] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:400) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55) [junit] at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:235) [junit] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [junit] at java.lang.Thread.run(Thread.java:619) [junit] BUILD FAILED /home/trustin/workspace/checkout/avis/java/server/build.xml:79: The following error occurred while executing this line: /home/trustin/workspace/checkout/avis/java/common/build-common.xml:46: Test org.avis.federation.JUTestFederation failed Total time: 3 seconds [EMAIL PROTECTED]:~/workspace/checkout/avis/java/server$ > NullPointerException in IoServiceListenerSupport > ------------------------------------------------ > > Key: DIRMINA-435 > URL: https://issues.apache.org/jira/browse/DIRMINA-435 > Project: MINA > Issue Type: Bug > Components: Core > Affects Versions: 1.1.2 > Environment: WinXP SP 2 > java version "1.5.0_11" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) > Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) > Reporter: Matthew Phillips > > This is an odd one, since it occurs on WinXP and not on Mac OS X. The error > was seen under 1.5, but also occurs on 1.6. I see the following NPE : > ----- > Exception trace: > java.lang.NullPointerException > at java.util.concurrent.ConcurrentHashMap.hash(Unknown Source) > at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source) > at > org.apache.mina.common.support.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:152) > at > org.apache.mina.transport.socket.nio.SocketIoProcessor.doAddNew(SocketIoProcessor.java:135) > at > org.apache.mina.transport.socket.nio.SocketIoProcessor.access$300(SocketIoProcessor.java:44) > at > org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:444) > at > org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:39) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown > Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > ------ > The NPE is being caused by IoSession.getServiceAddress () returning null, > which then bombs the attempt to use it as a key in the map > (IoServiceListenerSupport:151): > SocketAddress serviceAddress = session.getServiceAddress(); // null > // Get the session set. > Set<IoSession> s = new IdentityHashSet<IoSession>(); > Set<IoSession> sessions = managedSessions.putIfAbsent(serviceAddress, > Collections.synchronizedSet(s)); > This has me stumped. Can anyone help? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.