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
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4HGH","label":"IBM Mobile Foundation"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"500","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
12 January 2013