Asterisk-Java no setter and no class event registered

Hi Guys,
I am using Asterisk 11.2.1 with Asterisk-java-0.3.1.jar

I manage to connect my Asterisk with my java program.
I keep getting these errors all the time and things seem to work, but it is hard to follow my logging because every action that is done throws them :

No event class registered for event type ‘musiconhold’, attributes: {state=Start, class=default, uniqueid=1368617231.116, event=MusicOnHold, privilege=call,all, channel=SIP/1001-00000074}buildEvent returned null

No event class registered for event type ‘musiconhold’, attributes: {state=Stop, uniqueid=1368617231.116, event=MusicOnHold, privilege=call,all, channel=SIP/1001-00000074}buildEvent returned null

No event class registered for event type ‘rtcpreceived’, attributes: {highestsequence=18068, dlsr=0.0000(sec), fractionlost=0, iajitter=0, sequencenumbercycles=0, from=10.140.6.214:16289, senderssrc=0, lastsr=0.0000000000, packetslost=0, event=RTCPReceived, privilege=reporting,all, pt=200(Sender Report), receptionreports=1}buildEvent returned null

No event class registered for event type ‘varset’, attributes: {uniqueid=1368617231.116, event=VarSet, privilege=dialplan,all, value=ssrc=471130521;themssrc=416812302;lp=0;rxjitter=0.000064;rxcount=233;txjitter=0.000000;txcount=241;rlp=0;rtt=0.000000, variable=RTPAUDIOQOS, channel=SIP/1001-00000074}buildEvent returned null
No event class registered for event type ‘varset’, attributes: {uniqueid=1368617231.116, event=VarSet, privilege=dialplan,all, value=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;, variable=RTPAUDIOQOSJITTER, channel=SIP/1001-00000074}buildEvent returned nul

lNo event class registered for event type ‘varset’, attributes: {uniqueid=1368617231.116, event=VarSet, privilege=dialplan,all, value=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;, variable=RTPAUDIOQOSLOSS, channel=SIP/1001-00000074}buildEvent returned null

No event class registered for event type ‘varset’, attributes: {uniqueid=1368617231.116, event=VarSet, privilege=dialplan,all, value=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;, variable=RTPAUDIOQOSRTT, channel=SIP/1001-00000074}buildEvent returned null

No event class registered for event type ‘hanguprequest’, attributes: {uniqueid=1368617231.116, event=HangupRequest, privilege=call,all, channel=SIP/1001-00000074}buildEvent returned nullDispatching event:
org.asteriskjava.manager.event.QueueCallerAbandonEvent[dateReceived=Wed May 15 13:27:18 CEST 2013,privilege=‘agent,all’,timestamp=‘null’,position=‘1’,queue=‘support’,uniqueid=‘1368617231.116’,originalposition=‘1’,holdtime=‘5’,count=‘null’,channel=‘null’,systemHashcode=28050664]
No event class registered for event type ‘varset’, attributes: {uniqueid=1368617231.116, event=VarSet, privilege=dialplan,all, value=1, variable=QUEUEPOSITION, channel=SIP/1001-00000074}buildEvent returned nullNo event class registered for event type ‘softhanguprequest’, attributes: {cause=16, uniqueid=1368617231.116, event=SoftHangupRequest, privilege=call,all, channel=SIP/1001-00000074}buildEvent returned nullUnable to set property ‘connectedlinename’ to ‘’ on org.asteriskjava.manager.event.HangupEvent: no setterUnable to set property ‘connectedlinenum’ to ‘’ on org.asteriskjava.manager.event.HangupEvent: no setterDispatching event:
org.asteriskjava.manager.event.HangupEvent[dateReceived=Wed May 15 13:27:18 CEST 2013,privilege=‘call,all’,causetxt=‘Unknown’,callerid=‘1001’,cause=‘0’,state=‘null’,calleridname=‘Matthieu HIEl’,timestamp=‘null’,uniqueid=‘1368617231.116’,calleridnum=‘1001’,channel=‘SIP/1001-00000074’,systemHashcode=2548785]

And I hava theese error too:

Unable to set property ‘position’ to ‘1’ on org.asteriskjava.manager.event.LeaveEvent: no setter
Dispatching event:
org.asteriskjava.manager.event.LeaveEvent[dateReceived=Wed May 15 13:27:18 CEST 2013,privilege=‘call,all’,timestamp=‘null’,queue=‘support’,uniqueid=‘1368617231.116’,count=‘0’,channel=‘SIP/1001-00000074’,systemHashcode=7754385]

It is always complainig about not having a setter or there is no class registered for an event. Is there a way to fix the issue?
Do not hesitate if you want more information!

Could anyone please help me on this.
Thanks,
Matthieu

Support seems to be at sourceforge.net/mailarchive/foru … java-users

I presume that asterisk-java is out of date with respect to Asterisk. Apart from getting help from the asterisk-java people, you could look to see if there is a permission class that you don’t need, in the login information in manager.conf. It may be that you can avoid the event, by not giving read permission for that class.

Thank you for your response

I sent an e-mail to Asterisk-Java people this morning. I wait their solution…
I would like to get the most information as possible but I will see to change manager permission

Thanks again

Hi All

I have 2 questions. Please bear with me.

  1. The following message is logged on the console. Any way to prevent this. Tried adding a listener but to no avail

asteriskjava.manager.internal.EventBuilderImpl.buildEvent(EventBuilderImpl.java:296) No event class registered for event type ‘localbridge’,

  1. how can we do logging (log4j) without having to load the log4j.properties in every AGI script? Is there a “hook” somewhere?

Thanks for your help.
Murthy