RestComm / ussdgateway

RestComm USSD Gateway
http://www.restcomm.com/
GNU Affero General Public License v3.0
90 stars 99 forks source link

XmlMAPDialog serializing Exception #18

Closed vetss closed 7 years ago

vetss commented 8 years ago

This exception may iccure in rare malformed messageflow 2015-12-07 14:18:58,096 ERROR org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl Caught exception while routing EventContext[event type id = EventTypeID[name=ss7.map.DIALOG_REJECT,vendor=org.mobicents,version=1.0] , event = DialogReject [refuseReason=RemoteNodeNotReachable, alternativeApplicationContext=null, extensionContainer=null, MAPDialogSupplementaryWrapper [wrappedDialog=MAPDialog: LocalDialogId=6 RemoteDialogId=null MAPDialogState=EXPUNGED MAPApplicationContext=MAPApplicationContext [Name=networkUnstructuredSsContext, Version=version2, Oid=0, 4, 0, 0, 1, 0, 19, 2, ] TCAPDialogState=Expunged]] , local ac = RA:MAPRA:MAPDialogActivityHandle(id=6) , address = IP: localhost , serviceID = null] java.lang.NullPointerException at org.mobicents.ussdgateway.XmlMAPDialog$1.write(XmlMAPDialog.java:631) at org.mobicents.ussdgateway.XmlMAPDialog$1.write(XmlMAPDialog.java:628) at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:836) at javolution.xml.XMLObjectWriter.write(XMLObjectWriter.java:273) at org.mobicents.ussdgateway.EventsSerializeFactory.serialize(EventsSerializeFactory.java:127) at org.mobicents.ussdgateway.slee.http.HttpServerSbb.sendHttpResponse(HttpServerSbb.java:1133) at org.mobicents.ussdgateway.slee.http.HttpServerSbb.abortHttpDialog(HttpServerSbb.java:1085) at org.mobicents.ussdgateway.slee.http.HttpServerSbb.onDialogReject(HttpServerSbb.java:719) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:479) at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379) at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126) at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:76) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) To fix it we need in XmlMAPDialog serializing check - if "dialog.messageType" is null.

vetss commented 7 years ago

Double issue: https://github.com/RestComm/ussdgateway/issues/23 I am closing it.