Re: [Asterisk-java-users] Asterisk Live package
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-05-21 09:51:14
|
Hi, sure the ManagerConnectionPool is in the javadocs for 0.3: http://www.asteriskjava.org/0.3-SNAPSHOT/apidocs/org/asteriskjava/live/in= ternal/ManagerConnectionPool.html but it won't solve your problem. > I don;t know why I am getting this ClassCastException error. If I > restart the server its fine. Please help me eliminate this errors. Yo are calling login() on a connection that is already logged in. In 0.2 you get that ugly ClassCastException in 0.3 you get an IllegalStateException. So the solution is to call login() only once, e.g. when creating the ManagerConnection and not within every thread. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |