PM81639: A NullPointerException occurs when using the projectImport Ant task if the projectLocation is not set

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to use the projectImport Ant tasks results in a
    NullPointerException when the projectLocation attribute is not
    set.
    
    Problem:
    
    When running an Ant script that makes use of the following task
    
    ?projectImport ProjectName='MyProject'/?
    
    A NullPointerException results
    
    Caused by: java.lang.NullPointerException
        at java.io.File.?init?(Unknown Source)
        at
    com.ibm.etools.ant.extras.ProjectImport.runOperation(Unknown
    Source)
        at com.ibm.etools.ant.extras.ProjectImport.execute(Unknown
    Source)
        at org.apache.tools.ant.UnknownElement.execute(Unknown
    Source)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown
    Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
    
    
    Local fix:
    
    Include the projectLocation attribute when using ?projectImport?
    Ant task
    
    e.g.
    ?projectImport ProjectName='MyProject'
    projectLocation='${workspaceDirectory}\MyProject'/?
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The projectImport Ant task will thrown a
    NullPointerException when projectLocation attribute is not
    specified.
    

Problem conclusion

  • The projectLocation will be set to point to the workspace
    folder path by default and when not explicitly set.
    
    The fix for this APAR is included in Rational Application
    Developer v8.5.1 Interim Fix 002.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM81639

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-29

  • Closed date

    2013-05-16

  • Last modified date

    2013-05-16

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R850 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.5

Reference #:

PM81639

Modified date:

2013-05-16

Translate my page

Machine Translation

Content navigation