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

PacketHandlerPipeline: ArrayIndexOutOfBoundsException #163

Closed
hamsterksu opened this issue May 30, 2016 · 0 comments
Closed

PacketHandlerPipeline: ArrayIndexOutOfBoundsException #163

hamsterksu opened this issue May 30, 2016 · 0 comments
Assignees
Milestone

Comments

@hamsterksu
Copy link
Contributor

hamsterksu commented May 30, 2016

Hi,

sometimes these execeptions appear in log

18:39:35,068 ERROR [UdpManager] An unexpected problem occurred while reading from channel.
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.fastRemove(ArrayList.java:528)
    at java.util.ArrayList.remove(ArrayList.java:511)
    at org.mobicents.media.server.io.network.channel.PacketHandlerPipeline.removeHandler(PacketHandlerPipeline.java:77)
    at org.mobicents.media.server.impl.rtp.RtpChannel.reset(RtpChannel.java:520)
    at org.mobicents.media.server.impl.rtp.RtpChannel.close(RtpChannel.java:511)
    at org.mobicents.media.server.io.network.channel.MultiplexedChannel.receive(MultiplexedChannel.java:182)
    at org.mobicents.media.server.io.network.UdpManager$PollTask.run(UdpManager.java:543)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    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)
18:42:25,996 ERROR [Task] Could not execute task 2579: -1
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.add(ArrayList.java:441)
    at org.mobicents.media.server.io.network.channel.PacketHandlerPipeline.addHandler(PacketHandlerPipeline.java:61)
    at org.mobicents.media.server.impl.rtp.RtpChannel.onBinding(RtpChannel.java:302)
    at org.mobicents.media.server.impl.rtp.RtpChannel.bind(RtpChannel.java:332)
    at org.mobicents.media.server.impl.rtp.channels.MediaChannel.bind(MediaChannel.java:444)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setupAudioChannelInbound(RtpConnectionImpl.java:323)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherPartyInboundCall(RtpConnectionImpl.java:227)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:201)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:156)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:164)
    at org.mobicents.media.server.mgcp.controller.MgcpConnection.setOtherParty(MgcpConnection.java:128)
    at org.mobicents.media.server.mgcp.tx.cmd.CreateConnectionCmd$Preprocessor.perform(CreateConnectionCmd.java:288)
    at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    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)
18:42:25,997 ERROR [Transaction] tx=147501352 Failed
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.add(ArrayList.java:441)
    at org.mobicents.media.server.io.network.channel.PacketHandlerPipeline.addHandler(PacketHandlerPipeline.java:61)
    at org.mobicents.media.server.impl.rtp.RtpChannel.onBinding(RtpChannel.java:302)
    at org.mobicents.media.server.impl.rtp.RtpChannel.bind(RtpChannel.java:332)
    at org.mobicents.media.server.impl.rtp.channels.MediaChannel.bind(MediaChannel.java:444)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setupAudioChannelInbound(RtpConnectionImpl.java:323)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherPartyInboundCall(RtpConnectionImpl.java:227)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:201)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:156)
    at org.mobicents.media.server.mgcp.connection.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:164)
    at org.mobicents.media.server.mgcp.controller.MgcpConnection.setOtherParty(MgcpConnection.java:128)
    at org.mobicents.media.server.mgcp.tx.cmd.CreateConnectionCmd$Preprocessor.perform(CreateConnectionCmd.java:288)
    at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants