IBM Support

PI19114: ClassGenException - Branch target offset exception - is thrown during code generation process in the JAXB Marshalling process.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A branch target offset exception (ClassGenException) may occur
    during the JAXB marshalling code generation process.
    
    Sample stack trace:
    
    com.ibm.xtq.bcel.generic.ClassGenException: Branch target
    offset too large for short
        at
    com.ibm.xtq.bcel.generic.BranchInstruction.dump(BranchInstructio
    n.java:99)
        at
    com.ibm.xtq.bcel.generic.InstructionList.getByteCode(Instruction
    List.java:980)
        at
    com.ibm.xtq.bcel.generic.MethodGen.getMethod(MethodGen.java:616)
        at com.ibm.fcg.bcel.FcgClassGenBCEL.addMethod(Unknown
    Source)
        at com.ibm.fcg.impl.FinalCodeGenerator.endMethod(Unknown
    Source)
        at
    com.ibm.xml.xlxp2.jaxb.marshal.codegen.fcg.FCGSerializationStubG
    enerator.generateWriteMethod(FCGSerializationStubGenerator.java:
    1462)
        at
    com.ibm.xml.xlxp2.jaxb.marshal.codegen.fcg.FCGSerializationStubG
    enerator.generate(FCGSerializationStubGenerator.java:149)
        at
    com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.gene
    rateByteCode(AbstractGeneratedStubFactory.java:100)
    

Local fix

  • Set the JVM custom property com.ibm.xml.xlxp.jaxb.opti.level=1
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server v8.0 and v8.5                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: During the generation of a class        *
    *                      using JAXB marshaller, a                *
    *                      ClassGenException: Branch target        *
    *                      offset may occur.                       *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    A branch target offset exception (ClassGenException) may occur
    during the JAXB marshalling code generation process.
    Sample stack trace:
    com.ibm.xtq.bcel.generic.ClassGenException: Branch target
    offset too large for short
    at
    com.ibm.xtq.bcel.generic.BranchInstruction.dump(BranchInstructio
    n.java:99)
    at
    com.ibm.xtq.bcel.generic.InstructionList.getByteCode(Instruction
    List.java:980)
    at
    com.ibm.xtq.bcel.generic.MethodGen.getMethod(MethodGen.java:616)
    at com.ibm.fcg.bcel.FcgClassGenBCEL.addMethod(Unknown
    Source)
    at com.ibm.fcg.impl.FinalCodeGenerator.endMethod(Unknown
    Source)
    at
    com.ibm.xml.xlxp2.jaxb.marshal.codegen.fcg.FCGSerializationStubG
    enerator.generateWriteMethod(FCGSerializationStubGenerator.java:
    1462)
    at
    com.ibm.xml.xlxp2.jaxb.marshal.codegen.fcg.FCGSerializationStubG
    enerator.generate(FCGSerializationStubGenerator.java:149)
    at
    com.ibm.xml.xlxp2.jaxb.codegen.AbstractGeneratedStubFactory.gene
    rateByteCode(AbstractGeneratedStubFactory.java:100)
    

Problem conclusion

  • There are multiple dimensions of method splitting that's
    incorporated within the JAXB code generator, and this problem
    occurs due to improper splitting in one of these dimensions.
    
    If a web service contains a wild card field, there is a
    possibility that it is not getting split into smaller methods
    during this code generation process.
    
    The issue was fixed by ensuring that method splitting is
    handled properly and efficiently in all dimensions of the
    JAXB code generator.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.10 and 8.5.5.4.  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

    PI19114

  • 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

    2014-06-02

  • Closed date

    2014-09-08

  • Last modified date

    2014-09-08

  • 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

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

Document Information

Modified date:
28 April 2022