camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamouros <csst0...@yahoo.gr>
Subject Can't sent many sms with smpp. Producer binding problems.
Date Wed, 23 Oct 2013 08:00:17 GMT
I am using camel smpp to send sms to an smsc but when testing it live, i get
"Negative response 00000005 found" which means "ESME_RALYBND  5  ESME
already in bound state (example: sending a second bind command during an
existing SMPP session)". In the beginning I thought it happened because of
one thread or more tried to bind to the same smpp address after another
thread had allready bind. Thats why I made it run by a single thread so I
won't have the same problem but nothing. Still got the above negative
response.



from camel-context.xml
RecipientListBean creates and sets header recipients=
"smpp://1234123123@123.123.123.123:1234"

               <route id="smsConstruct" >
			<process ref="RecipientListBean" />
			<threads threadName="smsSendThread" poolSize="1" maxPoolSize="1"
maxQueueSize="0" >
				<throttle>
					<header>sms_rate</header>
					<recipientList>
						<header>recipients</header>
					</recipientList>
				</throttle>
			</threads>
			<to uri="bean:SmsSender?method=printExchange" />
               </route>


log from karaf:

##########  21/10/13 11:28:19:375 :: 219 :: RECEIVED DELIVER_SM
2013-10-21 11:28:19,437 | INFO  |  - smsSendThread | SMPPSession                     
| org.jsmpp.session.SMPPSession     222 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Connected
2013-10-21 11:28:19,438 | INFO  | Thread-263       | SMPPSession                     
| sion.SMPPSession$PDUReaderWorker  537 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting PDUReaderWorker
with processor degree:3 ...
2013-10-21 11:28:19,544 | INFO  |  - smsSendThread | SmppProducer                    
| amel.component.smpp.SmppProducer  103 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Connected to: smpp://1234123123@123.123.123.123:1234
2013-10-21 11:28:19,544 | INFO  | Thread-264       | SMPPSession                     
| on.SMPPSession$EnquireLinkSender  596 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting EnquireLinkSender
2013-10-21 11:28:19,700 | INFO  |  - smsSendThread | SmsSender                       
| org.appart.smpp.SmsSender          55 | 683 - BulkSmsCamel - 2.0.0 |
**********  21/10/13 11:28:19:700 :: 230 :: SUBMITTED SUBMIT_SM
2013-10-21 11:28:19,925 | INFO  | pool-24-thread-3 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:19:925 :: 228 :: RECEIVED DELIVER_SM
2013-10-21 11:28:19,953 | INFO  |  - smsSendThread | SMPPSession                     
| org.jsmpp.session.SMPPSession     222 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Connected
2013-10-21 11:28:19,955 | INFO  | Thread-265       | SMPPSession                     
| sion.SMPPSession$PDUReaderWorker  537 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting PDUReaderWorker
with processor degree:3 ...
2013-10-21 11:28:19,978 | ERROR |  - smsSendThread | SMPPSession                     
| org.jsmpp.session.SMPPSession     244 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Receive negative bind
response
org.jsmpp.extra.NegativeResponseException: Negative response 00000005 found
        at
org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.sendBind(SMPPSession.java:294)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:232)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.apache.camel.component.smpp.SmppProducer.createSession(SmppProducer.java:91)[172:org.apache.camel.camel-smpp:2.11.0]
        at
org.apache.camel.component.smpp.SmppProducer.doStart(SmppProducer.java:76)[172:org.apache.camel.camel-smpp:2.11.0]
        at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:64)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:393)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:114)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RecipientListProcessor.createProcessorExchangePairs(RecipientListProcessor.java:160)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:206)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:151)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RecipientList.process(RecipientList.java:112)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:390)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelayProcessorSupport.process(DelayProcessorSupport.java:104)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:390)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.Pipeline.access$100(Pipeline.java:43)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.Pipeline$1.done(Pipeline.java:135)[60:org.apache.camel.camel-core:2.11.0]
        at
org.apache.camel.processor.ThreadsProcessor$ProcessCall.run(ThreadsProcessor.java:78)[60:org.apache.camel.camel-core:2.11.0]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_25]
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
        at
