[jira] [Commented] (NETBEANS-461) Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl

2018-03-13 Thread efrem mccrimon (JIRA)

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

efrem mccrimon commented on NETBEANS-461:
-

I found that in the zip file that a library is missing in 

 

 

There is a missing library in the ide/module/lib  path:

(My Windows instance)
P:\testing\netcat9\nb9\netbeans\ide\modules\lib 

or relative path is:

netbeans/ide/module/lib

It contains the following items from NB 8.2
extbrowser.dll
extbrowser64.dll

I copied them to the NB9 structure as shown above from NB8.2.  Now it works!

 

Requesting an updated incubator-java/platform update to include the file.  

Source: 
[https://dist.apache.org/repos/dist/dev/incubator/netbeans/incubating-netbeans-java/incubating-9.0-beta/incubating-netbeans-java-9.0-beta-bin.zip]
 

 

Maybe this is an outdated path but this is all I have.

 

Regards,

 

Efrem

> Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl
> ---
>
> Key: NETBEANS-461
> URL: https://issues.apache.org/jira/browse/NETBEANS-461
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: efrem mccrimon
>Priority: Major
> Attachments: messages.log
>
>
> Class not initializing 
> When navigating to Window->Web->Web Browser
> throws the error even when a default Browser is configured in Options 
> settings.
> I was testing XSL Transformations, "Process Output" settings - Open in 
> Browser fails
>  
>  
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>  at 
> org.netbeans.modules.extbrowser.ChromeBrowser.createHtmlBrowserImpl(ChromeBrowser.java:85)
>  at org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>  at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>  at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
>  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)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>  at 
> org.netbeans.core.actions.HTMLViewAction.performAction(HTMLViewAction.java:49)
>  at 
> org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:105)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:102)
>  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>  at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>  at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>  at java.awt.Component.processMouseEvent(Component.java:6533)
>  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>  at java.awt.Component.processEvent(Component.java:6298)
>  at java.awt.Container.processEvent(Container.java:2236)
>  at java.awt.Component.dispatchEventImpl(Component.java:4889)
>  at java.awt.Container.dispatchEventImpl(Container.java:2294)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
>  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
>  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
>  at java.awt.Container.dispatchEventImpl(Container.java:2280)
>  at java.awt.Window.dispatchEventImpl(Window.java:2746)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> 

[incubator-netbeans] branch master updated: Not using the Log.error(..., String, ...) variant, as that does not exist in JDK mainline anymore.

2018-03-13 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 36db21a  Not using the Log.error(..., String, ...) variant, as that 
does not exist in JDK mainline anymore.
36db21a is described below

commit 36db21a3964c2b808c081b30d06dedb4f3426c27
Author: Jan Lahoda 
AuthorDate: Fri Mar 2 08:00:47 2018 +0100

Not using the Log.error(..., String, ...) variant, as that does not exist 
in JDK mainline anymore.
---
 .../org/netbeans/modules/java/source/PostFlowAnalysis.java| 11 ++-
 .../java/source/nbjavac/parsing/PartialReparserService.java   |  6 --
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git 
a/java.source.base/src/org/netbeans/modules/java/source/PostFlowAnalysis.java 
b/java.source.base/src/org/netbeans/modules/java/source/PostFlowAnalysis.java
index edf0f31..342ab39 100644
--- 
a/java.source.base/src/org/netbeans/modules/java/source/PostFlowAnalysis.java
+++ 
b/java.source.base/src/org/netbeans/modules/java/source/PostFlowAnalysis.java
@@ -49,6 +49,7 @@ import javax.tools.JavaFileObject;
 
 import com.sun.tools.javac.code.Symtab;
 import com.sun.tools.javac.code.TypeTag;
