Hi,
You can try with the options -Dhttp.proxyHost=192.168.0.4 -Dhttp.pr
oxyPort=8080 -Dhttps.proxyHost=192.168.0.4 -Dhttps.proxyPort=8080
while running the program.
On eclipse this can be set as vm arguments.
Alternative System.setProperty("https.proxyHost", "your hosr"); etc
Thanks
RainbowOn Aug 2, 10:54 am, "venky engineer" <[EMAIL PROTECTED]> wrote: > Hai Raji or iuup > I think so i can help you. The Error is generated beacue your build file > has generated only the EPAuthenticationException.class file. so only this > error occurs. you can just simplify by creating the > EPAuthenticationException.java file in the same build directory so that the > source and the class will be in the build directory. And now execute it you > can run the program. > > Thanks, > With Regards, > VenkyEngineer. > > On 8/2/07, iuup <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I get an AuthenticationException in the CalendarClient sample inspite > > of setting the http.proxyHost/Port . It fails in setUserCredentials. > > > I am using the default values for: > > sample.calendar.feedUrl=http://www.google.com/calendar/feeds/default/ > > private/full > > sample.calendar.aclFeedUrl=http://www.google.com/calendar/feeds/ > > default/acl/full > > > Does anyone know the solution to this? > > > Source snippet is as follows in file CalendarClient.java > > > java.util.Properties props = System.getProperties(); > > props.put("http.proxyHost", "xyz.com"); > > props.put("http.proxyPort", "8000"); > > > or > > System.setProperty("http.proxyHost", "xyz.com"); > > System.setProperty("http.proxyPort", "8000"); > > > followed by: > > CalendarService myService = new CalendarService("exampleCo- > > exampleApp-1"); > > // Set username, password and feed URI from command-line > > arguments. > > if (args.length != 4) { > > System.err.println("Syntax: CalendarClient <username> > > <password>" > > + " <calendar feed URI> <ACL feed URI>"); > > return; > > } > > > String userName = args[0]; > > String userPassword = args[1]; > > feedUri = args[2]; > > aclFeedUri = args[3]; > > > try { > > System.out.println("hahahhah1234"); > > myService.setUserCredentials(userName, userPassword); > > error is as follows: > > > [java] hahahhah1234 > > [java] com.google.gdata.util.AuthenticationException: Error > > connecting with > > login URI > > [java] at > > com.google.gdata.client.GoogleService.getAuthToken(Unknown So > > urce) > > [java] at > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > own Source) > > [java] at > > com.google.gdata.client.GoogleService.setUserCredentials(Unkn > > own Source) > > [java] at sample.calendar.CalendarClient.main(Unknown Source) > > [java] Caused by: java.net.ConnectException: Connection timed > > out: connect > > [java] at java.net.PlainSocketImpl.socketConnect(Native > > Method) > > [java] at > > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > > [java] at > > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav > > a:195) > > [java] at > > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > > [java] at java.net.Socket.connect(Socket.java:519) > > [java] at java.net.Socket.connect(Socket.java:469) > > [java] at sun.net.NetworkClient.doConnect(NetworkClient.java: > > 157) > > [java] at > > sun.net.www.http.HttpClient.openServer(HttpClient.java:382) > > [java] at > > sun.net.www.http.HttpClient.openServer(HttpClient.java:494) > > [java] at > > sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.jav > > a:278) > > [java] at > > sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:3 > > 35) > > [java] at > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > .getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176) > > [java] at > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http > > URLConnection.java:769) > > [java] at > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection > > .connect(AbstractDelegateHttpsURLConnection.java:162) > > [java] at > > sun.net.www.protocol.http.HttpURLConnection.getOutputStream(H > > ttpURLConnection.java:861) > > [java] at > > sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputSt > > ream(HttpsURLConnectionImpl.java:230) > > [java] at > > com.google.gdata.client.GoogleService.makePostRequest(Unknown > > Source) > > [java] ... 4 more- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
