NullPointerException when connect to database using images based on OpenJDK 8 image

Solution Verified - Updated -

Issue

  • When upgrade to registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.8-26, the following error was observed in the log:

    Error 
    Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name
    at com.sun.security.auth.UnixPrincipal.<init>(UnixPrincipal.java:71)
    at com.sun.security.auth.module.UnixLoginModule.login(UnixLoginModule.java:133) 
    

    this error does not throw when using the version 1.8.25.

Environment

  • Openshift
    • 4
  • OpenJDK 8 image (redhat-openjdk-18/openjdk18-openshift)
    • 1.8-26

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content