Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending SMS to Mobile from Java App  RSS feed

 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

In our project requirement, I need to send sms to the mobile from Java application.

I tried the following ways:
1. USMProLib, unfortunately from January 2008 theydon't support the USMProlib any version (Trial/licensed)
2. I am trying using SMSj application. but I stucked over here. I can't move.

Please guys any body help me in this...

Hey guys please excuse me if this post shouldn't posted over here.
[ April 23, 2008: Message edited by: Shashidhar Rao ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last entry in the http://faq.javaranch.com/java/JavaIoFaq talks a bit about this.

What have you tried using SMSj?
 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have very old version of SMSj(smsj-20051126.jar).

I am getting the following error in console.

0 [main] INFO org.marre.sms.transport.clickatell.ClickatellTransport - sendRequest: posting : api_id=3088784&user=yshashidhar&password=mypasswd to https://api.clickatell.com/http/auth
Error...
java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(Unknown Source)

at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.net.NetworkClient.doConnect(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)

at org.marre.sms.transport.clickatell.ClickatellTransport.sendRequest(ClickatellTransport.java:147)

at org.marre.sms.transport.clickatell.ClickatellTransport.connect(ClickatellTransport.java:286)

at org.marre.SmsSender.connect(SmsSender.java:564)

at com.emails.Simple.main(Simple.java:18)


But I tried to access the dynamically created URL manually. I can able to access, but the same is not accessable from the application.
It seems like bug.

If any body have latest version please provide me, or else redirect me to some other way...

[ April 24, 2008: Message edited by: Shashidhar Rao ]

[ April 24, 2008: Message edited by: Shashidhar Rao ]
[ April 24, 2008: Message edited by: Shashidhar Rao ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't there a newer version available (I think the project is on SourceForge)?
 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't found at there.
Even I mailed to the developer about this problem but no response from him...

I am in big preasure over to complete this exrecise.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could try the smstools library I linked to above.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!