My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 167: "There was a problem communicating with the service." when upload video for youtube File > 40MB
4 people starred this issue and may be notified of changes. Back to list
Status:  RequestedFeedback
Owner:  ----


Sign in to add a comment
 
Reported by alonso...@gmail.com, Aug 7, 2009
What steps will reproduce the problem?
1. Execute YoutubeWriteClient.java
2. Upload a new Video (5)
3. First, type in the path to the movie file: D:\Music\diddy_ft_nicole_-
_come_to_me.mpg
4. What is the MIME type of this file? (ex. 'video/quicktime' for .mov)
video/mpeg
5. What should I call this video? my second video from api

What is the expected output? What do you see instead?
I expected an result like this "Video uploaded successfully!" and my new 
video published... 

but instead I see
There was a problem communicating with the service.
java.io.IOException: Error writing request body to server
	at 
sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkErro
r(Unknown Source)
	at 
sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write
(Unknown Source)
	at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
	at java.io.BufferedOutputStream.write(Unknown Source)
	at com.google.gdata.data.media.MediaSource$Output.writeTo
(MediaSource.java:88)
	at 
com.google.gdata.data.media.MediaBodyPart$MediaSourceDataHandler.writeTo
(MediaBodyPart.java:74)
	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
	at javax.mail.internet.MimeMultipart.writeTo
(MimeMultipart.java:452)
	at 
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate
(MediaMultipartGenerator.java:58)
	at 
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate
(MediaMultipartGenerator.java:37)
	at com.google.gdata.client.Service.writeRequestData
(Service.java:1831)
	at com.google.gdata.client.media.MediaService.insert
(MediaService.java:389)
	at YouTubeWriteClient.uploadVideo(YouTubeWriteClient.java:498)
	at YouTubeWriteClient.main(YouTubeWriteClient.java:818)


What version of the product are you using? On what operating system?
Version 1.35.0 on Windows XP

Please provide any additional information below.
When the file is less than 15 MB working correctly, but when the file is 
for example 50 MB I see this bug "There was a problem communicating with 
the service."

Please let me know your answers ASAP.

Thanks in advance.
YouTubeWriteClient.java
27.2 KB   View   Download
Aug 9, 2009
Project Member #1 vbarat...@gmail.com
I just tried it on a linux box with a 100MB file., and it works.  From your stack
trace it looks like your are using the youtube sample.  Do you have any local
modifications in the sample (didnt seem to have any at first glance... just trying to
make sure)?  And what is the jdk version are you using?
Status: RequestedFeedback
Aug 10, 2009
#2 alonso...@gmail.com
Hi vbarathan,

This file YouTubeWriteClient.java not has been modified, only for use my developer 
key, user and password.

My JDK version is "jdk1.6.0_13".

I'm using Eclipse on Windows XP.

Maybe the difference is because you are using Linux or a different JDK version.

Thanks in advances.
Sign in to add a comment

Powered by Google Project Hosting