axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Belinsky (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Issue Comment Deleted] (AXIS-2929) Axis 1.4 with Java 11
Date Mon, 29 Jul 2019 14:53:00 GMT

     [ https://issues.apache.org/jira/browse/AXIS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Roman Belinsky updated AXIS-2929:
---------------------------------
    Comment: was deleted

(was: all missed java tokens. validated.

Index: ClassReader.java
===================================================================
--- ClassReader.java (revision 1863933)
+++ ClassReader.java (working copy)
@@ -59,6 +59,18 @@
 private static final int CONSTANT_Double = 6;
 private static final int CONSTANT_NameAndType = 12;
 private static final int CONSTANT_Utf8 = 1;
+ 
+ /*java 8 9 10 11 new tokens https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-4.html*/
+ private static final int CONSTANT_MethodHandle = 15;
+ private static final int CONSTANT_MethodType = 16;
+ private static final int CONSTANT_Dynamic = 17;
+ private static final int CONSTANT_InvokeDynamic = 18;
+ private static final int CONSTANT_Module = 19;
+ private static final int CONSTANT_Package = 20;
+ /*end of ava 8 9 10 11 new tokens*/ 
+ 
+ 
+ 
 /**
 * the constant pool. constant pool indices in the class file
 * directly index into this array. The value stored in this array
@@ -347,11 +359,29 @@
 int len = readShort();
 skipFully(len);
 break;
+ case CONSTANT_MethodHandle:
 
+ read(); // reference kind
+ readShort(); // reference index
+ break;
+
+ case CONSTANT_MethodType:
+
+ readShort(); // descriptor index
+ break;
+ case CONSTANT_Dynamic:
+ readShort(); // bootstrap method attr index
+ readShort(); // name and type index
+ break;
+ case CONSTANT_InvokeDynamic:
+
+ readShort(); // bootstrap method attr index
+ readShort(); // name and type index
+ break;
+
 default:
 // corrupt class file
- throw new IllegalStateException(
- Messages.getMessage("unexpectedBytes00"));
+ throw new IllegalStateException("Error looking for paramter names in bytecode: unexpected
bytes in file, tag:"+c);
 }
 }
 })

> 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.14#76016)

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