IBM Support

IZ04225: NETBEANS5.5 GIVES BUILD FAILED ERROR WHILE COMPILING ANY PROJECT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: BUILD FAILED (total time: 0 seconds)
    .
    Stack Trace: N/A
    .
    1. Start Netbeans5.5 by clicking on <Netbeans Installation
    location>\netbeans-<version>\bin\netbeans.exe
     2. Wait for Netbeans to come up, In File Menu choose File->New
    Project. In New Project dialog select General in the
    Categories tree view. Select Java Application in the project
    list. Click Next. Enter project name as netbeansproject and set
    Project Location to a location where the project resources
    should ne stored and click finish.
    
     3. Now press F9 to compile the project.
     4. In the Output tab the "BUILD FAILED (total time: 0 seconds)"
    error will appear.
    

Local fix

  • Include the following in your
    ${IBM_JDK_FOLDER}/jre/lib/jaxp.properties:
    javax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.tr
    ax.TransformerFactoryImpl
    

Problem summary

  • If the input to your transformation is a DOM that you have
    created programatically, such as in the example below, then the
    XSLT interpreter processor has problems with implicit namespaces
    and may output incorrect namespace declarations or omit
    namespace declarations in the result document.
    Java fragment:
       // Example of an explicit namespace - an attribute node will
    be created in the DOM for xmlns='http://my.org/project'
       String data = "<project xmlns='http://my.org/project'/>";
       Document doc =
    DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(
    new InputSource(new StringReader(data)));
       // Example of an implicit namespace - no attribute node is
    created for the implicit namespace
    xmlns='http://your.org/project
       Element typeElem =
    doc.createElementNS("http://your.org/project", "type");
       doc.getDocumentElement().appendChild(typeElem);
    To work around this you can use the XSLT compiler processor
    (XSLTC).  The compiler processor can be specified by using the
    -XSLTC option with the Process command or by setting the
    javax.xml.transform.TransformerFactory
    service provider to
    org.apache.xalan.xsltc.trax.TransformerFactoryImpl.
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR6
    .
    The problem and workaround have been documented in the Java SDK
    Readmes.  The problem will be resolved in a future release of
    the SDK.
    .
    To obtain the fix:
    Install build 20070907 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ04225

  • Reported component name

    JAVA 5 CLASS LI

  • Reported component ID

    620500130

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-09-07

  • Closed date

    2007-09-26

  • Last modified date

    2007-09-26

  • 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 5 CLASS LI

  • Fixed component ID

    620500130

Applicable component levels

  • R500 PSN

       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":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
26 September 2007