mobileappdevatl / google-voice-java Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/google-voice-java
Automatically exported from code.google.com/p/google-voice-java
Ever since r120, many of my Android users have been reporting this
NullPointerException that occurs during login:
java.lang.NullPointerException
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.rea
dln(HttpURLConnectionImpl.java:1279)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.readChunkSize(HttpURLConnectionImpl.java:404)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.<init>(HttpURLConnectionImpl.java:340)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ContentStream(HttpURLConnectionImpl.java:1175)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equestInternal(HttpURLConnectionImpl.java:1754)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equest(HttpURLConnectionImpl.java:1649)
at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ResponseCode(HttpURLConnectionImpl.java:1374)
at
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.g
etResponseCode(HttpsURLConnectionImpl.java:117)
at com.techventus.server.voice.Voice.get(Voice.java:1231)
at com.techventus.server.voice.Voice.getGeneral(Voice.java:432)
at com.techventus.server.voice.Voice.init(Voice.java:330)
at com.techventus.server.voice.Voice.<init>(Voice.java:256)
at com.realtynode.gvfree.gvdialer$2.run(gvdialer.java:247)
Original issue reported on code.google.com by [email protected]
on 26 Aug 2010 at 8:36
What steps will reproduce the problem?
1. Voice voice = new Voice(username, password);
2. voice.sendSMS("+911234567891", "Test");
3.
What is the expected output? What do you see instead?
I m not able to receive message on my phone
What version of the product are you using? On what operating system?
i m using google-voice-java-1.8-java5.jar and json.jar
Please provide any additional information below.
console prints
https://www.google.com/accounts/ClientLogin - OK
Logged in to Google - Auth token received
https://www.google.com/voice/ - OK
Successfully Received rnr_se.
and no message is sent on the phone
Original issue reported on code.google.com by [email protected]
on 19 Feb 2012 at 8:30
Attachments:
What steps will reproduce the problem?
1. Turn on 2-step auth from google. (
http://support.google.com/accounts/bin/static.py?hl=en&page=guide.cs&guide=10562
83)
2. Try to login
3.
What is the expected output? What do you see instead?
Expected output is a successful login, I see a failed login.
What version of the product are you using? On what operating system?
latest version.
Please provide any additional information below.
It would be nice if there was a way to prompt user for the code
if user is using the 2-way auth.
Original issue reported on code.google.com by [email protected]
on 2 Feb 2012 at 3:14
What steps will reproduce the problem?
1. I have check with google voice API on JDK 1.5.0_18 it will throw below issues
bad class file: D:\lib\google-voice-java-1.8-java5.jar(com/techventus/server/voice/Voice.class)
[javac] class file has wrong version 50.0, should be 49.0
3.
What is the expected output? What do you see instead?
How will integrate JDK 1.5.0_18 with Google voice API
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Mar 2013 at 1:10
The current (trunk) contact class doesn't implement equals, which makes the
Contact class difficult to use inside of collections.
The ID that Google uses is stable, but the API doesn't always parse this ID
(for some reason) but a same-type equality method is easy to add (and is
trivial) by using the phone number. Patch attached.
The hashCode method is also implemented so that Contacts can be stored in
HashMaps.
Obviously, these methods should use Google's ID... because I imagine one
contact could have two different phone numbers. However, it should be true that
if two contacts have the same phone number, they are the same contact.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2013 at 2:34
Attachments:
1.When we add new phone through api.
2.It required to verify.
3.GV return a verification code.How to collect that verification code in
response?
I have got reponse like "ok":"true"
but not verification code.
please help me?
Thanks
Rajender
Original issue reported on code.google.com by [email protected]
on 25 Jan 2011 at 5:27
I noticed that the SMSParser doesn't pick up SMS messages that are in the same
clock-minute and same thread as another SMS. This is because the compareTo
method for the SMS class is solely dependent on the message's time-stamp, thus
messages with the same time-stamp in a thread are considered duplicates when
added to Collections and are as result not added. A simple fix would be to
alter the compareTo method in the SMS class to also consider the SMS's content
and from contact.
I just wanted to point that small bug out. The API has been very helpful,
thanks.
Original issue reported on code.google.com by [email protected]
on 26 Dec 2010 at 4:19
What steps will reproduce the problem?
1. In eclipse I use subclipse to download the source from your trunk.
2. I immediately go to Export > Jar File.
3. When I import that jar to my libs folder and run my app it crashes.
What is the expected output? What do you see instead?
I expect the activity to render instead it crashes. Now if I download the
google-voice-java-1.14-java6.jar you have featured on your site and import it
to my libs folder everything works fine. All the other jar dependencies are
already in my libs folder.
What version of the product are you using? On what operating system?
I downloaded the latest Android SDK and version of Eclipse Indigo. I am using
64bit options when asked.
Please provide any additional information below.
Here is my stacktrace error:
05-09 11:34:35.429: W/dalvikvm(5298): threadid=1: thread exiting with uncaught
exception (group=0x4001d648)
05-09 11:34:35.449: E/AndroidRuntime(5298): FATAL EXCEPTION: main
05-09 11:34:35.449: E/AndroidRuntime(5298): java.lang.VerifyError:
com.android.myapp.activites.MainActivity
05-09 11:34:35.449: E/AndroidRuntime(5298): at
java.lang.Class.newInstanceImpl(Native Method)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
java.lang.Class.newInstance(Class.java:1409)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.Instrumentation.newActivity(Instrumentation.java:1040)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1735)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1851)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.ActivityThread.access$1500(ActivityThread.java:132)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.os.Looper.loop(Looper.java:150)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
android.app.ActivityThread.main(ActivityThread.java:4293)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
java.lang.reflect.Method.invokeNative(Native Method)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
java.lang.reflect.Method.invoke(Method.java:507)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
05-09 11:34:35.449: E/AndroidRuntime(5298): at
dalvik.system.NativeStart.main(Native Method)
Original issue reported on code.google.com by [email protected]
on 9 May 2012 at 4:47
What steps will reproduce the problem?
1. Create a new android project in eclipse.
2. import the google-voice-java .jar file.
3. use the following code:
public void btnTest_OnClick(View view) {
String sUsername = "[email protected]";
String sPassword = "mypass";
String ret = "tesstjson";
Voice voice = null;
try {
ret = "oldval";
voice = new Voice(sUsername, sPassword);
//ret = voice.getInbox();
} catch(CaptchaRequiredException captEx) {
System.out.println("A captcha is required.");
System.out.println("Image URL = "+captEx.getCaptchaUrl());
System.out.println("Capt Token = "+captEx.getCaptchaToken());
System.out.println("Goodbye.");
} catch (IOException e) {
System.out.println("IO error creating voice! - "+e.getLocalizedMessage());
System.out.println("Goodbye.");
}
new AlertDialog.Builder(this)
.setTitle("Google Voice Inbox")
.setMessage(ret)
.show();
}
What is the expected output? What do you see instead?
I expect it to run through and create a voice object.
Instead it trips the IOException and I get:
IO error creating voice! - www.google.com
that doesn't even seem like an error to me, I just don't know what it means.
What version of the product are you using? On what operating system?
version 1.14
running on android 2.3.3
Please provide any additional information below.
After doing quite a bit of troubleshooting on my own, I copied the code from
the test file under source. It is still giving me the same error.
Original issue reported on code.google.com by [email protected]
on 18 Oct 2012 at 1:11
I would like to propose that federated ID and/or Open ID Login be integrated
into this project.
It would be really nice to login to your google account with a key and not need
a username and password.
Original issue reported on code.google.com by [email protected]
on 23 Mar 2011 at 2:37
What steps will reproduce the problem?
1. Security.setProperty("ssl.SocketFactory.provider",
"com.ibm.jsse2.SSLSocketFactoryImpl");
Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl");
2. private void registerMyHostnameVerifier()
{
javax.net.ssl.HostnameVerifier myHv = new javax.net.ssl.HostnameVerifier()
{
public boolean verify(String hostName,javax.net.ssl.SSLSession session)
{
return true;
}
};
javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(myHv);
}
3. Voice moVoice = new Voice("[email protected]", "gmail-password");
moVoice.sendSMS("918970145047", "Hi");
What is the expected output? What do you see instead?
send sms to any mobile number.
java.io.IOException: Answer did not contain rnr_se!
at com.techventus.server.voice.Voice.setRNRSEE(Voice.java:587)
What version of the product are you using? On what operating system?
google-voice-java-1.8-java5.jar, java6, json.jar, win7, eclipse.
Please provide any additional information below.
Please help me some one to resolve this problem.
Original issue reported on code.google.com by [email protected]
on 2 May 2012 at 2:08
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
ContactEntry entry = resultFeed.getEntries().get(i);
Only gets 25 contacts and says java out of bound exception index 25.
Using this to get contacts from google account.
Original issue reported on code.google.com by [email protected]
on 2 Jan 2012 at 6:52
Many of my users are getting the following NullPointerException being thrown.
I have yet to reproduce it on my Google Voice account:
java.lang.NullPointerException:
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readln(HttpURLConnection.java:1178)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection$ChunkedInputStream.readChunkSize(HttpURLConnection.java:389)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection$ChunkedInputStream.<init>(HttpURLConnection.java:341)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getContentStream(HttpURLConnection.java:1074)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java:1656)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java:1551)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1273)
at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getResponseCode(HttpsURLConnection.java:116)
at com.techventus.server.voice.Voice.get(Voice.java:1192)
at com.techventus.server.voice.Voice.getGeneral(Voice.java:405)
at com.techventus.server.voice.Voice.init(Voice.java:303)
at com.techventus.server.voice.Voice.<init>(Voice.java:263)
Original issue reported on code.google.com by [email protected]
on 10 Jun 2010 at 4:35
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
can't start it. see gif.
Original issue reported on code.google.com by [email protected]
on 12 Dec 2009 at 4:33
Attachments:
I tried to use Google-Voice-java api in India. I cannot call or send sms to any
mobile in India. Is that any possible to call any mobile number in India. I
would ready to pay the amount for this features.
Original issue reported on code.google.com by [email protected]
on 5 May 2013 at 6:27
Currently calling the deleteMessage() method in the Voice class deletes the
message from the google voice inbox. It does not entirely remove it from the
server. These messages can still be accesses in the trash folder.
If we want to delete a message from google voice entirely, we need another way
to do that.
This could be a security issue, as a complete record of all communications are
stored by google, and must be manually deleted through the browser interface.
If someone is negligent and their account is compromised, that could be a trove
of contact information in the wrong hands. If we can automate complete
deletion, this risk will be reduced.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2011 at 11:29
What steps will reproduce the problem?
This is the code in my public static void main
1. String userName = "[email protected]";
String pass = "pwd";
Voice voice = new Voice(userName, pass);
String originNumber = "123456789";
String destinationNumber = "909999999";
String phoneType = "Mobile";
voice.call(originNumber, destinationNumber, "Mobile");
voice.sendSMS(destinationNumber, "text");
What is the expected output? What do you see instead?
- The SMS is sent all right. However it throws an error -
Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL: https://www.google.com/voice/call/connect/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown
Source)
at com.techventus.server.voice.Voice.call(Voice.java:204)
at googleVoice.CallGoogleVoice.main(CallGoogleVoice.java:28)
What version of the product are you using? On what operating system?
the 1.4 version
Please provide any additional information below.
- the authorization is not an issue I think since SMS is reaching fine.
Do let me know !
thanks in advance !
nadu
Original issue reported on code.google.com by [email protected]
on 3 Apr 2010 at 2:55
What steps will reproduce the problem?
1. Creating a voice object
2. Run the get sms
3. Program has stopped working
What is the expected output? What do you see instead?
It was supposed to download messages and show in a textview
What version of the product are you using? On what operating system?
using ADT eclipse, on 4.2 android
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Apr 2013 at 8:58
What steps will reproduce the problem?
1. Run test.java
2. Enter username of an account that has 2-step verification enabled
3. Enter password
What is the expected output? What do you see instead?
Prompt for the verification code sent to phone, if it is time/money costly to
implement OAuth 2.0 now, I think an error message suggesting to the user that
they should go into their google privacy settings and set up an application
specific password that would work with ClientLogin API. Instead, it assumes it
just assumes it is an incorrect username/password error.
What version of the product are you using? On what operating system?
v1.14, Mac OS Lion
Please provide any additional information below.
https://developers.google.com/accounts/docs/OAuth2
Original issue reported on code.google.com by [email protected]
on 28 Jun 2012 at 9:06
What steps will reproduce the problem?
1.
Collection<SMSThread> smsThreads = voice.getSMSThreads(voice.getUnreadSMS());
for (SMSThread t : smsThreads)
{
Collection<SMS> allsms = t.getAllSMS();
for (SMS smsind : allsms)
{
if (smsind.getContent().contains(passcode))
{
String emergencyMsg = smsind.getContent().replaceAll(passcode, "");
OsisUserDatabase oInsertOsisDatabase = new OsisUserDatabase();
List<String> phn = oInsertOsisDatabase.getAllPhoneNumbersSendSMS();
for (String oPhn : phn)
{
String destinationNumber = oPhn;
voice.sendSMS(destinationNumber, emergencyMsg);
}
}
voice.markAsRead(t.getId());
}
}
2.
3.
What is the expected output? What do you see instead?
I expect to on get a collection of unread messages
What version of the product are you using? On what operating system?
1.14
Please provide any additional information below.
There must be a way to parse out the unread messages. It would be good if you
could add a function instead of getAllSMS to just getALLUNREADSMS
Original issue reported on code.google.com by [email protected]
on 3 May 2012 at 3:45
This is something I ran into while unit testing, I used a json part from my own
google-voice account (only the names were changed to protect the innocent) so I
MAY have the input string wrong.
Location of failure -
com.techventus.server.voice.datatypes.Group.createGroupSettingsFromJsonResponse(
String json) line 100.
Instead of just grabbing the digit after "greetings": it grabs the rest of the
entire string(see below).
I was able to fix this in my local copy by adding .substring(0,1)); to the end
of the line. This would only grab the first character, but it would only be
viable for integer values of 0-9, 10 and higher would be cut off.
this could also be fixed by using the ParsingUtil.removeUninterestingParts
method that the rest of the variables inside the method use (assuming that my
input string is valid) and would be valid for any integer value.
appologies if I'm barking up the wrong tree.
What steps will reproduce the problem?
run Group.createGroupSettingsFromJsonResponse with json string
"\"groups\":{\"testID\":{\"id\":\"testID\",\"name\":\"testName\",\"disabledForwa
rdingIds\":{},\"isCustomForwarding\":false,\"isCustomGreeting\":false,\"isCustom
DirectConnect\":false,\"directConnect\":false,\"greetingId\":0,\"isCircle\":true
,\"isCustomTranscriptionLanguage\":false,\"transcriptionLanguage\":\"\"},\"group
List\"";
What is the expected output? What do you see instead?
expected: no error
actual - (fail trace)
java.lang.NumberFormatException: For input string:
"0,"isCircle":true,"isCustomTranscriptionLanguage":false,"transcriptionLanguage"
:""}"
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 18 Apr 2012 at 8:56
What steps will reproduce the problem?
1. sendSMS to US number.voice.sendSMS("+1AreaCode-restofthe no.).
2. I am invoking this API from India, is that allowed AFAIK i can make
calls/sms from google voice from US only.
3. Please let me know if the phone number format is correct
What is the expected output? What do you see instead?
SMS should be sent. Get the following error
Exception in thread "main" java.io.IOException: Server returned HTTP response
code: 500 for URL: https://www.google.com/voice/sms/send/
What version of the product are you using? On what operating system?
1.8
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Sep 2011 at 2:54
Doing a diff of voice.getUnreadSMS() and voice.getSMS() doesn't show any
differences.
The xml file that I get from
"https://www.google.com/voice/b/0/inbox/recent/sms/unread/" (the constant set
in Voice.java) seems to include both read and unread messages
Original issue reported on code.google.com by [email protected]
on 26 Jun 2012 at 2:21
What steps will reproduce the problem?
1. Using google-voice-java for sending SMS to US and India Numbers
2. Code Snippet used
Voice voice = new Voice("userName","password);
voice.sendSMS("00919840161648","Hey !");
3. Getting the following exception
https://www.google.com/accounts/ClientLogin - OK
Logged in to Google - Auth token received
https://www.google.com/voice/ - OK
Successfully Received rnr_se.
Exception in thread "main" java.io.IOException: Server returned HTTP response
code: 500 for URL: https://www.google.com/voice/sms/send/
What is the expected output? What do you see instead?
SMS should be sent, but instead receiving this error and SMS is also not being
sent.
What version of the product are you using? On what operating system?
google-voice-java-1.8-java5.jar
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2011 at 5:28
What steps will reproduce the problem?
1.
SMSThread thread ...
for (SMS sms : thread.getAllSMS()) {
DateFormat formatter;
formatter = new SimpleDateFormat("MMM-dd HH:mm");
System.out.println(formatter.format(sms.getDateTime()));
2. What is the expected output? What do you see instead?
If you have recently added to an older thread, the date of the individual SMS will show as the most recent date rather that the correct date the mesages were sent
Looking at GV Website, it seems that the information simply is not available.
Time but not dates are displayed. We need some other means of determining the
information...
Original issue reported on code.google.com by [email protected]
on 3 Feb 2012 at 4:14
What steps will reproduce the problem?
1. Call login function from a windows box.
2. JVM gives a login access denied error , even when tocken is being passed.
3.
What is the expected output? What do you see instead?
Login should work successfully.
What version of the product are you using? On what operating system?
Latest as of 31-Aug-2010
Please provide any additional information below.
Problem is resolved by adding following line of code in login method
conn.setInstanceFollowRedirects(false)
Thanks
Original issue reported on code.google.com by [email protected]
on 31 Aug 2010 at 2:30
Login not working anymore.
Original issue reported on code.google.com by [email protected]
on 3 May 2010 at 1:31
What steps will reproduce the problem?
1. Voice voice = new Voice("[email protected]", "pass");
2. voice.sendSMS("918970141047", "Hi");
3.
What is the expected output? What do you see instead?
send sms to any mobile number through google voice api.
https://www.google.com/accounts/ClientLogin - OK
Logged in to Google - Auth token received
https://www.google.com/voice/ - Moved Temporarily
https://www.google.com/voice/ - 302 - new URL:
https://www.gmail.com/call?gsessionid=dG8G6u2eVwNz_1WH-d0BNQ
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException:
No name matching www.gmail.com found
What version of the product are you using? On what operating system?
google-voice-java-1.8-java5.jar, java6, json.jar, win7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Apr 2012 at 6:11
My App Engine app retrieves SMS messages from Google Voice using this
API. It worked before, but started crashed from today. I am not sure
if I made any changes. The crash caused when my app tries to call
"voice.getSMStreads()". It triggers the following exception:
Caused by: java.lang.NullPointerException
at
com.techventus.server.voice.util.SMSParser.parseContact(SMSParser.java:
125)
at
com.techventus.server.voice.util.SMSParser.getSMSThreads(SMSParser.java:
106)
at com.techventus.server.voice.Voice.getSMSThreads(Voice.java:688)
Could anyone please provide any insight about how to solve this
problem? Thank you very much!
Original issue reported on code.google.com by [email protected]
on 19 Mar 2012 at 8:48
1. Created a simple Java app to place a voice call.
2. When compiling my class, I got this error:
...
bad class file:
google-voice-java-1.6.jar(com/techventus/server/voice/Voice.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import com.techventus.server.voice.Voice;
^
I am running it on a Windows 7 Machine with java version "1.5.0_15"
Thanks,
Bin Wu
Original issue reported on code.google.com by [email protected]
on 5 Nov 2010 at 6:17
What steps will reproduce the problem?
1. Run method with valid group list
What is the expected output? What do you see instead?
expected :
"groups":{"testID":{"id":"testID","greetingId":0,"isCustomForwarding":false,"isC
ustomGreeting":false,"disabledForwardingIds":{},"name":"testName","isCustomDirec
tConnect":false,"directConnect":false},"testID1":{"id":"testID1","greetingId":0,
"isCustomForwarding":false,"isCustomGreeting":false,"disabledForwardingIds":{"3"
:true,"2":true},"name":"testName1","isCustomDirectConnect":false,"directConnect"
:false}}
actual :
"groups":{{"id":"testID","greetingId":0,"isCustomForwarding":false,"isCustomGree
ting":false,"disabledForwardingIds":{},"name":"testName","isCustomDirectConnect"
:false,"directConnect":false},{"id":"testID1","greetingId":0,"isCustomForwarding
":false,"isCustomGreeting":false,"disabledForwardingIds":{"3":true,"2":true},"na
me":"testName1","isCustomDirectConnect":false,"directConnect":false}}
Original issue reported on code.google.com by [email protected]
on 18 Apr 2012 at 10:27
What steps will reproduce the problem?
1. Using any google voice account, send a message with an empty body (not even
spaces) to the account.
2. Connect to the account with google-voice-java.
3. Call the getSMSThreads() method in the Voice class.
4. Weep as you get a null pointer exception.
What is the expected output? What do you see instead?
I would expect to get an sms thread with a single sms that had no text in the
body of the message. I get a null pointer exception instead.
What version of the product are you using? On what operating system?
Changeset 137 on mac osx 10.6 and ubuntu linux.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2011 at 11:03
For anyone that needs it, and I would recommend this be implemented regardless
for reasons below, here is the fix to get the google-voice-java library working
on the app engine.
(For version 1.6) In Voice.java, lines 1215 and 1216, you can comment out the
first, and change the second from setFollowRedirects to
setInstanceFollowRedirects:
//HttpURLConnection.setInstanceFollowRedirects(false);
conn.setInstanceFollowRedirects(false);
I have tested this, and it will then work with the App Engine, but this fix
should be implemented in any use as it localizes the settings to its specific
use of the class.
Original issue reported on code.google.com by [email protected]
on 2 Jul 2010 at 1:03
What steps will reproduce the problem?
1. Using eclipse x86_64 bit
2. Using: java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
BEA JRockit(R) (build R27.4.0-90-89592-1.5.0_12-20070928-1715-linux- x86_64, compiled mode)
3. Created a test program:
import java.io.IOException;
import com.techventus.server.voice.Voice;
public class T {
public static void main(String[] args) throws IOException {
Voice voice = new Voice("[email protected]", "somepass");
System.out.println(voice.getInbox());
}
}
What is the expected output? What do you see instead?
==> A console ouput
What version of the product are you using? On what operating system?
==> google-voice-java-1.6.jar
Please provide any additional information below.
==> I get the following exception:
Exception in thread "Main Thread" java.lang.UnsupportedClassVersionError:
unsupported classversion 50.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at T.main(T.java:12)
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 1:33
I cannot delete SMS messages. I do not get an ID back so I cannot call
deleteMessage. Does anyone have a sample of how to delete a message? I have
pulled the code from SVN and built it so I think I have the latest code but not
100% sure.
Here is my code which prints out the ID which is blank and the toString which
also show the id is blank:
public void dumpSMS() throws IOException{
//Voice v = IS DEFINED GLOBALLY
String smsstr = v.getSMS();
System.out.println(smsstr);
Collection<SMSThread> sms = v.getSMSThreads();
for (SMSThread s : sms){
System.out.println("New Thread...." + s.getId());
for (SMS sm : s.getAllSMS()){
System.out.println(sm.getFrom().getId() + " " + sm.getFrom().getName() + " " + sm.getFrom().getNumber() + " " + sm.getContent() + " " + sm.getDateTime().toString());
System.out.println(sm.toString());
System.out.println("********** NO ID RETURNED**************");
//HOW WOULD I DELETE THIS MESSAGE?
}
}
}
Here is the results:
https://www.google.com/voice/b/0/inbox/recent/sms/ - OK
New Thread....b5f1549cdfc63342be5ffeedb28477fbb7c0ba19
+16822344100 +16822344100 TEST 1 3 Tue Mar 06 13:39:00 CST 2012
SMS [dateTime=Tue Mar 06 13:39:00 CST 2012,
from={id=;name=+16822348100;number=+16822348100;imageUrl=http://www.google.com/v
oice/resources/1366864992-blue_ghost.jpg;}, text=TEST 1 3]
********** NO ID RETURNED**************
Thanks!
BBB
Original issue reported on code.google.com by [email protected]
on 6 Mar 2012 at 7:46
What steps will reproduce the problem?
1. Create a new voice object and pass the user creditials as such:
Voice voice = new Voice(userName, pass);
What is the expected output? What do you see instead?
Expected success object creation; however an IOexception is thrown
indicating a failed login.
What version of the product are you using? On what operating system?
r106
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 May 2010 at 11:40
What steps will reproduce the problem?
1. By creating a new object (Voice v = new Voice(user, pass);)
2. It will throw an exception.
What is the expected output? What do you see instead?
It should return an object, and it instead returns null, with a log entry
saying the server has moved temporarily.
What version of the product are you using? On what operating system?
GVJ 1.6 on Ubuntu 11.04 Linux Tomcat 6 servlet container
Original issue reported on code.google.com by [email protected]
on 23 Aug 2011 at 12:33
What steps will reproduce the problem?
1. Performing a request like voice.getGeneral();
2.
3.
What is the expected output? What do you see instead?
In the html data thats received, i see Calling Credit: -, when there should be
a number
What version of the product are you using? On what operating system?
Current, current jdk widows 7
Please provide any additional information below.
If there is a way to do this, than i am sorry for the report. I just though
that would be the way to get your current credit
Original issue reported on code.google.com by [email protected]
on 26 Aug 2010 at 1:45
Are functions like this one going to be added to the library? Such as, mark,
star, undelete?
public String deleteMessage(String msgID) throws IOException
{
String out = "";
StringBuffer calldata = new StringBuffer();
// POST /voice/inbox/deleteMessages/
// messages=[messageID]
// &trash=1
// &_rnr_se=[pull from page]
calldata.append("messages=");
calldata.append(URLEncoder.encode(msgID, enc));
calldata.append("&trash=1");
calldata.append("&_rnr_se=");
calldata.append(URLEncoder.encode(rnrSEE, enc));
URL callURL = new URL("https://www.google.com/voice/inbox/deleteMessages/");
URLConnection callconn = callURL.openConnection();
callconn.setRequestProperty("Authorization","GoogleLogin auth="+authToken);
callconn.setRequestProperty("User-agent",USER_AGENT);
callconn.setDoOutput(true);
OutputStreamWriter callwr = new OutputStreamWriter(callconn
.getOutputStream());
callwr.write(calldata.toString());
callwr.flush();
BufferedReader callrd = new BufferedReader(new InputStreamReader(
callconn.getInputStream()));
String line;
while ((line = callrd.readLine()) != null) {
out += line + "\n\r";
}
callwr.close();
callrd.close();
if (out.equals("")) {
throw new IOException("No Response Data Received.");
}
return out;
}
Original issue reported on code.google.com by [email protected]
on 25 Sep 2010 at 4:42
Is there a way to get the Authentication Tokens so that once you have one you
won't need to get another?
Original issue reported on code.google.com by [email protected]
on 6 Jul 2012 at 5:59
What steps will reproduce the problem?
1. Voice voice = new Voice("[email protected]", "pass");
2. voice.sendSMS("918970141047", "Hi");
3.
What is the expected output? What do you see instead?
send sms to any mobile number through google voice api.
https://www.google.com/accounts/ClientLogin - OK
Logged in to Google - Auth token received
https://www.google.com/voice/ - Moved Temporarily
https://www.google.com/voice/ - 302 - new URL:
https://www.gmail.com/call?gsessionid=dG8G6u2eVwNz_1WH-d0BNQ
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException:
No name matching www.gmail.com found
What version of the product are you using? On what operating system?
google-voice-java-1.8-java5.jar, java6, json.jar, win7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Apr 2012 at 6:11
What steps will reproduce the problem?
1. Authenticate with HOSTED Account
2. Simply run voice.getSettings(false)
What is the expected output? What do you see instead?
JSON array, no exception.
Getting exception: gvjava.org.json.JSONException: JSONObject["spam"] is not a
number.
What version of the product are you using? On what operating system?
Current Source, Mac OS 10.6.7
Please provide any additional information below.
Changed references in com.techventus.server.voice.datatypes/Setting.java
Adjusted INT to BOOLEAN, problem solved.
Original issue reported on code.google.com by [email protected]
on 27 May 2011 at 5:23
What steps will reproduce the problem?
1. Dialing any number
2. Will get a array out of bound exception
basically i think google is no more sending the _rnr_se variable anymore.
private void setRNRSEE() {
if (general != null) {
System.out.println(general);
String p1 = general.split("'_rnr_se': '", 2)[1];
System.out.println(p1);
rnrSEE = p1.split("',", 2)[0];
p1 = null;
}
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 May 2010 at 8:19
What steps will reproduce the problem?
1. Try to login with a hosted google account.
Outcome:
Connection not possible.
Original issue reported on code.google.com by [email protected]
on 31 May 2010 at 8:48
What steps will reproduce the problem?
1. Try and send a text message to more than 8 people
2. Only the first 8 people will get said text message
What is the expected output? What do you see instead?
I was expecting everyone to get the text.
What version of the product are you using? On what operating system?
google-voice-java-1.8-java5 on ubuntu 11.04
Please provide any additional information below.
I am trying to use google voice to replace a current textmark keyword we have
in place for a college group.
Attached is the code that does not work. The number file that is put into an
ArrayList is a list of numbers, in the form +11234567890 seperated by a '\n'.
Is this a problem with google voice itself, the library, or did I miss
something in my code? Thank you!
Original issue reported on code.google.com by [email protected]
on 10 Aug 2011 at 6:01
Attachments:
What steps will reproduce the problem?
1.Use this code:
import com.techventus.server.voice.Voice;
import javax.swing.JOptionPane;
import java.io.IOException;
public class gvoice
{
public static void main(String[] args)
{
String userName, pass, toNum, recvdMsg, sentMsg;
userName = JOptionPane.showInputDialog("Enter your username");
pass = JOptionPane.showInputDialog("Enter your password");
try
{
Voice voice = new Voice(userName, pass);
toNum = JOptionPane.showInputDialog("Enter the number you'd like to text");
sentMsg = JOptionPane.showInputDialog("Enter your message");
voice.sendSMS(toNum, sentMsg);
}
catch (IOException e)
{
// Print out the exception that occurred
System.out.println(e.getMessage());
}
}
}
Then it gives me this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
gvjava/org/json/JSONException
at gvoice.main(gvoice.java:16)
Caused by: java.lang.ClassNotFoundException: gvjava.org.json.JSONException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Original issue reported on code.google.com by [email protected]
on 25 Dec 2011 at 10:02
What steps will reproduce the problem?
1. Create a brand new google voice account, and ensure no text messages are
sent to the account before part 2 and 3.
2. Connect to the account with google-voice-java.
3. Call the getSMSThreads() method in the Voice class.
4. Weep as you get a null pointer exception.
What is the expected output? What do you see instead?
An empty sms thread. The program crashes instead.
What version of the product are you using? On what operating system?
Changeset 137 on mac os x 10.6 and ubuntu.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2011 at 11:00
I lost some SMS messages that had important information in them. They aren't
in my trash. Is there somewhere they are stored like gmail possibly or
somewhere else to where I can get access to them?
Original issue reported on code.google.com by [email protected]
on 12 Apr 2012 at 6:59
Caused by: java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:46)
at gvjava.org.json.JSONTokener.<init>(JSONTokener.java:73)
at gvjava.org.json.JSONObject.<init>(JSONObject.java:311)
at com.techventus.server.voice.datatypes.AllSettings.<init>(AllSettings.java:19)
at com.techventus.server.voice.Voice.getSettings(Voice.java:414)
This came from an Android reported error, so it is difficult to know what
exactly caused the error. It seems like an unhandled API error so I just
wanted to document it.
Original issue reported on code.google.com by [email protected]
on 10 Apr 2012 at 2:18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.