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

wmic is called on every method call of RegistrationData.loadFromXML

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6u5
    • Fix Version/s: 6u12
    • Component/s: install
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      windows
    • Verification:
      Not verified

      Description

      It was designed that wmic is called only once to obtain the system environmental data. Apparently, at every NetBeans IDE startup, wmic is invoked 5 times repeatedly. It is called on every call of RegistrationData.loadFromXML().

             at java.lang.Thread.dumpStack(Thread.java:1206)
             at org.netbeans.modules.servicetag.WindowsSystemEnvironment.getWmicResult(WindowsSystemEnvironment.java:121)
             at org.netbeans.modules.servicetag.WindowsSystemEnvironment.<init>(WindowsSystemEnvironment.java:75)
             at org.netbeans.modules.servicetag.SystemEnvironment.getSystemEnvironment(SystemEnvironment.java:83)
             at org.netbeans.modules.servicetag.RegistrationData.initEnvironment(RegistrationData.java:241)
             at org.netbeans.modules.servicetag.RegistrationData.<init>(RegistrationData.java:235)
             at org.netbeans.modules.servicetag.RegistrationDocument.load(RegistrationDocument.java:125)
             at org.netbeans.modules.servicetag.RegistrationData.loadFromXML(RegistrationData.java:426)
             at org.netbeans.modules.reglib.NbServiceTagSupport.getRegistrationData(NbServiceTagSupport.java:373)
             at org.netbeans.modules.reglib.NbServiceTagSupport.getNbServiceTag(NbServiceTagSupport.java:453)
             at org.netbeans.modules.reglib.NbServiceTagSupport.createNbServiceTag(NbServiceTagSupport.java:171)
             at org.netbeans.modules.registration.NbInstaller.restored(NbInstaller.java:98)
             at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:419)
             at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:340)
             at org.netbeans.ModuleManager.enable(ModuleManager.java:936)
             at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
             at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
             at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
             at org.netbeans.core.startup.Main.getModuleSystem(Main.java:163)
             at org.netbeans.core.startup.Main.start(Main.java:314)
             at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
             at java.lang.Thread.run(Thread.java:619)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: