You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Larsen <jo...@javapipe.com> on 2018/12/31 15:12:25 UTC

Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Hello,

Ever since we started using jdk10 and up we get this error message whenever
we do ./shutdown.sh.

NOTE: Picked up JDK_JAVA_OPTIONS:
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

We need to fix the issue or surpress the output. Any suggestions?

There is nothing in catalina.out about this either:

31-Dec-2018 15:09:52.058 INFO [main]
org.apache.catalina.core.StandardServer.await A valid shutdown command was
received via the shutdown port. Stopping the Server instance.
31-Dec-2018 15:09:52.059 INFO [main]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["http-nio-8080"]
31-Dec-2018 15:09:52.066 INFO [main]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["ajp-nio-8009"]
31-Dec-2018 15:09:52.071 INFO [main]
org.apache.catalina.core.StandardService.stopInternal Stopping service
[Catalina]
31-Dec-2018 15:09:52.081 INFO [main]
org.apache.catalina.core.ApplicationContext.log SessionListener:
contextDestroyed()
31-Dec-2018 15:09:52.081 INFO [main]
org.apache.catalina.core.ApplicationContext.log ContextListener:
contextDestroyed()
31-Dec-2018 15:09:52.090 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["http-nio-8080"]
31-Dec-2018 15:09:52.092 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["ajp-nio-8009"]
31-Dec-2018 15:09:52.094 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["http-nio-8080"]
31-Dec-2018 15:09:52.094 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["ajp-nio-8009"]

Thanks,

John

Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Posted by John Larsen <jo...@javapipe.com>.
All versions of tomcat. But mostly 8.5 and 9. Also heres my setenv.sh
export JAVA_HOME=/usr/java/jdk11
CATALINA_OPTS="-Xms256M -Xmx256M -server -XX:+UseParallelGC"
export JAVA_HOME CATALINA_OPTS

Thanks

John

On Mon, Dec 31, 2018 at 12:00 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> John,
>
> On 12/31/18 10:12, John Larsen wrote:
> > Ever since we started using jdk10 and up we get this error message
> > whenever we do ./shutdown.sh.
> >
> > NOTE: Picked up JDK_JAVA_OPTIONS:
> > --add-opens=java.base/java.lang=ALL-UNNAMED
> > --add-opens=java.base/java.io=ALL-UNNAMED
> > --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
> >
> > We need to fix the issue or surpress the output. Any suggestions?
>
> Tomcat version?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwqZzkACgkQHPApP6U8
> pFiQOg//QzYjPfUOKNw2nQ7hKKu+fdmk/TdR9INzKucQqHTunCxdGN2cwKODzyuZ
> b5DwZBTrOTXh5wN6c4cKzIk7LvpMjwMViCLLtbG0TeWBLJCapQATBlVT4D2EWsPr
> IjK1cZg4JkrfnftPRlHzeAjNNsrCHNzcNwZxRYc49xVQpLXUOjrixjlKDCv6vCwh
> 4+CuAwcPu6vkmzPXPkyNmrZRbjHO+TY2nCNyRTlHkx90Xp2MzaL1OWTsS29/UDek
> 7McruCIsEVpt7oS4i6g4dncfxSe4v9sBxE9aQ0XT3ur5dN7AP0jxYqN8kzblwU/s
> KX5/xOcp5lg1DAg4jy1VdMj+e5IPKp2zjn+qm1rWWwtOzbbdhuGQBpwK4UueF0to
> cXEjJMkmyRsSgky3ZllDr8rPr86Q5VTgwIiJQ+Rvnngz/rz3fxaa0jodsZXuvG1Y
> Yf7MBvSx01e5h3qwVL/HJAgVkv+aEkwGPEpsId4uYHHGHkxB6gbaVxZTs5rPkW2T
> e0DNLlu+pc/mhWGp2zRlRp6uW09fygIz5db0FGkMhNYjsbSF3WSmsNXdAt86TWH0
> 4iKdcEkKgfzXph+MUxSqrOzHBvXFvAQ/eVUayBsffvvdhC5CDi+cA5qxkxTxUVRT
> KPWsbapzvuorxwcHkqpo4LxNSVc2KU5cW/zOccYIAolKPcsjlhI=
> =OK4K
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

John,

On 12/31/18 10:12, John Larsen wrote:
> Ever since we started using jdk10 and up we get this error message
> whenever we do ./shutdown.sh.
> 
> NOTE: Picked up JDK_JAVA_OPTIONS: 
> --add-opens=java.base/java.lang=ALL-UNNAMED 
> --add-opens=java.base/java.io=ALL-UNNAMED 
> --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
> 
> We need to fix the issue or surpress the output. Any suggestions?

Tomcat version?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwqZzkACgkQHPApP6U8
pFiQOg//QzYjPfUOKNw2nQ7hKKu+fdmk/TdR9INzKucQqHTunCxdGN2cwKODzyuZ
b5DwZBTrOTXh5wN6c4cKzIk7LvpMjwMViCLLtbG0TeWBLJCapQATBlVT4D2EWsPr
IjK1cZg4JkrfnftPRlHzeAjNNsrCHNzcNwZxRYc49xVQpLXUOjrixjlKDCv6vCwh
4+CuAwcPu6vkmzPXPkyNmrZRbjHO+TY2nCNyRTlHkx90Xp2MzaL1OWTsS29/UDek
7McruCIsEVpt7oS4i6g4dncfxSe4v9sBxE9aQ0XT3ur5dN7AP0jxYqN8kzblwU/s
KX5/xOcp5lg1DAg4jy1VdMj+e5IPKp2zjn+qm1rWWwtOzbbdhuGQBpwK4UueF0to
cXEjJMkmyRsSgky3ZllDr8rPr86Q5VTgwIiJQ+Rvnngz/rz3fxaa0jodsZXuvG1Y
Yf7MBvSx01e5h3qwVL/HJAgVkv+aEkwGPEpsId4uYHHGHkxB6gbaVxZTs5rPkW2T
e0DNLlu+pc/mhWGp2zRlRp6uW09fygIz5db0FGkMhNYjsbSF3WSmsNXdAt86TWH0
4iKdcEkKgfzXph+MUxSqrOzHBvXFvAQ/eVUayBsffvvdhC5CDi+cA5qxkxTxUVRT
KPWsbapzvuorxwcHkqpo4LxNSVc2KU5cW/zOccYIAolKPcsjlhI=
=OK4K
-----END PGP SIGNATURE-----

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


Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Posted by Mark Thomas <ma...@apache.org>.
On 03/01/2019 20:00, John Larsen wrote:
> How can I surpress it if its not an error?

With difficulty. Tomcat always sets that system property and there is no
way (short of editing the scripts which is generally a bad idea) to stop
it. The JVM always generates that log message to stderr (as far as I am
aware).

> Problem I have is the output
> causes the script thinks its an error.

The immediate solution is probably to update the script.

A fix on the Tomcat side is going to be trickier. We might be able to
skip setting those properties on shutdown (or more likely clear it if
stop is called). That would need some testing.

Mark

> 
> Thanks,
> 
> John
> 
> On Thu, Jan 3, 2019 at 12:51 PM Mark Thomas <ma...@apache.org> wrote:
> 
>> On 31/12/2018 15:12, John Larsen wrote:
>>> Hello,
>>>
>>> Ever since we started using jdk10 and up we get this error message
>> whenever
>>> we do ./shutdown.sh.
>>>
>>> NOTE: Picked up JDK_JAVA_OPTIONS:
>>> --add-opens=java.base/java.lang=ALL-UNNAMED
>>> --add-opens=java.base/java.io=ALL-UNNAMED
>>> --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
>>
>> That is not an error message.
>>
>>> We need to fix the issue or surpress the output. Any suggestions?
>>
>> What issue?
>>
>> That output is generated by the JVM. The options the message refers to
>> are set automatically by Tomcat when running on Java 9 or later to
>> prevent various features failing (mostly around memory leak detection
>> and prevention) due to the additional restrictions added in Java 9.
>>
>> Mark
>>
>>
>>>
>>> There is nothing in catalina.out about this either:
>>>
>>> 31-Dec-2018 15:09:52.058 INFO [main]
>>> org.apache.catalina.core.StandardServer.await A valid shutdown command
>> was
>>> received via the shutdown port. Stopping the Server instance.
>>> 31-Dec-2018 15:09:52.059 INFO [main]
>>> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.066 INFO [main]
>>> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
>>> ["ajp-nio-8009"]
>>> 31-Dec-2018 15:09:52.071 INFO [main]
>>> org.apache.catalina.core.StandardService.stopInternal Stopping service
>>> [Catalina]
>>> 31-Dec-2018 15:09:52.081 INFO [main]
>>> org.apache.catalina.core.ApplicationContext.log SessionListener:
>>> contextDestroyed()
>>> 31-Dec-2018 15:09:52.081 INFO [main]
>>> org.apache.catalina.core.ApplicationContext.log ContextListener:
>>> contextDestroyed()
>>> 31-Dec-2018 15:09:52.090 INFO [main]
>>> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.092 INFO [main]
>>> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
>>> ["ajp-nio-8009"]
>>> 31-Dec-2018 15:09:52.094 INFO [main]
>>> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
>>> ["http-nio-8080"]
>>> 31-Dec-2018 15:09:52.094 INFO [main]
>>> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
>>> ["ajp-nio-8009"]
>>>
>>> Thanks,
>>>
>>> John
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


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


Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Posted by John Larsen <jo...@javapipe.com>.
How can I surpress it if its not an error? Problem I have is the output
causes the script thinks its an error.

