lokivog / google-voice-java

Automatically exported from code.google.com/p/google-voice-java
0 stars 0 forks source link

FileNotFoundException when using sendSMS #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Declare the Voice object
2. Getting the rnrSee value from the site
3. calling sendSMS

What is the expected output? What do you see instead?
it should send the SMS, and not return anything, instead I caught 
"java.io.FileNotFoundException: 
https://www.google.com/accounts/ClientLogin"

What version of the product are you using? On what operating system?
1.0 on Android 1.6

Please provide any additional information below.
Google Voice website might have changed something

Original issue reported on code.google.com by velazcod on 16 Dec 2009 at 4:48

GoogleCodeExporter commented 8 years ago
java.io.IOException: Server returned HTTP response code: 403 for URL: 
https://www.google.com/accounts/ClientLogin

Java 1.6.0_17 on Mac 10.6.2

Original comment by velazcod on 17 Dec 2009 at 7:20

GoogleCodeExporter commented 8 years ago
Please See the New Version which is now available.  From command line:

java -jar {path}/google-voice-java-1.1.jar

That should run the test script.  Otherwise this is an API, SMS works, Calling 
works, 
etc.  It is meant to be added to your build path and used as a library.  It is 
not a 
useful stand alone application.

Original comment by malone.j...@gmail.com on 21 Dec 2009 at 10:22

GoogleCodeExporter commented 8 years ago
Oh I totally understand, I was adding it as a library, and then I figured there 
were some 
issues with the ClientLogin, I think google might have changed it after 
"closing" the 
grandcentral website. 

Seems to be working great, thanks for the quick response!
You can close this.

Original comment by velazcod on 22 Dec 2009 at 5:52

GoogleCodeExporter commented 8 years ago
I am unfortunately still having problems with this. I have added the jar file 
to my 
Library.  In the google app engine sample code, I added import 
com.techventus.server.covice.Voice

but, the debugger states that "the import com.techventus cannot be resolved." 

In the my 
public voice on ModuleLoad() 

I see that Voice voice = new Voice(username, pass); has an exception IO error.  
I 
replaced username and pass with mine in this example.

Roger. Thank you your help.

Original comment by rkc...@gmail.com on 2 Jan 2010 at 8:25

GoogleCodeExporter commented 8 years ago
rkchee, Did you try it as a Stand Alone Java project?  The App Engine has a lot 
of
blacklisted Java libraries.  I can say for sure that my demo code "test" uses 
the
Timer which is on the blacklist.  Also I am not sure about logging into Google 
from
the App Engine without doing it in an App Engine compliant way.  That is 
probably the
problem. 

Original comment by malone.j...@gmail.com on 3 Jan 2010 at 11:51

GoogleCodeExporter commented 8 years ago
I think we can mark this issue as resolved then, do you agree?

Original comment by teisentr...@gmail.com on 7 Mar 2010 at 8:08

GoogleCodeExporter commented 8 years ago

Original comment by malone.j...@gmail.com on 22 Mar 2010 at 5:52