Re: Netbeans Connector (Google Chrome)

2021-11-09 Thread Geertjan Wielenga
Yes, it would be a surprise if that Chrome Connector plugin was still
working and the video you refer to is several years old too.

Chrome itself is constantly changing, making it hard to keep up with
plugins such as this one, if we can find the source, maybe we can work on
it, maybe it has or hasn't been contributed here yet.

Gj


On Tue, Nov 9, 2021 at 9:17 PM  wrote:

> Further to my previous message, I have watched the video "Status of Chrome
> Connector and
> Apache NetBeans" on the youtube NetBeansVideos channel with its suggested
> workaround
> to get some functionality, but it doesn't help me because the netbeans
> connector icon isn't
> even displayed in the Google Chrome browser. It is definitely installed
> and switched on. I
> remember the message about how the icon will appear if a page is displayed
> which can be
> debugged using netbeans. I have Apache Netbeans running, no browser, run
> the page I want
> to test, the browser starts and displays the page but no connector icon so
> I cannot select
> 'debug with netbeans' as suggested in the workaround. I tried removing and
> reinstalling the
> connector but no change.
>
> I should have said before that I am still on Apache Netbeans 12.0 (LTS)
> because I am only a
> simple user and don't get involved with the java stuff!
>
> Thanks,
> Nigel
>
> P.S. Why are my posts flagged as INVALID?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Netbeans Connector (Google Chrome)

2021-11-09 Thread nigelss
Further to my previous message, I have watched the video "Status of Chrome 
Connector and 
Apache NetBeans" on the youtube NetBeansVideos channel with its suggested 
workaround 
to get some functionality, but it doesn't help me because the netbeans 
connector icon isn't 
even displayed in the Google Chrome browser. It is definitely installed and 
switched on. I 
remember the message about how the icon will appear if a page is displayed 
which can be 
debugged using netbeans. I have Apache Netbeans running, no browser, run the 
page I want 
to test, the browser starts and displays the page but no connector icon so I 
cannot select 
'debug with netbeans' as suggested in the workaround. I tried removing and 
reinstalling the 
connector but no change.

I should have said before that I am still on Apache Netbeans 12.0 (LTS) because 
I am only a 
simple user and don't get involved with the java stuff!

Thanks,
Nigel

P.S. Why are my posts flagged as INVALID?

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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



Re: NPE com.sun.source.tree.Tree.getKind()

2021-11-09 Thread Luff, Chris

Well it was still happening, but I traced to a piece of code in just one file. 
It was compiling but something about NetBeans did not like it at all and was 
throwing this error. I used 12.5 on JDK17 and 11 and then 12.6-RC2 on JDK17 all 
throwing the same error. I can only imagine there was something corrupt in the 
file. I removed that excerpt and suddenly no problem. I rewrote the logic block 
in the same file and low and behold no issue. I moved the offending block to a 
new file and the NPE pops up again. I would love to share it, but it’s closed 
source so we’ll chalk this up to something inept that I did!!

Thanks Neil!


On 9 Nov 2021, at 14:43, Luff, Chris 
mailto:chris.l...@cerner.com.INVALID>> wrote:


Hey all,

I am getting an NPE on com.sun.source.tree.Tree.getKind() frequently in Java 
files. Anybody else seen this before I log a Jira?

  Mac OS X, 11.5, x86_64
  OpenJDK 64-Bit Server VM, 17.0.1+12-LTS, OpenJDK Runtime Environment, 
17.0.1+12-LTS
  Apache NetBeans IDE 12.5
  
  NullPointerException: Cannot invoke 
"com.sun.source.tree.Tree.getKind()" because "tree" is null

java.lang.NullPointerException: Cannot invoke 
"com.sun.source.tree.Tree.getKind()" because "tree" is null
at com.sun.source.util.TreePath.(TreePath.java:107)
at 
org.netbeans.modules.java.source.matching.CopyFinder.checkListsWithMultistatementTrees(CopyFinder.java:741)
at 
org.netbeans.modules.java.source.matching.CopyFinder.checkLists(CopyFinder.java:627)
at 
org.netbeans.modules.java.source.matching.CopyFinder.visitMethodInvocation(CopyFinder.java:618)
at 
org.netbeans.modules.java.source.matching.CopyFinder.visitMethodInvocation(CopyFinder.java:116)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1776)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
at 
org.netbeans.modules.java.source.matching.CopyFinder.doSuperScan(CopyFinder.java:586)
at 
org.netbeans.modules.java.source.matching.CopyFinder.superScan(CopyFinder.java:578)
at 
org.netbeans.modules.java.source.matching.CopyFinder.scan(CopyFinder.java:473)
at 
org.netbeans.modules.java.source.matching.CopyFinder.scan(CopyFinder.java:314)
at 
org.netbeans.modules.java.source.matching.CopyFinder.internalComputeDuplicates(CopyFinder.java:181)
at org.netbeans.api.java.source.matching.Matcher.match(Matcher.java:177)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:540)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:283)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:228)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65)
[catch] at 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
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)





CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in 
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.



Re: NPE com.sun.source.tree.Tree.getKind()

2021-11-09 Thread Neil C Smith
On Tue, 9 Nov 2021 at 14:43, Luff, Chris  wrote:
> I am getting an NPE on com.sun.source.tree.Tree.getKind() frequently in Java 
> files. Anybody else seen this before I log a Jira?
...
>   OpenJDK 64-Bit Server VM, 17.0.1+12-LTS, OpenJDK Runtime 
> Environment, 17.0.1+12-LTS
>   Apache NetBeans IDE 12.5

Please try with 12.6-rc2 first, particularly given JDK 17 is in the mix.

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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



NPE com.sun.source.tree.Tree.getKind()

2021-11-09 Thread Luff, Chris

Hey all,

I am getting an NPE on com.sun.source.tree.Tree.getKind() frequently in Java 
files. Anybody else seen this before I log a Jira?

  Mac OS X, 11.5, x86_64
  OpenJDK 64-Bit Server VM, 17.0.1+12-LTS, OpenJDK Runtime Environment, 
17.0.1+12-LTS
  Apache NetBeans IDE 12.5
  
  NullPointerException: Cannot invoke 
"com.sun.source.tree.Tree.getKind()" because "tree" is null

java.lang.NullPointerException: Cannot invoke 
"com.sun.source.tree.Tree.getKind()" because "tree" is null
at com.sun.source.util.TreePath.(TreePath.java:107)
at 
org.netbeans.modules.java.source.matching.CopyFinder.checkListsWithMultistatementTrees(CopyFinder.java:741)
at 
org.netbeans.modules.java.source.matching.CopyFinder.checkLists(CopyFinder.java:627)
at 
org.netbeans.modules.java.source.matching.CopyFinder.visitMethodInvocation(CopyFinder.java:618)
at 
org.netbeans.modules.java.source.matching.CopyFinder.visitMethodInvocation(CopyFinder.java:116)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1776)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
at 
org.netbeans.modules.java.source.matching.CopyFinder.doSuperScan(CopyFinder.java:586)
at 
org.netbeans.modules.java.source.matching.CopyFinder.superScan(CopyFinder.java:578)
at 
org.netbeans.modules.java.source.matching.CopyFinder.scan(CopyFinder.java:473)
at 
org.netbeans.modules.java.source.matching.CopyFinder.scan(CopyFinder.java:314)
at 
org.netbeans.modules.java.source.matching.CopyFinder.internalComputeDuplicates(CopyFinder.java:181)
at org.netbeans.api.java.source.matching.Matcher.match(Matcher.java:177)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:540)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:283)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:228)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114)
at 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65)
[catch] at 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
at 
org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
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)






CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in 
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.


[SUPPORT] Unable tu run Netbeans on MAC OS 12.01

2021-11-09 Thread Giovanni De Martino
Hi all,
I’ve just installed NetBeans 12.5 on my Mac Book Air M1 with Mac OS Monterey 
but, when I launch it, I just see the splash screen and then NetBeans stop to 
run.

If I run it from the Terminal, this is what I see:

gion@GionMacBookAir ~ % /Applications/NetBeans/Apache\ NetBeans\ 
12.5.app/Contents/MacOS/netbeans   
WARNING: package sun.awt.X11 not in java.desktop
WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop
java.lang.RuntimeException: Permission denied
at 
org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:194)
at 
org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:67)
at 
org.eclipse.osgi.framework.internal.core.EquinoxLauncher$1.run(EquinoxLauncher.java:41)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:39)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:63)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:146)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1441)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:156)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:125)
at org.netbeans.core.startup.Main.start(Main.java:282)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Permission denied
at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createTempFile(File.java:2129)
at 
org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(StorageManager.java:188)
at 
org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:708)
at 
org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:226)
at 
org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:160)
at 
org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
at 
org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:192)
... 18 more

If I run Netbeans as root (sudo…), it works.

Please can you help me to figure out what is blocking the normal execution?
Which is the file NetBeans is trying to open/write for which it does not have 
proper access rights?
May I enable a more verbose log at startup so I have more information to debug?

Thanks in advance,
Giovanni