ws and wss transports

65 views
Skip to first unread message

sverker

unread,
Sep 10, 2016, 6:29:30 AM9/10/16
to mobicents-public
I've installed Sip Servlets on Wildfly 10, which required a bit of tweeking. However, I have two things left. When I deploy an application I get exceptions on bad transport for ws and wss, stacktraces are below:

12:14:04,448 DEBUG [gov.nist.javax.sip.SipStackImpl] (MSC service thread 1-5) createListeningPoint : address = 127.0.0.1 port = 5082 transport = ws
12:14:04,475 ERROR [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-5) A problem occured while setting up SIP Connector 127.0.0.1:5082/ws-- check server.xml for tomcat. : java.lang.IllegalArgumentException: bad transport
        at gov.nist.javax.sip.stack.OIOMessageProcessorFactory.createMessageProcessor(OIOMessageProcessorFactory.java:82)
        at gov.nist.javax.sip.stack.SIPTransactionStack.createMessageProcessor(SIPTransactionStack.java:2489)
        at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:1609)
        at org.mobicents.servlet.sip.undertow.SipProtocolHandler.start(SipProtocolHandler.java:246)
        at org.mobicents.as10.SipConnectorListener.start(SipConnectorListener.java:50)
        at org.mobicents.as10.SipConnectorService.start(SipConnectorService.java:141)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

12:14:05,934 DEBUG [gov.nist.javax.sip.SipStackImpl] (MSC service thread 1-3) createListeningPoint : address = 127.0.0.1 port = 5083 transport = wss
12:14:05,934 DEBUG [gov.nist.javax.sip.stack.TLSMessageProcessor] (MessageProcessorThread-TLS-127.0.0.1/5081)  waiting to accept new connection!
12:14:05,934 DEBUG [gov.nist.javax.sip.SipStackImpl] (MSC service thread 1-6) createSipProvider: gov.nist.javax.sip.ListeningPointImpl@281691b5
12:14:05,938 ERROR [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-3) A problem occured while setting up SIP Connector 127.0.0.1:5083/wss-- check server.xml for tomcat. : java.lang.IllegalArgumentException: bad transport
        at gov.nist.javax.sip.stack.OIOMessageProcessorFactory.createMessageProcessor(OIOMessageProcessorFactory.java:82)
        at gov.nist.javax.sip.stack.SIPTransactionStack.createMessageProcessor(SIPTransactionStack.java:2489)
        at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:1609)
        at org.mobicents.servlet.sip.undertow.SipProtocolHandler.start(SipProtocolHandler.java:246)
        at org.mobicents.as10.SipConnectorListener.start(SipConnectorListener.java:50)
        at org.mobicents.as10.SipConnectorService.start(SipConnectorService.java:141)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Clearly OIOMessageProcessorFactory doesn't have support for ws and wss so what package provides the support for these transports?
Message has been deleted

sverker

unread,
Sep 10, 2016, 7:30:46 AM9/10/16
to mobicents-public
The answer was to set 
gov.nist.javax.sip.MESSAGE_PROCESSOR_FACTORY=gov.nist.javax.sip.stack.NioMessageProcessorFactory

in mss-sip-stack.properties

Jean Deruelle

unread,
Sep 13, 2016, 4:02:08 PM9/13/16
to mobicents-public
Did you take the latest binary from https://mobicents.ci.cloudbees.com/job/RestcommSipServlets-4.X-Release/ as it should already be configured by default ?

sverker

unread,
Sep 14, 2016, 6:42:54 AM9/14/16
to mobicents-public
I built from master branch in git, or rather my fork of it (https://github.com/sverkera/sip-servlets). The main thing I had to change to get it to deploy was in containers/sip-servlets-as10-drop-in/jboss-as-restcomm/pom.xml to replace dependency on org.jboss.solder:solder-tooling with org.jboss.logging:jboss-logging-processor otherwise the deployment failed with this error:

"Invalid bundle interface (implementation not found)"

The other changes are mostly cleanup to remove eclipse files which are ignored in the top level .gitignore and hence shouldn't be in git, and correcting some formatting in pom's for better readability.

Jean Deruelle

unread,
Sep 14, 2016, 11:57:44 AM9/14/16
to mobicents-public
Cool. Feel free to make a Pull request so it's in the main master ;)

Best Regards,
Jean

--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-public+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sverker

unread,
Sep 14, 2016, 4:20:06 PM9/14/16
to mobicents-public
I've created a pull request now
Reply all
Reply to author
Forward
0 new messages