GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — null pointer on startup · Issue #1965 · googleapis/google-cloud-java

null pointer on startup #1965

New issue
Copy link
New issue
Copy link
Closed
Closed
null pointer on startup#1965
Copy link
Assignees
shinfan

Description

@jehrlich
jehrlich
opened on Apr 21, 2017
Issue body actions

Following instructions in the README, I added
libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "0.13.0-beta" to my build.sbt. This causes a null pointer exception on startup:

--- (Running the application, auto-reloading is enabled) ---

java.lang.NullPointerException
at io.netty.channel.group.DefaultChannelGroup.add(DefaultChannelGroup.java:146)
at play.core.server.NettyServer.bind(NettyServer.scala:140)
at play.core.server.NettyServer.play$core$server$NettyServer$$bindChannel(NettyServer.scala:224)
at play.core.server.NettyServer$$anonfun$1.apply(NettyServer.scala:216)
at play.core.server.NettyServer$$anonfun$1.apply(NettyServer.scala:216)
at scala.Option.map(Option.scala:146)
at play.core.server.NettyServer.(NettyServer.scala:216)
at play.core.server.NettyServerProvider.createServer(NettyServer.scala:279)
at play.core.server.NettyServerProvider.createServer(NettyServer.scala:278)
at play.core.server.DevServerStart$$anonfun$mainDev$1.apply(DevServerStart.scala:235)
at play.core.server.DevServerStart$$anonfun$mainDev$1.apply(DevServerStart.scala:65)
at play.utils.Threads$.withContextClassLoader(Threads.scala:21)
at play.core.server.DevServerStart$.mainDev(DevServerStart.scala:64)
at play.core.server.DevServerStart$.mainDevHttpMode(DevServerStart.scala:54)
at play.core.server.DevServerStart.mainDevHttpMode(DevServerStart.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at play.runsupport.Reloader$.startDevMode(Reloader.scala:234)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:74)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:74)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:100)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:53)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] (*:playRun) java.lang.reflect.InvocationTargetException
[error] Total time: 8 s, completed Apr 21, 2017 5:44:08 PM

Process finished with exit code 1

This is using IntelliJ with Scala plugin and Play Framework. Removing the dependency eliminates the nullpointer. Interestingly adding

"com.seancheatham" %% "storage-google-cloud" % "0.1.3",//https://index.scala-lang.org/seancheatham/scala-storage-wrappers

to build.sbt works just fine. This is a thin wrapper listing google-cloud-storage as a dependency, so an adequate work-around for my purposes. To be explicit with the two lines in my build file as below everything works.

  "com.seancheatham" %% "storage-google-cloud" % "0.1.3",
  //"com.google.cloud" % "google-cloud-storage" % "0.13.0-beta",

If I comment the first and uncomment the second, I get a null pointer on startup.

Activity

  1. jehrlich commented on Apr 25, 2017

    @jehrlich
    jehrlich
    on Apr 25, 2017
    Author
    More actions

    This link https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-storage#google-cloud-java-client-for-storage recommends a newer SDK:

    If you are using SBT, add this to your dependencies
    libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.0.0-rc2"

    I had to clean my compiler cache, but after doing that, 1.0.0-rc2 compiles, at least. README needs updating!

  2. shinfan commented on May 8, 2017

    @shinfan
    shinfan
    on May 8, 2017
    Contributor
    More actions

    Closing this issue since the the new README now recommends 1.0.1.

  3. shinfan
    closed this as completedon May 8, 2017
  4. JustinBeckwith
    assigned
    shinfan
    on Feb 1, 2021
  5. meltsufin
    added a commit that references this issue on Dec 22, 2025

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1631)

    5cb4660
  6. chingor13
    added a commit that references this issue on Jan 6, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1331)

    f39612f
  7. chingor13
    added a commit that references this issue on Jan 22, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1481)

    b55ec32
  8. chingor13
    added 4 commits that reference this issue on Feb 20, 2026

    fix: at connection level, retry for internal errors (#1965)

    9c01bc1

    chore(main): release 2.29.0 (#1969)

    b05fff5

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2523)

    858488a

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1419)

    b4cb817
  9. suztomo
    added 2 commits that reference this issue on Mar 9, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#3339)

    3647cc1

    ci: [java] automatic kokoro label in and /gcbrun comment (googleapis#…

    67c4b89
  10. chingor13
    added a commit that references this issue on Mar 12, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1419)

    4e2b0f8
  11. suztomo
    added a commit that references this issue on Mar 23, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (googleapis#…

    674c2a4
  12. suztomo
    added a commit that references this issue on Mar 30, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1415)

    7ef6966
  13. chingor13
    added a commit that references this issue on Mar 30, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2576)

    de3236f
  14. lqiu96
    added a commit that references this issue on Apr 1, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#1415)

    1e825da
  15. meltsufin
    added 6 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    ec3b386

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2064)

    e85c0a5

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    0e4cb48

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2064)

    6c2b3e8

    chore(main): release 1.133.0 (#2206)

    1180af9
  16. benjaminp
    added a commit that references this issue on Jul 13, 2026

    test(deps): update dependency io.grpc:protoc-gen-grpc-java to v1.59.0 (…

    0eb4167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @shinfan
    shinfan

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.