Projects tigase _server server-core Issues #1071
NPE in IOService.accept (#1071)
wojciech.kapcia@tigase.net opened 5 years ago
[2019-09-02 19:57:15:621] [FINE    ] [scheduler_pool-14-thread-1-c2s ] ConnectionManager$1.run(): Reconnecting service for component: s2s, to remote host: 404.city on port: 5269
[2019-09-02 19:57:15:621] [FINE    ] [scheduler_pool-14-thread-1-c2s ] ConnectionManager.startService(): Starting service: {cert-required-domain=404.city, cid=tigase.im@404.city, ifc=[Ljava.lang.String;@9f60f85, local-hostname=tigase.im, port-no=5269, remote-hostname=404.city, remote-ip=2001:41d0:203:5368:0:0:0:2, s2s-connection-key=S2S: null, socket=plain, srv-type=_xmpp-server._tcp, type=connect}
[2019-09-02 19:57:15:622] [FINEST  ] [scheduler_pool-14-thread-1-c2s ] ConnectionManager$ConnectionListenerImpl.accept(): Accept called for service: tigase.im@404.city, port_props: {cert-required-domain=404.city, cid=tigase.im@404.city, ifc=[Ljava.lang.String;@9f60f85, local-hostname=tigase.im, port-no=5269, remote-hostname=404.city, remote-ip=2001:41d0:203:5368:0:0:0:2, s2s-connection-key=S2S: null, socket=plain, srv-type=_xmpp-server._tcp, type=connect}
[2019-09-02 19:57:15:622] [FINEST  ] [scheduler_pool-14-thread-1-c2s ] ConnectionManager$ConnectionListenerImpl.accept(): Problem reconnecting the service: CID: tigase.im@404.city, null, type: connect, Socket: null, jid: null, port_props:  %s
java.lang.NullPointerException
	at tigase.net.IOService.accept(IOService.java:134)
	at tigase.server.ConnectionManager$ConnectionListenerImpl.accept(ConnectionManager.java:1199)
	at tigase.net.ConnectionOpenThread.addAllWaiting(ConnectionOpenThread.java:250)
	at tigase.net.ConnectionOpenThread.run(ConnectionOpenThread.java:207)
	at java.base/java.lang.Thread.run(Thread.java:834)
wojciech.kapcia@tigase.net commented 5 years ago

It's "by design" as a control measure to handle reconnection. I improved logging to avoid confusion. While working on it I caught small issue with IP handling (always single IP was used instead of trying them all) and improved DNS resolution (consider entries priority)

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.1.0
Spent time
11h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1071
Please wait...
Page is in error, reload to recover