PLS help me in solving this-sending multiple smss

Hi all,
ive developed an application which is capable of sending smss. when i send 300 characters as a single sms, the default system automatically devides into 2 smss and send to the destination, and at the destination all the characters are reassembled and displayed as a single message.
this works perfectly well.(but that also support upto 6 messages)
now i want to send the 300 characters as 2 smss. but it only works foe one sms, the first sms out of two, will only be sent to the destination.
the second sms has been ignored totally, no exceptions no errors.
ill write down the code here,
try{
smsconn1 = (MessageConnection)Connector.open(address);
TextMessage txtmessage1 =
(TextMessage)smsconn1.newMessage(MessageConnection.TEXT_MESSAGE);
txtmessage1.setAddress(address);
txtmessage1.setPayloadText(mes);
smsconn1.send(txtmessage1);
catch (Throwable t) {
System.out.println("Send caught: ");
t.printStackTrace();
if (smsconn1 != null) {
try {
smsconn1.close();
catch (IOException ioe) {
System.out.println("Closing connection caught: ");
ioe.printStackTrace();
try{
smsconn1 = (MessageConnection)Connector.open(address);
TextMessage txtmessage1 =
(TextMessage)smsconn1.newMessage(MessageConnection.TEXT_MESSAGE);
txtmessage1.setAddress(address);
txtmessage1.setPayloadText(s);
smsconn1.send(txtmessage1);
catch (Throwable t) {
System.out.println("Send caught: ");
t.printStackTrace();
if (smsconn1 != null) {
try {
smsconn1.close();
catch (IOException ioe) {
System.out.println("Closing connection caught: ");
ioe.printStackTrace();
only the underlined portion works.
ive done all sort testings by adding delays, Thread.sleeps() and so on.
bt none work.
i want to get rid of the systems' Segmentation and reassembly feature ,and use my own segmentation method. bt failed up to now.
pls pls if any one can assist me in solving this pls reply as soon as possible,
pls pls i really need ur help.
thanks in advance
dushi
Message was edited by:
dush82

Try sending both the messages using the same connection instead of closing and reopening the Connection object again.
smsconn1.send(txtmessage1);
// Set some delay abt 3 milli sec. here by creating a low priority thread.
// Kindly do not use Thread.sleep() here.
smsconn1.send(txtmessage2);
Hope this must resolves your problem.
~Mohan

Similar Messages

  • Urgent , Pls help me in solving this problem

    Hi
    Pls let me know how do I present the following code using decode or case when. I need to select a column value based on the following condition. How do I put this condition while querying data using select statement.
    if optpremccy='usd' then historic_rates.rate_mid=1
    else if
    select rate_mid from historic_rates
    where table1.TYPE_KEY=HISTORIC_RATE_TYPES.TYPE_KEY )
    AND ( table1.RATE_DATE=VALUATION_CONTROL.BUSINESS_DATE )
    AND ( table2.RATE_TYPE=1 )
    AND ( table2.TENOR=1 )
    AND ( table2.RATE_SOURCE=9 )
    AND ( table2.FIRST_CCY='USD' )
    AND ( table2.SECOND_CCY=optionpremccy.CCY )
    else
    select rate_mid from table1
    where table1.TYPE_KEY=table2.TYPE_KEY )
    AND ( table1.RATE_DATE=VALUATION_CONTROL.BUSINESS_DATE )
    AND ( table2.RATE_TYPE=1 )
    AND ( table2.TENOR=1 )
    AND ( table2.RATE_SOURCE=9 )
    AND ( table2.FIRST_CCY='USD' )
    AND ( table2.SECOND_CCY=optionpremccy.CCY )
    and also change the value of rate_mid as follows rate_mid = 1/rate_mid

    Hi,
    You have not got any reply yet because your question is not complete.
    1. What should be the query for if condistion??
    2. What is your elsif condition??
    3. You are using more than one tables in both of the queries you wrote but in from you only used 1 table.???
    Regards
    Ghulam

  • I have downloaded latest firefox browser and flash player. But when playing video in youtube, I could only hear sound not the video. Upon checking the plugins, the flash player is installed.........pls help me to solve this problem

    couldn't do anything to the video toolbar, only black screen

    This is the most reported problem this week. Here's an entire thread of solutions that may or may not work:
    https://support.mozilla.com/en-US/questions/776670
    Looking through the thread, it seems like several different problems all manifesting themselves in the same way. Some people had to disable hardware acceleration in Flash, others had to delete their profile, and others yet just had to clear their cache... makes no sense.

  • Help me to solve this

    I can't view My JSP file I am getting Error Message
    Java Compile not Found
    Unable to Compile the Source file for JSP
    I copied tools.jar to servers lib dir
    But Yet i get the same message
    Pls help me to Solve this Problem

    Most common cause of the problem: JAVA_HOME environment variable not set, or set incorrectly.
    It should point to your java directory: ie C:\java1_4\ NOT C:\java1_4\bin
    Another possible cause is spaces in the path names where you have installed applications.
    Check out this page: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ for a tutorial on installing tomcat.
    If you can't sort it out on your own, we need more info:
    Where have you installed Java?
    Where have installed Tomcat?
    What is the value of JAVA_HOME environment variable?
    Good luck,
    evnafets

  • Help me to solve this assignments...

    1. Write a program to print a triangle multiplication table as shown below:
    0
    0 2
    0 3 6
    0 4 8 12
    0 5 10 15 20
    0 6 12 18 24 30
    0 7 14 21 28 35 42
    2.Write a Java program that will display the factorial of the number 10.
    3.Write a Java Program to display a four by four identity matrix
    4.Write a program to calculate the sum of the odd integers between 1 and 99 using for loop.
    kindly help me to solve this assignment.

    Am I correct in all???
    class Assignment
         public static void main(String args[])
              //This is to print the numbers in triangle
              for(int i = 1; i < 8; i++)
                   for(int j = 0; j < i; j++)
                        System.out.print(" " + i*j);
                   System.out.println("");
              //print value for 10 factorial
              int factorialvalue=1;
              int f=6;
              for(int l=f;l>1;l--)
                   factorialvalue*=l;
              System.out.println("F values is "+factorialvalue);
              //4 x 4 Matrix
              for(int s=0;s<4;s++)
                   for(int m=0;m<4;m++)
                        System.out.print("("+s+","+m+") ");
                   System.out.println("");
              //sum of odd numbers up to 99
              int h=0;
              for (int b=1;b<10;b+=2)
                   h+=b;
              System.out.println("Sum is "+h);
    selva.

  • Hi I cant able to see some web photos in my ipad showing 'unable to load' .. Some photos able to see but still almost 90% I can't ...pls help me to clear this issue ...thanks in advance

    Hi
    My ipad is not able to see some of the photos .... I can see with google images and all .. When I am loading some applications or safari images getting the same issue ..first it's showing 'loading' then its happens like 'unable to load ' pls help me to solve the issue ..thanks

    When you say that you can't find them anywhere, I assume that you mean that you can't find them on the iPad even though the storage figure says that the photos are there.
    You can try this. I don't know if this will work for you but this was recently discovered as solution for phantom photos. This was copied from a post started by gail from maine
    Delete all of your Recently Deleted photos from your Recently Deleted folder
    Then go to Settings>General>Date & Time, and change the date back to last September when iOS 8 came out, and then go back to the Recently Deleted folder. Although at the Album level it will still say "0" if you tap on the Album, you will be greeted by all of the "Recently Deleted" photos that have surpassed the 30 day limit. Mine went back to when I installed iOS 8.
    She found this in a post where txforever  was the person that discovered how to do this.
    More photos in settings than photos app shows

  • Hey sur. my name anas and am from morocco i've just got a new iMac 2011 with OSX 10.7 and i want to downgrade to 10.6 please could you help sur to solve this it

    hey sur. my name anas and am from morocco i've just got a new iMac 2011 with OSX 10.7 and i want to downgrade to 10.6 please could you help sur to solve this it

    anas guellaf wrote:
    it still make 3 bips before starting the IMAC.
    That is another problem not related to the Mac OS X version you are trying to use.
    Three beeps at startup means you have a bad ram module in the computer.  Did you install the ram or did it come from another owner this way?  The first problem you need to solve is the bad ram.
    When the iMac starts, go to the apple left side of the menu bar, About This Mac, More Info, System Report, Hardware, Memory and see what the report is on the memory...does the iMac report all memory modules that have been installed as OK or does it show bad memory?  If there is not any information, you then need to remove the memory modules and restart one at a time to see which is bad.
    On the bottom of the screen there should be a small door that you can remove with a small screw driver.  You need to lay the iMac flat, disconnect the power cord, remove that small door and remove the memory modules.  You can then put two in (if it has four) and see if it starts without the beeps.  Do that with each module so you find out which is bad.  Once you know the bad memory, you can buy a new module, just like the ones installed, so the iMac starts without the beeps.
    Next, you cannot use a DVD for another computer for your iMac unless it is from one that is identical to yours.  So, you need to talk to Apple and have them send the DVD for your particular iMac.

  • Can  you help me to solve this problem (user-exit for xd02)

    Hi!
    can  you help me to solve this problem?
    transaction XD02
    To pass the length of the field to 7 max    for    KNA1-SORT   (Search criterion 1 )
    To pass the length of the field to 4  max   for   ADRC-SORT2  (Search criterion 2)
    It is not possible to save  the customer card as long as the search criterion is not univocal
    I seek one to use-exit .
    Thanks.

    Hi,
    Check the exit SAPMF02D.
    Regards,
    Surinder

  • Hello i have a unusual problem,anyway my iphone 4 wont turn on and when someone calls they hear ringing,but my phone doesent ring,so i open cimcas now ring off. Screen is just black,because it's turned off..Please help me to solve this problem..Thanks

    Hello i have a unusual problem,anyway my iphone 4 wont turn on and when  someone calls they hear ringing,but my phone doesent ring.So i poen simcase and now ring off. Screen is just  black,because it's turned off..Please help me to solve this  problem..Thanks

    As far as trying to power up your device, make sure it has a good charge and then hold the button on the top of the phone and the home button on the faceplate together until the apple appears on the screen.

  • Hi, when ever I'm using 3G, on my Iphone4 sim stops working and Network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem.

    Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem. Thanks.

    Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
    Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore.

  • Hello Experts Please help me to solve this problem.

    Hello Experts,
    I am getting a problem while installing the SOLUTION MANAGER 4.0.
    in step 17/45 IMPORT ABAP :
    the problem is :
    ERROR 2008-04-29 03:10:28.110
    CJS-30023  Process call '/usr/sap/SLM/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
    when i saw R3load.exe.log file it has the following contain :
    sapparam: sapargv( argc, argv) has not been called.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/SLM/SYS/exe/run/R3load: START OF LOG: 20080428095833
    /usr/sap/SLM/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
    /usr/sap/SLM/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Jul 14 2007 02:19:03
    /usr/sap/SLM/SYS/exe/run/R3load -testconnect
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/SLM/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/SLM/SYS/exe/run/R3load: END OF LOG: 20080428095834
    Please can any body help me to solve this problem.
    waiting for fast response, as my installtion is pending due to this problem.
    have a nice day.
    Regards,
    Shivendra.

    Hi,
    The following should be verified:
    (1) check what DB instances the listener currently is aware of.  This can be done with the command 'lsnrctl services'.
    (in case you listener does not have the default name LISTENER, then use 'lsnrctl services <listener name>' )
    (2) Perhaps there is an issue with the dynamic instance registration, even though the error code is different, you should nevertheless check the points from note #563574.
    (3) Verfiy the value of the parameter local_listener (see mentioned note). Since you have changed the listener, the parameter might still be wrong.
    In case local_listener is correcly set you should give the command
      ALTER SYSTEM REGISTER;
    a try.
    Best Regards,
    Michael

  • Please help me to solve this date comparision issue..

    Please help me to solve this issue..
    If i have some data like the following..
    ID           START DATE             END DATE
    1             20080101              20080501
    1             20080502              20080630
    2             20080631              20080801
    2             20080802              20080901
                                                 ---------------> There is a break in date over here
    2             20080930              20081029
    2             20081030              20081130
    I need to compare the End Date with the start date (These data will not be in order)
    and find out if there is any break and should get the output date : *20080930*
    I am trying to do this in SQL or PL/SQL.Please help me .
    Thanks in advance.
    phani

    Hi Frank ,
    Sorry to bug you again. I ran your code on my actual data but not gettting the expected output.Here i am posting the actual code and the output that i got when i ran your code.Please bear with me and help me to solve this..
    /* Formatted on 5/25/2009 2:27:24 PM (QP5 v5.115.810.9015) */
    SELECT   member_nbr,
             aff_nbr,
             ymdeff,
             ymdend,
             gap_before,
             COUNT (gap_after)
                OVER (PARTITION BY member_nbr, aff_nbr ORDER BY ymdend DESC)
                AS gap_cnt
      FROM   (SELECT   member_nbr,
                       aff_nbr,
                       ymdeff,
                       ymdend,
                       CASE
                          WHEN ymdeff >
                                  LEAD(ymdend)
                                     OVER (PARTITION BY member_nbr, aff_nbr
                                           ORDER BY ymdend DESC)
                                  + 1
                          THEN
                             1
                       END
                          AS gap_before,
                       CASE
                          WHEN ymdend <
                                  LAG(ymdeff)
                                     OVER (PARTITION BY member_nbr, aff_nbr
                                           ORDER BY ymdend DESC)
                                  - 1
                          THEN
                             1
                       END
                          AS gap_after
    ------------I need this SQL to filter the whole data to the data that i posted in previous post -----
                FROM   (  SELECT   ms1.member_nbr, 
                                   ms1.aff_nbr,
                                   ms1.ymdeff,
                                   ms1.ymdend,
                                   ms1.void
                            FROM   (SELECT   ms.member_nbr,
                                             ms.aff_nbr,
                                             ms.ymdeff,
                                             ms.ymdend,
                                             ms.void
                                      FROM   MEMBER mb, member_span ms
                                     WHERE   mb.member_nbr = ms.member_nbr
                                             AND (20090523 BETWEEN ms.ymdeff
                                                               AND  ms.ymdend
                                                  AND TRIM (void) IS NULL)
                                             AND mb.member_nbr = 'A1000073000 ')
                                   eff_pcp,
                                   member_span ms1
                           WHERE   ms1.member_nbr = eff_pcp.member_nbr
                                   AND (SUBSTR (eff_pcp.aff_nbr, 1, 6) =
                                           SUBSTR (ms1.aff_nbr, 1, 6))
                        ORDER BY   ms1.ymdeff DESC)
    ---------- end of my part  ----------
                table_x) got_gaps;Outputs that i got when i ran that code for each individual members..
    Sorry to bug you frank and thanks for all the help.I will post here if i get any other data.
    Thanks
    phani

  • TS1363 My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue?

    My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue? I have already updated to the latest version of iTunes on my Windows 8 and I cannot synchronize my iPod for the time being. Please do help me to solve this problem. Thank You.

    uninstall all iTunes,5 programes,this worked for me after reinstall them

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • My Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    my Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    Carlos-
    Start by signing out and back in to see if it will see the subscription: 
    How to sign in and sign out of creative cloud (activate/deactivate)
    If the apps are installed fine and close after launch see this link:
    CC applications close immediately after launch
    If the problem is something different, please let us know the error you see or what is happening on the screen so we can advise  you on a solution
    Pattie

Maybe you are looking for

  • Select multiple LOV values & display in a grid

    How to implement an LOV where user can select any multiple values and these values will be displayed in a grid?

  • Production Order - Trigger won't Auto Refresh

    2007A PL49 - Just upgraded from 2005A I have the following query set in a UDF on the Production Order. SELECT T1.PriceAfVAT FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode = $[$-6.0.0] and T0.DocNum = $[$-32.0.0] The qu

  • New report for Cash Position (TC - FF7A)

    Hi I want to draw cash position (FF7A) report in following format:- 1) Receipt                AR Collection                Other                Total Receipt 2) Disbursements                Payroll                Bonus 3) Accounts Payable            

  • MSSTV001 - Delegating tasks using the team viewer iview.

    We are setting up a proxy so that our highest level mangers will not have to do their own compensation planning through MSS.  We found the user exit MSSTV001 to use for this purpose.  Does anyone have experience in using this user exit? I am looking

  • OS Migration from Windows 2003 cluster  to Windows 2008 R2 MSCS

    We want to go for windows 2008 R2 server ( 64-Bit)  MSCS by migrating from windows 2003 Cluster ( 32- Bit) . We are running on ECC 6.0 and oracle 10.2.0.2 DB. Is it possible ? Is it traditional System copy if so how to migrate the cluster ? Regards