Exception, usually NullPointerExeception, Logged Without Stacktrace

Solution Verified - Updated -

Issue

  • Log shows an error like

    15:07:16,596 DEBUG [xxx.xxx.XXXX] (http-127.0.0.1:8080-4) Exception is thrown:
    

    java.lang.NullPointerException

    Or

    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor961.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        ... 68 more
    Caused by: java.lang.NullPointerException
    

Environment

  • Java Virtual Machine (JVM)
    • 1.7
    • 1.8
  • Exception / NullPointerException thown with no stack trace

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