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

SAXParseException on given Textmate file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 11.3
    • None
    • textmate-lexer

    Description

      I downloaded the newest version of NetBeans 11.3 beta 2. I tried to add a new language via Options -> Editor -> Language Servers for HTTP. See my attached textmate file for that.

      After I added the language and hit apply on the options window, I got this exception:

      org.xml.sax.SAXParseException; lineNumber: 66; columnNumber: 34; The content of elements must consist of well-formed character data or markup.
      	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
      	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
      	at org.eclipse.tm4e.core.internal.parser.xml.XMLPListParser.parse(XMLPListParser.java:48)
      	at org.eclipse.tm4e.core.internal.grammar.reader.GrammarReader$1.parse(GrammarReader.java:36)
      	at org.eclipse.tm4e.core.internal.grammar.reader.SyncGrammarReader.load(SyncGrammarReader.java:33)
      	at org.eclipse.tm4e.core.internal.grammar.reader.GrammarReader.readGrammarSync(GrammarReader.java:52)
      	at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:154)
      	at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:144)
      	at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:140)
      	at org.netbeans.modules.lsp.client.options.LanguageStorage.findScope(LanguageStorage.java:231)
      [catch] at org.netbeans.modules.lsp.client.options.LanguageStorage.lambda$store$1(LanguageStorage.java:115)
      	at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
      	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102)
      	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494)
      	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397)
      	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417)
      	at org.netbeans.modules.lsp.client.options.LanguageStorage.store(LanguageStorage.java:65)
      	at org.netbeans.modules.lsp.client.options.LanguageServersPanel.store(LanguageServersPanel.java:193)
      	at org.netbeans.modules.lsp.client.options.LanguageServersOptionsPanelController$1.run(LanguageServersOptionsPanelController.java:51)
      	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
      	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)
      
      

      The exception is hidden inside of the Notifications, this wouldn't be a problem, but the problem is, that the lexer get's not affected to the given file. So nothing happened after I tried to add this lexer.

      Attachments

        1. http.tmLanguage.xml
          8 kB
          Christian Lenz

        Activity

          People

            jlahoda Jan Lahoda
            chrizzly Christian Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: