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

Unable to register TopComponents when using java 17

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.6
    • None
    • None
    • Windows 10,

      OpenJDK 17,

      Netbeans 12.6,

      Netbeans APIs; RELEASE126

    Description

      We have a Netbeans platform project and currently changing java platform from java 1.8 to java 17. Along with that we've updated all the netbeans APIs to RELEASE126. When doing this, Netbeans seems to be unable to generate/ read the resource bundle. I think the issue stems from org.openide.windows.TopComponent, but I'm not sure.

      The following error message is present for all our TopComponents:

      INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'ProblemTopComponent'. Reason: null
      Content: 
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
      <settings version="1.0">
        <instance class="...core.problem.ProblemTopComponent"/>
      </settings>
      Class: class ...core.problem.ProblemTopComponent
      Source: MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings]
      Content: 
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
      <settings version="1.0">
        <instance class="...core.problem.ProblemTopComponent"/>
      </settings>
      Class: class ...core.problem.ProblemTopComponent
      Source: MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings]
      Caused: java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key CTL_ProblemTopComponent
          at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564)
          at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521)
          at org.openide.util.NbBundle.getMessage(NbBundle.java:637)
          at ...core.problem.Bundle.CTL_ProblemTopComponent(Bundle.java:16)
          at ...core.problem.ProblemTopComponent.<init>(ProblemTopComponent.java:67)
      Caused: java.lang.reflect.InvocationTargetException
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
          at org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:75)
          at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603)
      Caused: java.io.IOException
          at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:605)
          at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:401)
      [catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:547)
          at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:657)
          at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:453)
          at org.netbeans.core.windows.LazyLoader.loadNow(LazyLoader.java:135)
          at org.netbeans.core.windows.LazyLoader.access$400(LazyLoader.java:39)
          at org.netbeans.core.windows.LazyLoader$2.run(LazyLoader.java:106)
          at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
          at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
          at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
          at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
          at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
          at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
          at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
          at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
          at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Content: 
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
      <settings version="1.0">
        <instance class="...core.problem.ProblemTopComponent"/>
      </settings>
      ALL [null]: Class: class ...core.problem.ProblemTopComponent
      ALL [null]: Source: MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings]
      
      

      Attachments

        Activity

          People

            antoai anton
            antoai anton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: