APAR status
Closed as change to accomodate OEM Vendor's code.
Error description
After upgrading the Android ADT plugin to v22, Android applications are failing withClassNotFoundExceptions upon startup.
Local fix
1. Right-click on the native Android project in Worklight Studio and choose 'Properties'. 2. Select 'Java Build Path' and go to the 'Order and Export' tab. 3. Mark the check-box for 'Android Private Libraries' 4. Refresh/clean/rebuild the android project.
Problem summary
**************************************************************** * USERS AFFECTED: * * Developers building Android applications who have moved up * * to v22 of the Android Development Toolkit. * **************************************************************** * PROBLEM DESCRIPTION: * * Google changed the container for external libraries in v22 * * of the ADT. Unless the applications are updated, they will * * experience errors similar to the following (demonstrated * * using the CityWeather sample application): * * 05-20 16:19:22.275: W/dalvikvm(18281): Unable to resolve * * superclass of Lcom/CityWeather/CityWeather; (15) * * 05-20 16:19:22.275: W/dalvikvm(18281): Link of class * * 'Lcom/CityWeather/CityWeather;' failed * * 05-20 16:19:22.275: D/AndroidRuntime(18281): Shutting down * * VM * * 05-20 16:19:22.275: W/dalvikvm(18281): threadid=1: thread * * exiting with uncaught exception (group=0x40c5c1f8) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): FATAL * * EXCEPTION: main * * 05-20 16:19:22.275: E/AndroidRuntime(18281): * * java.lang.RuntimeException: Unable to instantiate activity * * ComponentInfo{com.CityWeather/com.CityWeather.CityWeather}: * * java.lang.ClassNotFoundException: * * com.CityWeather.CityWeather * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread.performLaunchActivity(ActivityThr * * ead.java:1892) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread.handleLaunchActivity(ActivityThre * * ad.java:1993) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread.access$600(ActivityThread.java:12 * * 7) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread$H.handleMessage(ActivityThread.ja * * va:1159) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.os.Handler.dispatchMessage(Handler.java:99) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.os.Looper.loop(Looper.java:137) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread.main(ActivityThread.java:4507) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * java.lang.reflect.Method.invokeNative(Native Method) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * java.lang.reflect.Method.invoke(Method.java:511) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Z * * ygoteInit.java:790) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * dalvik.system.NativeStart.main(Native Method) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): Caused by: * * java.lang.ClassNotFoundException: * * com.CityWeather.CityWeather * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoade * * r.java:61) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * java.lang.ClassLoader.loadClass(ClassLoader.java:501) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * java.lang.ClassLoader.loadClass(ClassLoader.java:461) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.Instrumentation.newActivity(Instrumentation.java * * :1026) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): at * * android.app.ActivityThread.performLaunchActivity(ActivityThr * * ead.java:1883) * * 05-20 16:19:22.275: E/AndroidRuntime(18281): ... 11 more * **************************************************************** * RECOMMENDATION: * ****************************************************************
Problem conclusion
The code has been changed to reflect the new container. The fix for this APAR is currently targeted for inclusion in release 6.0.0.0.
Temporary fix
Comments
APAR Information
APAR number
PM89348
Reported component name
WORKLIGHT CONSU
Reported component ID
5725I4301
Reported release
505
Status
CLOSED OEM
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-05-20
Closed date
2013-05-20
Last modified date
2013-05-20
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
R505 PSY
UP
R506 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"505","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
20 May 2013