RestComm / jain-sip

Disclaimer: This repository is a git-svn mirror of the project found at http://java.net/projects/jsip whose original repository is developed collaboratively by the Advanced Networking Technologies Division at the National Institute of Standards and Technology (NIST) - an agency of the United States Department of Commerce and by a community of individual and enterprise contributors. TeleStax, Inc. will perform some productization work, new features experimentation branches, etc for its TelScale jSIP product that doesn't concern the community from the main repository hence this git repository.
http://www.restcomm.com/
145 stars 152 forks source link

iterating sipProviders while adding causes ConcModExp #127

Closed jaimecasero closed 8 years ago

jaimecasero commented 8 years ago

Use a concurrentColelction instead:

18:58:58,507 DEBUG [gov.nist.javax.sip.SipStackImpl](MSC service thread 1-6) createSipProvider: gov.nist.javax.sip.ListeningPointImpl@7993b5cd 18:58:58,508 ERROR [org.mobicents.servlet.sip.catalina.SipProtocolHandler](MSC service thread 1-1) A problem occured while setting up SIP Connector 10.0.0.5:5080/udp-- check server.xml for tomcat. : java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953) [rt.jar:1.7.0_80] at java.util.LinkedList$ListItr.next(LinkedList.java:886) [rt.jar:1.7.0_80] at org.mobicents.servlet.sip.catalina.SipProtocolHandler.start(SipProtocolHandler.java:293) [sip-servlets-as7-7.0.4.452.jar:7.0.4.452] at org.apache.catalina.connector.Connector.start(Connector.java:1049) [jbossweb-7.2.0.Final.jar:7.2.0.Final] at org.mobicents.as7.SipConnectorService.start(SipConnectorService.java:155) [jboss-as7-mobicents-7.0.4.452.jar:7.0.4.452] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

Thisi s becuase sipServlets process each connector tag in a different thread