google / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
135 stars 111 forks source link

java.io.EOFException: Response contained no data #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to retrieve lots of users one by one
2. Most of the users entry wont be problem
3. Once in a while you will get these errors

What is the expected output? What do you see instead?

Expected output it to retrieve the userentry. But i got an exception 
listed below.

Google Empty Response

java.io.EOFException: Response contained no data
        at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:222)
        at weblogic.net.http.MessageHeader.parseHeader
(MessageHeader.java:143)
        at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:475)
        at weblogic.net.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:368)
        at weblogic.net.http.SOAPHttpsURLConnection.getInputStream
(SOAPHttpsURLConnection.java:37)
        at weblogic.net.http.HttpURLConnection.getResponseCode
(HttpURLConnection.java:966)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(Unknown Source)
        at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown 
Source)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown 
Source)
        at com.google.gdata.client.Service.getEntry(Unknown Source)
        at com.google.gdata.client.GoogleService.getEntry(Unknown Source)
        at com.google.gdata.client.Service.getEntry(Unknown Source)
        at 
com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.getEntry
(Unknown Source)
        at com.gene.idm.adapter.GoogleAppsResourceAdapter.retrieveUser
(GoogleAppsResourceAdapter.java:1667)
        at com.gene.idm.adapter.GoogleAppsResourceAdapter.getUser
(GoogleAppsResourceAdapter.java:445)
        at com.waveset.adapter.ResourceAdapterProxy.getUser
(ResourceAdapterProxy.java:845)
        at com.waveset.provision.FetchContext.doFetch
(FetchContext.java:350)
        at com.waveset.provision.FetchContext.processOp
(FetchContext.java:211)
        at com.waveset.provision.ThreadContext.processContext
(ThreadContext.java:330)
        at com.waveset.provision.ThreadContext.launchThreads
(ThreadContext.java:239)
        at com.waveset.provision.Provisioner.fetchAccountsList
(Provisioner.java:2335)
        at com.waveset.provision.Provisioner.fetchAccounts
(Provisioner.java:2780)
        at com.waveset.view.UserViewer.assembleView(UserViewer.java:893)
        at com.waveset.view.UserViewer.checkoutView(UserViewer.java:749)
        at com.waveset.object.ViewMaster.checkoutView(ViewMaster.java:626)
        at com.waveset.session.WorkflowServices.checkoutView
(WorkflowServices.java:1272)
        at com.waveset.session.WorkflowServices.call
(WorkflowServices.java:484)
        at com.waveset.workflow.WorkflowEngine.callApplication
(WorkflowEngine.java:4364)
        at com.waveset.workflow.WorkflowEngine.callAction
(WorkflowEngine.java:4191)
        at com.waveset.workflow.WorkflowEngine.callAction
(WorkflowEngine.java:3504)
        at com.waveset.workflow.WorkflowEngine.execute
(WorkflowEngine.java:3344)
        at com.waveset.workflow.WorkflowEngine.makeTransition
(WorkflowEngine.java:2863)
        at com.waveset.workflow.WorkflowEngine.checkExplicitTransitions
(WorkflowEngine.java:2754)
        at com.waveset.workflow.WorkflowEngine.checkTransitions
(WorkflowEngine.java:2540)
        at com.waveset.workflow.WorkflowEngine.processSteps
(WorkflowEngine.java:1945)
        at com.waveset.workflow.WorkflowEngine.walkCases
(WorkflowEngine.java:1797)
        at com.waveset.workflow.WorkflowEngine.walkCases
(WorkflowEngine.java:1705)
        at com.waveset.workflow.WorkflowEngine.execute
(WorkflowEngine.java:843)
        at com.waveset.workflow.WorkflowEngine.execute
(WorkflowEngine.java:505)
        at com.waveset.workflow.WorkflowExecutor.execute
(WorkflowExecutor.java:236)
        at com.waveset.task.Scheduler.execute(Scheduler.java:2612)
        at com.waveset.task.Scheduler.launchTask(Scheduler.java:1701)
        at com.waveset.task.Scheduler.launchTask(Scheduler.java:1376)
        at com.waveset.task.TaskManager.launchTask(TaskManager.java:267)
        at com.waveset.server.InternalSession.runTask
(InternalSession.java:3373)
        at com.waveset.server.ViewMaster.runTask(ViewMaster.java:931)
        at com.waveset.view.ProcessViewer.checkinView
(ProcessViewer.java:683)
        at com.waveset.object.ViewMaster.checkinView(ViewMaster.java:747)
        at com.waveset.session.LocalSession.checkinView
(LocalSession.java:611)
        at com.waveset.ui.util.GenericViewSource.checkinView
(GenericViewSource.java:522)
        at com.waveset.ui.util.GenericEditForm.process
(GenericEditForm.java:613)
        at jsp_servlet._user.__processlaunch._jspService
(__processlaunch.java:431)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet
(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:283)
        at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:175)
        at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:3228)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute
(WebAppServletContext.java:2002)
        at weblogic.servlet.internal.WebAppServletContext.execute
(WebAppServletContext.java:1908)
        at weblogic.servlet.internal.ServletRequestImpl.run
(ServletRequestImpl.java:1362)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

What version of the product are you using? On what operating system?
i am using api version 1.20

Please provide any additional information below.

I am just using the GoogleApps Api which gdata-core and gdata-client. This 
is when we try to update a user's password. We initially thought the 
password update was problem. But it wasnt. The password was updated 
sucessfully but the response we got is the exception. So the user got 
confused. Same applicable to when we create user also. 

You can contact me at sankara@gene.com related to this issue. 

Original issue reported on code.google.com by sanka...@gmail.com on 18 Oct 2008 at 6:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Do you have a code sample that demonstrates this issue?  Thanks.

Original comment by mon...@gmail.com on 6 Mar 2009 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by mon...@gmail.com on 6 Mar 2009 at 8:56

GoogleCodeExporter commented 9 years ago
I dont have the code sample exactly. Its it happening once in 1000 requests.

Original comment by sanka...@gmail.com on 8 Mar 2009 at 7:06

GoogleCodeExporter commented 9 years ago
Are you still using version 1.20?  Would you be able to upgrade to 1.30 and see 
if
the issue still occurs?  There have been some http request related changes since
version 1.20 which may address your issue.

Original comment by mon...@gmail.com on 10 Mar 2009 at 5:23

GoogleCodeExporter commented 9 years ago
did we have a solution for this problem?

Original comment by virgul...@gmail.com on 14 Jun 2010 at 4:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Guys,

I am also getting this exception when our java client posts an SMS to a third 
party, we should get a response of 19 digits string, but few times we don't get 
anything.
Following is the java code:

URL url = new URL(theURL);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
out.close();
BufferedReader in = new BufferedReader(new 
InputStreamReader(connection.getInputStream()));  
//The just above line gives exception

2011-03-07 14:30:39,192 [[ACTIVE] ExecuteThread: '4' for queue: 
'weblogic.kernel.Default (self-tuning)'] ERROR API.sendMess
age - sending SMS: target [91**********], port [-1], message [Welcome to **** 
temporary PIN **** to activate account through the
 '******' application. PIN expires in 2 days.]
java.io.EOFException: Response contained no data
        at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:222)
        at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:143)
        at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:475)
        at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:368)
        at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:36)
        at com.ewp.core.comm.sms.UnicelSMSHelper.sendMessage(UnicelSMSHelper.java:108)
        at com.ewp.notification.services.NotifyServiceImplementation.sendSMS(NotifyServiceImplementation.java:605)
        at com.ewp.notification.services.NotifyServiceImplementation.sendSMSNotification(NotifyServiceImplementation.java:494)
        at com.ewp.notification.services.NotifyServiceImplementation.sendNotification(NotifyServiceImplementation.java:111)
        at sun.reflect.GeneratedMethodAccessor173611.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.ewp.core.service.ext.servicemethod.method.impl.BasicMethodExecutor.execute(BasicMethodExecutor.java:69)
        at com.ewp.core.service.ext.servicemethod.impl.EWPBaseServiceMethodExecutorImpl.executeMethod(EWPBaseServiceMethodExecutorImpl.java:67)
        at com.ewp.core.service.ext.servicemethod.impl.EWPAOPServiceMethodExecutorImpl.executeMethod(EWPAOPServiceMethodExecutorImpl.java:131)
        at com.ewp.core.service.ext.servicemethod.impl.EWPBaseServiceMethodExecutorImpl.executeServiceMethod(EWPBaseServiceMethodExecutorImpl.java:108)
        at com.ewp.core.service.ext.impl.EWPBasicServiceExecutorImpl.executeServiceCall(EWPBasicServiceExecutorImpl.java:120)
        at com.ewp.core.service.ServiceHelper.invokeServiceMethodWithAspects(ServiceHelper.java:197)
        at com.ewp.core.service.ServiceHelper.process(ServiceHelper.java:119)
        at com.ewp.core.ejbs.GatewayEJB.process(GatewayEJB.java:33)
        at com.ewp.core.ejbs.GatewayCMTRequired_3qunhe_EOImpl.process(GatewayCMTRequired_3qunhe_EOImpl.java:60)
        at com.ewp.core.ejbs.GatewayCMTRequired_3qunhe_EOImpl_WLSkel.invoke(Unknown Source)
        at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
        at com.ewp.core.ejbs.GatewayCMTRequired_3qunhe_EOImpl_922_WLStub.process(Unknown Source)
        at com.ewp.core.client.ServiceProxy.runMethod(ServiceProxy.java:475)
        at com.ewp.core.ejbs.AsyncHelperMDB.onMessage(AsyncHelperMDB.java:90)
        at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
        at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
        at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
        at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)

Original comment by deepakmo...@gmail.com on 10 Mar 2011 at 2:46