cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7371) Error creating a webservice with lambdas in the implementing class
Date Sun, 30 Jul 2017 23:44:01 GMT

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

ASF GitHub Bot commented on CXF-7371:
-------------------------------------

GitHub user bbodnar opened a pull request:

    https://github.com/apache/cxf/pull/299

    CXF-7371: use objectweb-asm to extract parameter-names from the debug-info of the service-class

    Suggested fix for https://issues.apache.org/jira/browse/CXF-7371.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bbodnar/cxf 3.1.x-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/299.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #299
    
----
commit c04a5f81ab982269ece9acb0819012c8fe3701db
Author: bbodnar <barnabas.bodnar@ser.de>
Date:   2017-07-30T23:18:24Z

    CXF-7371: use objectweb-asm to extract parameter-names from the debug-info of the service-class

----


> Error creating a webservice with lambdas in the implementing class
> ------------------------------------------------------------------
>
>                 Key: CXF-7371
>                 URL: https://issues.apache.org/jira/browse/CXF-7371
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.11
>            Reporter: Barnabas Bodnar
>         Attachments: CXF-7371.zip
>
>
> Attempting to create a webservice, where the implementing class uses lambdas in the method-bodies,
fails with the following error:
> {quote}
> java.lang.IllegalStateException
>         at org.apache.cxf.wsdl.service.factory.ClassReader.readCpool(ClassReader.java:358)
>         at org.apache.cxf.wsdl.service.factory.ParamReader.<init>(ParamReader.java:79)
>         at org.apache.cxf.wsdl.service.factory.ParamReader.<init>(ParamReader.java:58)
>         at org.apache.cxf.wsdl.service.factory.ParamReader.getParameterNamesFromDebugInfo(ParamReader.java:131)
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.createName(DefaultServiceConfiguration.java:128)
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.getDefaultLocalName(DefaultServiceConfiguration.java:119)
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.getInParameterName(DefaultServiceConfiguration.java:94)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.getInParameterName(ReflectionServiceFactoryBean.java:2228)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createMessageParts(ReflectionServiceFactoryBean.java:1507)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createOperation(ReflectionServiceFactoryBean.java:988)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createInterface(ReflectionServiceFactoryBean.java:965)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:460)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:529)
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:262)
> {quote}
> The class-constant not understood here is *18 (InvokeDynamic)*.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message