You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (Jira)" <ji...@apache.org> on 2023/06/18 20:49:00 UTC

[jira] [Commented] (FC-319) [FORTRESS-WEB] Incompatible with Java 17

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

Shawn McKinney commented on FC-319:
-----------------------------------

To workaround the issue place the following statement in tomcat runtime env:

In TOMCAT_HOME/bin/setenv.sh

```
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.desktop/javax.swing.tree=ALL-UNNAMED"
```

> [FORTRESS-WEB] Incompatible with Java 17
> ----------------------------------------
>
>                 Key: FC-319
>                 URL: https://issues.apache.org/jira/browse/FC-319
>             Project: FORTRESS
>          Issue Type: Bug
>            Reporter: Shawn McKinney
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Problem running web component in Apache Tomcat 9 using Java 17.  When pulling up pages with tree view
> ```
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field protected transient java.lang.Object javax.swing.tree.DefaultMutableTreeNode.userObject accessible: module java.desktop does not "opens javax.swing.tree" to unnamed module @7d3e0a57
> ```
> Possibly related to 
> https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org