PM88616: -INLINESCHEMAS OPTION OF WSGEN COULD CAUSE UNSUPPORTEDOPERATIONEXCEPTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When running wsgen command with -inlineSchemas option,
    UnsupportedOperationException could be thrown.
    
    Here is sample command syntaxt and thrown exception.
    
    wsgen.bat" -cp . testService -wsdl -inlineSchemas
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0
    at sun.reflect.NativeMethodAccessorImpl.invoke
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    at java.lang.reflect.Method.invoke
    at com.ibm.ws.bootstrap.WSLauncher.main
    Caused by: java.lang.UnsupportedOperationException
    at com.ibm.jtc.jax.xml.txw2.output.TXWSerializer.startDocument
    at com.ibm.jtc.jax.xml.bind.v2.schemagen.XmlSchemaGenerator
    $CommentFilter.startDocument(XmlSchemaGenerator.java:506z
    at com.ibm.jtc.jax.xml.txw2.Document$1.onStartTag
    at com.ibm.jtc.jax.xml.txw2.StartTag.accept
    at com.ibm.jtc.jax.xml.txw2.Document.run
    at com.ibm.jtc.jax.xml.txw2.Content.setNext
    at com.ibm.jtc.jax.xml.txw2.ContainerElement.addChild
    at com.ibm.jtc.jax.xml.txw2.ContainerElement._element
    at com.ibm.jtc.jax.xml.txw2.ContainerElement.addElement
    at com.ibm.jtc.jax.xml.txw2.ContainerElement.invoke
    at $Proxy21.element
    at com.ibm.jtc.jax.xml.bind.v2.schemagen.XmlSchemaGenerator
    $Namespace$ElementWithType.writeTo
    at com.ibm.jtc.jax.xml.bind.v2.schemagen.XmlSchemaGenerator
    $Namespace.writeTo
    at com.ibm.jtc.jax.xml.bind.v2.schemagen.XmlSchemaGenerator
    $Namespace.access$700
    at com.ibm.jtc.jax.xml.bind.v2.schemagen.XmlSchemaGenerator
    .write
    at com.ibm.jtc.jax.xml.bind.v2.runtime.JAXBContextImpl
    .generateSchema
    at com.ibm.jtc.jax.xml.ws.wsdl.writer.WSDLGenerator
    .generateTypes
    at com.ibm.jtc.jax.xml.ws.wsdl.writer.WSDLGenerator
    .generateDocument
    at com.ibm.jtc.jax.xml.ws.wsdl.writer.WSDLGenerator
    .doGeneration
    at com.ibm.jtc.jax.tools.ws.wscompile.WsgenTool.buildModel
    at com.ibm.jtc.jax.tools.ws.wscompile.WsgenTool.run
    at sun.reflect.NativeMethodAccessorImpl.invoke0
    at sun.reflect.NativeMethodAccessorImpl.invoke
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    at java.lang.reflect.Method.invoke
    at com.ibm.jtc.jax.tools.ws.Invoker.invoke
    at com.ibm.jtc.jax.tools.ws.WsGen.main
    at com.ibm.ws.jaxws.tools.WsGen.main
    ... 5 more
    

Local fix

  • not using inlineSchemas option. and manually edit wsdl with
    inline schema style.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using JAX-WS web services.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Wsgen fails with UnsupportedException   *
    *                      while generating artifacts if the       *
    *                      '-inlineSchemas' option is used.        *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack containing this APAR.    *
    ****************************************************************
    IBM has implemented a feature in JAX-WS 2.2.1 RI which
    includes JAXB version information as 'comments'. Wsgen fails
    with UnsupportedException as JAXB uses TXWSerializer for
    'inlineSchemas' which does not support comments.
    

Problem conclusion

  • The problem is resolved by imposing a check on result type and
    exemptimg it from including the version info if the
    corresponding serializer does not support comments.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.8, and 8.5.5.1.  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

    PM88616

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-07

  • Closed date

    2013-07-12

  • Last modified date

    2013-07-12

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Application Server
General

Software version:

850

Reference #:

PM88616

Modified date:

2013-07-12

Translate my page

Machine Translation

Content navigation