You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Frank-Michael Jaeschke (JIRA)" <ji...@apache.org> on 2018/10/30 12:11:00 UTC

[jira] [Comment Edited] (AXIS2-5935) axis2 service did not work under jdk 11 class format

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

Frank-Michael Jaeschke edited comment on AXIS2-5935 at 10/30/18 12:10 PM:
--------------------------------------------------------------------------

Bug is in org.apache.axis2.description.java2wsdl.bytecode.ClassReader class.

As 3 with Java 7 introduced class pool constants
|{{CONSTANT_MethodHandle}}|15|
|{{CONSTANT_MethodType}}|16|
|{{CONSTANT_InvokeDynamic}}|18|

where not added. [https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4]

The ClassReader class is identical to same code in old Axis1. Means every release since Axis1 1.4 is affected if Axis tries to introspect a server binding implementation that is compiled with Java 7/8/9/10/11.

 


was (Author: fmjaeschke):
Bug is in org.apache.axis2.description.java2wsdl.bytecode.ClassReader class.

As 3 with Java 7 introduced class pool constants
|{{CONSTANT_MethodHandle}}|15|
|{{CONSTANT_MethodType}}|16|
|{{CONSTANT_InvokeDynamic}}|18|

where not added. [https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4]

The ClassReader class is identical to same code in old Axis1. Means every release since Axis1 1.4 is affected if Axis tries to introspect a server implementation that is compiled with Java 7/8/9/10/11.

 

> axis2 service did not work under jdk 11 class format
> ----------------------------------------------------
>
>                 Key: AXIS2-5935
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5935
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.7.8
>            Reporter: Kris Chung
>            Priority: Blocker
>
> jdk version: 11
> tomcat: 9.0.12
> os: centos 6
> axis2 version: 1.7.8
> 20:06:16.797 ERROR ServiceDeployer - The axis2 service, which is not valid, caused The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected bytes in file
> org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected bytes in file
>  at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:117) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136) ~[axis2-kernel-1.7.8.jar:1.7.8]
>  at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289) ~[axis2-kernel-1.7.8.jar:1.7.8]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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