PM80489: NPE AND OTHER ERROR WHEN BUILDING WORKLIGHT APPLICATION USING ANT TASK

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Building a Worklight application using the ant task results in
    errors like:
    [app-builder] Warning:  The encoding 'UTF-8' is not supported by
    the Java runtime.
    [app-builder] Warning: encoding "UTF-8" not supported, using
    UTF-8
    [app-builder] Warning:  The encoding 'UTF-8' is not supported by
    the Java runtime.
    [app-builder] Warning: encoding "UTF-8" not supported, using
    UTF-8
    [app-builder] Warning:  The encoding 'UTF-8' is not supported by
    the Java runtime.
    [app-builder] Warning: encoding "UTF-8" not supported, using
    UTF-8
    [app-builder] java.lang.NullPointerException
    [app-builder] at
    com.worklight.common.i18n.MessageFormatter.format(MessageFormatt
    er.java:86)
    [app-builder] at
    com.worklight.common.i18n.MessageFormatter.format(MessageFormatt
    er.java:66)
    [app-builder] at
    com.worklight.builder.environment.EnvironmentBuilder.validateSki
    nFolders(EnvironmentBuilder.java:895)
    [app-builder] at
    com.worklight.builder.environment.EnvironmentBuilder.buildDeploy
    ableResources(EnvironmentBuilder.java:314)
    [app-builder] at
    com.worklight.builder.environment.EnvironmentBuilder.build(Envir
    onmentBuilder.java:224)
    [app-builder] at
    com.worklight.builder.environment.MobileApplicationBuilder.build
    (MobileApplicationBuilder.java:120)
    [app-builder] at
    com.worklight.builder.ApplicationBuilder$BuildRunner.buildEnviro
    nment(ApplicationBuilder.java:299)
    [app-builder] at
    com.worklight.builder.ApplicationBuilder$BuildRunner.run(Applica
    tionBuilder.java:275)
    [app-builder] at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
    Source)
    [app-builder] at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
    Source)
    [app-builder] at java.lang.Thread.run(Unknown Source)
    [app-builder] Warning:  The encoding 'UTF-8' is not supported by
    the Java runtime.
    [app-builder] Warning: encoding "UTF-8" not supported, using
    UTF-8
    [app-builder] Warning:  The encoding 'UTF-8' is not supported by
    the Java runtime.
    [app-builder] Warning: encoding "UTF-8" not supported, using
    UTF-8
    [app-builder] java.lang.NullPointerException
    [app-builder] at
    com.worklight.common.i18n.MessageFormatter.format(MessageFormatt
    er.java:86)
    [app-builder] at
    com.worklight.common.i18n.MessageFormatter.format(MessageFormatt
    er.java:66)
    [app-builder] at
    com.worklight.server.ws.client.Client.executeRequest(Client.java
    :206)
    [app-builder] at
    com.worklight.server.ws.client.Client.deployApplication(Client.j
    ava:157)
    [app-builder] at
    com.worklight.server.ws.client.Client.deployApplicationGeneric(C
    lient.java:161)
    [app-builder] at
    com.worklight.ant.deployers.ApplicationDeployerTask.deploy(Appli
    cationDeployerTask.java:25)
    [app-builder] at
    com.worklight.ant.deployers.AbstractDeployerTask.execute(Abstrac
    tDeployerTask.java:41)
    [app-builder] at
    com.worklight.ant.builders.ApplicationBuilderTask.execute(Applic
    ationBuilderTask.java:114)
    [app-builder] at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
    291)
    [app-builder] at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [app-builder] at
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [app-builder] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [app-builder] at java.lang.reflect.Method.invoke(Unknown Source)
    [app-builder] at
    org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtil
    s.java:106)
    [app-builder] at
    org.apache.tools.ant.Task.perform(Task.java:348)
    [app-builder] at
    org.apache.tools.ant.Target.execute(Target.java:390)
    [app-builder] at
    org.apache.tools.ant.Target.performTasks(Target.java:411)
    [app-builder] at
    org.apache.tools.ant.Project.executeSortedTargets(Project.java:1
    399)
    [app-builder] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [app-builder] at
    org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Defau
    ltExecutor.java:41)
    [app-builder] at
    org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.execute
    Targets(EclipseDefaultExecutor.java:32)
    [app-builder] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [app-builder] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Internal
    AntRunner.java:665)
    [app-builder] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Internal
    AntRunner.java:498)
    [app-builder] at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [app-builder] at
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [app-builder] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [app-builder] at java.lang.reflect.Method.invoke(Unknown Source)
    [app-builder] at
    org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    [app-builder] at
    org.eclipse.ant.internal.launching.launchConfigurations.AntLaunc
    hDelegate$1.run(AntLaunchDelegate.java:298)
    [app-builder] at java.lang.Thread.run(Unknown Source)
    BUILD SUCCESSFUL
    Total time: 9 seconds
    

Local fix

  • There is currently no work around for this issue.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users who are building with the ant     *
    *                  task                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: The NPE and other errors are caused by  *
    *                      code that is expecting to be executed   *
    *                      inside of an OSGi environment.          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Java classloader for non-OSGi environments is missing.
    

Problem conclusion

  • Added the Java classloader for non-OSGi environments.
    
    The fix for this APAR is currently targeted for inclusion in
    fixpack 5.0.5.0.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM80489

  • Reported component name

    MOBILE FNDTN EN

  • Reported component ID

    5725G9200

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-12

  • Closed date

    2013-01-12

  • Last modified date

    2013-01-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

    MOBILE FNDTN EN

  • Fixed component ID

    5725G9200

Applicable component levels

  • R500 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Mobile Foundation

Software version:

5.0

Reference #:

PM80489

Modified date:

2013-01-12

Translate my page

Machine Translation

Content navigation