[jboss-jira] [JBoss JIRA] (WFLY-11720) Cannot invoke EJB over HTTP on JDK 11

Jan Kašík (Jira) issues at jboss.org
Mon Feb 18 03:05:00 EST 2019


    [ https://issues.jboss.org/browse/WFLY-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696372#comment-13696372 ] 

Jan Kašík edited comment on WFLY-11720 at 2/18/19 3:04 AM:
-----------------------------------------------------------

[~cfang] The preparation of app is automated in test and it is done this way:
# Test expects to have {{*all-GAVs.txt}} file available.
# The version of {{org.wildfly.wildfly-http-client:wildfly-http-ejb-client}} artifact is resolved from this file ({{1.0.13.Final}} at this moment)
# Necessary artifact with transitive dependencies are resolved using ShrinkWrap Maven resolver, filtering out any XNIO arifacts
# Version of {{org.jboss.xnio:xnio-nio}} is resolved from that same file ({{3.6.5.Final}}). 
# Resolving for XNIO is done
# Only newer version of {{jboss-threads}} is kept
# Application is put together using resources which I attached and following configuration file (with replaced variables).
# Application is called: {{java -cp /mnt/hudson_workspace/mod_cluster/client/* -Dremote.server.address=10.0.132.214:8080 -Dremote.endpoint.path=/wildfly-services -Dstateful=false noe.common.javatests.EjbviaHttpTest.Client}}

{code:xml}
<configuration>
  <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 -JBOSS-LOCAL-USER"/>
        <set-user-name name="$user"/>
        <credentials>
          <clear-password password="$password"/>
        </credentials>
        <providers>
          <use-service-loader/>
        </providers>
      </configuration>
    </authentication-configurations>
  </authentication-client>
  <http-client xmlns="urn:wildfly-http-client:1.0">
    <defaults>
      <eagerly-acquire-session value="false"/>
      <enable-http2 value="true"/>
    </defaults>
  </http-client>
</configuration>
{code}
Do you also want compiled app including dependencies? Whole tests implementing this is placed here in [our internal testsuite|https://gitlab.mw.lab.eng.bos.redhat.com/jbossqe-eap/noe-tests/blob/master/modcluster/src/test/groovy/noe/modcluster/tests/EjbViaHttpTest.groovy].


was (Author: jkasik):
[~cfang] The preparation of app is automated in test and it is done this way:
# Test expects to have {{*all-GAVs.txt}} file available.
# The version of {{org.wildfly.wildfly-http-client:wildfly-http-ejb-client}} artifact is resolved from this file ({{1.0.13.Final}} at this moment)
# Necessary artifact with transitive dependencies are resolved using ShrinkWrap Maven resolver, filtering out any XNIO arifacts
# Version of {{org.jboss.xnio:xnio-nio}} is resolved from that same file ({{3.6.5.Final}}). 
# Resolving for XNIO is done
# Only newer version of {{jboss-threads}} is kept
# Application is put together using resources which I attached and following configuration file (with replaced variables).
# Application is called: {{java -cp /mnt/hudson_workspace/mod_cluster/client/* -Dremote.server.address=10.0.132.214:8080 -Dremote.endpoint.path=/wildfly-services -Dstateful=false noe.common.javatests.EjbviaHttpTest.Client}}

{code:xml}
<configuration>
  <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 -JBOSS-LOCAL-USER"/>
        <set-user-name name="$user"/>
        <credentials>
          <clear-password password="$password"/>
        </credentials>
        <providers>
          <use-service-loader/>
        </providers>
      </configuration>
    </authentication-configurations>
  </authentication-client>
  <http-client xmlns="urn:wildfly-http-client:1.0">
    <defaults>
      <eagerly-acquire-session value="false"/>
      <enable-http2 value="true"/>
    </defaults>
  </http-client>
</configuration>
{code}
Do you also want compiled app including dependencies?

> Cannot invoke EJB over HTTP on JDK 11
> -------------------------------------
>
>                 Key: WFLY-11720
>                 URL: https://issues.jboss.org/browse/WFLY-11720
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB, Remoting
>    Affects Versions: 16.0.0.Beta1
>         Environment: JDK 11
>            Reporter: Jan Kašík
>            Assignee: Cheng Fang
>            Priority: Critical
>         Attachments: classes.zip
>
>
> Run of client app calling EJB over HTTP fails on JDK 11 with following log:
> {noformat}
> Feb 14, 2019 12:49:30 PM org.wildfly.naming.client.Version <clinit>
> INFO: WildFly Naming version 1.0.6.Final
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.wildfly.security.manager.GetAccessibleDeclaredFieldAction (file:/home/hudson/hudson_workspace/mod_cluster/client/wildfly-elytron-1.1.3.Final.jar) to field java.security.AccessControlContext.context
> WARNING: Please consider reporting this to the maintainers of org.wildfly.security.manager.GetAccessibleDeclaredFieldAction
> 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
> Feb 14, 2019 12:49:30 PM org.wildfly.security.Version <clinit>
> INFO: ELY00001: WildFly Elytron version 1.1.3.Final
> Feb 14, 2019 12:49:30 PM org.jboss.ejb.client.EJBClient <clinit>
> INFO: JBoss EJB Client version 4.0.2.Final
> Feb 14, 2019 12:49:30 PM org.xnio.Xnio <clinit>
> INFO: XNIO version 3.6.5.Final
> Feb 14, 2019 12:49:30 PM org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.6.5.Final
> Feb 14, 2019 12:49:30 PM org.jboss.threads.Version <clinit>
> INFO: JBoss Threads version 2.3.0.Beta2
> Feb 14, 2019 12:49:30 PM org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 5.0.0.Final
> Feb 14, 2019 12:49:30 PM org.jboss.threads.LoggingUncaughtExceptionHandler uncaughtException
> ERROR: Thread Thread[XNIO-1 task-1,5,main] threw an uncaught exception
> java.lang.ExceptionInInitializerError
>  at org.jboss.marshalling.river.RiverMarshaller.<clinit>(RiverMarshaller.java:1335)
>  at org.jboss.marshalling.river.RiverMarshallerFactory.createMarshaller(RiverMarshallerFactory.java:54)
>  at org.wildfly.httpclient.common.HttpTargetContext.createMarshaller(HttpTargetContext.java:132)
>  at org.wildfly.httpclient.ejb.HttpEJBReceiver.marshalEJBRequest(HttpEJBReceiver.java:367)
>  at org.wildfly.httpclient.ejb.HttpEJBReceiver.lambda$processInvocation$1(HttpEJBReceiver.java:185)
>  at org.wildfly.httpclient.common.HttpTargetContext$1.lambda$completed$0(HttpTargetContext.java:338)
>  at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1871)
>  at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1400)
>  at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: java.lang.IllegalStateException: No standard field found for reverse order comparator!
>  at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:287)
>  ... 9 more
> {noformat}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list