You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Thomas Schapitz (Jira)" <ji...@apache.org> on 2021/04/08 10:59:00 UTC

[jira] [Commented] (NETBEANS-5525) StackOverflowError in Javascript

    [ https://issues.apache.org/jira/browse/NETBEANS-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17317091#comment-17317091 ] 

Thomas Schapitz commented on NETBEANS-5525:
-------------------------------------------

Hey there,

just encountered the very same issue:
 >System Info: 
 Product Version = Apache NetBeans IDE 12.3
 Operating System = Mac OS X version 10.15.7 running on x86_64
 Java; VM; Vendor = 13; OpenJDK 64-Bit Server VM 13+33; Oracle Corporation
 Runtime = OpenJDK Runtime Environment 13+33
 Java Home = /Library/Java/JavaVirtualMachines/openjdk-13.jdk/Contents/Home
 System Locale; Encoding = de_DE (nb); UTF-8:

Log excerpt:

INFO [org.netbeans.modules.git.status]: GitInterceptor.refreshTask: Scanning in progress, trying again in 10.000ms
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated again.
INFO [null]: Last record repeated 2 more times.
WARNING [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]
java.lang.StackOverflowError
 at java.base/java.util.WeakHashMap.get(WeakHashMap.java:398)
 at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:121)
 at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:402)
 at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:396)
 at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:281)
 at org.netbeans.modules.javascript2.model.JsElementImpl.isInternalFile(JsElementImpl.java:194)
 at org.netbeans.modules.javascript2.model.JsElementImpl.isPlatform(JsElementImpl.java:188)
 at org.netbeans.modules.javascript2.model.api.IndexedElement$Flag.getFlag(IndexedElement.java:387)
 at org.netbeans.modules.javascript2.editor.index.JsIndexer.createDocument(JsIndexer.java:121)
 at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:221)
 at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:239)
 at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229)
 at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229)

This happened with an reactjs Project just created using 

'create-react-app react-complete-guide ' within the netbeans terminal,
 then opening the project in netbeans, und using its context menue to build it with > npm scripts > start.

Note, that there seem to be a number of parsing errors as in the project created, as well as in the libraries wihin node_modules (Don't know, if this related, but I imagine having parsing errors in the JS Source might throw off the JS indexer too)

Just so you may know the react versions implied:

{
 "name": "react-complete-guide",
 "version": "0.1.0",
 "private": true,
 "dependencies": {
 "@testing-library/jest-dom": "^5.11.10",
 "@testing-library/react": "^11.2.6",
 "@testing-library/user-event": "^12.8.3",
 "react": "^17.0.2",
 "react-dom": "^17.0.2",
 "react-scripts": "4.0.3",
 "web-vitals": "^1.1.1"
 },

As you may note: I'm just learing react, and fairly new at node, npm etc.

> StackOverflowError in Javascript 
> ---------------------------------
>
>                 Key: NETBEANS-5525
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5525
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.3
>            Reporter: Hynek Mlnarik
>            Priority: Major
>
> When scanning a Javascript project ([https://github.com/keycloak/keycloak/tree/master/themes)] the following stack overflow is reported:
> {noformat}
> java.lang.StackOverflowErrorjava.lang.StackOverflowError
> at java.base/java.util.WeakHashMap.getTable(WeakHashMap.java:350) at java.base/java.util.WeakHashMap.get(WeakHashMap.java:398)
> at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:121) 
> at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:402) 
> at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:396) 
> at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:281) 
> at org.netbeans.modules.javascript2.model.JsElementImpl.isInternalFile(JsElementImpl.java:194) 
> at org.netbeans.modules.javascript2.model.JsElementImpl.isPlatform(JsElementImpl.java:188) 
> at org.netbeans.modules.javascript2.model.api.IndexedElement$Flag.getFlag(IndexedElement.java:387) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.createDocument(JsIndexer.java:121) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:221) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> [...clipped ...]
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) 
> at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:229) {noformat}
>  



--
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