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

NPE at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:149)

XMLWordPrintable

    • x86_64
    • os_x

      FULL PRODUCT VERSION :


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      this is the first time that I Install and use this.

      A DESCRIPTION OF THE PROBLEM :
      when i input the programe and click the complier, the programe doesn't valide, and the "console" show these words below.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      println("bonjour")

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      bonjour
      ACTUAL -
      java.lang.NullPointerException
      at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:149)
      at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:134)
      at com.sun.tools.javac.file.Locations.access$000(Locations.java:71)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.computePath(Locations.java:617)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.lazy(Locations.java:643)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.getLocation(Locations.java:577)
      at com.sun.tools.javac.file.Locations.getLocation(Locations.java:678)
      at com.sun.tools.javac.file.JavacFileManager.getLocation(JavacFileManager.java:803)
      at com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:617)
      at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2748)
      at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2444)
      at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76)
      at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
      at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:300)
      at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:486)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
      at com.sun.tools.javac.main.Main.compile(Main.java:523)
      at com.sun.tools.javac.main.Main.compile(Main.java:381)
      at com.sun.tools.javac.main.Main.compile(Main.java:370)
      at com.sun.tools.javac.main.Main.compile(Main.java:361)
      at com.sun.tools.javac.Main.compile(Main.java:74)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      at org.javascool.core.Java2Class.compile2(Java2Class.java:140)
      at org.javascool.core.Java2Class.compile(Java2Class.java:68)
      at org.javascool.core.Java2Class.compile(Java2Class.java:47)
      at org.javascool.core.Java2Class.compile(Java2Class.java:53)
      at org.javascool.core.ProgletEngine.doCompile(ProgletEngine.java:113)
      at org.javascool.gui.JVSFileTabs.compileFile(JVSFileTabs.java:178)
      at org.javascool.gui.JVSPanel.compileFile(JVSPanel.java:80)
      at org.javascool.gui.JVSToolBar$8.run(JVSToolBar.java:107)
      at org.javascool.widgets.ToolBar$1.actionPerformed(ToolBar.java:101)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
      at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.Component.processEvent(Unknown Source)
      at java.desktop/java.awt.Container.processEvent(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.EventQueue.access$500(Unknown Source)
      at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.NullPointerException
      at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:149)
      at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:134)
      at com.sun.tools.javac.file.Locations.access$000(Locations.java:71)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.computePath(Locations.java:617)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.lazy(Locations.java:643)
      at com.sun.tools.javac.file.Locations$BootClassPathLocationHandler.getLocation(Locations.java:577)
      at com.sun.tools.javac.file.Locations.getLocation(Locations.java:678)
      at com.sun.tools.javac.file.JavacFileManager.getLocation(JavacFileManager.java:803)
      at com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:617)
      at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2748)
      at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2444)
      at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76)
      at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574)
      at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:300)
      at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:486)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
      at com.sun.tools.javac.main.Main.compile(Main.java:523)
      at com.sun.tools.javac.main.Main.compile(Main.java:381)
      at com.sun.tools.javac.main.Main.compile(Main.java:370)
      at com.sun.tools.javac.main.Main.compile(Main.java:361)
      at com.sun.tools.javac.Main.compile(Main.java:74)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      at org.javascool.core.Java2Class.compile2(Java2Class.java:140)
      at org.javascool.core.Java2Class.compile(Java2Class.java:68)
      at org.javascool.core.Java2Class.compile(Java2Class.java:47)
      at org.javascool.core.Java2Class.compile(Java2Class.java:53)
      at org.javascool.core.ProgletEngine.doCompile(ProgletEngine.java:113)
      at org.javascool.gui.JVSFileTabs.compileFile(JVSFileTabs.java:178)
      at org.javascool.gui.JVSPanel.compileFile(JVSPanel.java:80)
      at org.javascool.gui.JVSToolBar$8.run(JVSToolBar.java:107)
      at org.javascool.widgets.ToolBar$1.actionPerformed(ToolBar.java:101)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
      at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.Component.processEvent(Unknown Source)
      at java.desktop/java.awt.Container.processEvent(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.EventQueue.access$500(Unknown Source)
      at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: