Bonjour à tous,

j'utilise l'api Youtube pour extraire quelques commentaires d'une vidéo. J'ai une exception qui me gêne depuis 15 jours. J'ai essayé tous mais elle persiste. Ci-dessous le code ou ça bloque ainsi que l'exception. Si vous pouvez m'aider n'hésitez pas s'il vous plaît. Merci d'avance

J'aimerai passer cette étape dans le cas ou ça va générer cette erreur mais e ne réussi pas.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
  if (comment.getLinks("http://gdata.youtube.com/schemas/2007#in-reply-to","application/atom+xml").get(0).getHref()!=null){


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
com.google.gdata.util.ResourceNotFoundException: Comment not found.
<errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>ResourceNotFoundException</code><internalReason>Comment not found.</internalReason></error></errors>
 
	at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:599)
	at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)
	at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)
	at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
	at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
	at com.google.gdata.client.Service.getEntry(Service.java:1352)
	at com.google.gdata.client.GoogleService.getEntry(GoogleService.java:581)
	at com.google.gdata.client.Service.getEntry(Service.java:1278)
	at Retrieve_comments_video.main(Retrieve_comments_video.java:66)