[JBoss JIRA] (WFLY-10031) Scripts throws "illegal reflective access" warning on JDK9
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-10031?page=com.atlassian.jira.plugin... ]
Tomaz Cerar edited comment on WFLY-10031 at 3/16/18 1:41 PM:
-------------------------------------------------------------
[~mkopecky] none of such warnings should fail any test.
If tests are failing there must be some other reason.
Please post stacktrace in case it fails.
Such warning, are just that, warnings that tell you, it might break in the future.
was (Author: ctomc):
[~mkopecky] I none of such warnings, should fail any test.
If tests are failing there must be some other reason.
Please post stacktrace in case it fails.
Such warning, are just that, warnings that tell you, it might break in the future.
> Scripts throws "illegal reflective access" warning on JDK9
> ----------------------------------------------------------
>
> Key: WFLY-10031
> URL: https://issues.jboss.org/browse/WFLY-10031
> Project: WildFly
> Issue Type: Bug
> Components: Scripts, Security
> Reporter: Marek Kopecký
> Assignee: James Perkins
> Priority: Blocker
>
> *Description of the issue:*
> Scripts throws "illegal reflective access" warning on JDK9/10/11.
> *How reproducible:*
> Always with JDK9, 10 and 11
> *Steps to Reproduce:*
> * ./jboss-cli.sh "echo test"
> * ./add-user.sh -u test4 -p Test123* -s
> * ./appclient.sh -v
> * ./wsconsume.sh
> * ./wsprovide.sh
> * ./domain.sh
> * ./standalone.sh
> *Actual results:*
> {noformat}
> [hudson@rhel7-large-9887 bin]$ java --version
> java 9.0.4
> Java(TM) SE Runtime Environment (build 9.0.4+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> test
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> [hudson@rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties | tail -n 1
> test4=a95aa9d159b7afe0cc9d3795061551ad
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./appclient.sh -v
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> 06:11:52,205 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> *Expected results:*
> No warnings
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFLY-10031) Scripts throws "illegal reflective access" warning on JDK9
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-10031?page=com.atlassian.jira.plugin... ]
Tomaz Cerar commented on WFLY-10031:
------------------------------------
[~mkopecky] I none of such warnings, should fail any test.
If tests are failing there must be some other reason.
Please post stacktrace in case it fails.
Such warning, are just that, warnings that tell you, it might break in the future.
> Scripts throws "illegal reflective access" warning on JDK9
> ----------------------------------------------------------
>
> Key: WFLY-10031
> URL: https://issues.jboss.org/browse/WFLY-10031
> Project: WildFly
> Issue Type: Bug
> Components: Scripts, Security
> Reporter: Marek Kopecký
> Assignee: James Perkins
> Priority: Blocker
>
> *Description of the issue:*
> Scripts throws "illegal reflective access" warning on JDK9/10/11.
> *How reproducible:*
> Always with JDK9, 10 and 11
> *Steps to Reproduce:*
> * ./jboss-cli.sh "echo test"
> * ./add-user.sh -u test4 -p Test123* -s
> * ./appclient.sh -v
> * ./wsconsume.sh
> * ./wsprovide.sh
> * ./domain.sh
> * ./standalone.sh
> *Actual results:*
> {noformat}
> [hudson@rhel7-large-9887 bin]$ java --version
> java 9.0.4
> Java(TM) SE Runtime Environment (build 9.0.4+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> test
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> [hudson@rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties | tail -n 1
> test4=a95aa9d159b7afe0cc9d3795061551ad
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./appclient.sh -v
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> 06:11:52,205 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> *Expected results:*
> No warnings
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFLY-10031) Scripts throws "illegal reflective access" warning on JDK9
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-10031?page=com.atlassian.jira.plugin... ]
Tomaz Cerar updated WFLY-10031:
-------------------------------
Description:
*Description of the issue:*
Scripts throws "illegal reflective access" warning on JDK9/10/11.
*How reproducible:*
Always with JDK9, 10 and 11
*Steps to Reproduce:*
* ./jboss-cli.sh "echo test"
* ./add-user.sh -u test4 -p Test123* -s
* ./appclient.sh -v
* ./wsconsume.sh
* ./wsprovide.sh
* ./domain.sh
* ./standalone.sh
*Actual results:*
{noformat}
[hudson@rhel7-large-9887 bin]$ java --version
java 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
test
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
[hudson@rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties | tail -n 1
test4=a95aa9d159b7afe0cc9d3795061551ad
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./appclient.sh -v
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
06:11:52,205 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
[hudson@rhel7-large-9887 bin]$
{noformat}
*Expected results:*
No warnings
was:
*Description of the issue:*
Scripts throws "illegal reflective access" warning on JDK9.
*How reproducible:*
Always with JDK9
*Steps to Reproduce:*
* ./jboss-cli.sh "echo test"
* ./add-user.sh -u test4 -p Test123* -s
* ./appclient.sh -v
* ./wsconsume.sh
* ./wsprovide.sh
* ./domain.sh
* ./standalone.sh
*Actual results:*
{noformat}
[hudson@rhel7-large-9887 bin]$ java --version
java 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
test
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
[hudson@rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties | tail -n 1
test4=a95aa9d159b7afe0cc9d3795061551ad
[hudson@rhel7-large-9887 bin]$
{noformat}
{noformat}
[hudson@rhel7-large-9887 bin]$ ./appclient.sh -v
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
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
06:11:52,205 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
[hudson@rhel7-large-9887 bin]$
{noformat}
*Expected results:*
No warnings
> Scripts throws "illegal reflective access" warning on JDK9
> ----------------------------------------------------------
>
> Key: WFLY-10031
> URL: https://issues.jboss.org/browse/WFLY-10031
> Project: WildFly
> Issue Type: Bug
> Components: Scripts, Security
> Reporter: Marek Kopecký
> Assignee: James Perkins
> Priority: Blocker
>
> *Description of the issue:*
> Scripts throws "illegal reflective access" warning on JDK9/10/11.
> *How reproducible:*
> Always with JDK9, 10 and 11
> *Steps to Reproduce:*
> * ./jboss-cli.sh "echo test"
> * ./add-user.sh -u test4 -p Test123* -s
> * ./appclient.sh -v
> * ./wsconsume.sh
> * ./wsprovide.sh
> * ./domain.sh
> * ./standalone.sh
> *Actual results:*
> {noformat}
> [hudson@rhel7-large-9887 bin]$ java --version
> java 9.0.4
> Java(TM) SE Runtime Environment (build 9.0.4+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> test
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> [hudson@rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties | tail -n 1
> test4=a95aa9d159b7afe0cc9d3795061551ad
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson@rhel7-large-9887 bin]$ ./appclient.sh -v
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> 06:11:52,205 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
> [hudson@rhel7-large-9887 bin]$
> {noformat}
> *Expected results:*
> No warnings
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JGRP-2257) UDP#PacketReceiver stuck in busy loop when socket throws closed exception but socket is not closed
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-2257?page=com.atlassian.jira.plugin.... ]
Bela Ban updated JGRP-2257:
---------------------------
Fix Version/s: 4.0.12
> UDP#PacketReceiver stuck in busy loop when socket throws closed exception but socket is not closed
> --------------------------------------------------------------------------------------------------
>
> Key: JGRP-2257
> URL: https://issues.jboss.org/browse/JGRP-2257
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 3.6.12
> Environment: Windows Server 2016, 32GBytes memory running as a Hyper-V guest
> java version "1.8.0_131"
> Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
> It was reported with just a single node running.
> Reporter: Paul Illingworth
> Assignee: Bela Ban
> Fix For: 4.0.12
>
>
> I have a had a report of a scenario where it looks like the UDP#PacketReceiver is stuck spinning in a busy loop. The following is a snippet of the log file from the system in question.
> {noformat}
> 2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
> java.net.SocketException: socket closed
> at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
> at java.net.DatagramSocket.receive(DatagramSocket.java:743)
> at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
> at java.lang.Thread.run(Thread.java:748)
>
> 2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
> java.net.SocketException: socket closed
> at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
> at java.net.DatagramSocket.receive(DatagramSocket.java:743)
> at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
> at java.lang.Thread.run(Thread.java:748)
>
> 2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
> java.net.SocketException: socket closed
> at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
> at java.net.DatagramSocket.receive(DatagramSocket.java:743)
> at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Looking at the code it looks like the call to receive a packet
> {code:java}
> receiver_socket.receive(packet);
> {code}
> results in an exception being thrown because the socket is closed but then when the exception is caught
> {code:java}
> if(receiver_socket.isClosed()) {
> {code}
> method is queried which says the socket has not been closed and the loop then continues for ever.
> I guess this is related to JGRP-1669. To quote
> _I hope there is no condition which causes the socket receive() to spit out endless exceptions while not being closed..._
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (JGRP-2257) UDP#PacketReceiver stuck in busy loop when socket throws closed exception but socket is not closed
by Paul Illingworth (JIRA)
Paul Illingworth created JGRP-2257:
--------------------------------------
Summary: UDP#PacketReceiver stuck in busy loop when socket throws closed exception but socket is not closed
Key: JGRP-2257
URL: https://issues.jboss.org/browse/JGRP-2257
Project: JGroups
Issue Type: Bug
Affects Versions: 3.6.12
Environment: Windows Server 2016, 32GBytes memory running as a Hyper-V guest
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
It was reported with just a single node running.
Reporter: Paul Illingworth
Assignee: Bela Ban
I have a had a report of a scenario where it looks like the UDP#PacketReceiver is stuck spinning in a busy loop. The following is a snippet of the log file from the system in question.
{noformat}
2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
java.net.SocketException: socket closed
at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:743)
at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
at java.lang.Thread.run(Thread.java:748)
2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
java.net.SocketException: socket closed
at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:743)
at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
at java.lang.Thread.run(Thread.java:748)
2018-03-16 14:05:43,273 SEVERE [] (214,unicast receiver,shared=udp) JGRP000190: failed receiving packet
java.net.SocketException: socket closed
at java.net.TwoStacksPlainDatagramSocketImpl.peekData(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:743)
at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:694)
at java.lang.Thread.run(Thread.java:748)
{noformat}
Looking at the code it looks like the call to receive a packet
{code:java}
receiver_socket.receive(packet);
{code}
results in an exception being thrown because the socket is closed but then when the exception is caught
{code:java}
if(receiver_socket.isClosed()) {
{code}
method is queried which says the socket has not been closed and the loop then continues for ever.
I guess this is related to JGRP-1669. To quote
_I hope there is no condition which causes the socket receive() to spit out endless exceptions while not being closed..._
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (ELY-1533) Prevent SNAPSHOT versions of json-smart from being downloaded when building Elytron
by Farah Juma (JIRA)
[ https://issues.jboss.org/browse/ELY-1533?page=com.atlassian.jira.plugin.s... ]
Farah Juma updated ELY-1533:
----------------------------
Git Pull Request: https://github.com/wildfly-security/wildfly-elytron/pull/1103, https://github.com/wildfly-security/wildfly-elytron/pull/1102, https://github.com/wildfly-security/wildfly-elytron/pull/1114 (was: https://github.com/wildfly-security/wildfly-elytron/pull/1103, https://github.com/wildfly-security/wildfly-elytron/pull/1102)
> Prevent SNAPSHOT versions of json-smart from being downloaded when building Elytron
> -----------------------------------------------------------------------------------
>
> Key: ELY-1533
> URL: https://issues.jboss.org/browse/ELY-1533
> Project: WildFly Elytron
> Issue Type: Task
> Components: Build
> Reporter: Farah Juma
> Assignee: Farah Juma
> Fix For: 1.3.0.CR1, 1.2.3.Final, 1.1.9.Final
>
>
> Current output when building:
> {code}
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building WildFly Elytron 1.2.2.Final
> [INFO] ------------------------------------------------------------------------
> Downloading from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadat...
> Downloading from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/json-...
> Downloading from public-jboss: https://repository.jboss.org/nexus/content/groups/public-jboss/net/minide...
> Downloaded from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/json-... (313 B at 519 B/s)
> Downloaded from central: https://repo.maven.apache.org/maven2/net/minidev/json-smart/maven-metadat... (849 B at 693 B/s)
> Downloaded from public-jboss: https://repository.jboss.org/nexus/content/groups/public-jboss/net/minide... (849 B at 611 B/s)
> Downloading from public-jboss: https://repository.jboss.org/nexus/content/groups/public-jboss/net/minide...
> Downloading from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/json-...
> Downloaded from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/json-... (1.2 kB at 3.2 kB/s)
> Downloading from public-jboss: https://repository.jboss.org/nexus/content/groups/public-jboss/net/minide...
> Downloading from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/minid...
> Downloaded from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/minid... (598 B at 2.1 kB/s)
> Downloading from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/acces...
> Downloading from public-jboss: https://repository.jboss.org/nexus/content/groups/public-jboss/net/minide...
> Downloaded from jboss-public-repository-group: http://repository.jboss.org/nexus/content/groups/public/net/minidev/acces... (1.2 kB at 4.2 kB/s)
> [INFO]
> [INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ wildfly-elytron ---
> [INFO] org.wildfly.security:wildfly-elytron:jar:1.2.2.Final
> [INFO] +- org.jboss.logging:jboss-logging:jar:3.3.1.Final:compile
> [INFO] +- org.jboss.logging:jboss-logging-annotations:jar:2.1.0.Final:provided
> [INFO] +- org.jboss.logging:jboss-logging-processor:jar:2.1.0.Final:provided
> [INFO] | \- org.jboss.jdeparser:jdeparser:jar:2.0.2.Final:provided
> [INFO] +- org.jboss.logmanager:jboss-logmanager:jar:2.0.6.Final:provided
> [INFO] +- org.jboss.modules:jboss-modules:jar:1.6.0.Final:provided (optional)
> [INFO] +- org.kohsuke.metainf-services:metainf-services:jar:1.7:provided (optional)
> [INFO] +- org.wildfly.client:wildfly-client-config:jar:1.0.0.Final:provided
> [INFO] +- org.wildfly.common:wildfly-common:jar:1.2.0.Final:compile
> [INFO] +- org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec:jar:1.0.1.Final:provided
> [INFO] | \- org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:1.0.0.Final:provided
> [INFO] +- org.jboss.spec.javax.json:jboss-json-api_1.0_spec:jar:1.0.0.Final:provided
> [INFO] +- org.jboss.threads:jboss-threads:jar:2.2.1.Final:provided
> [INFO] +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M23:test
> [INFO] | +- org.apache.directory.api:api-i18n:jar:1.0.0-M23:test
> [INFO] | \- org.slf4j:slf4j-api:jar:1.7.7:test
> [INFO] +- org.apache.directory.api:api-asn1-ber:jar:1.0.0-M23:test
> [INFO] | \- org.apache.directory.api:api-util:jar:1.0.0-M23:test
> [INFO] +- org.apache.directory.api:api-ldap-codec-core:jar:1.0.0-M23:test
> [INFO] | +- org.apache.mina:mina-core:jar:2.0.7:test
> [INFO] | +- commons-lang:commons-lang:jar:2.6:test
> [INFO] | \- commons-collections:commons-collections:jar:3.2.1:test
> [INFO] +- org.apache.directory.api:api-ldap-codec-standalone:jar:1.0.0-M23:test
> [INFO] | +- org.apache.directory.api:api-ldap-net-mina:jar:1.0.0-M23:test
> [INFO] | \- org.apache.directory.api:api-ldap-extras-codec:jar:1.0.0-M23:test
> [INFO] +- org.apache.directory.api:api-ldap-extras-codec-api:jar:1.0.0-M23:test
> [INFO] +- org.apache.directory.api:api-ldap-model:jar:1.0.0-M23:test
> [INFO] | \- antlr:antlr:jar:2.7.7:test
> [INFO] +- org.apache.directory.jdbm:apacheds-jdbm1:jar:2.0.0-M2:test
> [INFO] +- org.apache.directory.server:apacheds-core-api:jar:2.0.0-M17:test
> [INFO] | +- commons-io:commons-io:jar:2.4:test
> [INFO] | +- org.apache.directory.server:apacheds-core-constants:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.api:api-ldap-client-api:jar:1.0.0-M23:test
> [INFO] | | \- commons-pool:commons-pool:jar:1.6:test
> [INFO] | +- org.apache.directory.api:api-ldap-extras-aci:jar:1.0.0-M23:test
> [INFO] | +- org.apache.directory.api:api-ldap-extras-util:jar:1.0.0-M23:test
> [INFO] | +- org.apache.directory.api:api-ldap-schema-data:jar:1.0.0-M23:test
> [INFO] | \- net.sf.ehcache:ehcache-core:jar:2.4.4:test
> [INFO] +- org.apache.directory.server:apacheds-core-annotations:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.server:apacheds-core:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-admin:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-authn:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-number:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-authz:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-changelog:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-collective:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-event:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-exception:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-journal:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-normalization:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-operational:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-referral:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-schema:jar:2.0.0-M17:test
> [INFO] | | +- org.apache.directory.server:apacheds-interceptors-subtree:jar:2.0.0-M17:test
> [INFO] | | \- org.apache.directory.server:apacheds-interceptors-trigger:jar:2.0.0-M17:test
> [INFO] | | \- org.apache.directory.api:api-ldap-extras-trigger:jar:1.0.0-M23:test
> [INFO] | +- org.apache.directory.server:apacheds-core-shared:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.server:apacheds-ldif-partition:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.server:apacheds-jdbm-partition:jar:2.0.0-M17:test
> [INFO] | | \- org.apache.directory.server:apacheds-core-avl:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.server:apacheds-xdbm-partition:jar:2.0.0-M17:test
> [INFO] | \- org.apache.directory.server:apacheds-mavibot-partition:jar:2.0.0-M17:test
> [INFO] +- org.apache.directory.server:apacheds-interceptor-kerberos:jar:2.0.0-M17:test
> [INFO] +- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M17:test
> [INFO] +- org.apache.directory.server:apacheds-protocol-kerberos:jar:2.0.0-M17:test
> [INFO] | \- org.apache.directory.server:apacheds-protocol-shared:jar:2.0.0-M17:test
> [INFO] +- org.apache.directory.server:apacheds-protocol-ldap:jar:2.0.0-M17:test
> [INFO] | +- org.apache.directory.api:api-ldap-extras-sp:jar:1.0.0-M23:test
> [INFO] | \- bouncycastle:bcprov-jdk15:jar:140:test
> [INFO] +- org.apache.directory.mavibot:mavibot:jar:1.0.0-M5:test
> [INFO] +- org.jboss.logmanager:log4j-jboss-logmanager:jar:1.1.4.Final:test
> [INFO] +- org.jboss.slf4j:slf4j-jboss-logmanager:jar:1.0.3.GA:test
> [INFO] +- junit:junit:jar:4.12:test
> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
> [INFO] +- org.jmockit:jmockit:jar:1.33:test
> [INFO] +- org.hsqldb:hsqldb:jar:2.4.0:test
> [INFO] +- org.glassfish:javax.json:jar:1.0.4:test
> [INFO] +- com.nimbusds:nimbus-jose-jwt:jar:4.39.2:test
> [INFO] | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:test
> [INFO] | \- net.minidev:json-smart:jar:2.3:test (version selected from constraint [1.3.1,2.3])
> [INFO] | \- net.minidev:accessors-smart:jar:1.2:test
> [INFO] | \- org.ow2.asm:asm:jar:5.0.4:test
> [INFO] \- com.squareup.okhttp3:mockwebserver:jar:3.8.1:test
> [INFO] +- com.squareup.okhttp3:okhttp:jar:3.8.1:test
> [INFO] | \- com.squareup.okio:okio:jar:1.13.0:test
> [INFO] \- org.bouncycastle:bcprov-jdk15on:jar:1.50:test
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.935 s
> [INFO] Finished at: 2018-03-01T09:10:19-08:00
> [INFO] Final Memory: 22M/187M
> [INFO] ------------------------------------------------------------------------
> {code}
> The problematic part above is from the \[1.3.1,2.3\] range for json-smart:
> {code}
> [INFO] +- com.nimbusds:nimbus-jose-jwt:jar:4.39.2:test
> [INFO] | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:test
> [INFO] | \- net.minidev:json-smart:jar:2.3:test (version selected from constraint [1.3.1,2.3])
> {code}
> To fix this, we need to exclude json-smart from nimbus-jose-jwt and add an explicit dependency on it.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (ELY-1503) SPNEGO fails on <distributable/> deployment
by Farah Juma (JIRA)
[ https://issues.jboss.org/browse/ELY-1503?page=com.atlassian.jira.plugin.s... ]
Farah Juma updated ELY-1503:
----------------------------
Git Pull Request: https://github.com/wildfly-security/wildfly-elytron/pull/1097, https://github.com/wildfly-security/wildfly-elytron/pull/1111 (was: https://github.com/wildfly-security/wildfly-elytron/pull/1097)
> SPNEGO fails on <distributable/> deployment
> -------------------------------------------
>
> Key: ELY-1503
> URL: https://issues.jboss.org/browse/ELY-1503
> Project: WildFly Elytron
> Issue Type: Bug
> Reporter: Martin Choma
> Assignee: Darran Lofthouse
> Priority: Blocker
> Labels: downstream_dependency
> Fix For: 1.2.1.Final, 1.3.0.CR1, 1.1.9.Final
>
>
> Session-scoped (default) SPNEGO authentication does not work on </distributable> deployments.
> Works on CONNECTION and NONE scoped.
> {code}
> 07:09:42,554 ERROR [io.undertow.request] (default task-63) UT005023: Exception handling request to /3246302d-d806-4441-ab87-1cf291a618d5/protected/SimpleSecuredServlet: java.lang.IllegalArgumentException: org.infinispan.commons.marshall.NotSerializableException: sun.security.jgss.GSSContextImpl
> at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionAttributes.setAttribute(CoarseSessionAttributes.java:71)
> at org.wildfly.clustering.web.undertow.session.DistributableSession.setAttribute(DistributableSession.java:176)
> at io.undertow.servlet.spec.HttpSessionImpl.setAttribute(HttpSessionImpl.java:169)
> at org.wildfly.extension.undertow.ApplicationSecurityDomainDefinition$ApplicationSecurityDomainService$4.setAttachment(ApplicationSecurityDomainDefinition.java:676)
> at org.wildfly.security.http.impl.SpnegoAuthenticationMechanism.evaluateRequest(SpnegoAuthenticationMechanism.java:199)
> at org.wildfly.security.http.util.SetMechanismInformationMechanismFactory$1.evaluateRequest(SetMechanismInformationMechanismFactory.java:114)
> at org.wildfly.security.http.util.SetMechanismInformationMechanismFactory$1.evaluateRequest(SetMechanismInformationMechanismFactory.java:114)
> at org.wildfly.security.http.util.SecurityIdentityServerMechanismFactory$1.evaluateRequest(SecurityIdentityServerMechanismFactory.java:77)
> at org.wildfly.security.http.HttpAuthenticator$AuthenticationExchange.authenticate(HttpAuthenticator.java:115)
> at org.wildfly.security.http.HttpAuthenticator$AuthenticationExchange.access$100(HttpAuthenticator.java:94)
> at org.wildfly.security.http.HttpAuthenticator.authenticate(HttpAuthenticator.java:78)
> at org.wildfly.elytron.web.undertow.server.SecurityContextImpl.authenticate(SecurityContextImpl.java:100)
> at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:55)
> at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
> at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
> at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.infinispan.commons.marshall.NotSerializableException: sun.security.jgss.GSSContextImpl
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (ELY-1428) Elytron provider has to be installed manually for key-store-ssl-certificate
by Farah Juma (JIRA)
[ https://issues.jboss.org/browse/ELY-1428?page=com.atlassian.jira.plugin.s... ]
Farah Juma updated ELY-1428:
----------------------------
Git Pull Request: https://github.com/wildfly-security/wildfly-elytron/pull/1046, https://github.com/wildfly-security/wildfly-elytron/pull/1064 (was: https://github.com/wildfly-security/wildfly-elytron/pull/1046)
> Elytron provider has to be installed manually for key-store-ssl-certificate
> ---------------------------------------------------------------------------
>
> Key: ELY-1428
> URL: https://issues.jboss.org/browse/ELY-1428
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Authentication Client
> Reporter: Martin Choma
> Assignee: Darran Lofthouse
> Priority: Critical
> Fix For: 1.2.0.Beta11, 1.1.9.Final
>
>
> Trying to configure ejb client 2-way TLS authentication with Elytron. I am getting "Invalid algorithm "clear" without use of programatically registering Elytron provider.
> {noformat}
> Security.addProvider(new WildFlyElytronProvider());
> {noformat}
> Specifying this in {{wildfly-config.xml}} doesn't help:
> {noformat}
> <providers>
> <use-service-loader/>
> </providers>
> {noformat}
> Example of {{wildfly-config.xml}} where I need this when using it with EJB client:
> {code:xml}
> <configuration>
> <authentication-client xmlns="urn:elytron:1.0">
> <authentication-rules>
> <rule use-configuration="default"/>
> </authentication-rules>
> <authentication-configurations>
> <configuration name="default">
> <credentials>
> <key-store-reference key-store-name="client-keystore" alias="joe">
> <key-store-clear-password password="abcdef"/>
> </key-store-reference>
> </credentials>
> </configuration>
> </authentication-configurations>
> <key-stores>
> <key-store name="client-keystore" type="JKS">
> <file name="${keystore.path:src/main/resources/client.keystore}"/>
> <key-store-clear-password password="abcdef"/>
> </key-store>
> <key-store name="client-truststore" type="JKS">
> <file name="${truststore.path:src/main/resources/client.truststore}"/>
> </key-store>
> </key-stores>
> <ssl-contexts>
> <ssl-context name="client-ssl-context">
> <trust-store key-store-name="client-truststore"/>
> <key-store-ssl-certificate key-store-name="client-keystore" alias="joe">
> <key-store-clear-password password="abcdef"/>
> </key-store-ssl-certificate>
> </ssl-context>
> </ssl-contexts>
> <ssl-context-rules>
> <rule use-ssl-context="client-ssl-context"/>
> </ssl-context-rules>
> </authentication-client>
> </configuration>
> {code}
> Without installing the Elytron provider, the client will fail with this error:
> {noformat}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.wildfly.security.auth.client.AuthenticationContext.lambda$static$0(AuthenticationContext.java:49)
> at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
> at org.wildfly.security.auth.client.AuthenticationContext.captureCurrent(AuthenticationContext.java:81)
> at org.wildfly.naming.client.ProviderEnvironment$1.get(ProviderEnvironment.java:89)
> at org.wildfly.naming.client.ProviderEnvironment$1.get(ProviderEnvironment.java:87)
> at org.jboss.ejb.client.EJBClientInvocationContext.<init>(EJBClientInvocationContext.java:87)
> at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:154)
> at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:100)
> at com.sun.proxy.$Proxy2.hello(Unknown Source)
> at client.Client.main(Client.java:21)
> Caused by: org.wildfly.security.auth.client.InvalidAuthenticationConfigurationException: org.wildfly.client.config.ConfigXMLParseException: ELY01135: Failed to load keystore data
> at file:/home/jmartisk/Workspace/mock-artifacts/ejbclient/eap7.1-elytron-certificate-auth-with-two-way-ssl/client/target/classes/META-INF/wildfly-config.xml:9:87
> at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:40)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.<clinit>(DefaultAuthenticationContextProvider.java:36)
> ... 10 more
> Caused by: org.wildfly.client.config.ConfigXMLParseException: ELY01135: Failed to load keystore data
> at file:/home/jmartisk/Workspace/mock-artifacts/ejbclient/eap7.1-elytron-certificate-auth-with-two-way-ssl/client/target/classes/META-INF/wildfly-config.xml:9:87
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseKeyStoreRefType$44(ElytronXmlParser.java:1410)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseCredentialsType$28(ElytronXmlParser.java:952)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$andThenOp$26(ElytronXmlParser.java:939)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseCredentialsType$36(ElytronXmlParser.java:997)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationConfigurationType$21(ElytronXmlParser.java:733)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$andThenOp$26(ElytronXmlParser.java:939)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationConfigurationType$25(ElytronXmlParser.java:781)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationRuleType$10(ElytronXmlParser.java:613)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseRulesType$11(ElytronXmlParser.java:639)
> at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientType(ElytronXmlParser.java:337)
> at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:214)
> at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:175)
> at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:38)
> ... 12 more
> Caused by: java.security.NoSuchAlgorithmException: ELY08028: Invalid algorithm "clear"
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
> at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:75)
> at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseKeyStoreRefType$44(ElytronXmlParser.java:1376)
> ... 24 more
> {noformat}
> Using credential-store-reference clear-text cause similar error.
> There is example of clear passwords which works, so it will be problem of this specific elements:
> {code:xml}
> <authentication-client xmlns="urn:elytron:1.0">
> <authentication-rules>
> <rule use-configuration="default"/>
> </authentication-rules>
> <authentication-configurations>
> <configuration name="default">
> <sasl-mechanism-selector selector="DIGEST-MD5"/>
> <set-user-name name="joe"/>
> <credentials>
> <clear-password password="joeIsAwesome2013!"/>
> </credentials>
> </configuration>
> </authentication-configurations>
> </authentication-client>
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months