https://issues.apache.org/bugzilla/show_bug.cgi?id=53607
Priority: P2 Bug ID: 53607 Assignee: dev@tomcat.apache.org Summary: No message set for PING: TcpPingInterceptor fail with NullPointerException in ChannelData.getDataPackageLength() Severity: normal Classification: Unclassified Reporter: frederic.arn...@gmail.com Hardware: PC Status: NEW Version: unspecified Component: Cluster Product: Tomcat 7 I added data.setMessage(new XByteBuffer(TCP_PING_DATA, false)); to TcpPingInterceptor send ping message function by: protected void sendPingMessage(Member[] members) { if ( members == null || members.length == 0 ) return; ChannelData data = new ChannelData(true);//generates a unique Id data.setAddress(getLocalMember(false)); data.setTimestamp(System.currentTimeMillis()); data.setOptions(getOptionFlag()); data.setMessage(new XByteBuffer(TCP_PING_DATA, false)); try { super.sendMessage(members, data, null); }catch (ChannelException x) { log.warn("Unable to send TCP ping.",x); } } error also for Tomcat 6 regards fred -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org