+import com.sun.tools.javac.util.JCDiagnostic.Error;
 
 /**
  *
@@ -149,7 +150,7 @@ public class PostFlowAnalysis extends TreeScanner {
 && !type.isErroneous()
 && types.isSameType(types.erasure(sym.type), type);
 if (clash) {
-log.error(tree.pos(), "name.clash.same.erasure", tree.sym, 
sym); //NOI18N
+log.error(tree.pos(), new Error("compiler", 
"name.clash.same.erasure", tree.sym, sym)); //NOI18N
 return;
 }
 } catch (AssertionError e) {}
@@ -199,7 +200,7 @@ public class PostFlowAnalysis extends TreeScanner {
 if (checkThis && currentClass != c) {
 List> ots = outerThisStack;
 if (ots.isEmpty()) {
-log.error(pos, "no.encl.instance.of.type.in.scope", c); 
//NOI18N
+log.error(pos, new Error("compiler", 
"no.encl.instance.of.type.in.scope", c)); //NOI18N
 return;
 }
 Pair ot = ots.head;
@@ -208,13 +209,13 @@ public class PostFlowAnalysis extends TreeScanner {
 do {
 ots = ots.tail;
 if (ots.isEmpty()) {
-log.error(pos, "no.encl.instance.of.type.in.scope", 
c); //NOI18N
+log.error(pos, new Error("compiler", 
"no.encl.instance.of.type.in.scope", c)); //NOI18N
 return;
 }
 ot = ots.head;
 } while (ot.snd != otc);
 if (otc.owner.kind != Kinds.Kind.PCK && 
!otc.hasOuterInstance()) {
-log.error(pos, "cant.ref.before.ctor.called", c); //NOI18N
+log.error(pos, new Error("compiler", 
"cant.ref.before.ctor.called", c)); //NOI18N
 return;
 }
 otc = ot.fst;
@@ -230,6 +231,6 @@ public class PostFlowAnalysis extends TreeScanner {
 
 private void checkStringConstant(DiagnosticPosition pos, Object 
constValue) {
 if (constValue instanceof String && ((String)constValue).length() >= 
Pool.MAX_STRING_LENGTH)
-log.error(pos, "limit.string"); //NOI18N
+log.error(pos, new Error("compiler", "limit.string")); //NOI18N
 }
 }
diff --git 
a/java.source.nbjavac/src/org/netbeans/modules/java/source/nbjavac/parsing/PartialReparserService.java
 
b/java.source.nbjavac/src/org/netbeans/modules/java/source/nbjavac/parsing/PartialReparserService.java
index 30ed25d..e9e48aa 100644
--- 
a/java.source.nbjavac/src/org/netbeans/modules/java/source/nbjavac/parsing/PartialReparserService.java
+++ 
b/java.source.nbjavac/src/org/netbeans/modules/java/source/nbjavac/parsing/PartialReparserService.java
@@ -47,6 +47,7 @@ import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
 import com.sun.tools.javac.tree.TreeInfo;
 import com.sun.tools.javac.tree.TreeMaker;
 import com.sun.tools.javac.util.Context;
+import com.sun.tools.javac.util.JCDiagnostic.Error;
 import com.sun.tools.javac.util.List;
 import com.sun.tools.javac.util.Log;
 import com.sun.tools.javac.util.Names;
@@ -171,8 +172,9 @@ public class PartialReparserService {
 // in enum constructors, except in the compiler
 // generated one.
 log.error(tree.body.stats.head.pos(),
-  "call.to.super.not.allowed.in.enum.ctor",
-  env.enclClass.sym);
+  new Error("compiler",
+

[jira] [Commented] (NETBEANS-461) Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl

2018-03-13 Thread efrem mccrimon (JIRA)

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

efrem mccrimon commented on NETBEANS-461:
-

I will issue a neteams --list




> Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl
> ---
>
> Key: NETBEANS-461
> URL: https://issues.apache.org/jira/browse/NETBEANS-461
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: efrem mccrimon
>Priority: Major
> Attachments: messages.log
>
>
> Class not initializing 
> When navigating to Window->Web->Web Browser
> throws the error even when a default Browser is configured in Options 
> settings.
> I was testing XSL Transformations, "Process Output" settings - Open in 
> Browser fails
>  
>  
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>  at 
> org.netbeans.modules.extbrowser.ChromeBrowser.createHtmlBrowserImpl(ChromeBrowser.java:85)
>  at org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>  at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>  at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
>  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)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>  at 
> org.netbeans.core.actions.HTMLViewAction.performAction(HTMLViewAction.java:49)
>  at 
> org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:105)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:102)
>  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>  at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>  at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>  at java.awt.Component.processMouseEvent(Component.java:6533)
>  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>  at java.awt.Component.processEvent(Component.java:6298)
>  at java.awt.Container.processEvent(Container.java:2236)
>  at java.awt.Component.dispatchEventImpl(Component.java:4889)
>  at java.awt.Container.dispatchEventImpl(Container.java:2294)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
>  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
>  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
>  at java.awt.Container.dispatchEventImpl(Container.java:2280)
>  at java.awt.Window.dispatchEventImpl(Window.java:2746)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.awt.EventQueue$4.run(EventQueue.java:729)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
>  at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>  at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
>  at 
> 

[jira] [Commented] (NETBEANS-461) Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl

2018-03-13 Thread efrem mccrimon (JIRA)

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

efrem mccrimon commented on NETBEANS-461:
-

Hi, this configuration is on Windows, maybe the Classpath is not set to see
the additional paths.  I'm launching nb9 from a cmd line within a user
directory.  There is no declared path to this user directory on my system
path.




> Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl
> ---
>
> Key: NETBEANS-461
> URL: https://issues.apache.org/jira/browse/NETBEANS-461
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: efrem mccrimon
>Priority: Major
> Attachments: messages.log
>
>
> Class not initializing 
> When navigating to Window->Web->Web Browser
> throws the error even when a default Browser is configured in Options 
> settings.
> I was testing XSL Transformations, "Process Output" settings - Open in 
> Browser fails
>  
>  
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>  at 
> org.netbeans.modules.extbrowser.ChromeBrowser.createHtmlBrowserImpl(ChromeBrowser.java:85)
>  at org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>  at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>  at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
>  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)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>  at 
> org.netbeans.core.actions.HTMLViewAction.performAction(HTMLViewAction.java:49)
>  at 
> org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:105)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:102)
>  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>  at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>  at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>  at java.awt.Component.processMouseEvent(Component.java:6533)
>  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>  at java.awt.Component.processEvent(Component.java:6298)
>  at java.awt.Container.processEvent(Container.java:2236)
>  at java.awt.Component.dispatchEventImpl(Component.java:4889)
>  at java.awt.Container.dispatchEventImpl(Container.java:2294)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
>  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
>  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
>  at java.awt.Container.dispatchEventImpl(Container.java:2280)
>  at java.awt.Window.dispatchEventImpl(Window.java:2746)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at java.awt.EventQueue$4.run(EventQueue.java:729)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

[jira] [Commented] (NETBEANS-262) JavaDoc can't be displayed in the browser

2018-03-13 Thread Thomas Kellerer (JIRA)

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

Thomas Kellerer commented on NETBEANS-262:
--

Why not use Java's built-in {{Desktop.browse(URL)}}?

> JavaDoc can't be displayed in the browser
> -
>
> Key: NETBEANS-262
> URL: https://issues.apache.org/jira/browse/NETBEANS-262
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - UI
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-168-on-20180110)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en (nb)
>Reporter: Thomas Kellerer
>Priority: Major
>
> When trying to display the JavaDocs for the class at the cursor location 
> ("Alt-F1") an exception is thrown:
> {noformat}java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>   at 
> org.netbeans.modules.extbrowser.FirefoxBrowser.createHtmlBrowserImpl(FirefoxBrowser.java:81)
>   at 
> org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>   at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>   at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>   at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>   at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>   at 
> org.netbeans.modules.editor.java.GoToSupport$3.run(GoToSupport.java:212)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>   at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>   at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>   at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
>   at 
> org.netbeans.modules.editor.java.GoToSupport.performGoToImpl(GoToSupport.java:189)
>   at 
> org.netbeans.modules.editor.java.GoToSupport.access$100(GoToSupport.java:116)
>   at 
> org.netbeans.modules.editor.java.GoToSupport$2.run(GoToSupport.java:170)
>   at 
> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
>   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)
> {noformat}
> This is when using "Firefox" as the browser in the options dialog.
> When I try to configure the "Firefox" entry by clickin on "Edit" the 
> following exception is thrown:
> {noformat}java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>   at 
> org.netbeans.modules.extbrowser.SystemDefaultBrowser.defaultBrowserExecutable(SystemDefaultBrowser.java:144)
>   at 
> org.netbeans.modules.extbrowser.ExtWebBrowser.getBrowserExecutable(ExtWebBrowser.java:217)
> Caused: java.lang.reflect.InvocationTargetException
>   at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>   at 
> org.openide.nodes.PropertySupport$Reflection.getValue(PropertySupport.java:264)
>   at 
> org.openide.explorer.propertysheet.PropUtils.updateEdFromProp(PropUtils.java:876)
>   at 
> org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:849)
> Caused: 

[jira] [Commented] (NETBEANS-262) JavaDoc can't be displayed in the browser

2018-03-13 Thread JIRA

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

Matthias Bläsing commented on NETBEANS-262:
---

The error comes from the external HTML browser implementation, that uses DDE to 
control a webbrowser. DDE is a windows only RMI solution, allowing you to send 
messages between windows on the windows desktop.

The implementation is done in native code (see 
_extbrowser/native/NbDDEBrowserImpl.cpp_) and it looks like Oracle removed the 
pre-build binaries at the time of the donation.

This error comes from org.netbeans.modules.extbrowser.NbDdeBrowserImpl which 
loads the native library and tries to handle a load error by catching 
Exception, but _java.lang.UnsatisfiedLinkError_ is raised. This not being an 
Error and not an Exception lets it fall through the catch.

So there is one fast help: catch _UnsatisfiedLinkError_ in 
_NbDdeBrowserImpl.java_ line 96. This at least gives a sensible message.

For the long term: Either find a way to compile the native code on the fly. Or 
use the DDE implementation contained in JNA Platform to replace the native code.

> JavaDoc can't be displayed in the browser
> -
>
> Key: NETBEANS-262
> URL: https://issues.apache.org/jira/browse/NETBEANS-262
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - UI
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-168-on-20180110)
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en (nb)
>Reporter: Thomas Kellerer
>Priority: Major
>
> When trying to display the JavaDocs for the class at the cursor location 
> ("Alt-F1") an exception is thrown:
> {noformat}java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>   at 
> org.netbeans.modules.extbrowser.FirefoxBrowser.createHtmlBrowserImpl(FirefoxBrowser.java:81)
>   at 
> org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>   at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>   at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>   at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>   at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>   at 
> org.netbeans.modules.editor.java.GoToSupport$3.run(GoToSupport.java:212)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
>   at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
>   at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
>   at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
>   at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
>   at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
>   at 
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
>   at 
> org.netbeans.modules.editor.java.GoToSupport.performGoToImpl(GoToSupport.java:189)
>   at 
> org.netbeans.modules.editor.java.GoToSupport.access$100(GoToSupport.java:116)
>   at 
> org.netbeans.modules.editor.java.GoToSupport$2.run(GoToSupport.java:170)
>   at 
> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
>   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)
> {noformat}
> This is when using "Firefox" as the browser in the options dialog.
> When I try to configure the "Firefox" entry by clickin on "Edit" the 
> following exception is thrown:
> {noformat}java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>   at 
> 

[incubator-netbeans] branch master updated: If compilation during indexing fails on exception, try to fallback to project's output.

2018-03-13 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new c4c5458  If compilation during indexing fails on exception, try to 
fallback to project's output.
c4c5458 is described below

commit c4c54585633739b36ee598e7b28572809a5f0282
Author: Jan Lahoda 
AuthorDate: Fri Mar 2 08:01:56 2018 +0100

If compilation during indexing fails on exception, try to fallback to 
project's output.
---
 .../java/source/indexing/VanillaCompileWorker.java | 83 +-
 .../source/parsing/FileManagerTransaction.java | 10 +--
 .../java/source/parsing/WriteBackTransaction.java  |  2 +-
 3 files changed, 87 insertions(+), 8 deletions(-)

diff --git 
a/java.source.base/src/org/netbeans/modules/java/source/indexing/VanillaCompileWorker.java
 
b/java.source.base/src/org/netbeans/modules/java/source/indexing/VanillaCompileWorker.java
index e7e26ff..d7203ad 100644
--- 
a/java.source.base/src/org/netbeans/modules/java/source/indexing/VanillaCompileWorker.java
+++ 
b/java.source.base/src/org/netbeans/modules/java/source/indexing/VanillaCompileWorker.java
@@ -59,8 +59,12 @@ import com.sun.tools.javac.util.Log;
 import com.sun.tools.javac.util.Names;
 import java.io.File;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
 import java.util.*;
 import java.util.Map.Entry;
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 import java.util.logging.Level;
 import java.util.stream.Collectors;
@@ -72,7 +76,9 @@ import javax.lang.model.element.TypeElement;
 import javax.lang.model.type.TypeKind;
 import javax.lang.model.type.TypeMirror;
 import javax.tools.JavaFileObject;
+import javax.tools.StandardLocation;
 import org.netbeans.api.java.classpath.ClassPath;
+import org.netbeans.api.java.queries.BinaryForSourceQuery;
 import org.netbeans.api.java.queries.CompilerOptionsQuery;
 import org.netbeans.api.java.source.ClasspathInfo;
 import org.netbeans.api.java.source.ElementHandle;
@@ -85,8 +91,10 @@ import 
org.netbeans.modules.java.source.usages.ExecutableFilesIndex;
 import org.netbeans.modules.parsing.spi.indexing.Context;
 import org.netbeans.modules.parsing.spi.indexing.Indexable;
 import org.netbeans.modules.parsing.spi.indexing.SuspendStatus;
+import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileSystem;
 import org.openide.filesystems.FileUtil;
+import org.openide.filesystems.URLMapper;
 import org.openide.util.Exceptions;
 
 /**
@@ -350,7 +358,7 @@ final class VanillaCompileWorker extends CompileWorker {
 JavaIndex.LOG.log(Level.FINEST, "VanillaCompileWorker was 
canceled in root: " + FileUtil.getFileDisplayName(context.getRoot()), ca);  
//NOI18N
 }
 } catch (Throwable t) {
-if (t instanceof ThreadDeath) {
+ if (t instanceof ThreadDeath) {
 throw (ThreadDeath) t;
 } else {
 Level level = t instanceof FatalError ? Level.FINEST : 
Level.WARNING;
@@ -367,8 +375,79 @@ final class VanillaCompileWorker extends CompileWorker {
 JavaIndex.LOG.log(level, message, t);  //NOI18N
 }
 }
+ //fallback: copy output classes to caches, so that editing is not 
extremely slow/broken:
+BinaryForSourceQuery.Result res2 = 
BinaryForSourceQuery.findBinaryRoots(context.getRootURI());
+Set filter;
+if (!context.isAllFilesIndexing()) {
+filter = new HashSet<>();
+for (CompileTuple toIndex : files) {
+String path = toIndex.indexable.getRelativePath();
+filter.add(path.substring(0, path.lastIndexOf(".")));
+}
+} else {
+filter = null;
+}
+try {
+final Future done = 
FileManagerTransaction.runConcurrent(() -> {
+File cache = 
JavaIndex.getClassFolder(context.getRootURI(), false, false);
+for (URL u : res2.getRoots()) {
+FileObject binaryFO = URLMapper.findFileObject(u);
+if (binaryFO == null)
+continue;
+FileManagerTransaction fmtx = 
TransactionContext.get().get(FileManagerTransaction.class);
+copyRecursively(binaryFO, cache, cache, filter, fmtx);
+}
+});
+done.get();
+} catch (IOException | InterruptedException | ExecutionException 
ex) {
+Exceptions.printStackTrace(ex);
+}
+}
+return ParsingOutput.success(moduleName.name, file2FQNs, addedTypes, 
addedModules, createdFiles, finished, 

[jira] [Resolved] (NETBEANS-282) UnsatisfiedLinkError trying to open browser

2018-03-13 Thread JIRA

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

Matthias Bläsing resolved NETBEANS-282.
---
Resolution: Duplicate

The issue is the same as in NETBEANS-262 as suggested. I add my analysis there.

> UnsatisfiedLinkError trying to open browser
> ---
>
> Key: NETBEANS-282
> URL: https://issues.apache.org/jira/browse/NETBEANS-282
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> 20180106-unknown-revn)
> Updates: Updates available
> Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
> Runtime: Java(TM) SE Runtime Environment 9.0.1+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>Reporter: Gili
>Priority: Major
>  Labels: regression, windows
>
> 1. CTRL+LMB on a link inside a Java file.
> 2. Exception thrown:
> {code}
> java.lang.UnsatisfiedLinkError: no extbrowser64 in java.library.path
>   at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2541)
>   at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:873)
>   at java.base/java.lang.System.loadLibrary(System.java:1857)
>   at 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl.(NbDdeBrowserImpl.java:82)
>   at 
> org.netbeans.modules.extbrowser.SystemDefaultBrowser.createHtmlBrowserImpl(SystemDefaultBrowser.java:94)
>   at 
> org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>   at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>   at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
>   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)
>   at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>   at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>   at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>   at 
> org.netbeans.modules.editor.url.HyperlinkImpl.performClickAction(HyperlinkImpl.java:105)
>   at 
> org.netbeans.lib.editor.hyperlink.HyperlinkOperation.performAction(HyperlinkOperation.java:249)
>   at 
> org.netbeans.lib.editor.hyperlink.HyperlinkOperation.mouseClicked(HyperlinkOperation.java:422)
>   at 
> java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
>   at 
> java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
>   at 
> java.desktop/java.awt.Component.processMouseEvent(Component.java:6581)
>   at 
> java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3343)
>   at java.desktop/java.awt.Component.processEvent(Component.java:6343)
>   at java.desktop/java.awt.Container.processEvent(Container.java:2259)
>   at 
> java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4961)
>   at 
> java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2317)
>   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
>   at 
> java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
>   at 
> java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
>   at 
> java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4480)
>   at 
> java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2303)
>   at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2758)
>   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
>   at 
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
>   at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
>   at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
>   at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
>   at java.base/java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
>   at 
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:99)
>   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:739)
>   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:737)
>   at 

[incubator-netbeans] branch master updated (3bc8b33 -> f2e7901)

2018-03-13 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git.


from 3bc8b33  Merge pull request #419 from blackleg/junit_ant_ui_fix_test
 add 685fce0  [NETBEANS-138] Removed InjectedTasksSupportTest test in 
parsing.indexing module.
 new f2e7901  Merge pull request #395 from 
blackleg/parsing_indexing_injected_tasks_support_test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../impl/indexing/InjectedTasksSupportTest.java| 412 -
 1 file changed, 412 deletions(-)
 delete mode 100644 
parsing.indexing/test/unit/src/org/netbeans/modules/parsing/impl/indexing/InjectedTasksSupportTest.java

-- 
To stop receiving notification emails like this one, please contact
matthiasblaes...@apache.org.

-
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



[incubator-netbeans] branch master updated (3e4b0ab -> 3bc8b33)

2018-03-13 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git.


from 3e4b0ab  Merge pull request #445 from apache/jdk18_3
 add ddef176  [NETBEANS-408] Fix AntJUnitManagerProviderTest test in 
junit.ant.ui module.
 new 3bc8b33  Merge pull request #419 from blackleg/junit_ant_ui_fix_test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../modules/junit/ant/ui/AntJUnitManagerProviderTest.java | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
matthiasblaes...@apache.org.

-
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



[incubator-netbeans] 01/01: Merge pull request #419 from blackleg/junit_ant_ui_fix_test

2018-03-13 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit 3bc8b33b0a24e1bb2a026cdb67bca4b70de8e3cb
Merge: 3e4b0ab ddef176
Author: Matthias Bläsing 
AuthorDate: Tue Mar 13 21:33:25 2018 +0100

Merge pull request #419 from blackleg/junit_ant_ui_fix_test

[NETBEANS-408] Fix AntJUnitManagerProviderTest test at junit.ant.ui module.

 .../modules/junit/ant/ui/AntJUnitManagerProviderTest.java | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
matthiasblaes...@apache.org.

-
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-373) Netbeans sometimes freezes when showing any refactor dialog when running with jdk 1.8.0_152-b16 or later

2018-03-13 Thread Austin Stephens (JIRA)

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

Austin Stephens commented on NETBEANS-373:
--

It has come to the point where I hope that I can press enter in the dialog 
before it dead-locks on itself.

> Netbeans sometimes freezes when showing any refactor dialog when running with 
> jdk 1.8.0_152-b16 or later
> 
>
> Key: NETBEANS-373
> URL: https://issues.apache.org/jira/browse/NETBEANS-373
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Refactoring
>Affects Versions: 8.2, 9.0
> Environment: Mac
>Reporter: Austin Stephens
>Priority: Blocker
> Fix For: 9.0
>
>
> Sometimes (or almost always), when you try to do some refactor action, 
> NetBeans freezes. It appears that a lock is obtained on a panel when the 
> dialog is shown, and the AppKit Thread tries to get the lock while trying to 
> add an accessible listener to it.
> AppKit Thread:
> {code:java}
> Container.addContainerListener:2142    
> Container$AccessibleAWTContainer.addPropertyChangeListener:3885    
> JComponent$AccessibleJComponent.addPropertyChangeListener:3765    
> Hidden Source Calls    
> CAccessible.addNotificationListeners:102    
> CAccessible.:84    
> CAccessible.getCAccessible:60
> {code}
> EDT Thread:
> {code:java}
> Hidden Source Calls    
> Unsafe.park    
> LockSupport.park:194    
> AbstractQueuedSynchronizer$ConditionObject.await:2062    
> EventQueue.getNextEvent:557    
> EventDispatchThread.pumpOneEventForFilters:173    
> EventDispatchThread.pumpEventsForFilter:124    
> EventDispatchThread.pumpEventsForFilter:117    
> WaitDispatchSupport$2.run:190    
> WaitDispatchSupport$4.run:235    
> WaitDispatchSupport$4.run:233    
> AccessController.doPrivileged    
> WaitDispatchSupport.enter:233    
> Dialog.show:1070    
> NbPresenter.superShow:1060    
> NbPresenter.doShow:1110    
> NbPresenter.run:1082    
> NbPresenter.run:105    
> NbMutexEventProvider$Event.doEventAccess:115    
> NbMutexEventProvider$Event.readAccess:75    
> LazyMutexImplementation.readAccess:71    
> Mutex.readAccess:193    
> NbPresenter.show:1067    
> Component.show:1669    
> Component.setVisible:1616    
> Window.setVisible:1017    
> Dialog.setVisible:1005    
> ParametersPanel.showDialog:674    
> RefactoringPanel.refresh:660    
> RefactoringPanel.:144    
> UI.openRefactoringUI:61    
> ContextAnalyzer$4.show:648    
> ContextAnalyzer$TextComponentTask.run:369    
> RefactoringActionsProvider.doFindUsages:232    
> ActionsImplementationFactory.doFindUsages:91    
> WhereUsedAction.performAction:52    
> RefactoringGlobalAction$ContextAction.actionPerformed:172    
> TopComponent.processKeyBinding:1151    
> JComponent.processKeyBindings:2963    
> JComponent.processKeyEvent:2863    
> Component.processEvent:6355    
> Container.processEvent:2259    
> Component.dispatchEventImpl:4961    
> Container.dispatchEventImpl:2317    
> Component.dispatchEvent:4793    
> KeyboardFocusManager.redispatchEvent:1955    
> DefaultKeyboardFocusManager.dispatchKeyEvent:827    
> DefaultKeyboardFocusManager.preDispatchKeyEvent:1096    
> DefaultKeyboardFocusManager.typeAheadAssertions:966    
> DefaultKeyboardFocusManager.dispatchEvent:792    
> Component.dispatchEventImpl:4842    
> Container.dispatchEventImpl:2317    
> Window.dispatchEventImpl:2758    
> Component.dispatchEvent:4793    
> EventQueue.dispatchEventImpl:766    
> EventQueue.access$500:97    
> EventQueue$3.run:717    
> EventQueue$3.run:711    
> AccessController.doPrivileged    
> ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:89    
> ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:99    
> EventQueue$4.run:739    
> EventQueue$4.run:737    
> AccessController.doPrivileged    
> ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:89    
> EventQueue.dispatchEvent:736    
> TimableEventQueue.dispatchEvent:136    
> EventDispatchThread.pumpOneEventForFilters:199    
> EventDispatchThread.pumpEventsForFilter:124    
> EventDispatchThread.pumpEventsForHierarchy:113    
> EventDispatchThread.pumpEvents:109    
> EventDispatchThread.pumpEvents:101    
> EventDispatchThread.run:90   
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-373) Netbeans sometimes freezes when showing any refactor dialog when running with jdk 1.8.0_152-b16 or later

2018-03-13 Thread Austin Stephens (JIRA)

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

Austin Stephens updated NETBEANS-373:
-
   Priority: Blocker  (was: Critical)
Description: 
Sometimes (or almost always), when you try to do some refactor action, NetBeans 
freezes. It appears that a lock is obtained on a panel when the dialog is 
shown, and the AppKit Thread tries to get the lock while trying to add an 
accessible listener to it.

AppKit Thread:
{code:java}
Container.addContainerListener:2142    
Container$AccessibleAWTContainer.addPropertyChangeListener:3885    
JComponent$AccessibleJComponent.addPropertyChangeListener:3765    
Hidden Source Calls    
CAccessible.addNotificationListeners:102    
CAccessible.:84    
CAccessible.getCAccessible:60
{code}
EDT Thread:
{code:java}
Hidden Source Calls    
Unsafe.park    
LockSupport.park:194    
AbstractQueuedSynchronizer$ConditionObject.await:2062    
EventQueue.getNextEvent:557    
EventDispatchThread.pumpOneEventForFilters:173    
EventDispatchThread.pumpEventsForFilter:124    
EventDispatchThread.pumpEventsForFilter:117    
WaitDispatchSupport$2.run:190    
WaitDispatchSupport$4.run:235    
WaitDispatchSupport$4.run:233    
AccessController.doPrivileged    
WaitDispatchSupport.enter:233    
Dialog.show:1070    
NbPresenter.superShow:1060    
NbPresenter.doShow:1110    
NbPresenter.run:1082    
NbPresenter.run:105    
NbMutexEventProvider$Event.doEventAccess:115    
NbMutexEventProvider$Event.readAccess:75    
LazyMutexImplementation.readAccess:71    
Mutex.readAccess:193    
NbPresenter.show:1067    
Component.show:1669    
Component.setVisible:1616    
Window.setVisible:1017    
Dialog.setVisible:1005    
ParametersPanel.showDialog:674    
RefactoringPanel.refresh:660    
RefactoringPanel.:144    
UI.openRefactoringUI:61    
ContextAnalyzer$4.show:648    
ContextAnalyzer$TextComponentTask.run:369    
RefactoringActionsProvider.doFindUsages:232    
ActionsImplementationFactory.doFindUsages:91    
WhereUsedAction.performAction:52    
RefactoringGlobalAction$ContextAction.actionPerformed:172    
TopComponent.processKeyBinding:1151    
JComponent.processKeyBindings:2963    
JComponent.processKeyEvent:2863    
Component.processEvent:6355    
Container.processEvent:2259    
Component.dispatchEventImpl:4961    
Container.dispatchEventImpl:2317    
Component.dispatchEvent:4793    
KeyboardFocusManager.redispatchEvent:1955    
DefaultKeyboardFocusManager.dispatchKeyEvent:827    
DefaultKeyboardFocusManager.preDispatchKeyEvent:1096    
DefaultKeyboardFocusManager.typeAheadAssertions:966    
DefaultKeyboardFocusManager.dispatchEvent:792    
Component.dispatchEventImpl:4842    
Container.dispatchEventImpl:2317    
Window.dispatchEventImpl:2758    
Component.dispatchEvent:4793    
EventQueue.dispatchEventImpl:766    
EventQueue.access$500:97    
EventQueue$3.run:717    
EventQueue$3.run:711    
AccessController.doPrivileged    
ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:89    
ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:99    
EventQueue$4.run:739    
EventQueue$4.run:737    
AccessController.doPrivileged    
ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:89    
EventQueue.dispatchEvent:736    
TimableEventQueue.dispatchEvent:136    
EventDispatchThread.pumpOneEventForFilters:199    
EventDispatchThread.pumpEventsForFilter:124    
EventDispatchThread.pumpEventsForHierarchy:113    
EventDispatchThread.pumpEvents:109    
EventDispatchThread.pumpEvents:101    
EventDispatchThread.run:90   
{code}
 

  was:
Sometimes, when you try to do some refactor action, NetBeans freezes. It 
appears that a lock is obtained on a panel when the dialog is shown, and the 
AppKit Thread tries to get the lock while trying to add an accessible listener 
to it.

AppKit Thread:
{code:java}
Container.addContainerListener:2142    
Container$AccessibleAWTContainer.addPropertyChangeListener:3885    
JComponent$AccessibleJComponent.addPropertyChangeListener:3765    
Hidden Source Calls    
CAccessible.addNotificationListeners:102    
CAccessible.:84    
CAccessible.getCAccessible:60
{code}
EDT Thread:
{code:java}
Hidden Source Calls    
Unsafe.park    
LockSupport.park:194    
AbstractQueuedSynchronizer$ConditionObject.await:2062    
EventQueue.getNextEvent:557    
EventDispatchThread.pumpOneEventForFilters:173    
EventDispatchThread.pumpEventsForFilter:124    
EventDispatchThread.pumpEventsForFilter:117    
WaitDispatchSupport$2.run:190    
WaitDispatchSupport$4.run:235    
WaitDispatchSupport$4.run:233    
AccessController.doPrivileged    
WaitDispatchSupport.enter:233    
Dialog.show:1070    
NbPresenter.superShow:1060    
NbPresenter.doShow:1110    
NbPresenter.run:1082    
NbPresenter.run:105    
NbMutexEventProvider$Event.doEventAccess:115    
NbMutexEventProvider$Event.readAccess:75    
LazyMutexImplementation.readAccess:71    

[incubator-netbeans] 01/01: Merge pull request #445 from apache/jdk18_3

2018-03-13 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit 3e4b0ab2cc965ff9348ebea08be5ed47cb893b85
Merge: 98db1fe db2399b
Author: Jan Lahoda 
AuthorDate: Tue Mar 13 20:27:48 2018 +0100

Merge pull request #445 from apache/jdk18_3

Merge jdk18_3 ("var" support) branch to master

 .../java/api/common/ui/PlatformUiSupport.java  |   2 +-
 java.completion/nbproject/project.xml  |   4 +
 .../java/completion/JavaCompletionTask.java|  26 +++-
 .../JavaCompletionTaskTest/1.8/emptyVar.pass   | 126 +++
 .../JavaCompletionTaskTest/1.8/finalAndFWVar.pass  |   2 +
 .../1.8/resourcesAndAutoCloseablesFWVar.pass   |   6 +
 .../JavaCompletionTaskTest/1.8/varKeyword.pass |   2 +
 .../JavaCompletionTaskTest/10/emptyVar.pass| 137 +
 .../JavaCompletionTaskTest/10/varKeyword.pass  |   2 +
 .../java/completion/CompletionTestBase.java|   7 +-
 .../JavaCompletionTask110FeaturesTest.java |  66 ++
 .../JavaCompletionTask19FeaturesTest.java  |  18 +--
 .../modules/editor/java/GoToSupportTest.java   |  41 ++
 java.lexer/manifest.mf |   2 +-
 .../org/netbeans/api/java/lexer/JavaTokenId.java   |   2 +
 .../src/org/netbeans/lib/java/lexer/JavaLexer.java |  79 +---
 .../lib/java/lexer/JavaLexerBatchTest.java |  76 
 .../modules/java/source/PostFlowAnalysisTest.java  |   2 +-
 .../java/source/parsing/JavacParserTest.java   |   5 +-
 .../parsing/MRJARCachingFileManagerTest.java   |  45 +++
 .../source/parsing/MRJARModuleFileManagerTest.java |  17 +--
 libs.javacapi/external/binaries-list   |   2 +-
 libs.javacimpl/external/binaries-list  |   2 +-
 23 files changed, 602 insertions(+), 69 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
jlah...@apache.org.

-
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



[incubator-netbeans] 01/01: Merge branch 'master' into jdk18_3

2018-03-13 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch jdk18_3
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit db2399b6427dfc2f6f63b28c52da1b64b790ec7a
Merge: 102046d 98db1fe
Author: Jan Lahoda 
AuthorDate: Tue Mar 13 19:46:34 2018 +0100

Merge branch 'master' into jdk18_3

 .../debugger/jpda/actions/StartActionProvider.java   | 16 
 nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java  |  6 ++
 2 files changed, 18 insertions(+), 4 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
jlah...@apache.org.

-
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



[incubator-netbeans-website-cleanup] branch asciidoc-tutorials created (now a1090e6)

2018-03-13 Thread vieiro
This is an automated email from the ASF dual-hosted git repository.

vieiro pushed a change to branch asciidoc-tutorials
in repository 
https://gitbox.apache.org/repos/asf/incubator-netbeans-website-cleanup.git.


  at a1090e6  Adding all files

No new revisions were added by this update.

-- 
To stop receiving notification emails like this one, please contact
vie...@apache.org.

-
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-461) Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl

2018-03-13 Thread JIRA

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

Jiří Kovalský commented on NETBEANS-461:


For the record, I can open web browser (embedded or Firefox) without problem on 
this configuration:

Product Version: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-205-on-20180202)
Updates: Updates available
Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
Runtime: Java(TM) SE Runtime Environment 9.0.4+11
System: Linux version 4.4.0-53-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

> Could not initialize class org.netbeans.modules.extbrowser.NbDdeBrowserImpl
> ---
>
> Key: NETBEANS-461
> URL: https://issues.apache.org/jira/browse/NETBEANS-461
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - Code
>Affects Versions: 9.0
>Reporter: efrem mccrimon
>Priority: Major
> Attachments: messages.log
>
>
> Class not initializing 
> When navigating to Window->Web->Web Browser
> throws the error even when a default Browser is configured in Options 
> settings.
> I was testing XSL Transformations, "Process Output" settings - Open in 
> Browser fails
>  
>  
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.extbrowser.NbDdeBrowserImpl
>  at 
> org.netbeans.modules.extbrowser.ChromeBrowser.createHtmlBrowserImpl(ChromeBrowser.java:85)
>  at org.netbeans.core.NbURLDisplayer.warmBrowserUp(NbURLDisplayer.java:100)
>  at org.netbeans.core.NbURLDisplayer.access$000(NbURLDisplayer.java:47)
>  at org.netbeans.core.NbURLDisplayer$1.run(NbURLDisplayer.java:59)
>  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)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
>  at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
>  at org.netbeans.core.NbURLDisplayer.showURL(NbURLDisplayer.java:55)
>  at 
> org.netbeans.core.actions.HTMLViewAction.performAction(HTMLViewAction.java:49)
>  at 
> org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:105)
>  at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
>  at 
> org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
>  at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
>  at 
> org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:102)
>  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>  at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>  at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>  at java.awt.Component.processMouseEvent(Component.java:6533)
>  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
>  at java.awt.Component.processEvent(Component.java:6298)
>  at java.awt.Container.processEvent(Container.java:2236)
>  at java.awt.Component.dispatchEventImpl(Component.java:4889)
>  at java.awt.Container.dispatchEventImpl(Container.java:2294)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
>  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
>  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
>  at java.awt.Container.dispatchEventImpl(Container.java:2280)
>  at java.awt.Window.dispatchEventImpl(Window.java:2746)
>  at java.awt.Component.dispatchEvent(Component.java:4711)
>  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>  at java.awt.EventQueue.access$500(EventQueue.java:97)
>  at java.awt.EventQueue$3.run(EventQueue.java:709)
>  at java.awt.EventQueue$3.run(EventQueue.java:703)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
>  at java.awt.EventQueue$4.run(EventQueue.java:731)
>  at 

[jira] [Created] (NETBEANS-462) Jaha Help class cannot be found

2018-03-13 Thread Zoran Sevarac (JIRA)
Zoran Sevarac created NETBEANS-462:
--

 Summary: Jaha Help class cannot be found
 Key: NETBEANS-462
 URL: https://issues.apache.org/jira/browse/NETBEANS-462
 Project: NetBeans
  Issue Type: Bug
  Components: platform - Help System
Reporter: Zoran Sevarac


While building NetBeans Platform application that has module with Java Help I'm 
getting the following exception:

An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.NoClassDefFoundError: com/sun/java/help/search/Indexer
    at 
org.netbeans.modules.javahelp.HelpSetRegistrationProcessor.handleProcess(HelpSetRegistrationProcessor.java:145)
    at 
org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:99)
    at com.sun.tools.javac



There is no this problem with NetBeans 8.2

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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