java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_25]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_25]
        at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
2013-10-21 11:28:19,980 | WARN  |  - smsSendThread | SmppProducer                    
| el.component.smpp.SmppProducer$1   61 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Lost connection to: smpp://1234123123@123.123.123.123:1234 -
trying to reconnect...
2013-10-21 11:28:19,983 | INFO  | Thread-266       | SmppProducer                    
| el.component.smpp.SmppProducer$2  183 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Schedule reconnect after 5000 millis
2013-10-21 11:28:20,117 | INFO  | pool-24-thread-2 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:20:117 :: 224 :: RECEIVED DELIVER_SM
2013-10-21 11:28:21,603 | INFO  | pool-24-thread-1 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:21:602 :: 219 :: RECEIVED DELIVER_SM
2013-10-21 11:28:21,986 | INFO  | pool-24-thread-3 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:21:986 :: 228 :: RECEIVED DELIVER_SM
2013-10-21 11:28:22,425 | INFO  | pool-24-thread-2 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:22:425 :: 224 :: RECEIVED DELIVER_SM
2013-10-21 11:28:23,396 | INFO  | pool-24-thread-1 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |
##########  21/10/13 11:28:23:396 :: 219 :: RECEIVED DELIVER_SM
2013-10-21 11:28:24,983 | INFO  | Thread-266       | SmppProducer                    
| el.component.smpp.SmppProducer$2  192 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Trying to reconnect to smpp://1234123123@123.123.123.123:1234 -
attempt #1...
2013-10-21 11:28:24,997 | INFO  | Thread-266       | SMPPSession                     
| org.jsmpp.session.SMPPSession     222 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Connected
2013-10-21 11:28:24,998 | INFO  | Thread-267       | SMPPSession                     
| sion.SMPPSession$PDUReaderWorker  537 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Starting PDUReaderWorker
with processor degree:3 ...
2013-10-21 11:28:25,021 | ERROR | Thread-266       | SMPPSession                     
| org.jsmpp.session.SMPPSession     244 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | Receive negative bind
response
org.jsmpp.extra.NegativeResponseException: Negative response 00000005 found
        at
org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:215)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:271)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.sendBind(SMPPSession.java:294)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:232)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200)[171:org.apache.servicemix.bundles.jsmpp:2.1.0.4]
        at
org.apache.camel.component.smpp.SmppProducer.createSession(SmppProducer.java:91)[172:org.apache.camel.camel-smpp:2.11.0]
        at
org.apache.camel.component.smpp.SmppProducer.access$500(SmppProducer.java:42)[172:org.apache.camel.camel-smpp:2.11.0]
        at
org.apache.camel.component.smpp.SmppProducer$2.run(SmppProducer.java:193)[172:org.apache.camel.camel-smpp:2.11.0]
        at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
2013-10-21 11:28:25,023 | WARN  | Thread-266       | SmppProducer                    
| el.component.smpp.SmppProducer$1   61 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Lost connection to: smpp://1234123123@123.123.123.123:1234 -
trying to reconnect...
2013-10-21 11:28:25,023 | INFO  | Thread-266       | SmppProducer                    
| el.component.smpp.SmppProducer$2  196 | 172 - org.apache.camel.camel-smpp
- 2.11.0 | Failed to reconnect to smpp://1234123123@123.123.123.123:1234
2013-10-21 11:28:25,028 | INFO  | Thread-267       | SMPPSession                     
| sion.SMPPSession$PDUReaderWorker  543 | 171 -
org.apache.servicemix.bundles.jsmpp - 2.1.0.4 | PDUReaderWorker stop
2013-10-21 11:28:26,226 | INFO  | pool-24-thread-3 | SmsReceiver                     
| org.appart.smpp.SmsReceiver       132 | 683 - BulkSmsCamel - 2.0.0 |



--
View this message in context: http://camel.465427.n5.nabble.com/Can-t-sent-many-sms-with-smpp-Producer-binding-problems-tp5742053.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message