[jira] [Commented] (NETBEANS-486) org.netbeans.modules.parsing.spi.ParseException when invoking code-complete

2018-07-22 Thread Reema Taneja (JIRA)


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

Reema Taneja commented on NETBEANS-486:
---

Here illegalArgumentException is getting thrown from javac JCDiagnostic init as 
source == null

http://hg.openjdk.java.net/jdk/jdk10/file/b09e56145e11/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java

private Name parseAndGetName(JavaFileObject fo,
 Function 
tree2Name) {
and protected JCCompilationUnit parse(JavaFileObject filename, CharSequence 
content) {
are missing below call to set source object on Log:

JavaFileObject prev = log.useSource(filename);
followed by 
log.useSource(prev); in finally.
I will log a javac bug for this.

> org.netbeans.modules.parsing.spi.ParseException when invoking code-complete
> ---
>
> Key: NETBEANS-486
> URL: https://issues.apache.org/jira/browse/NETBEANS-486
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Completion & Templates
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-228-on-20180312)
> 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: 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
>Assignee: Reema Taneja
>Priority: Major
> Attachments: IllegalArgumentException.txt, Sample-NETBEANS-486.zip
>
>
> I invoked code-complete in the editor and the following exception was thrown:
> {code}
> com.sun.tools.javac.comp.Infer$InferenceException
>   at com.sun.tools.javac.comp.Infer.(Infer.java:115)
>   at com.sun.tools.javac.comp.Infer.instance(Infer.java:102)
>   at com.sun.tools.javac.comp.DeferredAttr.(DeferredAttr.java:114)
>   at com.sun.tools.javac.comp.DeferredAttr.instance(DeferredAttr.java:103)
>   at com.sun.tools.javac.comp.Resolve.(Resolve.java:123)
>   at org.netbeans.lib.nbjavac.services.NBResolve.(NBResolve.java:50)
>   at org.netbeans.lib.nbjavac.services.NBResolve$1.make(NBResolve.java:44)
>   at org.netbeans.lib.nbjavac.services.NBResolve$1.make(NBResolve.java:42)
>   at com.sun.tools.javac.util.Context.get(Context.java:150)
>   at com.sun.tools.javac.comp.Resolve.instance(Resolve.java:158)
>   at com.sun.tools.javac.comp.Check.(Check.java:117)
>   at com.sun.tools.javac.comp.Check.instance(Check.java:105)
>   at com.sun.tools.javac.comp.Modules.(Modules.java:185)
>   at com.sun.tools.javac.comp.Modules.instance(Modules.java:175)
>   at com.sun.tools.javac.code.Symtab.(Symtab.java:484)
>   at com.sun.tools.javac.code.Symtab.instance(Symtab.java:88)
>   at com.sun.tools.javac.comp.Attr.(Attr.java:127)
>   at org.netbeans.lib.nbjavac.services.NBAttr.(NBAttr.java:50)
>   at org.netbeans.lib.nbjavac.services.NBAttr$1.make(NBAttr.java:42)
>   at org.netbeans.lib.nbjavac.services.NBAttr$1.make(NBAttr.java:40)
>   at com.sun.tools.javac.util.Context.get(Context.java:150)
>   at com.sun.tools.javac.comp.Attr.instance(Attr.java:116)
>   at com.sun.tools.javac.comp.Annotate.(Annotate.java:102)
>   at com.sun.tools.javac.comp.Annotate.instance(Annotate.java:77)
>   at com.sun.tools.javac.jvm.ClassReader.(ClassReader.java:234)
>   at 
> org.netbeans.lib.nbjavac.services.NBClassReader.(NBClassReader.java:50)
>   at 
> org.netbeans.lib.nbjavac.services.NBClassReader$1.make(NBClassReader.java:41)
>   at 
> org.netbeans.lib.nbjavac.services.NBClassReader$1.make(NBClassReader.java:39)
>   at com.sun.tools.javac.util.Context.get(Context.java:150)
>   at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:225)
>   at com.sun.tools.javac.code.ClassFinder.(ClassFinder.java:186)
>   at 
> com.sun.tools.javadoc.main.JavadocClassFinder.(JavadocClassFinder.java:71)
>   at 
> com.sun.tools.javadoc.main.JavadocClassFinder.lambda$preRegister$0(JavadocClassFinder.java:60)
>   at com.sun.tools.javac.util.Context.get(Context.java:150)
>   at com.sun.tools.javac.code.ClassFinder.instance(ClassFinder.java:177)
>   at com.sun.tools.javac.main.JavaCompiler.(JavaCompiler.java:393)
>   at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:114)
>   at 
> com.sun.tools.javac.api.JavacTaskImpl.prepareCompiler(JavacTaskImpl.java:207)
>   at com.sun.tools.javac.api.JavacTaskImpl.parse(JavacTaskImpl.java:247)
>   at 
> org.netbeans.modules.java.source.nbjavac.parsing.SequentialParsingImpl.parse(SequentialParsingImpl.java:

[jira] [Updated] (NETBEANS-1066) Profiler won't attach to local process using jdk10

2018-07-22 Thread mck (JIRA)


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

mck updated NETBEANS-1066:
--
Description: 
Following these steps

 - start a java process (on the command line `java -jar ...`)
 - from netbeans 'profile -> attach to external process...'
 - open 'setup attach to process...'
 - choose 'already running local java process' and the process from list. then 
"OK"
 - hit 'attach'

An error dialog with only the text "0" appears.
 !Screen Shot 2018-07-22 at 16.41.06.png! 

The logs report the following exception
{noformat}
com.sun.tools.attach.AgentLoadException: 0
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104)
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115)
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139)
at 
org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791)
at 
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759)
at 
org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112)
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){noformat}


This same process works with netbeans started using jdk1.8

And using 'manually started local java process' (against a local process 
started with the corresponding agent jvm options) does work with jdk10


  was:
Following these steps

 - start a java process (on the command line `java -jar ...`)
 - from netbeans 'profile -> attach to external process...'
 - open 'setup attach to process...'
 - choose 'already running local java process' and the process from list. then 
"OK"
 - hit 'attach'

An error dialog with only the text "0" appears.

The logs report the following exception
{noformat}
com.sun.tools.attach.AgentLoadException: 0
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104)
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115)
at 
jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139)
at 
org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791)
at 
org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759)
at 
org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112)
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){noformat}


This same process works with netbeans started using jdk1.8

And using 'manually started local java process' (against a local process 
started with the corresponding agent jvm options) does work with jdk10



> Profiler won't attach to local process using jdk10
> --
>
> Key: NETBEANS-1066
> URL: https://issues.apache.org/jira/browse/NETBEANS-1066
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach
>Affects Versions: 9.0
> Environment: NetBeans git SHA 6e9f6f8
> .
> MacOSX 10.13.6 (17G65)
> .
> $ java -version
> java version "10.0.1" 2018-04-17
> Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
> .
>Reporter: mck
>Priority: Major
>  Labels: jdk10
> Attachments: Screen Shot 2018-07-22 at 16.41.06.png
>
>
> Following these steps
>  - start a java process (on the command line `java -jar ...`)
>  - from netbeans 'profile -> attach to external process...'
>  - open 'setup attach to process...'
>  - choose 'already running local java process' and the process from list. 
> then "OK"
>  - hit 'attach'
> An error dialog with only the text "0" appears.
>  !Screen Shot 2018-07-22 at 16.41.06.png! 
> The logs report the following exception
> {noformat}
> com.sun.tools.attach.AgentLoadException: 0
>   at 
> jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104)
>   at 
> jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMac

[jira] [Updated] (NETBEANS-1066) Profiler won't attach to local process using jdk10

2018-07-22 Thread mck (JIRA)


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

mck updated NETBEANS-1066:
--
Attachment: Screen Shot 2018-07-22 at 16.41.06.png

> Profiler won't attach to local process using jdk10
> --
>
> Key: NETBEANS-1066
> URL: https://issues.apache.org/jira/browse/NETBEANS-1066
> Project: NetBeans
>  Issue Type: Bug
>  Components: profiler - Attach
>Affects Versions: 9.0
> Environment: NetBeans git SHA 6e9f6f8
> .
> MacOSX 10.13.6 (17G65)
> .
> $ java -version
> java version "10.0.1" 2018-04-17
> Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
> .
>Reporter: mck
>Priority: Major
>  Labels: jdk10
> Attachments: Screen Shot 2018-07-22 at 16.41.06.png
>
>
> Following these steps
>  - start a java process (on the command line `java -jar ...`)
>  - from netbeans 'profile -> attach to external process...'
>  - open 'setup attach to process...'
>  - choose 'already running local java process' and the process from list. 
> then "OK"
>  - hit 'attach'
> An error dialog with only the text "0" appears.
> The logs report the following exception
> {noformat}
> com.sun.tools.attach.AgentLoadException: 0
>   at 
> jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104)
>   at 
> jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115)
>   at 
> jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139)
>   at 
> org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791)
>   at 
> org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759)
>   at 
> org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112)
>   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){noformat}
> This same process works with netbeans started using jdk1.8
> And using 'manually started local java process' (against a local process 
> started with the corresponding agent jvm options) does work with jdk10



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