Help with Reporting API Java

46 views
Skip to first unread message

Sonal Jain

unread,
May 4, 2012, 9:36:49 AM5/4/12
to google-app...@googlegroups.com
Hello, we are using Reporting API to fetch reports from google using the library google-apps-reporting-api-client. I am getting the below error only for a particular domain, while it works for other domains. Why is this so?

Error : 
java.io.IOException: Server returned HTTP response code: 400 for URL: https://www.google.com/hosted/services/v1.0/reports/ReportingData
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
at com.cloudcodes.sso.reports.ReportRunner.getReportData(ReportRunner.java:374)
at com.cloudcodes.sso.reports.ReportRunner.runReport(ReportRunner.java:310)
at com.cloudcodes.sso.reports.ReportRunner.runReport(ReportRunner.java:259)
at com.cloudcodes.sso.reports.ActiveUsers.doPost(ActiveUsers.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Please help.

-Sonal

[Visit our Google Apps Add-On Products Portal ]

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

CloudCodes Software Pvt Ltd, 202 - P3, Pentagon, Magarpatta Cybercity, Pune - 411027, Maharashtra. India. Tel : +91-65293975, URL : www.cloudcodes.com
Reply all
Reply to author
Forward
0 new messages