Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5966

Axis2 1.8.0-SNAPSHOT fix did not work for JDK 11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.9
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      jdk version: 11

      tomcat: 9.0.20

      axis2 version: 1.7.9

      [org.apache.axis2.deployment.ServiceDeployer] ERROR 2019-09-11 11:21:40,531 - The *******.aar service, which is not valid, caused The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected end of file

      org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected end of file

      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:441)

      at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)

      at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)

      at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)

      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)

      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)

      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)

      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)

      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)

      at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)

      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289)

      at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)

      at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:622)

      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)

      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1122)

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1077)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:971)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4868)

      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)

      at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1867)

      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

      at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

      at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)

      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)

      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)

      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)

      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)

      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

      at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

      at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)

      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)

      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)

      at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

      at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)

      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)

      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:633)

      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.base/java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)

      Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected end of file

      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:404)

      ... 57 more

      Caused by: java.io.EOFException: Error looking for paramter names in bytecode: unexpected end of file

      at org.apache.axis2.description.java2wsdl.bytecode.ClassReader.skipFully(ClassReader.java:196)

      at org.apache.axis2.description.java2wsdl.bytecode.ClassReader.readCpool(ClassReader.java:357)

      at org.apache.axis2.description.java2wsdl.bytecode.ParamReader.<init>(ParamReader.java:78)

      at org.apache.axis2.description.java2wsdl.bytecode.ParamReader.<init>(ParamReader.java:57)

      at org.apache.axis2.description.java2wsdl.bytecode.ChainedParamReader.<init>(ChainedParamReader.java:52)

      at org.apache.axis2.description.java2wsdl.bytecode.MethodTable.<init>(MethodTable.java:31)

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:177)

      at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:439)

      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)

      ... 57 more

      [org.apache.axis2.deployment.DeploymentEngine] INFO 2019-09-11 11:21:40,535 - org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected end of file

      =================================

      As this issue was fixed in https://issues.apache.org/jira/browse/AXIS2-5935, I downloaded the Axis2 1.8.0-SNAPSHOT source from give path and created build using Java 8. Replaced only axis2-kernel-1.7.9.jar in WEB-INF/lib. Service is not being deployed in servlet container. No errors in logs. 

        Attachments

          Activity

            People

            • Assignee:
              robertlazarski Robert Lazarski
              Reporter:
              sumamalsekar90@gmail.com Suma Malsekar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: