IBM Support

IV38399: WSGEN FAILS WITH MODELEREXCEPTION IF SERVICE ENDPOINT INTERFACE METHODS ARE IMPLEMENTED IN THE SUPER CLASS OF SERVICE IMPLEMENTA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message:
    com.sun.tools.internal.ws.processor.modeler.ModelerException:
    modeler error: Methods in an endpointInterface must be
    implemented in the implementation class.
    .
    Stack Trace:
    com.sun.tools.internal.ws.processor.modeler.ModelerException:
    modeler error: Methods in an endpointInterface must be
    implemented in the implementation class.Interface<Service
    Endpoint Interface>
    tfc Implementation Class:<Implementation class> Method:
    someMethod()
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eAP.onError(WebServiceAP.java:237)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eVisitor.classImplementsSEI(WebServiceVisitor.java:549)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eVisitor.isLegalImplementation(WebServiceVisitor.java:522)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eVisitor.shouldProcessWebService(WebServiceVisitor.java:321)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eVisitor.visitClassDeclaration(WebServiceVisitor.java:124)
            at
    com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept
    (ClassDeclarationImpl.java:107)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eAP.buildModel(WebServiceAP.java:327)
            at
    com.sun.tools.internal.ws.processor.modeler.annotation.WebServic
    eAP.process(WebServiceAP.java:268)
            at
    com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProce
    ssor.process(AnnotationProcessors.java:72)
            at com.sun.tools.apt.comp.Apt.main(Apt.java:466)
            at
    com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:27
    0)
            at com.sun.tools.apt.main.Main.compile(Main.java:1114)
            at com.sun.tools.apt.main.Main.compile(Main.java:976)
            at com.sun.tools.apt.Main.processing(Main.java:107)
            at com.sun.tools.apt.Main.process(Main.java:97)
            at com.sun.tools.apt.Main.process(Main.java:79)
            at
    com.sun.tools.internal.ws.wscompile.WsgenTool.buildModel(WsgenTo
    ol.java:216)
            at
    com.sun.tools.internal.ws.wscompile.WsgenTool.run(WsgenTool.java
    :124)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
    .
    The problem encountered only while using annotation for
    implementing Service Endpoint Interface. If the Service
    implementation bean class explicitly use the keyword
    "implements" to implement the Service Endpoint Interface, the
    problem not seems to occur.
    

Local fix

  • The issue can be worked around using the following options :
    1. By adding "implements  <ServiceEndpointInterface>"  to
    Service implementation bean class.
    2. By  implementing all the methods of ServiceEndpointInterface
    in the service implementation bean class (instead of inheriting
    from the super class).
    

Problem summary

  • .The current implementation of 'wsgen' check only for webmethods
    defined in implementation bean class and results in a failure if
    the  webmethod is defined in the super class and  inherited from
    it.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR14
    6.0.1 SR6
    
    .
    JVM has been update to  perform a check against inherited
    methods as well while generating  WSDL
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV38399

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-20

  • Closed date

    2013-05-14

  • Last modified date

    2013-06-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
20 June 2013