You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Tim Mullé <tm...@gmail.com> on 2021/06/23 17:21:06 UTC

JDK11 - WARNING: Illegal reflective access by org.openide.util.RequestProcessor

Hi,

We recently switched our application to run in JDK11 and we are seeing this warning in our logs.
I tried updating to the latest 124 maven reference but that didn’t seem to help.

I looked in the GitHub code base for any reported issues but didn’t see to find any for this issue.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.openide.util.RequestProcessor$TopLevelThreadGroup .. to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of org.openide.util.RequestProcessor$TopLevelThreadGroup
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Thanks,
- Tim



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

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


Re: JDK11 - WARNING: Illegal reflective access by org.openide.util.RequestProcessor

Posted by Tim Mullé <tm...@gmail.com>.
Thanks Neil.. using those options stopped that particular warning.. I will have to weed out which ones we don’t need but on my testing our app started up and we no longer get that error.

However, I am now seeing this in our logs.

WARNING: No interface org.openide.util.spi.SVGLoader instance found in ProxyLookup(class=class org.openide.util.Lookup$DefLookup)->[MetaInfServicesLookup[jdk.internal.loader.ClassLoaders$AppClassLoader@

INFO: No SVG loader available for loading jar:file:/<BLAH BLAH>!/org/netbeans/swing/etable/columns.svg

Thanks again!


> On Jun 23, 2021, at 1:28 PM, Neil C Smith <ne...@apache.org> wrote:
> 
> On Wed, 23 Jun 2021 at 18:21, Tim Mullé <tm...@gmail.com> wrote:
>> We recently switched our application to run in JDK11 and we are seeing this warning in our logs.
>> I tried updating to the latest 124 maven reference but that didn’t seem to help.
> 
> You might want to look at which of the add-opens / add-exports you
> need to copy into your conf file from
> https://github.com/apache/netbeans/blob/master/nb/ide.launcher/netbeans.conf#L66
> 
> Best wishes,
> 
> Neil


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

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


Re: JDK11 - WARNING: Illegal reflective access by org.openide.util.RequestProcessor

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 23 Jun 2021 at 18:21, Tim Mullé <tm...@gmail.com> wrote:
> We recently switched our application to run in JDK11 and we are seeing this warning in our logs.
> I tried updating to the latest 124 maven reference but that didn’t seem to help.

You might want to look at which of the add-opens / add-exports you
need to copy into your conf file from
https://github.com/apache/netbeans/blob/master/nb/ide.launcher/netbeans.conf#L66

Best wishes,

Neil

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

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