Iam not able to send messages using bulksms gateway example...
my pc is connected to internet through a proxy server...
i've given my proxy server details as system properties
Properties systemProperties = System.getProperties();
                systemProperties.setProperty( "http.proxyHost", "myproxy" );
                systemProperties.setProperty( "http.proxyPort", "myproxyport" );
                systemProperties.setProperty( "http.userName", "username" );
                systemProperties.setProperty( "http.password1", "password" );


Here is my log:

Example: Send message from BulkSMS HTTP Interface.
SMSLib: A Java API library for sending and receiving SMS via a GSM
modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0
License.
Web Site: http://smslib.org
Version: 3.5.1
0      2012-03-12 14:46:21,238 [main] INFO  org.smslib.Service  -
SMSLib: A Java API library for sending and receiving SMS via a GSM
modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0
License.
Web Site: http://smslib.org
3      2012-03-12 14:46:21,241 [main] INFO  org.smslib.Service  -
Version: 3.5.1
3      2012-03-12 14:46:21,241 [main] INFO  org.smslib.Service  - JRE
Version: 1.6.0_21
4      2012-03-12 14:46:21,242 [main] INFO  org.smslib.Service  - JRE
Impl Version: 17.0-b17
4      2012-03-12 14:46:21,242 [main] INFO  org.smslib.Service  - O/S:
Windows 7 / x86 / 6.1
6      2012-03-12 14:46:21,244 [main] DEBUG
org.smslib.threading.AServiceThread  - Initialized.
6      2012-03-12 14:46:21,244 [NotifyQueueManager] DEBUG
org.smslib.threading.AServiceThread  - Running...
6      2012-03-12 14:46:21,244 [NotifyQueueManager] DEBUG
org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
NotifyQueueManager running...
7      2012-03-12 14:46:21,245 [main] INFO
org.smslib.queues.DefaultQueueManager  - Queue directory not defined.
Queued messages will not be saved to filesystem.
8      2012-03-12 14:46:21,246 [main] DEBUG
org.smslib.threading.AServiceThread  - Initialized.
8      2012-03-12 14:46:21,246 [DelayQueueManager] DEBUG
org.smslib.threading.AServiceThread  - Running...
8      2012-03-12 14:46:21,246 [DelayQueueManager] DEBUG
org.smslib.queues.AbstractQueueManager$DelayQueueManager  -
DelayQueueManager running...
8      2012-03-12 14:46:21,246 [main] DEBUG
org.smslib.threading.AServiceThread  - Initialized.
8      2012-03-12 14:46:21,246 [WatchDog] DEBUG
org.smslib.threading.AServiceThread  - Running...
9      2012-03-12 14:46:21,247 [Thread-4] INFO
org.smslib.http.BulkSmsHTTPGateway  - GTW: bulksms.http.1: Starting
gateway.
10     2012-03-12 14:46:21,248 [NotifyQueueManager] DEBUG
org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
NotifyQueueManager end...
10     2012-03-12 14:46:21,248 [Thread-4] DEBUG
org.smslib.threading.AServiceThread  - Initialized.
12     2012-03-12 14:46:21,250 [QueueManager [bulksms.http.1]] DEBUG
org.smslib.threading.AServiceThread  - Running...
111    2012-03-12 14:46:21,349 [NotifyQueueManager] DEBUG
org.smslib.threading.AServiceThread  - Running...
111    2012-03-12 14:46:21,349 [NotifyQueueManager] DEBUG
org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
NotifyQueueManager running...
111    2012-03-12 14:46:21,349 [NotifyQueueManager] DEBUG
org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
NotifyQueueManager end...
211    2012-03-12 14:46:21,449 [NotifyQueueManager] DEBUG
org.smslib.threading.AServiceThread  - Running...
213    2012-03-12 14:46:21,451 [NotifyQueueManager] DEBUG
org.smslib.notify.NotifyQueueManager$NotificationQueueManager  -
NotifyQueueManager running...
512    2012-03-12 14:46:21,750 [QueueManager [bulksms.http.1]] DEBUG
org.smslib.threading.AServiceThread  - Running...
1009   2012-03-12 14:46:22,247 [main] INFO
org.smslib.http.HTTPGateway  - GTW: bulksms.http.1: HTTP GET:
http://bulksms.vsms.net:5567/eapi/user/get_credits/1/1.1?username=bulksms63&password=bulk63&;
java.io.IOException: Server returned HTTP response code: 407 for URL:
http://bulksms.vsms.net:5567/eapi/user/get_credits/1/1.1?username=bulksms63&password=bulk63&;
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1313)
        at org.smslib.http.HTTPGateway.HttpGet(HTTPGateway.java:94)
        at
org.smslib.http.BulkSmsHTTPGateway.queryBalance(BulkSmsHTTPGateway.java:
98)
        at SendMessage.doIt(SendMessage.java:46)
        at SendMessage.main(SendMessage.java:67)
java.io.IOException: Server returned HTTP response code: 407 for URL:
http://bulksms.vsms.net:5567/eapi/user/get_credits/1/1.1?username=bulksms63&password=bulk63&1036
2012-03-12 14:46:22,274 [QueueManager [bulksms.http.1]] DEBUG
org.smslib.threading.AServiceThread  - Running...

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to