dsisnero / gdata-scala-client

Automatically exported from code.google.com/p/gdata-scala-client
Apache License 2.0
0 stars 0 forks source link

NullPointerException with YouTube example mentioned in UserGuide #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by j...@patel.org.in on 28 Apr 2011 at 9:41

GoogleCodeExporter commented 9 years ago
Should be fixed in trunk, need to roll out a release this weekend.

Original comment by jagua...@gmail.com on 5 Jul 2011 at 8:30