Thanks,

John

On Thu, Jan 3, 2019 at 12:51 PM Mark Thomas <ma...@apache.org> wrote:

> On 31/12/2018 15:12, John Larsen wrote:
> > Hello,
> >
> > Ever since we started using jdk10 and up we get this error message
> whenever
> > we do ./shutdown.sh.
> >
> > NOTE: Picked up JDK_JAVA_OPTIONS:
> > --add-opens=java.base/java.lang=ALL-UNNAMED
> > --add-opens=java.base/java.io=ALL-UNNAMED
> > --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
>
> That is not an error message.
>
> > We need to fix the issue or surpress the output. Any suggestions?
>
> What issue?
>
> That output is generated by the JVM. The options the message refers to
> are set automatically by Tomcat when running on Java 9 or later to
> prevent various features failing (mostly around memory leak detection
> and prevention) due to the additional restrictions added in Java 9.
>
> Mark
>
>
> >
> > There is nothing in catalina.out about this either:
> >
> > 31-Dec-2018 15:09:52.058 INFO [main]
> > org.apache.catalina.core.StandardServer.await A valid shutdown command
> was
> > received via the shutdown port. Stopping the Server instance.
> > 31-Dec-2018 15:09:52.059 INFO [main]
> > org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> > ["http-nio-8080"]
> > 31-Dec-2018 15:09:52.066 INFO [main]
> > org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> > ["ajp-nio-8009"]
> > 31-Dec-2018 15:09:52.071 INFO [main]
> > org.apache.catalina.core.StandardService.stopInternal Stopping service
> > [Catalina]
> > 31-Dec-2018 15:09:52.081 INFO [main]
> > org.apache.catalina.core.ApplicationContext.log SessionListener:
> > contextDestroyed()
> > 31-Dec-2018 15:09:52.081 INFO [main]
> > org.apache.catalina.core.ApplicationContext.log ContextListener:
> > contextDestroyed()
> > 31-Dec-2018 15:09:52.090 INFO [main]
> > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> > ["http-nio-8080"]
> > 31-Dec-2018 15:09:52.092 INFO [main]
> > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> > ["ajp-nio-8009"]
> > 31-Dec-2018 15:09:52.094 INFO [main]
> > org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> > ["http-nio-8080"]
> > 31-Dec-2018 15:09:52.094 INFO [main]
> > org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> > ["ajp-nio-8009"]
> >
> > Thanks,
> >
> > John
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Problem with JDK10-12 "NOTE: Picked up JDK_JAVA_OPTIONS"

Posted by Mark Thomas <ma...@apache.org>.
On 31/12/2018 15:12, John Larsen wrote:
> Hello,
> 
> Ever since we started using jdk10 and up we get this error message whenever
> we do ./shutdown.sh.
> 
> NOTE: Picked up JDK_JAVA_OPTIONS:
> --add-opens=java.base/java.lang=ALL-UNNAMED
> --add-opens=java.base/java.io=ALL-UNNAMED
> --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

That is not an error message.

> We need to fix the issue or surpress the output. Any suggestions?

What issue?

That output is generated by the JVM. The options the message refers to
are set automatically by Tomcat when running on Java 9 or later to
prevent various features failing (mostly around memory leak detection
and prevention) due to the additional restrictions added in Java 9.

Mark


> 
> There is nothing in catalina.out about this either:
> 
> 31-Dec-2018 15:09:52.058 INFO [main]
> org.apache.catalina.core.StandardServer.await A valid shutdown command was
> received via the shutdown port. Stopping the Server instance.
> 31-Dec-2018 15:09:52.059 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["http-nio-8080"]
> 31-Dec-2018 15:09:52.066 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["ajp-nio-8009"]
> 31-Dec-2018 15:09:52.071 INFO [main]
> org.apache.catalina.core.StandardService.stopInternal Stopping service
> [Catalina]
> 31-Dec-2018 15:09:52.081 INFO [main]
> org.apache.catalina.core.ApplicationContext.log SessionListener:
> contextDestroyed()
> 31-Dec-2018 15:09:52.081 INFO [main]
> org.apache.catalina.core.ApplicationContext.log ContextListener:
> contextDestroyed()
> 31-Dec-2018 15:09:52.090 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["http-nio-8080"]
> 31-Dec-2018 15:09:52.092 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["ajp-nio-8009"]
> 31-Dec-2018 15:09:52.094 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["http-nio-8080"]
> 31-Dec-2018 15:09:52.094 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["ajp-nio-8009"]
> 
> Thanks,
> 
> John
> 


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