Current location: Hot Scripts Forums » Programming Languages » Everything Java » Need help to finetune sms sending script, please help


Need help to finetune sms sending script, please help

Reply
  #1 (permalink)  
Old 03-05-11, 01:56 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Hazard Need help to finetune sms sending script, please help

The script does not communicate to to GSM console. Have been trying to trouble shoot. No luck so far. What to do?
Reply With Quote
  #2 (permalink)  
Old 03-05-11, 06:58 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I have no idea... because I don't know what script you're using
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 03-06-11, 12:58 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question Mobile voting system

the project is to send mobile SMSes to send votes to a computer connected to a serial GSM modem, the votes and voter details are stored in a database and the vote count is carried out to text out the result back to the mobile number.
there will be a number registration before it can enlist its vote.
the problem I have been facing is that after the voter and candidate details has been entered the code must be able to send out AT command to the modem to send a notification to the mobile, but it is unable to do that!
I have checked the database entries, its working fine.. I have entered records separately and its visible in the MySQL db!
I have checked the modem connectivity, its working fine.. I have checked it using the hyper terminal of the PC!
but still the trouble with SMS sending and receiving persists!!
I would really appreciate any help with solving the glitch!!
Reply With Quote
  #4 (permalink)  
Old 03-07-11, 05:28 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Error message added - please assist

The error message is copious :

Code:
Connection to mobile failed, error: in send  -11
Active server Active
Number=+919823244025 Sendmsg=Your voterid=1212  Password=07633
Connection to mobile failed, error: -11
disc
Active server Active
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.StringBuffer.charAt(StringBuffer.java:180)
        at org.jsmsengine.CSerialDriver.getResponse(CSerialDriver.java:244)
        at org.jsmsengine.CService.sendMessage(CService.java:960)
        at org.jsmsengine.CService.sendMessage(CService.java:871)
        at SMS.SendMessage1.sendSms(SendMessage1.java:33)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
Connection to mobile failed.., error: 0
Sendmsg=Your voterid=1212  Password=07633
Message Failed..
disc
Active server Active
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at SMS.SendMessage1.sendSms(SendMessage1.java:67)
        at com.AddVoter.addVoterActionPerformed(AddVoter.java:221)
        at com.AddVoter.access$000(AddVoter.java:24)
        at com.AddVoter$1.actionPerformed(AddVoter.java:70)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2013)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2336)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:260)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:254)
        at java.awt.Component.processMouseEvent(Component.java:6100)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3288)
        at java.awt.Component.processEvent(Component.java:5865)
        at java.awt.Container.processEvent(Container.java:2099)
        at java.awt.Component.dispatchEventImpl(Component.java:4461)
        at java.awt.Container.dispatchEventImpl(Container.java:2157)
        at java.awt.Component.dispatchEvent(Component.java:4287)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4455)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4119)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4049)
        at java.awt.Container.dispatchEventImpl(Container.java:2143)
        at java.awt.Window.dispatchEventImpl(Window.java:2555)
        at java.awt.Component.dispatchEvent(Component.java:4287)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:195)
        at java.awt.Dialog$1.run(Dialog.java:1073)
        at java.awt.Dialog$3.run(Dialog.java:1127)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1125)
        at java.awt.Component.show(Component.java:1456)
        at java.awt.Component.setVisible(Component.java:1408)
        at java.awt.Window.setVisible(Window.java:871)
        at java.awt.Dialog.setVisible(Dialog.java:1012)
        at com.Mains$8.run(Mains.java:208)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:227)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:603)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:195)
        at java.awt.Dialog$1.run(Dialog.java:1073)
        at java.awt.Dialog$3.run(Dialog.java:1127)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1125)
        at java.awt.Component.show(Component.java:1456)
        at java.awt.Component.setVisible(Component.java:1408)
        at java.awt.Window.setVisible(Window.java:871)
        at java.awt.Dialog.setVisible(Dialog.java:1012)
        at com.Mains$9.run(Mains.java:235)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:227)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:603)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Connection to mobile failed, error: -11
disc
Active server Active
Connection to mobile failed, error: -11
disc

Last edited by Nico; 03-08-11 at 06:19 AM.
Reply With Quote
  #5 (permalink)  
Old 03-07-11, 08:55 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Moving it to the Java forum

Can you tell us what script you're using? Or post it?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #6 (permalink)  
Old 03-08-11, 05:33 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question

its a java code, built using Netbeans 6.9.1.. the project itself if has a number of .java files
Reply With Quote
  #7 (permalink)  
Old 03-08-11, 05:35 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
where is this java forum?
can I get assistance there??
Reply With Quote
  #8 (permalink)  
Old 03-08-11, 06:18 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Your thread has been moved to the Java forum.

And again, we can't help you if you don't post your code (your .java files).
Reply With Quote
  #9 (permalink)  
Old 03-11-11, 04:21 AM
jadayu jadayu is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
the error cde that I am repeatedly getting here is: -11
what does this error status stand for??
Reply With Quote
  #10 (permalink)  
Old 03-11-11, 04:48 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
We have no idea what it stands for, cause we don't know what code you're using! That's like asking "can you tell me where Bob lives?", you first need to know what Bob he's talking about

There are probably thousands of sms-scripts available, how can we know which one you're using? Tell us what script you're using, cause otherwise we can't help you
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks


Last edited by UnrealEd; 03-11-11 at 04:51 AM.
Reply With Quote
Reply

Bookmarks

Tags
sms


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS Script PHPNerdZ Script Requests 0 02-10-11 08:57 AM
looking for a php script to clean up form info before sending dreamydesigner Script Requests 9 04-11-08 01:31 PM
use html to open application absvinyl HTML/XHTML/XML 5 09-18-06 02:04 PM
php script to send and receive sms through kannel gateway sephad Script Requests 0 01-30-06 07:53 AM


All times are GMT -5. The time now is 05:57 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.