gerco/IssuesTest — Issue #55: ClassCastException on brokers with HTTP_DIRECT acceptor as primary
Author: gerco
Created: 2012-03-09 17:23:03+00:00
State: open
Labels: SonicMessageManager

Reported by Vyacheslav Belov

I found such exception (see attachment) when SMM tries to fetch brokes from my Sonic.
I dicover that this error happens when SMM trying to fetch Broker of the SSL type.
As a stopgap I add following code to Domain.java class in 180 and 202 lines:
{{{
IMgmtBeanBase mgmtBean = broker.getAcceptorsBean().getDefaultAcceptors().getPrimaryAcceptorRef();
// Skip AcceptorDirectBean type components
if (mgmtBean instanceof IAcceptorDirectBean)
continue;
}}}

This was not caused by the SSL acceptor (that would cause a NoClassDefFoundError on ProgressSSLSocketFactory) but by a HTTP_DIRECT acceptor on the broker being the primary one.