motech-sms-smpp: ConnectException when you tried start bundle

2 views
Skip to first unread message

Łukasz Lewczyński

unread,
Jun 21, 2012, 6:40:25 AM6/21/12
to motec...@googlegroups.com
Hi,

I converted motech-sms-smpp module to bundle and I pushed commit to the gerrit server (link) to review. I had to move several classes to smpp package to new bundle doesn't had classes from motech-sms-api and motech-sms-http bundles. I also had to added few properties files. Now when I deploy motech on server I get exception:

[INFO] Initializing Spring FrameworkServlet 'servlet_4'
2012-06-21 12:25:45,838 WARN  [smslib] GTW: smpp_gateway: SMPP session not bound.
2012-06-21 12:25:46,042 ERROR [org.motechproject.sms.smpp.ManagedSmslibService] Error: 
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)Hi,


In my opinion exception appears because I don't have a running smpp server on my system. Would you agree with me ?

Regards,
Lukasz

Rob LaRubbio

unread,
Jun 21, 2012, 2:50:28 PM6/21/12
to motec...@googlegroups.com
That sounds logical to me.  It does look like there are some options for test smpp servers out there (both hosted and downloadable).  A quick google search for "test smpp server" should give you some options.

-Rob
--
You received this message because you are subscribed to the Google Groups "MoTeCH Developer" group.
To post to this group, send email to motec...@googlegroups.com.
To unsubscribe from this group, send email to motech-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/motech-dev/-/Y62PojAsg_kJ.
For more options, visit https://groups.google.com/groups/opt_out.


Łukasz Lewczyński

unread,
Jun 22, 2012, 4:18:44 AM6/22/12
to motec...@googlegroups.com
Hi,

Thanks for your help Rob. Your phrase was better than mine. I found SMPP server and after it starts, bundle properly connects with it. Exception doesn't appear.

Regards,
Lukasz
Reply all
Reply to author
Forward
0 new messages