tracker issue : CF-3041628

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83290:(Watson Migration Closure)when using cf SMS gateway to send multipart SMS using sarMsgRefNum, sarTotalSegments & sarSegmentSeqnum any dynamic values (ie for msg reference number & segment sequence numbers) have to be javacast

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Paul Hastings / Paul Hastings (PaulH)

Created: 06/07/2010

Components: Event Gateway

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,1,274537 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

when using  cf SMS gateway to send multipart SMS using sarMsgRefNum, sarTotalSegments & sarSegmentSeqnum any dynamic values (ie for msg reference number & segment sequence numbers) have to be javacast to a string: testMsg.sarSegmentSeqnum=javacast("string","#i#"); rather than an integer (as specified in the SMPP 3.4 specs).  took quite a bit of digging to find this bug.
Method:

<cfscript>src=5551212;dest=5551234;gateway="localSMSTest"; // local SMS test servertestMsg=structNew();testMsg.command="submit";testMsg.registeredDelivery=1;testMsg.destAddress=dest;testMsg.sourceAddress=src;testMsg.SarMsgRefNum=101;testMsg.SarTotalSegments=2;testMsg.esmClass=0;for (i=1; i LTE 2; i=i+1) {testMsg.sarSegmentSeqnum=javacast("string","#i#");testMsg.shortMessage="But skeletons ain’t got nowhere to stick their money, nobody makes britches that size #i#.";msgID=sendGatewayMessage(gateway,testMsg);writeoutput("returned ID #msgID# for SMS sent #now()#<br>");}</cfscript>
Result:

SMSGateway (localSMSTest) error while processing 'submit' command: java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041628

External Customer Info:
External Company:  
External Customer Name: Paul Hastings
External Customer Email: 00EE238442D680B29920157F
External Test Config: 06/07/2010

Attachments:

Comments: