[jira] [Commented] (NETBEANS-5266) Netbeans crash- memory leak when performing background checks
[ https://issues.apache.org/jira/browse/NETBEANS-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317672#comment-17317672 ] Miroslav Šulc commented on NETBEANS-5266: - i have the same issue, though on linux, with netbeans built from trunk. the issue in my case started just recently, it's not as old as of january in my case. i will try to investigate it more to find out where the all memory and cpu resources go... > Netbeans crash- memory leak when performing background checks > - > > Key: NETBEANS-5266 > URL: https://issues.apache.org/jira/browse/NETBEANS-5266 > Project: NetBeans > Issue Type: Bug > Components: php - Editor >Affects Versions: 12.2 > Environment: Windows 10, Netbeans 12.2, PHP, 16Gb of memory >Reporter: Dave Power >Priority: Major > > Netbeans goes into a "high-cpu" usage and eventually runs out of memory when > performinig a background scan > UI log > > 2021-01-19T17:00:36 > 1611075636529 > 126 > org.openide.util.RequestProcessor > 1000 > 28 > > C:\Users\micro\AppData\Roaming\NetBeans\12.2\var\log\heapdump.hprof > > java.lang.OutOfMemoryError: Java heap space > > > > 2021-01-19T17:04:32 > 1611075872427 > 177 > 700 > 35 > UI_USER_CONFIGURATION > UI_USER_CONFIGURATION > org.netbeans.modules.uihandler.Bundle > Windows 10, 10.0, amd64 > Java HotSpot(TM) 64-Bit Server VM, 11.0.4+10-LTS, Java(TM) SE > Runtime Environment, 11.0.4+10-LTS > Apache NetBeans IDE 12.2 > > OutOfMemoryError: Java heap space > Please provide a description of the problem or the steps to > reproduce > * > > IDE log > --- > >Log Session: Tuesday, January 19, 2021 at 5:04:09 PM Greenwich Mean Time > >System Info: > Product Version = Apache NetBeans IDE 12.2 > Operating System= Windows 10 version 10.0 running on amd64 > Java; VM; Vendor= 11.0.4; Java HotSpot(TM) 64-Bit Server VM > 11.0.4+10-LTS; Oracle Corporation > Runtime = Java(TM) SE Runtime Environment 11.0.4+10-LTS > Java Home = C:\Program Files\Java\jdk-11.0.4 > System Locale; Encoding = en_GB (nb); Cp1252 > Home Directory = C:\Users\micro > Current Directory = C:\Program Files\NetBeans-12.2 > User Directory = C:\Users\micro\AppData\Roaming\NetBeans\12.2 > Cache Directory = C:\Users\micro\AppData\Local\NetBeans\Cache\12.2 > Installation= C:\Program Files\NetBeans-12.2\netbeans\nb > C:\Program Files\NetBeans-12.2\netbeans\ergonomics > C:\Program Files\NetBeans-12.2\netbeans\ide > C:\Program Files\NetBeans-12.2\netbeans\extide > C:\Program Files\NetBeans-12.2\netbeans\java > C:\Program Files\NetBeans-12.2\netbeans\apisupport > C:\Program Files\NetBeans-12.2\netbeans\webcommon > C:\Program > Files\NetBeans-12.2\netbeans\websvccommon > C:\Program Files\NetBeans-12.2\netbeans\enterprise > C:\Program Files\NetBeans-12.2\netbeans\profiler > C:\Program Files\NetBeans-12.2\netbeans\php > C:\Program Files\NetBeans-12.2\netbeans\harness > C:\Program Files\NetBeans-12.2\netbeans\cpplite > C:\Program Files\NetBeans-12.2\netbeans\groovy > C:\Program Files\NetBeans-12.2\netbeans\javafx > C:\Program Files\NetBeans-12.2\netbeans\platform > Boot & Ext. Classpath = > Application Classpath = C:\Program > Files\NetBeans-12.2\netbeans\platform\lib\boot.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\lib\org-openide-modules.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\lib\org-openide-util-lookup.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\lib\org-openide-util-ui.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\lib\org-openide-util.jar > Startup Classpath = C:\Program > Files\NetBeans-12.2\netbeans\platform\core\asm-8.0.1.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\core\asm-commons-8.0.1.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\core\asm-tree-8.0.1.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\core\core-base.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\core\core.jar;C:\Program > Files\NetBeans-12.2\netbeans\platform\core\org-netbeans-libs-asm.jar;C:\Program > > Files\NetBeans-12.2\netbeans\platform\core\org-openide-filesystems-compat8.jar;C:\Program > >
[jira] [Commented] (NETBEANS-5465) Unexpected WARNING in NetBeans 12.3 wit JDK 16
[ https://issues.apache.org/jira/browse/NETBEANS-5465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317571#comment-17317571 ] Bruce K. Haddon commented on NETBEANS-5465: --- Dear Geertjan, I understand (from long ago) about upper case and shouting, but I also have a pet peeve. That is: messages that tell me I s***w*d up, but give no indication of what that action was or where to get a better explanation, or even better, what I should do about it. I have been in this programming and computer business in one way or another for 50+ years, now semi-retired but still using, and teaching, Java (since 1996), and such message still aggravate me (even though I have lost count of the number of them). I admire recent changes, particularly of the kind where the JVM decorates its NullPointerExceptions with a location and source. If I am going to use uppercase to shout, it would be to applaud more steps of the same kind. Thank you for your reply. I shall attempt to investigate 12.4, and check on a better response, Bruce - Dr. Bruce K. Haddon 1506 Chambers Drive +1 303/499 6240 Boulder, CO 80305-7002 bruce.had...@colorado.edu "Science is facts; just as houses are made of stones, so is science made of facts; but a pile of stones is not a house and a collection of facts is not necessarily science."—Henri Poincare > Unexpected WARNING in NetBeans 12.3 wit JDK 16 > -- > > Key: NETBEANS-5465 > URL: https://issues.apache.org/jira/browse/NETBEANS-5465 > Project: NetBeans > Issue Type: Bug > Components: javafx - Project >Affects Versions: 12.3 > Environment: NetBeans 12.3, JDK 16, Windows 10 > Attached in a NetBeans export zip of a project exhibiting this problem. >Reporter: Bruce K. Haddon >Priority: Minor > Fix For: 12.4 > > Attachments: project.zip > > > Mar 17, 2021 3:14:44 PM com.sun.javafx.application.PlatformImpl startup > WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed > module @54eced26' > This warning turns up in existing projects using JavaFX with NetBeans 12.3 > and Java 16. These projects have been around since Java 8, and in particular, > this warning did not appear with NetBeans 12.2 and JDK 15. > THERE IS NO CLEAR EXPLANATION OF WHAT PROBLEM IS BEING REPORTED, NOR ANY > INDICATION OF STEPS TO BE TAKEN TO AVOID IT. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4314) java/maven dependency graph extremely slow
[ https://issues.apache.org/jira/browse/NETBEANS-4314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317569#comment-17317569 ] Satguru Srivastava commented on NETBEANS-4314: -- works fine in nb8 > java/maven dependency graph extremely slow > -- > > Key: NETBEANS-4314 > URL: https://issues.apache.org/jira/browse/NETBEANS-4314 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 11.3, 12.1, 12.2, 12.3 >Reporter: Bernd Wahlen >Priority: Major > Attachments: messages.log > > > when selecting graph in maven pom.xml, UI hangs for about 10 minues in > medium-sized (~70 dependencies) project. Experienced this issue for for long > time and still in 11.3, but definitely not in nb8. And btw graph calculation > is using only 1 cpu core. > environment: ubuntu 20.04 lts / adopt 14.0.1 / nb 11.3 via snap / i3-6100 -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-5560) Javadoc -overview file path inconsistent
Jeffrey created NETBEANS-5560: - Summary: Javadoc -overview file path inconsistent Key: NETBEANS-5560 URL: https://issues.apache.org/jira/browse/NETBEANS-5560 Project: NetBeans Issue Type: Improvement Components: java - Javadoc Affects Versions: 9.0, 12.3 Reporter: Jeffrey All file paths specified in a project or running a project seem to have a default directory of the project except for running javadoc. If you specify the javadoc option of "-overview overview.html" int the Project Properties -> Documenting -> Additialnal Javadoc Options it looks for in in the users login directory. The only way I can get the file in the project is to use a full path which fails for anyone else cloning the project. I tried to use something like ${src.dir}/overview.html but that just gets converted to src/overview.html and again fails because it is relative to my login directory, not the project directory. This problem seems to have been around for a long time but I can find no fix or workaround. Version 12.0 also completely fails to create the javadoc with some other error but 12.3 seems to have the same behavior I was seeing in 9.0. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3104) Extend ArchetypeWizards.definedArchetype to include optional nbactions
[ https://issues.apache.org/jira/browse/NETBEANS-3104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317343#comment-17317343 ] Ernie Rael commented on NETBEANS-3104: -- The openjfx PRs (from a year ago) mentioned in [earlier comment|https://issues.apache.org/jira/browse/NETBEANS-3104?focusedCommentId=17312777=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17312777] : > Add debug execution to the created archetypes > https://github.com/openjfx/javafx-maven-archetypes/pull/10 > comment out module syntax for JDK8 > https://github.com/openjfx/javafx-maven-archetypes/pull/11 have been merged into openjfx; unclear when it might find its way into maven central. So if this issues gets fixed, an nbactions.xml could be provided by NetBeans that uses executions from a stock openjfx archetype. Then the 4th party archetype could be dropped from NetBeans. But note that the openjfx pom.xml do not have profile or jlink execution; so some minor functionality would be lost. [Another earlier comment|https://issues.apache.org/jira/browse/NETBEANS-3104?focusedCommentId=17025192=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17025192] doesn't explicitly say so, but in addition to providing an nbactions.xml if NetBeans provides a mechanism to merge some optional execution into the pom.xml it would be useful when integrating/using 3rd party maven archetypes. > Extend ArchetypeWizards.definedArchetype to include optional nbactions > -- > > Key: NETBEANS-3104 > URL: https://issues.apache.org/jira/browse/NETBEANS-3104 > Project: NetBeans > Issue Type: Improvement >Reporter: Geertjan Wielenga >Assignee: Jaroslav Tulach >Priority: Major > Fix For: 12.2 > > > http://bits.netbeans.org/dev/javadoc/org-netbeans-api-maven/org/netbeans/api/maven/archetype/ArchetypeWizards.html -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5556) Can't wheel scroll in usages when FlatLaf is used
[ https://issues.apache.org/jira/browse/NETBEANS-5556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317304#comment-17317304 ] Karl Tauber commented on NETBEANS-5556: --- This is a bug in FlatLaf. The JTabbedPane actions `scrollTabsForwardAction` and `scrollTabsBackwardAction` did not work as expected. Fixed in FlatLaf with commit [77fc564e|[https://github.com/JFormDesigner/FlatLaf/commit/77fc564e7025ad7a3f54e03266abdaae329f4ae6].] Will be fixed in NB when a new FlatLaf version becomes available and is used in NB. Another way to fix this would be to not add the MouseWheelListener in class CloseButtonTabbedPane if FlatLaf is active. But I know that L specific code is not welcome... JTabbedPane in FlatLaf has build in support for (smooth) wheel scrolling, but this is disabled if a MouseWheelListener is added to the JTabbedPane. > Can't wheel scroll in usages when FlatLaf is used > - > > Key: NETBEANS-5556 > URL: https://issues.apache.org/jira/browse/NETBEANS-5556 > Project: NetBeans > Issue Type: Bug > Components: FlatLaf >Affects Versions: 12.3, 12.4 > Environment: Product Version: Apache NetBeans IDE 12.4-beta2 > Java: 1.8.0_282; OpenJDK 64-Bit Server VM 25.282-b08 > Runtime: OpenJDK Runtime Environment 1.8.0_282-8u282-b08-0ubuntu1~20.10-b08 > System: Linux version 5.8.0-48-generic running on amd64; UTF-8; en_US (nb) >Reporter: Tomáš Procházka >Assignee: Karl Tauber >Priority: Minor > > It is possible to use mouse wheel and scroll through opened files in editor. > Scrolling is broken in Usages tab when FlatLaf Dark Look and Feel is used. > Steps to reproduce: > # Open Java source file. > # Repeatedly invoke Find Usages action until there are more result tabs under > Usages panel. > # Try scrolling with mouse wheel when on tabs with usage results. > Switching from FlatLaf Dark to another LaF (tried GTK+) restores ability to > scroll. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Assigned] (NETBEANS-5556) Can't wheel scroll in usages when FlatLaf is used
[ https://issues.apache.org/jira/browse/NETBEANS-5556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Tauber reassigned NETBEANS-5556: - Assignee: Karl Tauber > Can't wheel scroll in usages when FlatLaf is used > - > > Key: NETBEANS-5556 > URL: https://issues.apache.org/jira/browse/NETBEANS-5556 > Project: NetBeans > Issue Type: Bug > Components: FlatLaf >Affects Versions: 12.3, 12.4 > Environment: Product Version: Apache NetBeans IDE 12.4-beta2 > Java: 1.8.0_282; OpenJDK 64-Bit Server VM 25.282-b08 > Runtime: OpenJDK Runtime Environment 1.8.0_282-8u282-b08-0ubuntu1~20.10-b08 > System: Linux version 5.8.0-48-generic running on amd64; UTF-8; en_US (nb) >Reporter: Tomáš Procházka >Assignee: Karl Tauber >Priority: Minor > > It is possible to use mouse wheel and scroll through opened files in editor. > Scrolling is broken in Usages tab when FlatLaf Dark Look and Feel is used. > Steps to reproduce: > # Open Java source file. > # Repeatedly invoke Find Usages action until there are more result tabs under > Usages panel. > # Try scrolling with mouse wheel when on tabs with usage results. > Switching from FlatLaf Dark to another LaF (tried GTK+) restores ability to > scroll. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5427) org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl uses internal class com.sun.org.apache.xerces.internal.impl.dv.util.Base64
[ https://issues.apache.org/jira/browse/NETBEANS-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317277#comment-17317277 ] Pierre Maréchal commented on NETBEANS-5427: --- https://github.com/apache/netbeans/pull/2874 > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl uses internal class > com.sun.org.apache.xerces.internal.impl.dv.util.Base64 > > > Key: NETBEANS-5427 > URL: https://issues.apache.org/jira/browse/NETBEANS-5427 > Project: NetBeans > Issue Type: Bug > Components: serverplugins - Tomcat >Affects Versions: 12.3, 12.4 > Environment: Product Version: Apache NetBeans IDE 12.3 > Java: 16; OpenJDK 64-Bit Server VM 16+36-2231 > Runtime: OpenJDK Runtime Environment 16+36-2231 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) >Reporter: Pierre Maréchal >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Netbeans 12.3 fails to deploy on Tomcat when running under JDK 16 > {code} > SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor > org.openide.nodes.AsynchChildrenSEVERE [org.openide.util.RequestProcessor]: > Error in RequestProcessor > org.openide.nodes.AsynchChildrenjava.lang.IllegalAccessError: class > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl (in unnamed module > @0x145afd71) cannot access class > com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) > because module java.xml does not export > com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x145afd71 > at > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.run(TomcatManagerImpl.java:533) > at > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.list(TomcatManagerImpl.java:372) > at > org.netbeans.modules.tomcat5.deploy.TomcatManager.modules(TomcatManager.java:718) > at > org.netbeans.modules.tomcat5.deploy.TomcatManager.getRunningModules(TomcatManager.java:539) > at > org.netbeans.modules.tomcat5.ui.nodes.TomcatWebModuleChildrenFactory.createKeys(TomcatWebModuleChildrenFactory.java:107) > at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:190) at > org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)[catch] at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5427) org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl uses internal class com.sun.org.apache.xerces.internal.impl.dv.util.Base64
[ https://issues.apache.org/jira/browse/NETBEANS-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-5427: - Labels: pull-request-available (was: ) > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl uses internal class > com.sun.org.apache.xerces.internal.impl.dv.util.Base64 > > > Key: NETBEANS-5427 > URL: https://issues.apache.org/jira/browse/NETBEANS-5427 > Project: NetBeans > Issue Type: Bug > Components: serverplugins - Tomcat >Affects Versions: 12.3, 12.4 > Environment: Product Version: Apache NetBeans IDE 12.3 > Java: 16; OpenJDK 64-Bit Server VM 16+36-2231 > Runtime: OpenJDK Runtime Environment 16+36-2231 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) >Reporter: Pierre Maréchal >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Netbeans 12.3 fails to deploy on Tomcat when running under JDK 16 > {code} > SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor > org.openide.nodes.AsynchChildrenSEVERE [org.openide.util.RequestProcessor]: > Error in RequestProcessor > org.openide.nodes.AsynchChildrenjava.lang.IllegalAccessError: class > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl (in unnamed module > @0x145afd71) cannot access class > com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) > because module java.xml does not export > com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x145afd71 > at > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.run(TomcatManagerImpl.java:533) > at > org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.list(TomcatManagerImpl.java:372) > at > org.netbeans.modules.tomcat5.deploy.TomcatManager.modules(TomcatManager.java:718) > at > org.netbeans.modules.tomcat5.deploy.TomcatManager.getRunningModules(TomcatManager.java:539) > at > org.netbeans.modules.tomcat5.ui.nodes.TomcatWebModuleChildrenFactory.createKeys(TomcatWebModuleChildrenFactory.java:107) > at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:190) at > org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)[catch] at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5556) Can't wheel scroll in usages when FlatLaf is used
[ https://issues.apache.org/jira/browse/NETBEANS-5556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317249#comment-17317249 ] Tomáš Procházka commented on NETBEANS-5556: --- [~devcharly] Hi, could you please look at this issue. > Can't wheel scroll in usages when FlatLaf is used > - > > Key: NETBEANS-5556 > URL: https://issues.apache.org/jira/browse/NETBEANS-5556 > Project: NetBeans > Issue Type: Bug > Components: FlatLaf >Affects Versions: 12.3, 12.4 > Environment: Product Version: Apache NetBeans IDE 12.4-beta2 > Java: 1.8.0_282; OpenJDK 64-Bit Server VM 25.282-b08 > Runtime: OpenJDK Runtime Environment 1.8.0_282-8u282-b08-0ubuntu1~20.10-b08 > System: Linux version 5.8.0-48-generic running on amd64; UTF-8; en_US (nb) >Reporter: Tomáš Procházka >Priority: Minor > > It is possible to use mouse wheel and scroll through opened files in editor. > Scrolling is broken in Usages tab when FlatLaf Dark Look and Feel is used. > Steps to reproduce: > # Open Java source file. > # Repeatedly invoke Find Usages action until there are more result tabs under > Usages panel. > # Try scrolling with mouse wheel when on tabs with usage results. > Switching from FlatLaf Dark to another LaF (tried GTK+) restores ability to > scroll. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Fixed formatting for Switch Expression Hint
This is an automated email from the ASF dual-hosted git repository. akshaygupta pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 09a0405 Fixed formatting for Switch Expression Hint new 7a9d8b2 Merge pull request #2791 from mishrasandeep/netbeans-4447-2 09a0405 is described below commit 09a0405c15ee053d7d81bfa17c3b6510b48b528e Author: Sandeep AuthorDate: Thu Mar 4 15:27:09 2021 +0530 Fixed formatting for Switch Expression Hint --- .../hints/jdk/ConvertSwitchToRuleSwitchTest.java | 65 ++ .../modules/java/source/save/CasualDiff.java | 6 +- .../java/source/gen/SwitchRuleFormattingTest.java | 256 + 3 files changed, 326 insertions(+), 1 deletion(-) diff --git a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/jdk/ConvertSwitchToRuleSwitchTest.java b/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/jdk/ConvertSwitchToRuleSwitchTest.java index 13e3563..3b02eb0 100644 --- a/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/jdk/ConvertSwitchToRuleSwitchTest.java +++ b/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/jdk/ConvertSwitchToRuleSwitchTest.java @@ -875,6 +875,71 @@ public class ConvertSwitchToRuleSwitchTest extends NbTestCase { " }\n" + "}\n"); } + +public void testSwitchToRuleSwitchFormattingMultiple() throws Exception { +if(!ConvertSwitchToRuleSwitchTest.isJDK14()) +return; +HintTest.create() +.input("package test;" + +"public class Test {\n" + +" private void test(int p) {\n" + +" String result;\n" + +" switch (p) {\n" + +"case 0:\n" + +"case 1:\n" + +"case 2:\n" + +"case 3: result=\"a\"; break;\n" + +"default: System.err.println(\"No.\"); break;" + +" }\n" + +" }\n" + +"}\n") +.sourceLevel(SourceVersion.latest().name()) +.run(ConvertSwitchToRuleSwitch.class) +.findWarning("3:9-3:15:verifier:" + Bundle.ERR_ConvertSwitchToRuleSwitch()) +.applyFix() +.assertCompilable() +.assertVerbatimOutput("package test;" + +"public class Test {\n" + +" private void test(int p) {\n" + +" String result;\n" + +" switch (p) {\n" + +"case 0, 1, 2, 3 -> result=\"a\";\n" + +"default -> System.err.println(\"No.\");\n" + +" }\n" + +" }\n" + +"}\n"); +} + +public void testSwitchToRuleSwitchFormattingSimple() throws Exception { +if(!ConvertSwitchToRuleSwitchTest.isJDK14()) +return; +HintTest.create() +.input("package test;" + +"public class Test {\n" + +" private void test(int p) {\n" + +" String result;\n" + +" switch (p) {\n" + +"case 0: result = \"a\"; break;\n" + +"default: System.err.println(\"No.\"); break;\n" + +" }\n" + +" }\n" + +"}\n") +.sourceLevel(SourceVersion.latest().name()) +.run(ConvertSwitchToRuleSwitch.class) +.findWarning("3:9-3:15:verifier:" + Bundle.ERR_ConvertSwitchToRuleSwitch()) +.applyFix() +.assertCompilable() +.assertVerbatimOutput("package test;" + +"public class Test {\n" + +" private void test(int p) {\n" + +" String result;\n" + +" switch (p) {\n" + +"case 0 -> result = \"a\";\n" + +"default -> System.err.println(\"No.\");\n" + +" }\n" + +" }\n" + +"}\n"); +} public static Test suite() { TestSuite suite = new TestSuite(); diff --git a/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java b/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
[jira] [Commented] (NETBEANS-5525) StackOverflowError in Javascript
[ https://issues.apache.org/jira/browse/NETBEANS-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17317197#comment-17317197 ] Thomas Schapitz commented on NETBEANS-5525: --- Also Happening with JDK 16.-- > StackOverflowError in Javascript > - > > Key: NETBEANS-5525 > URL: https://issues.apache.org/jira/browse/NETBEANS-5525 > Project: NetBeans > Issue Type: Bug > Components: javascript - Other >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-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5525) StackOverflowError in Javascript
[ https://issues.apache.org/jira/browse/NETBEANS-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Schapitz updated NETBEANS-5525: -- Component/s: javascript - Other > StackOverflowError in Javascript > - > > Key: NETBEANS-5525 > URL: https://issues.apache.org/jira/browse/NETBEANS-5525 > Project: NetBeans > Issue Type: Bug > Components: javascript - Other >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-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5525) StackOverflowError in Javascript
[ https://issues.apache.org/jira/browse/NETBEANS-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (NETBEANS-5534) Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans
[ https://issues.apache.org/jira/browse/NETBEANS-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17316956#comment-17316956 ] Imad Bougataya commented on NETBEANS-5534: -- Additional commands that cause an immediate crash in the editor are Command+space, CTRL+Space, opening the editor keymap. > Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans > --- > > Key: NETBEANS-5534 > URL: https://issues.apache.org/jira/browse/NETBEANS-5534 > Project: NetBeans > Issue Type: Bug > Components: ide - Code >Affects Versions: 12.3 > Environment: Machine: Macbook AIR M1 > OS: OSx Big Sur version 11.2.3 (20D91) > java version "11.0.10" 2021-01-19 LTS > >Reporter: Imad Bougataya >Priority: Critical > Labels: code-completion > Fix For: Next > > > When trying to use the code completion feature on a Macbook M1 running Big > Sur, clicking on both CTRL and Space automatically shuts down Netbeans. No > warning, no screens, no hangs, it just disappears immediately and you have to > run the IDE again. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-5499) Platform apps cannot connect using HTTP protocol on JDK16
[ https://issues.apache.org/jira/browse/NETBEANS-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17316883#comment-17316883 ] Svatopluk Dedic commented on NETBEANS-5499: --- I wrongly closed the bug, some short cirtuit in my brain apparently: fixed in one app distribution, but naturally still present until fixed in Felix. Reopening, sorry. > Platform apps cannot connect using HTTP protocol on JDK16 > - > > Key: NETBEANS-5499 > URL: https://issues.apache.org/jira/browse/NETBEANS-5499 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.3 >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Time Spent: 40m > Remaining Estimate: 0h > > I've found out that my platfom application does not work at all with HTTP > protocol when run on JDK 16. The error thrown is: > {code:java} > INFO > [org.netbeans.modules.autoupdate.updateproviders.AutoupdateCatalogFactory]: > Unknown protocol: http > java.lang.IllegalStateException: Unknown protocol: http > at > org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) > at java.base/java.net.URL.(URL.java:701) > Caused: java.net.MalformedURLException: Unknown protocol: http > at java.base/java.net.URL.(URL.java:706) > at java.base/java.net.URL.(URL.java:568) > at java.base/java.net.URL.(URL.java:515) > [catch] at > org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogFactory.createUpdateProvider(AutoupdateCatalogFactory.java:98) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:567) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:730) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:660) > at > org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:506) > {code} > No URL with http(s): protocol can be even *parsed*. > I managed to isolate the issue - it is caused by *Apache Felix* library > included in NB platform that provides > {{org.osgi.framework.launch.FrameworkFactory}} token. > The bug *does not occur* in NetBeans IDE, which has a direct dependency > (Needs: declaration) on *org.netbeans.netbinox* module from its *ide.kit* > module. In NetBeans, Netbinox loads and installs its URLStreamHandlerFactory > ({{org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory}}) > In a platform app that does not load (need) Netbinox, the Felix library > installs its own URLStreamHandleFactory ( > {{org.apache.felix.framework.URLHandlers}}), that creates *proxies*. So USHF > for http *is* actually created, but it afterwards throws > {{MalformedURLException}} on any http: url spec. > The bug does not occur on earlier JDKs. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Reopened] (NETBEANS-5499) Platform apps cannot connect using HTTP protocol on JDK16
[ https://issues.apache.org/jira/browse/NETBEANS-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic reopened NETBEANS-5499: --- Assignee: Svatopluk Dedic > Platform apps cannot connect using HTTP protocol on JDK16 > - > > Key: NETBEANS-5499 > URL: https://issues.apache.org/jira/browse/NETBEANS-5499 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.3 >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Fix For: 12.4 > > Time Spent: 40m > Remaining Estimate: 0h > > I've found out that my platfom application does not work at all with HTTP > protocol when run on JDK 16. The error thrown is: > {code:java} > INFO > [org.netbeans.modules.autoupdate.updateproviders.AutoupdateCatalogFactory]: > Unknown protocol: http > java.lang.IllegalStateException: Unknown protocol: http > at > org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) > at java.base/java.net.URL.(URL.java:701) > Caused: java.net.MalformedURLException: Unknown protocol: http > at java.base/java.net.URL.(URL.java:706) > at java.base/java.net.URL.(URL.java:568) > at java.base/java.net.URL.(URL.java:515) > [catch] at > org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogFactory.createUpdateProvider(AutoupdateCatalogFactory.java:98) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:567) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:730) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:660) > at > org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:506) > {code} > No URL with http(s): protocol can be even *parsed*. > I managed to isolate the issue - it is caused by *Apache Felix* library > included in NB platform that provides > {{org.osgi.framework.launch.FrameworkFactory}} token. > The bug *does not occur* in NetBeans IDE, which has a direct dependency > (Needs: declaration) on *org.netbeans.netbinox* module from its *ide.kit* > module. In NetBeans, Netbinox loads and installs its URLStreamHandlerFactory > ({{org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory}}) > In a platform app that does not load (need) Netbinox, the Felix library > installs its own URLStreamHandleFactory ( > {{org.apache.felix.framework.URLHandlers}}), that creates *proxies*. So USHF > for http *is* actually created, but it afterwards throws > {{MalformedURLException}} on any http: url spec. > The bug does not occur on earlier JDKs. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5499) Platform apps cannot connect using HTTP protocol on JDK16
[ https://issues.apache.org/jira/browse/NETBEANS-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic updated NETBEANS-5499: -- Fix Version/s: (was: 12.4) > Platform apps cannot connect using HTTP protocol on JDK16 > - > > Key: NETBEANS-5499 > URL: https://issues.apache.org/jira/browse/NETBEANS-5499 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.3 >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Time Spent: 40m > Remaining Estimate: 0h > > I've found out that my platfom application does not work at all with HTTP > protocol when run on JDK 16. The error thrown is: > {code:java} > INFO > [org.netbeans.modules.autoupdate.updateproviders.AutoupdateCatalogFactory]: > Unknown protocol: http > java.lang.IllegalStateException: Unknown protocol: http > at > org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) > at java.base/java.net.URL.(URL.java:701) > Caused: java.net.MalformedURLException: Unknown protocol: http > at java.base/java.net.URL.(URL.java:706) > at java.base/java.net.URL.(URL.java:568) > at java.base/java.net.URL.(URL.java:515) > [catch] at > org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogFactory.createUpdateProvider(AutoupdateCatalogFactory.java:98) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:567) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:730) > at > org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:660) > at > org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:506) > {code} > No URL with http(s): protocol can be even *parsed*. > I managed to isolate the issue - it is caused by *Apache Felix* library > included in NB platform that provides > {{org.osgi.framework.launch.FrameworkFactory}} token. > The bug *does not occur* in NetBeans IDE, which has a direct dependency > (Needs: declaration) on *org.netbeans.netbinox* module from its *ide.kit* > module. In NetBeans, Netbinox loads and installs its URLStreamHandlerFactory > ({{org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory}}) > In a platform app that does not load (need) Netbinox, the Felix library > installs its own URLStreamHandleFactory ( > {{org.apache.felix.framework.URLHandlers}}), that creates *proxies*. So USHF > for http *is* actually created, but it afterwards throws > {{MalformedURLException}} on any http: url spec. > The bug does not occur on earlier JDKs. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists