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

Chris Drake updated NETBEANS-1787:
----------------------------------
    Description: 
Inspecting the dependencies associated within a open maven module often, if not 
always, results in the following exception and failure dialog within the 
NetBeans UI.
{noformat}
'IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"'{noformat}
I can reproduce the issue reliably by simply navigating to a dependency, expand 
the packages/classes and boule-click a class to view the source.

I've been encountering this same issue in various forms since the release of 
NetBeans 9.0 and see it both when running with JDK 8 and JDK 11. I see there 
have been a number of similar reports which have been resolved, however these 
fixes do not appear to have had any impact on the issue(s) I'm seeing locally.

 

The following is an extract from the UI Log:
{code:java}
<record>
 <date>2018-12-09T08:05:09</date>
 <millis>1544360709927</millis>
 <sequence>8388</sequence>
 <level>700</level>
 <thread>127</thread>
 <message>UI_USER_CONFIGURATION</message>
 <key>UI_USER_CONFIGURATION</key>
 <catalog>org.netbeans.modules.uihandler.Bundle</catalog>
 <param>Mac OS X, 10.14, x86_64</param>
 <param>Java HotSpot(TM) 64-Bit Server VM, 25.181-b13, Java(TM) SE Runtime 
Environment, 1.8.0_181-b13</param>
 <param>Apache NetBeans IDE Dev (Build 20181015-8f3e803c0581)</param>
 <param></param>
 <param>IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"</param>
 <param>&lt;Please provide a description of the problem or the steps to 
reproduce&gt;</param>
 <param>*********</param>
</record>{code}
and from the IDE log:
{code:java}
SEVERE [org.openide.util.Exceptions]
java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"
 at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:161)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:878)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:731)
 at 
org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
 at 
org.netbeans.modules.java.source.parsing.ClassParser.getResult(ClassParser.java:160)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
 at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
[catch] at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 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)
WARNING [org.netbeans.modules.java.source.parsing.JavacParser]: ClassPath 
identity changed for 
AbstractFileObject@15159aa0[com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java],
 class path owner: null original sourcePath: 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
 new sourcePath: 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: 
Incorrect error badges detected, 
file=com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java in 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Not 
PathRegistry controlled root: AbstractFileObject@25acf4cd[root of 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar[org.openide.filesystems.JarFileSystem@5807bbae]]{code}

  was:
Inspecting the dependencies associated within a open maven module often If not 
always results in the following exception and failure dialog within the 
NetBeans UI.
{noformat}
'IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"'{noformat}
I can reproduce the issue reliably by simply navigating to a dependency, expand 
the packages/classes and boule-click a class to view the source.

I've been encountering this same issue in various forms since the release of 
NetBeans 9.0 and see it both when running with JDK 8 and JDK 11. I see there 
have been a number of similar reports which have been resolved, however these 
fixes do not appear to have had any impact on the issue(s) I'm seeing locally.

 

The following is an extract from the UI Log:
{code:java}
<record>
 <date>2018-12-09T08:05:09</date>
 <millis>1544360709927</millis>
 <sequence>8388</sequence>
 <level>700</level>
 <thread>127</thread>
 <message>UI_USER_CONFIGURATION</message>
 <key>UI_USER_CONFIGURATION</key>
 <catalog>org.netbeans.modules.uihandler.Bundle</catalog>
 <param>Mac OS X, 10.14, x86_64</param>
 <param>Java HotSpot(TM) 64-Bit Server VM, 25.181-b13, Java(TM) SE Runtime 
Environment, 1.8.0_181-b13</param>
 <param>Apache NetBeans IDE Dev (Build 20181015-8f3e803c0581)</param>
 <param></param>
 <param>IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"</param>
 <param>&lt;Please provide a description of the problem or the steps to 
reproduce&gt;</param>
 <param>*********</param>
</record>{code}
and from the IDE log:
{code:java}
SEVERE [org.openide.util.Exceptions]
java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: 
"HikariConfigurationUtil.class"
 at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:161)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:878)
 at 
