Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8145302

NullPointerException at java.util.logging.Logger.demandLogger

XMLWordPrintable

      FULL PRODUCT VERSION :
      1.8.0_65-b17

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      Mathworks library (www.mathworks.com) throws NullPointerException when trying to create a java.util.logging.Logger. It appears that Logger.demandLogger doesn't guard against the caller argument being null.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      http://stackoverflow.com/questions/33996439/nullpointerexception-at-java-util-logging-logger-demandlogger

      ACTUAL -
      Stacktrace was generated.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      com.mathworks.toolbox.javabuilder.MWException: Java exception occurred:
      java.lang.NullPointerException
          at java.util.logging.Logger.demandLogger(Logger.java:451)
          at java.util.logging.Logger.getLogger(Logger.java:502)
          at com.mathworks.toolbox.javabuilder.internal.MWMCR.mclFeval(Native Method)
          at com.mathworks.toolbox.javabuilder.internal.MWMCR.access$600(MWMCR.java:23)
          at com.mathworks.toolbox.javabuilder.internal.MWMCR$6.mclFeval(MWMCR.java:833)
          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:483)
          at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:731)
          at com.sun.proxy.$Proxy2.mclFeval(Unknown Source)
          at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:406)
          at mDataEngine.mDataEngineMIF.volatility(mDataEngineMIF.java:7212)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      -Dsun.util.logging.disableCallerCheck=true

            dfuchs Daniel Fuchs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: