Attempt to invoke virtual method 'android.content.res.AssetManager android.content.res.Resources.getAssets()...

奶一口 15天前 31

main(1) 

java.lang.NullPointerException 

Attempt to invoke virtual method 'android.content.res.AssetManager android.content.res.Resources.getAssets()' on a null object reference 

解析原始  1 java.lang.RuntimeException:Unable to create service cn.wildfirechat.client.ClientService: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.AssetManager android.content.res.Resources.getAssets()' on a null object reference  2 android.app.ActivityThread.handleCreateService(ActivityThread.java:2887)  3 ......  4 Caused by:  5 java.lang.NullPointerException:Attempt to invoke virtual method 'android.content.res.AssetManager android.content.res.Resources.getAssets()' on a null object reference  6 android.app.LoadedApk.getAssets(LoadedApk.java:543)  7 android.app.LoadedApk.makeApplication(LoadedApk.java:599)  8 android.app.ActivityThread.handleCreateService(ActivityThread.java:2874)  9 android.app.ActivityThread.-wrap4(ActivityThread.java)  10 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)  11 android.os.Handler.dispatchMessage(Handler.java:102)  12 android.os.Looper.loop(Looper.java:148)  13 android.app.ActivityThread.main(ActivityThread.java:5417)  14 java.lang.reflect.Method.invoke(Native Method)  15 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  16 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 

ReferenceQueueDaemon(177) 

1 java.lang.Object.wait(Native Method)  2 java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:147)  3 java.lang.Thread.run(Thread.java:818) 

FinalizerDaemon(178) 

1 java.lang.Object.wait(Native Method)  2 java.lang.Object.wait(Object.java:423)  3 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:101)  4 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72)  5 java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)  6 java.lang.Thread.run(Thread.java:818) 

FinalizerWatchdogDaemon(179) 

1 java.lang.Object.wait(Native Method)  2 java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject(Daemons.java:255)  3 java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:227)  4 java.lang.Thread.run(Thread.java:818) 

HeapTaskDaemon(180) 

1 dalvik.system.VMRuntime.runHeapTasks(Native Method)  2 java.lang.Daemons$HeapTaskDaemon.run(Daemons.java:355)  3 java.lang.Thread.run(Thread.java:818) 

Thread-183(183) 

1 java.lang.StringFactory.newStringFromChars(Native Method)  2 java.lang.StringFactory.newStringFromChars(StringFactory.java:218)  3 java.lang.StringFactory.newStringFromBytes(StringFactory.java:203)  4 java.lang.StringFactory.newStringFromBytes(StringFactory.java:59)  5 java.io.ByteArrayOutputStream.toString(ByteArrayOutputStream.java:175)  6 java.util.jar.ManifestReader.readValue(ManifestReader.java:181)  7 java.util.jar.ManifestReader.readHeader(ManifestReader.java:107)  8 java.util.jar.ManifestReader.readEntries(ManifestReader.java:70)  9 java.util.jar.Manifest.read(Manifest.java:207)  10 java.util.jar.Manifest.(Manifest.java:106)  11 java.util.jar.JarFile.(JarFile.java:217)  12 java.util.jar.JarFile.(JarFile.java:250)  13 java.util.jar.JarFile.(JarFile.java:235) 

Thread-184(184) 

1 java.lang.Thread.sleep(Native Method)  2 java.lang.Thread.sleep(Thread.java:1031)  3 java.lang.Thread.sleep(Thread.java:985)  4 com.jg.bh.e.d.run(SourceFile:61) 

WifiManager(186) 

1 android.os.MessageQueue.nativePollOnce(Native Method)  2 android.os.MessageQueue.next(MessageQueue.java:323)  3 android.os.Looper.loop(Looper.java:135)  4 android.os.HandlerThread.run(HandlerThread.java:61) 

BuglyThread-1(190) 

1 java.lang.Object.wait(Native Method)  2 java.lang.Thread.parkFor$(Thread.java:1220)  3 sun.misc.Unsafe.park(Unsafe.java:299)  4 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)  5 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2053)  6 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)  7 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1071)  8 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1038)  9 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)  10 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  11 java.lang.Thread.run(Thread.java:818) 

BuglyThread-2(191) 

1 libcore.io.Posix.readBytes(Native Method)  2 libcore.io.Posix.read(Posix.java:169)  3 libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)  4 libcore.io.IoBridge.read(IoBridge.java:468)  5 java.io.FileInputStream.read(FileInputStream.java:177)  6 java.io.InputStreamReader.read(InputStreamReader.java:233)  7 java.io.BufferedReader.fillBuf(BufferedReader.java:145)  8 java.io.BufferedReader.readLine(BufferedReader.java:397)  9 com.tencent.bugly.proguard.z.c()  10 com.tencent.bugly.proguard.z.a()  11 com.tencent.bugly.crashreport.common.info.b.e()  12 com.tencent.bugly.crashreport.common.info.a.s()  13 com.tencent.bugly.proguard.a.a()  14 com.tencent.bugly.crashreport.biz.a.c()  15 com.tencent.bugly.crashreport.biz.a.a()  16 com.tencent.bugly.crashreport.biz.a$2.run()  17 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)  18 java.util.concurrent.FutureTask.run(FutureTask.java:237)  19 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)  20 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  21 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  22 java.lang.Thread.run(Thread.java:818) 

BuglyThread-3(192) 

1 java.lang.Object.wait(Native Method)  2 java.lang.Thread.parkFor$(Thread.java:1220)  3 sun.misc.Unsafe.park(Unsafe.java:299)  4 java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)  5 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2013)  6 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1085)  7 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1071)  8 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1038)  9 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)  10 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  11 java.lang.Thread.run(Thread.java:818) 

FileObserver(193) 

1 android.os.FileObserver$ObserverThread.observe(Native Method)  2 android.os.FileObserver$ObserverThread.run(FileObserver.java:85) 

java.lang.ProcessManager(197) 

1 libcore.io.Posix.waitpid(Native Method)  2 libcore.io.ForwardingOs.waitpid(ForwardingOs.java:173)  3 java.lang.ProcessManager.watchChildren(ProcessManager.java:86)  4 java.lang.ProcessManager.-wrap0(ProcessManager.java)  5 java.lang.ProcessManager$1.run(ProcessManager.java:58)

最新回复 (0)
返回