You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (Jira)" <ji...@apache.org> on 2020/02/11 11:51:00 UTC

[jira] [Closed] (NETBEANS-3801) SAXParseException on given Textmate file

     [ https://issues.apache.org/jira/browse/NETBEANS-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Lenz closed NETBEANS-3801.
------------------------------------
    Resolution: Invalid

The XML file was invalid. Thx for pointing that out [~jlahoda]

> SAXParseException on given Textmate file
> ----------------------------------------
>
>                 Key: NETBEANS-3801
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3801
>             Project: NetBeans
>          Issue Type: Bug
>          Components: textmate-lexer
>    Affects Versions: 11.3
>         Environment: Product Version: Apache NetBeans IDE 11.3-beta2
> Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.3-beta2
> Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.3-beta2
>            Reporter: Christian Lenz
>            Assignee: Jan Lahoda
>            Priority: Major
>              Labels: textmate-lexer
>         Attachments: http.tmLanguage.xml
>
>
> 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:
> {code}
> 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)
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists