You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jan <se...@gmail.com> on 2011/09/20 16:14:11 UTC

SMPP Bind timeout

Hi,

I am trying to bind an endpoint to a Huawei SMSC. For some reason I am
getting a bind timeout from servicemix. When I run a standalone jsmpp client
it seems to bind fine. It must be some timer setting, but not sure where or
what I should tell the Huawei guys to check for me.
The error I get i shown below in hte stack trace.

What setting could give the issue? The same code binds fine to another SMSC
instance.

Regards

Jan

Exception in thread "SpringOsgiExtenderThread-14"
org.apache.camel.FailedToCreateProducerException: Failed to create Producer
for endpoint: Endpoint[smpp://esb2@10.148.29.7:5019?password=******&                      
user=esb2&systemType=cp]. Reason: java.io.IOException: Waiting bind response
take time to long: N                       o response after waiting for
60000 millis when executing bind with sessionId 8882f615 and sequenc                      
eNumber 1
        at
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:362)
        at
org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:93)
        at
org.apache.camel.impl.ProducerCache.startProducer(ProducerCache.java:124)
        at
org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:144)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:429)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:847)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:146)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:83)
        at
org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:893)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.processor.DelayProcessorSupport.doStart(DelayProcessorSupport.java:211)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:429)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:847)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:146)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:83)
        at
org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:893)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66)
        at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:233)
        at org.apache.camel.impl.RouteService.warmUp(RouteService.java:136)
        at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1803)
        at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1729)
        at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1528)
        at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1420)
        at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)
        at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)
        at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
        at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
        at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:237)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Waiting bind response take time to long: No
response after waiting for 60000 millis when executing bind with sessionId
8882f615 and sequenceNumber 1
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:256)
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200)
        at
org.apache.camel.component.smpp.SmppProducer.createSession(SmppProducer.java:86)
        at
org.apache.camel.component.smpp.SmppProducer.doStart(SmppProducer.java:76)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:360)
        ... 95 more


--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-Bind-timeout-tp4822708p4822708.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SMPP Bind timeout

Posted by Ioannis Canellos <io...@gmail.com>.
When working with protcols like SMPP, wireshark is your best friend :)

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*

Re: SMPP Bind timeout

Posted by Jan <se...@gmail.com>.
Thanks all,

Yes, wireshark pointed out that my password was wrong (there was a trailing
space in the config file. I saw the non working message was one byte longer
and it was space after password). Huawei SMSC should have replied with
0x0000000e (invalid password) but it it just resetted the connection...

Thanks for the suggestion! It helped. 

Cheers 
Jan


--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-Bind-timeout-tp4822708p4829633.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SMPP Bind timeout

Posted by Ioannis Canellos <io...@gmail.com>.
>
> It's better to ask the Huawei guys... ;-)
>

>From my personal experience with people working on SMSCs (I've been doing
this for years) its faster and more reliable to trace the issue yourself.
They are usually up to the neck with tasks ...

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*

Re: SMPP Bind timeout

Posted by Christian Müller <ch...@gmail.com>.
It's better to ask the Huawei guys... ;-)

Sent from a mobile device

Re: SMPP Bind timeout

Posted by Ioannis Canellos <io...@gmail.com>.
Some SMSCs will not response and at all, if they do not like the parameters
of the command you send them.
If I were you I would do two things:

a) Get a tcpdump and compare the two bind commands, to determine what's
different.
b) Ask the Alcatel guys, to determine which parameter you sent does not
comply with their SMSC.


-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*