My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: NullPointerException with YouTube example mentioned in UserGuide
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2011


 
Reported by j...@patel.org.in, Apr 28, 2011
What steps will reproduce the problem?

1. Follow UserGuide to execute:

  import com.google.gdata.youtube._
  val s = new YouTubeService("learning-1.0")
  for (e <- s.getVideos(YouTubeQuery.empty / "Comedy")) println(e.rating)

2. Get a NullPointerException (with stack trace):

java.lang.NullPointerException
	at com.google.gdata.youtube.VideoEntries$$anonfun$videoEntryExtra$1$$anonfun$apply$19$$anonfun$apply$20.apply(VideoEntries.scala:153)
	at com.google.gdata.youtube.VideoEntries$$anonfun$videoEntryExtra$1$$anonfun$apply$19$$anonfun$apply$20.apply(VideoEntries.scala:153)
	at com.google.xml.combinators.Picklers$$anon$5.unpickle(Picklers.scala:437)
	at com.google.xml.combinators.Picklers$$anon$9.unpickle(Picklers.scala:361)
	at com.google.xml.combinators.Picklers$$anon$10.unpickle(Picklers.scala:392)
	at com.google.xml.combinators.Picklers$$anon$9.unpickle(Picklers.scala:361)
	at com.google.xml.combinators.Picklers$$anon$15.unpickle(Picklers.scala:509)
	at com.google.xml.combinators.Picklers$$anon$9.unpickle(Picklers.scala:359)
	at com.google.xml.combinators.Picklers$$anon$15.unpickle(Picklers.scala:509)
	at com.google.xml.combinators.Picklers$$anon$11.unpickle(Picklers.scala:403)
	at com.google.xml.combinators.Picklers$$anon$8.unpickle(Picklers.scala:343)
	at com.google.xml.combinators.Picklers$$anon$13.unpickle(Picklers.scala:448)
	at com.google.xml.combinators.Picklers$$anon$9.unpickle(Picklers.scala:361)
	at com.google.xml.combinators.Picklers$$anon$10.unpickle(Picklers.scala:392)
	at com.google.xml.combinators.Picklers$$anon$15.unpickle(Picklers.scala:509)
	at com.google.xml.combinators.Picklers$$anon$9.unpickle(Picklers.scala:359)
	at com.google.xml.combinators.Picklers$$anon$15.unpickle(Picklers.scala:509)
	at com.google.xml.combinators.Picklers$$anon$11.unpickle(Picklers.scala:403)
	at com.google.xml.combinators.Picklers$$anon$8.unpickle(Picklers.scala:343)
	at com.google.gdata.client.GDataRequest.unpickle(GDataRequest.scala:131)
	at com.google.gdata.Service.query(Service.scala:109)
	at com.google.gdata.Service.query(Service.scala:96)
	at com.google.gdata.youtube.YouTubeService.getVideos(YouTubeService.scala:70)
	at .<init>(<console>:12)
	at .<clinit>(<console>)
	at .<init>(<console>:11)
	at .<clinit>(<console>)
	at $export(<console>)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)
	at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.scala:828)
	at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
	at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)
	at java.lang.Thread.run(Thread.java:680)



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

Something like what is mentioned in the UserGuide


What version of the product are you using? On what operating system?

MacOSX 10.6.7 / Scala 2.9.0.RC2 / Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24


Please provide any additional information below.

I am a complete Scala noob. I will be investigating this issue independently (and hopefully provide meaningful feedback), but kindly also take a look.


Jul 5, 2011
Project Member #1 jagua...@gmail.com
Should be fixed in trunk, need to roll out a release this weekend.
Status: Fixed

Powered by Google Project Hosting