axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liying Lin (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Commented] (AXIS-2929) Axis 1.4 with Java 11
Date Tue, 12 Feb 2019 18:50:00 GMT

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

Liying Lin commented on AXIS-2929:
----------------------------------

I have tried to re-compile Axis 1.4 with changes in ClassReader.java recommended by [https://gist.github.com/takawitter/808425ea230f95ce7a8e]
. After some fixes during compiling,  my application still has the same error   "Error looking
for paramter names in bytecode: unexpected bytes in file" with the new axis.jar as before
in Java 11.

The changed ClassReader.java adds codes to take care of new constant pools tags introduced
in Java 7, assuming the change is correct which I have no clue:
|{{CONSTANT_MethodHandle}}|15|51.0|7|
|{{CONSTANT_MethodType}}|16|51.0|7|
|{{CONSTANT_InvokeDynamic}}|18|51.0|7|

 

However, in Java 9 and 11 there are three more constant pool tags ([https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-4.html#jvms-4.4):]
|{{CONSTANT_Dynamic}}|17|55.0|11|
|{{CONSTANT_Module}}|19|53.0|9|
|{{CONSTANT_Package}}|20|53.0|9|

Not sure if this causes the issue. I would like to hear any comment suggestion. Thanks.

 

 
 

> Axis 1.4 with Java 11
> ---------------------
>
>                 Key: AXIS-2929
>                 URL: https://issues.apache.org/jira/browse/AXIS-2929
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>            Reporter: Liying Lin
>            Priority: Major
>
> Hope here is the right place to help me to find some suggestion.
> Our legacy project using Axis 1.4. When I tried to compile with Java 11, first I have
to add Corba jar file to get project re-compiled. When it actually ran in Tomcat 9.0, it failed
with exception.The error got down axis jar I have no clue. I would like to hear any thought
or comment. Thanks a lot.
> Here is the error log:
> Jan 22, 2019 1:16:15 PM ; INFO ; org.apache.axis.EXCEPTIONS ; Exception:
> java.lang.IllegalStateException: Error looking for paramter names in bytecode: unexpected
bytes in file
>     at org.apache.axis.utils.bytecode.ClassReader.readCpool(ClassReader.java:354)
>     at org.apache.axis.utils.bytecode.ParamReader.<init>(ParamReader.java:75)
>     at org.apache.axis.utils.bytecode.ParamReader.<init>(ParamReader.java:55)
>     at org.apache.axis.utils.bytecode.ParamNameExtractor.getParameterNamesFromDebugInfo(ParamNameExtractor.java:58)
>     at org.apache.axis.description.JavaServiceDesc.getParamNames(JavaServiceDesc.java:1429)
>     at org.apache.axis.description.JavaServiceDesc.createOperationForMethod(JavaServiceDesc.java:1254)
>     at org.apache.axis.description.JavaServiceDesc.createOperationsForName(JavaServiceDesc.java:1150)
>     at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(JavaServiceDesc.java:1112)
>     at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive(JavaServiceDesc.java:962)
>     at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:896)
>     at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
>     at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
>     at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
>     at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
>     at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
>     at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:427)
>     at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:231)
>     at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
>     at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:295)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
>     at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>     at com.cgi.edm.apas.WsdlWriterFilter.doFilter(WsdlWriterFilter.java:116)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>     at com.cgi.edm.apas.AccessCheckFilter.doFilter(AccessCheckFilter.java:109)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
>     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
>     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
>     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
>     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
>     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
>     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
>     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
>     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
>     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>     at java.base/java.lang.Thread.run(Thread.java:834)
> J
>  



--
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


Mime
View raw message