Skip to main content

exception when delivery Event

3 replies [Last post]
scottjg
Offline
Joined: 2008-08-21
Points: 0

Hi,

I'm trying to send event to my SBB. When I start Jboss and deploy service everything work fine. When I try to uninstall service via management-console, make change in service logic, re-compile and then deploy service again something is wrong. Service is deployed correctly, recieve ServiceStartedEvent and when I try send my event again I get something like that (I left some debug information):

14:38:30,350 DEBUG [SbbEntity] invoking event handler onTPCCMakeCallEvent on pl.ivmx.vpabx.sbb.CallForwardingSbbImpl ID SbbID[CallForwarding SBB#pl.ivmx#1.0] sbbEntity
s.slee.runtime.SbbEntity@fd8088 currentEvent SleeEventImpl.toString() = {
eventID = EventTypeID[pl.ivmx.vpabx.event.TPCCMakeCallEvent#pl.ivmx.vpabx#1.0], #50
activitycontext = 10efdd245489da50:-33559df5:11c6b269397:-7fa9
eventObject = TPCCMakeCallEvent[-1411288639]
address = null
activity = org.mobicents.slee.runtime.facilities.NullActivityImpl@5731d872}
14:38:30,430 DEBUG [SbbEntity] EventType IDEventTypeID[pl.ivmx.vpabx.event.TPCCMakeCallEvent#pl.ivmx.vpabx#1.0], #50
14:38:30,430 DEBUG [SbbEntity] EventDescriptor IDorg.mobicents.slee.container.management.EventTypeDescriptorImpl@b842ee
14:38:30,430 DEBUG [SbbEntity] event className is pl.ivmx.vpabx.event.TPCCMakeCallEvent
14:38:30,430 DEBUG [SbbEntity] event class is ARGS[0] of the event handler: args[0] == class pl.ivmx.vpabx.event.TPCCMakeCallEvent
14:38:30,450 DEBUG [SbbEntity] parameter [0] pl.ivmx.vpabx.event.TPCCMakeCallEvent
14:38:30,600 DEBUG [SbbEntity] **PARAMETER 0 IS:TPCCMakeCallEvent[-1411288639]
14:38:30,600 DEBUG [SbbEntity] **PARAM 0 class is:pl.ivmx.vpabx.event.TPCCMakeCallEvent
14:38:30,600 DEBUG [SbbEntity] In getSbbDescriptor
14:38:30,600 DEBUG [SbbEntity] **PARAMETER 1 IS:org.mobicents.slee.runtime.ActivityContextInterfaceImpl@1f448aa
14:38:30,600 DEBUG [SbbEntity] **PARAM 1 class is:org.mobicents.slee.runtime.ActivityContextInterfaceImpl
14:38:30,600 DEBUG [SbbEntity] Invoking event handler:public void pl.ivmx.vpabx.sbb.CallForwardingSbb.onTPCCMakeCallEvent(pl.ivmx.vpabx.event.TPCCMakeCallEvent,javax.sl
ontextInterface)
14:38:30,600 DEBUG [SbbEntity] In getSbbDescriptor
14:38:30,600 ERROR [EventRouterImpl] Failure while routing event; second phase. Event Posting [eventTypeId:EventTypeID[pl.ivmx.vpabx.event.TPCCMakeCallEvent#pl.ivmx.vpa
, event:TPCCMakeCallEvent[-1411288639], activity:org.mobicents.slee.runtime.facilities.NullActivityImpl@5731d872, address:null]
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mobicents.slee.runtime.SbbEntity.invokeEventHandler(SbbEntity.java:1389)
at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1098)
at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:73)
at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:167)
at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
at java.lang.Thread.run(Thread.java:619)
14:38:30,690 INFO [ActivityContext] ActivityContext[ID:10efdd245489da50:-33559df5:11c6b269397:-7fa9],
SbbAttachmentSet: [150_10efdd245489da50:-33559df5:11c6b269397:-7fa8],
Transaction[ID:TransactionImpl:XidImpl [FormatId=257, GlobalId=jamkag//91, BranchQual=]]
14:38:30,690 DEBUG [EventRouterImpl] ATTACHMENT SET: [10efdd245489da50:-33559df5:11c6b269397:-7fa8]
14:38:30,700 DEBUG [EventRouterImpl] sbbEntityId is 10efdd245489da50:-33559df5:11c6b269397:-7fa8
14:38:30,811 DEBUG [EventRouterImpl] DELIVERED SET: [10efdd245489da50:-33559df5:11c6b269397:-7fa8]
14:38:30,811 ERROR [EventRouterImpl] Caught RuntimeException in invoking SLEE originated invocation
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mobicents.slee.runtime.SbbEntity.invokeEventHandler(SbbEntity.java:1389)
at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1098)
at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:73)
at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:167)
at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
at java.lang.Thread.run(Thread.java:619)

Does anybody now what is wrong?
Thanks for help in advance!

scottjg

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10
Points: 0

That is an issue with old version classloaders not being removed or javassist class generation data not being cleared, we faced this issue some time ago, is this hapenning with Mobicents 1.2.0.CR1 or CR2?

If yes please describe what is your service (sbbs, custom acis, etc..) and what do you update, that on redeploy raises the problem on the event router, so we can replicate it.

Thanks,
Eduardo

scottjg
Offline
Joined: 2008-08-21
Points: 0

Thanks.

We are using Mobicents 1.0.03.GA stable version. I send custom event created by me (pl.ivmx.vpabx.event.TPCCMakeCallEvent) via SleeConection to my SBB (pl.ivmx.vpabx.sbb.CallForwardingSbb). Method signature handler method is onTPCCMakeCallEvent(pl.ivmx.vpabx.event.TPCCMakeCallEvent,javax.sl
ontextInterface).
In sbb.jar I set:

TPCCMakeCallEvent

pl.ivmx.vpabx.event.TPCCMakeCallEvent
pl.ivmx.vpabx
1.0

initialEventSelect

I'm using bin shell script to activete SBB.

I changed eg. log message to get more information.

scottjg

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

Please use last version available, i's a hugggge step since the version you are using, in every way.