Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2892

NPE at AnnotationModelHelper.java:156 (NetBeans 11.0)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 10

      Description

      I right clicked on the editor that had an existing .java file open that I was working on the day before and I received the following unexpected error:

       

      -------------------------------------------------------------------------------
      >Log Session: Thursday, July 18, 2019 11:20:30 AM CDT
      >System Info:
        Product Version         = Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
        Operating System        = Windows 10 version 10.0 running on amd64
        Java; VM; Vendor        = 1.8.0_151; Java HotSpot(TM) 64-Bit Server VM 25.151-b12; Oracle Corporation
        Runtime                 = Java(TM) SE Runtime Environment 1.8.0_151-b12
        Java Home               = C:\Program Files\Java\jdk1.8.0_151\jre
        System Locale; Encoding = en_US (nb); Cp1252
        Home Directory          = C:\Users\John Kay
        Current Directory       = C:\Program Files\NetBeans 11.0\netbeans\bin
        User Directory          = C:\Users\John Kay\AppData\Roaming\NetBeans\11.0
        Cache Directory         = C:\Users\John Kay\AppData\Local\NetBeans\Cache\11.0
        Installation            = C:\Program Files\NetBeans 11.0\netbeans\nb
                                  C:\Program Files\NetBeans 11.0\netbeans\ergonomics
                                  C:\Program Files\NetBeans 11.0\netbeans\ide
                                  C:\Program Files\NetBeans 11.0\netbeans\extide
                                  C:\Program Files\NetBeans 11.0\netbeans\java
                                  C:\Program Files\NetBeans 11.0\netbeans\apisupport
                                  C:\Program Files\NetBeans 11.0\netbeans\webcommon
                                  C:\Program Files\NetBeans 11.0\netbeans\websvccommon
                                  C:\Program Files\NetBeans 11.0\netbeans\enterprise
                                  C:\Program Files\NetBeans 11.0\netbeans\profiler
                                  C:\Program Files\NetBeans 11.0\netbeans\php
                                  C:\Program Files\NetBeans 11.0\netbeans\harness
                                  C:\Program Files\NetBeans 11.0\netbeans\groovy
                                  C:\Program Files\NetBeans 11.0\netbeans\javafx
                                  C:\Program Files\NetBeans 11.0\netbeans\platform
        Boot & Ext. Classpath   = C:\Program Files\Java\jdk1.8.0_151\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_151\jre\classes;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\zipfs.jar
        Application Classpath   = C:\Program Files\NetBeans 11.0\netbeans\platform\lib\boot.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\lib\org-openide-modules.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\lib\org-openide-util-lookup.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\lib\org-openide-util-ui.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.8.0_151\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_151\lib\tools.jar
        Startup Classpath       = C:\Program Files\NetBeans 11.0\netbeans\platform\core\asm-all-5.0.1.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\core\core-base.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\core\core.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\core\org-netbeans-libs-asm.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\core\org-openide-filesystems-compat8.jar;C:\Program Files\NetBeans 11.0\netbeans\platform\core\org-openide-filesystems.jar;C:\Program Files\NetBeans 11.0\netbeans\nb\core\org-netbeans-upgrader.jar;C:\Program Files\NetBeans 11.0\netbeans\nb\core\locale\core_nb.jar
      -------------------------------------------------------------------------------

      SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.maven.j2ee.web.WebReplaceTokenProvider$2
      java.lang.NullPointerException
          at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTask(AnnotationModelHelper.java:156)
          at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTask(AnnotationModelHelper.java:124)
          at org.netbeans.modules.j2ee.dd.impl.web.metadata.WebAppMetadataModelImpl.runReadAction(WebAppMetadataModelImpl.java:108)
          at org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:97)
          at org.netbeans.modules.maven.j2ee.web.WebAppMetadataHelper.getServlets(WebAppMetadataHelper.java:42)
          at org.netbeans.modules.maven.j2ee.web.WebReplaceTokenProvider.isServletFile(WebReplaceTokenProvider.java:272)
          at org.netbeans.modules.maven.j2ee.web.WebReplaceTokenProvider.access$100(WebReplaceTokenProvider.java:72)
          at org.netbeans.modules.maven.j2ee.web.WebReplaceTokenProvider$2.run(WebReplaceTokenProvider.java:327)
          at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
          at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
          at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jkay John Kay
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: