ciprig / little-fluffy-location-library

Automatically exported from code.google.com/p/little-fluffy-location-library
0 stars 0 forks source link

NumberFormatException #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Could not reproduce it on our own. Crashes are beeing reported with that 
Exception, see below.

What is the expected output? What do you see instead?
Initialisation of fluffy is done in onCreate of Application class. The app 
crashes during LocationLibrary.initialiseLibrary.

What version of the product are you using? On what operating system?
Samsung GT-I9000, 2.3.3 and 2.3.6

Please provide any additional information below.

Android: 2.3.6, 2.3.3
Manufacturer: samsung
Model: GT-I9000
Date: Sat May 17 09:29:34 MESZ 2014

java.lang.RuntimeException: Unable to create application com.xxx.app.XXXApp: 
java.lang.NumberFormatException
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3279)
    at android.app.ActivityThread.access$2200(ActivityThread.java:117)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3687)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NumberFormatException
    at org.apache.harmony.luni.util.FloatingPointParser.parseFltImpl(Native Method)
    at org.apache.harmony.luni.util.FloatingPointParser.parseFloat(FloatingPointParser.java:321)
    at java.lang.Float.parseFloat(Float.java:323)
    at java.lang.Float.<init>(Float.java:143)
    at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:720)
    at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:516)
    at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733)
    at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667)
    at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470)
    at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:452)
    at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:146)
    at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:348)
    at com.littlefluffytoys.littlefluffylocationlibrary.LocationLibrary.initialiseLibrary(Unknown Source)
                                                                     initialiseLibrary
                                                                     initialiseLibrary
                                                                     initialiseLibrary
    at com.littlefluffytoys.littlefluffylocationlibrary.LocationLibrary.initialiseLibrary(Unknown Source)
                                                                     initialiseLibrary
                                                                     initialiseLibrary
                                                                     initialiseLibrary
    at com.littlefluffytoys.littlefluffylocationlibrary.LocationLibrary.initialiseLibrary(Unknown Source)
                                                                     initialiseLibrary
                                                                     initialiseLibrary
                                                                     initialiseLibrary
    at com.xxx.app.XXXApp.onCreate(Unknown Source)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3276)
    ... 10 more

Original issue reported on code.google.com by luserdr...@googlemail.com on 19 May 2014 at 9:57

GoogleCodeExporter commented 9 years ago
You can try to clear cache for application. Maybe something wrong is written in 
shared preferences.

Original comment by syt...@gmail.com on 22 May 2014 at 1:43