IBM Support

PK52186: ILLEGALANNOTATIONSEXCEPTION IN FEATURE PACK FOR WEB SERVICES IMPLEMENTATION CLASSES WHEN CALLING JAX-WS SERVICE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • IllegalAnnotationsException
    occurs within Axis2 classes (part of the Feature Pack for Web
     Services implementation) on the provider side. This leads to a
     SOAP fault sent back to the consumer.
    It fails when a package contains a runtime exception
    class.
    When the exception class is moved to a subpackage and called
    from a web service client it works. The exception looks like:
     [8/16/07 18:00:39:493 CEST] 00000027 SystemErr     R
     javax.xml.ws.WebServiceException:
     com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
    counts of
     IllegalAnnotationExceptions
     java.lang.StackTraceElement does not have a no-arg default
    constructor.
      this problem is related to the following location:
       at java.lang.StackTraceElement
       at public java.lang.StackTraceElement[]
     java.lang.Throwable.getStackTrace()
       at java.lang.Throwable
       at java.lang.Exception
       at java.lang.RuntimeException
       at demo1.impl.Demo1TechnicalRuntimeException
    
      at
     org.apache.axis2.jaxws.ExceptionFactory.createWebServiceExcepti
    on
     (ExceptionFactory.java:180)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: IBM WebSphere Application Server version     *
    *                 6.1 users of the Feature Pack for Web        *
    *                 Services                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: IllegalAnnotationsException in Feature  *
    *                      Pack for Web Services Implementation    *
    *                      Classes when Calling a JAX-WS Service   *
    *                      on the Sun JDK                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    IllegalAnnotationsException occurs within Axis2 classes (part
    of the Feature Pack for Web Services implementation) on the
    provide side.  This leads to a SOAP fault sent back to the
    consumer. It fails when a package contains a runtime exception
    class. It works when the exception class is moved to a
    subpackage and called from a web service client.
    
    The exception looks like:
    javax.sun.xml.bind.v2.runtime.IllegalAnnotationsException:
    1 counts of IllegalAnnotationsExceptions
    java.lang.StackTraceElement does not have a no-arg default
    constructor.
    this problem is related to the following location:
    at java.lang.StackTraceElement
    at public java.lang.StackTraceElement[]
    java.lang.Throwable.getStackTrace()
    at java.lang.Throwable
    at java.lang.Exception
    at java.lang.RuntimeException
    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceExc
    eption (ExceptionFactory.java:180)
    

Problem conclusion

  • The customer has added classes that extend java.lang.Exception
    to the same package that their web service code was generated
    into.  This is okay if the Exception is annotated with
    @WebFault, as the JAXBContext will ignore the class.  But if
    not annotated, it will be treated as a bean and JAXB will walk
    the class to collect whatever info it needs.
    
    On Windows/Linux/AIX/etc. that run on the IBM Software
    Developers' Kit, this is not an issue, but there is a problem
    on the Sun JDK.
    
    To counter this, we will exclude these classes from the
    configuration in JAXB since it will not be needed for
    marshalling.
    
    The fix for this APAR is currently targeted for inclusion in
    cumulative fix 6.1.0.13 for the Feature Pack for Web Services.
    Please refer to the recommended updates page for delivery
    information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK52186

  • Reported component name

    WEBSPH APP SERV

  • Reported component ID

    5724J0800

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-09-03

  • Closed date

    2007-09-14

  • Last modified date

    2007-09-14

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

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

Modules/Macros

  • WEBSRVC
    

Fix information

  • Fixed component name

    WEBSERVIC FEATU

  • Fixed component ID

    5724J0850

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2022