org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:731)
 at 
org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
 at 
org.netbeans.modules.java.source.parsing.ClassParser.getResult(ClassParser.java:160)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
 at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
 at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
[catch] at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 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)
WARNING [org.netbeans.modules.java.source.parsing.JavacParser]: ClassPath 
identity changed for 
AbstractFileObject@15159aa0[com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java],
 class path owner: null original sourcePath: 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
 new sourcePath: 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: 
Incorrect error badges detected, 
file=com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java in 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Not 
PathRegistry controlled root: AbstractFileObject@25acf4cd[root of 
/Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar[org.openide.filesystems.JarFileSystem@5807bbae]]{code}


> IllegalArgumentException: Compilation unit is not of SOURCE kind: 
> "HikariConfigurationUtil.class"
> -------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1787
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1787
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 10.0
>         Environment: OSX: Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 
> PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
> JVM: Java HotSpot(TM) 64-Bit Server VM, 25.181-b13, Java(TM) SE Runtime 
> Environment, 1.8.0_181-b13
>            Reporter: Chris Drake
>            Priority: Major
>
> Inspecting the dependencies associated within a open maven module often, if 
> not always, results in the following exception and failure dialog within the 
> NetBeans UI.
> {noformat}
> 'IllegalArgumentException: Compilation unit is not of SOURCE kind: 
> "HikariConfigurationUtil.class"'{noformat}
> I can reproduce the issue reliably by simply navigating to a dependency, 
> expand the packages/classes and boule-click a class to view the source.
> I've been encountering this same issue in various forms since the release of 
> NetBeans 9.0 and see it both when running with JDK 8 and JDK 11. I see there 
> have been a number of similar reports which have been resolved, however these 
> fixes do not appear to have had any impact on the issue(s) I'm seeing locally.
>  
> The following is an extract from the UI Log:
> {code:java}
> <record>
>  <date>2018-12-09T08:05:09</date>
>  <millis>1544360709927</millis>
>  <sequence>8388</sequence>
>  <level>700</level>
>  <thread>127</thread>
>  <message>UI_USER_CONFIGURATION</message>
>  <key>UI_USER_CONFIGURATION</key>
>  <catalog>org.netbeans.modules.uihandler.Bundle</catalog>
>  <param>Mac OS X, 10.14, x86_64</param>
>  <param>Java HotSpot(TM) 64-Bit Server VM, 25.181-b13, Java(TM) SE Runtime 
> Environment, 1.8.0_181-b13</param>
>  <param>Apache NetBeans IDE Dev (Build 20181015-8f3e803c0581)</param>
>  <param></param>
>  <param>IllegalArgumentException: Compilation unit is not of SOURCE kind: 
> "HikariConfigurationUtil.class"</param>
>  <param>&lt;Please provide a description of the problem or the steps to 
> reproduce&gt;</param>
>  <param>*********</param>
> </record>{code}
> and from the IDE log:
> {code:java}
> SEVERE [org.openide.util.Exceptions]
> java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: 
> "HikariConfigurationUtil.class"
>  at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:161)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:878)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:731)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
>  at 
> org.netbeans.modules.java.source.parsing.ClassParser.getResult(ClassParser.java:160)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
>  at 
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
>  at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
> [catch] at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  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)
> WARNING [org.netbeans.modules.java.source.parsing.JavacParser]: ClassPath 
> identity changed for 
> AbstractFileObject@15159aa0[com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java],
>  class path owner: null original sourcePath: 
> /Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
>  new sourcePath: 
> /Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar
> WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: 
> Incorrect error badges detected, 
> file=com/zaxxer/hikari/hibernate/HikariConfigurationUtil.java in 
> /Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar.
> WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Not 
> PathRegistry controlled root: AbstractFileObject@25acf4cd[root of 
> /Users/cgdrake/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0-sources.jar[org.openide.filesystems.JarFileSystem@5807bbae]]{code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to