Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when trying to play announcement #162

Closed
abhayani opened this issue May 27, 2016 · 1 comment
Closed

NPE when trying to play announcement #162

abhayani opened this issue May 27, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@abhayani
Copy link

We get below NPE when trying to play announcement. I am not sure if this is because the media file format was unsupported by MMS?

2016-05-26 06:52:44,045 DEBUG MgcpProvider Dispatching message
2016-05-26 06:52:44,046 INFO MgcpTransaction tx=147533879 Started, message= MDCX mobicents/ivr/[email protected]:2527, call agent = /10.172.241.2:2827
2016-05-26 06:52:44,050 ERROR Task Could not execute task 8425: null
java.lang.NullPointerException
at org.mobicents.media.server.mgcp.pkg.au.Play.startAnnouncementPhase(Play.java:176)
at org.mobicents.media.server.mgcp.pkg.au.Play.execute(Play.java:115)
at org.mobicents.media.server.mgcp.controller.Request.execute(Request.java:142)
at org.mobicents.media.server.mgcp.tx.cmd.NotificationRequestCmd$Executor.perform(NotificationRequestCmd.java:213)
at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
at org.mobicents.media.server.scheduler.PriorityQueueScheduler$WorkerThread.run(PriorityQueueScheduler.java:424)
2016-05-26 06:52:44,051 ERROR MgcpTransaction tx=147533875 Failed
java.lang.NullPointerException
at org.mobicents.media.server.mgcp.pkg.au.Play.startAnnouncementPhase(Play.java:176)
at org.mobicents.media.server.mgcp.pkg.au.Play.execute(Play.java:115)
at org.mobicents.media.server.mgcp.controller.Request.execute(Request.java:142)
at org.mobicents.media.server.mgcp.tx.cmd.NotificationRequestCmd$Executor.perform(NotificationRequestCmd.java:213)
at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
at org.mobicents.media.server.scheduler.PriorityQueueScheduler$WorkerThread.run(PriorityQueueScheduler.java:424)
2016-05-26 06:52:44,051 INFO MgcpTransaction tx=147533875 Rolled back
2016-05-26 06:52:44,116 INFO MgcpTransaction tx=147533877 was executed normaly

@deruelle deruelle added the bug label May 27, 2016
@deruelle deruelle added this to the 4.2.0 milestone May 27, 2016
@hrosa
Copy link
Contributor

hrosa commented May 31, 2016

Seems to be concurrency problem when prompt phase is terminated prematurely.

hrosa added a commit that referenced this issue May 31, 2016
hrosa added a commit that referenced this issue Jun 1, 2016
…tartAnnouncementPhase().

Using boolean flag to prevent startAnnouncementPhase to execute if terminate has been called in the meantime.
hrosa added a commit that referenced this issue Jun 1, 2016
@hrosa hrosa changed the title NPE when trying to play announcement NPE when trying to play announcement Jun 1, 2016
@hrosa hrosa added the testing label Jun 1, 2016
@hrosa hrosa closed this as completed Jun 1, 2016
@hrosa hrosa removed the testing label Jun 1, 2016
hrosa added a commit that referenced this issue Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants