I'm working on a java stand-alone application. It uses google
contacts' api.

I build a jar and it works fine. I want to deploy my application with
Java Web Start.

I have upload my jar file and I create the jnlp file.

When I start my application by the jnlp file It loading and start
correctely, but I have login problem.

This is the code:

String username = "[email protected]";
String password = "mypassword";
ContactsService contactsService = new ContactsService("MyApp");
System.out.println("LOG1");
contactsService.setUserCredentials(username, password);
System.out.println("LOG2");
URL feedUrl = new URL("http://www.google.com/m8/feeds/
contacts/"+username+"/full");
System.out.println("LOG3");
Query query = new Query(feedUrl);
query.setMaxResults(Integer.MAX_VALUE);
System.out.println("LOG4");
ContactFeed contactFeed = contactsService.getFeed(query,
ContactFeed.class);
System.out.println("LOG5");
int totalResults = contactFeed.getTotalResults();
System.out.println("LOG6");

In my consolle I see:
LOG1
LOG2
LOG3
LOG4

At getFeed's method the application freeze!!!

If I start the same code with double click in jar file it works
fine...

what's the problem?
the api core have problem with java web start?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" 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/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to