- 浏览: 44858 次
- 性别:
- 来自: 广州
文章分类
Class not found when unmarshalling: false, e: java.lang.ClassNotFoundException:
- 博客分类:
- android
04-23 17:04:18.863: E/Parcel(18872): Class not found when unmarshalling: false, e: java.lang.ClassNotFoundException: false
04-23 17:04:18.867: W/dalvikvm(18872): threadid=1: thread exiting with uncaught exception (group=0x40a3a1f8)
04-23 17:04:18.890: E/AndroidRuntime(18872): FATAL EXCEPTION: main
04-23 17:04:18.890: E/AndroidRuntime(18872): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.b6q9.passmanage/com.shai.manage.activity.MainActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: false
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2079)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.access$600(ActivityThread.java:132)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Handler.dispatchMessage(Handler.java:99)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Looper.loop(Looper.java:137)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.main(ActivityThread.java:4575)
04-23 17:04:18.890: E/AndroidRuntime(18872): at java.lang.reflect.Method.invokeNative(Native Method)
04-23 17:04:18.890: E/AndroidRuntime(18872): at java.lang.reflect.Method.invoke(Method.java:511)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
04-23 17:04:18.890: E/AndroidRuntime(18872): at dalvik.system.NativeStart.main(Native Method)
04-23 17:04:18.890: E/AndroidRuntime(18872): Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: false
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readParcelable(Parcel.java:1966)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.AbsSavedState.<init>(AbsSavedState.java:57)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.View$BaseSavedState.<init>(View.java:14338)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState.<init>(SatelliteMenu.java:547)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState$1.createFromParcel(SatelliteMenu.java:573)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState$1.createFromParcel(SatelliteMenu.java:1)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readParcelable(Parcel.java:1992)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readValue(Parcel.java:1854)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readSparseArrayInternal(Parcel.java:2123)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readSparseArray(Parcel.java:1576)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readValue(Parcel.java:1911)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readMapInternal(Parcel.java:2094)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Bundle.unparcel(Bundle.java:223)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Bundle.getSparseParcelableArray(Bundle.java:1225)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:766)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1764)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Activity.onCreate(Activity.java:864)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.slidingmenu.lib.app.SlidingActivity.onCreate(SlidingActivity.java:20)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.shai.manage.activity.MainActivity.onCreate(MainActivity.java:48)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Activity.performCreate(Activity.java:4465)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
04-23 17:04:18.890: E/AndroidRuntime(18872): ... 11 more
这个错误发生在ANDROID SDK Tool 更新到22.6.2时,突然发生的,不知道是不是与这个相关
主要问题是出现在保存 VIEW 状态时出错 自定义VIEW类里实现了Parcelable 接口
extends BaseSavedState
static class SavedState extends BaseSavedState {
boolean rotated;
private float totalSpacingDegree;
private int satelliteDistance;
private int measureDiff;
private int expandDuration;
private boolean closeItemsOnClick;
SavedState(Parcelable superState) {
super(superState);
System.out.println("1 "+superState);
}
public SavedState(Parcel in) {
super(in);
rotated = Boolean.valueOf(in.readString());
totalSpacingDegree = in.readFloat();
satelliteDistance = in.readInt();
measureDiff = in.readInt();
expandDuration = in.readInt();
closeItemsOnClick = Boolean.valueOf(in.readString());
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
out.writeString(Boolean.toString(rotated));
out.writeFloat(totalSpacingDegree);
out.writeInt(satelliteDistance);
out.writeInt(measureDiff);
out.writeInt(expandDuration);
out.writeString(Boolean.toString(closeItemsOnClick));
}
public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
public SavedState createFromParcel(Parcel in) {
return new SavedState(in);
}
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
}
问题出现在没有加入这行代码 super.writeToParcel(out, flags);
04-23 17:04:18.867: W/dalvikvm(18872): threadid=1: thread exiting with uncaught exception (group=0x40a3a1f8)
04-23 17:04:18.890: E/AndroidRuntime(18872): FATAL EXCEPTION: main
04-23 17:04:18.890: E/AndroidRuntime(18872): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.b6q9.passmanage/com.shai.manage.activity.MainActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: false
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2079)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.access$600(ActivityThread.java:132)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Handler.dispatchMessage(Handler.java:99)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Looper.loop(Looper.java:137)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.main(ActivityThread.java:4575)
04-23 17:04:18.890: E/AndroidRuntime(18872): at java.lang.reflect.Method.invokeNative(Native Method)
04-23 17:04:18.890: E/AndroidRuntime(18872): at java.lang.reflect.Method.invoke(Method.java:511)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
04-23 17:04:18.890: E/AndroidRuntime(18872): at dalvik.system.NativeStart.main(Native Method)
04-23 17:04:18.890: E/AndroidRuntime(18872): Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: false
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readParcelable(Parcel.java:1966)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.AbsSavedState.<init>(AbsSavedState.java:57)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.View$BaseSavedState.<init>(View.java:14338)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState.<init>(SatelliteMenu.java:547)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState$1.createFromParcel(SatelliteMenu.java:573)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.view.ext.SatelliteMenu$SavedState$1.createFromParcel(SatelliteMenu.java:1)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readParcelable(Parcel.java:1992)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readValue(Parcel.java:1854)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readSparseArrayInternal(Parcel.java:2123)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readSparseArray(Parcel.java:1576)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readValue(Parcel.java:1911)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Parcel.readMapInternal(Parcel.java:2094)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Bundle.unparcel(Bundle.java:223)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.os.Bundle.getSparseParcelableArray(Bundle.java:1225)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:766)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1764)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Activity.onCreate(Activity.java:864)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.slidingmenu.lib.app.SlidingActivity.onCreate(SlidingActivity.java:20)
04-23 17:04:18.890: E/AndroidRuntime(18872): at com.shai.manage.activity.MainActivity.onCreate(MainActivity.java:48)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Activity.performCreate(Activity.java:4465)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
04-23 17:04:18.890: E/AndroidRuntime(18872): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
04-23 17:04:18.890: E/AndroidRuntime(18872): ... 11 more
这个错误发生在ANDROID SDK Tool 更新到22.6.2时,突然发生的,不知道是不是与这个相关
主要问题是出现在保存 VIEW 状态时出错 自定义VIEW类里实现了Parcelable 接口
extends BaseSavedState
static class SavedState extends BaseSavedState {
boolean rotated;
private float totalSpacingDegree;
private int satelliteDistance;
private int measureDiff;
private int expandDuration;
private boolean closeItemsOnClick;
SavedState(Parcelable superState) {
super(superState);
System.out.println("1 "+superState);
}
public SavedState(Parcel in) {
super(in);
rotated = Boolean.valueOf(in.readString());
totalSpacingDegree = in.readFloat();
satelliteDistance = in.readInt();
measureDiff = in.readInt();
expandDuration = in.readInt();
closeItemsOnClick = Boolean.valueOf(in.readString());
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
out.writeString(Boolean.toString(rotated));
out.writeFloat(totalSpacingDegree);
out.writeInt(satelliteDistance);
out.writeInt(measureDiff);
out.writeInt(expandDuration);
out.writeString(Boolean.toString(closeItemsOnClick));
}
public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
public SavedState createFromParcel(Parcel in) {
return new SavedState(in);
}
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
}
问题出现在没有加入这行代码 super.writeToParcel(out, flags);
发表评论
-
转载:::::Android大图片裁剪终极解决方案 从相册截图
2016-03-10 10:51 0[url]http://www.linuxidc.com/L ... -
opendir failed, Permission denied 不ROOT
2016-03-02 15:06 3347127|shell@android:/ $ cd data/d ... -
android中使用别人的UI框架
2015-04-21 19:40 988android中使用别人的UI框架(针对有自定义属性) 在主 ... -
ant打包游戏时报错
2015-04-21 19:37 2215=============================== ... -
android-gp-billing问题集
2015-01-20 15:32 1524一、前言 之前提到, ... -
Support4Demos
2013-12-09 17:45 992从ecplipse里导出的android-support de ... -
android activityGroup遇到的问题总结
2013-08-22 11:12 008-22 10:58:29.070: W/ActivityM ... -
广播启动service 使用alarmManager的ANR 错误总结
2013-08-09 14:29 1149在服务中不能直接进行耗时的操作 就算是使用handle也不行, ... -
android:launchMode="singleTask"
2013-06-07 16:40 0自己测试 当 <activity //主TABA ... -
android ListView 刷新数据,加载时遇到的数组越界问题
2013-05-31 11:29 843305-31 11:19:55.423: E/Microlog( ... -
Android ListView 刷新数据,加载时遇到的数组越界问题
2013-05-28 11:25 0有时经常会碰到这个越界问题 开始是捕捉异常 后面网络查找答案 ...
相关推荐
整个系统都没有错误,但是在发布运行后,控制台上却抛出了这样的异常: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
Java中的`ClassNotFoundException`异常通常表示在尝试加载特定类时,JVM无法找到对应的字节码文件。这个异常可能由多种原因引起,但在本场景中,它与Java 9引入的模块系统及其对Java EE API的影响密切相关。 在Java...
在Java编程中,`java.lang.ClassNotFoundException`是一个常见的运行时异常,它表示JVM尝试加载一个类时,找不到对应的.class文件。在这个特定的错误中,我们看到的是`org.apache.commons.dbcp.BasicDataSource`,这...
在Java编程中,`ClassNotFoundException` 是一个常见的运行时异常,通常发生在尝试加载特定类时,JVM无法找到对应类的定义。在这个特定的情景中,错误提示 "java.lang.ClassNotFoundException: ...
然而,对于初学者来说,遇到错误是常有的事,比如“java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource”。这个异常表明在运行时,系统无法找到指定的类,即Apache Commons DBCP的...
"java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver" 解决方案 [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 解决了jsp连接 sql server 2000的问题
at java.lang.ClassLoader.loadClass(ClassLoader.java:667) at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:119) at java.lang.ClassLoader.loadClass(ClassLoader.java:650) at ...
总之,解决“java.lang.ClassNotFoundException: org.jdom.input.SAXBuilder”问题的关键在于确保JDOM库被正确地包含在类路径中,同时检查代码中涉及的类名拼写是否准确。了解并熟练使用SAXBuilder可以帮助开发者...
在这个特定的场景中,异常堆栈跟踪显示了 `Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Transformer`,这表明系统无法找到 `org.apache.commons.collections.Transformer` 类。...
08-13 18:29:22.924: E/AndroidRuntime(1875): Caused by: Java.lang.ClassNotFoundException:XXXXX in loader dalvik.system.PathClassLoader[/data/app/XXXX.apk] 我想大家经常因为疏忽出现...
在Java编程中,`ClassNotFoundException` 是一个常见的运行时异常,表示尝试加载某个类时,在类路径中找不到对应的`.class`文件。在这个特定的场景中,异常堆栈跟踪显示 `Caused by: java.lang....
Caused by: java.sql.SQLException: java.lang.ClassNotFoundException: org.apache.hive.jdbc.HiveDriver at com.trs.gateway.commons.hive.HiveFeature.getConnection(HiveFeature.java:57) at ...
一:查看你下载的MySQL和mysql-connector-java,如果不对应的话肯定会报错。 对应规则: mysql-connector-java-5 Connector/J version Driver Type JDBC version MySQL Server version Status 5.1 4 3.0, 4.0...
抛出无法找到主类:org.apache.axis.wsdl.WSDL2Java(Throws Could not find main class: org.apache.axis.wsdl.WSDL2Java)。 添加本文的jar包压缩包解压出来的所有jar包到当前使用的java.exe 命令的lib目录下的ext...
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 需要jar log4j-1.2.16.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
这个"Oracl+SQLServer驱动包"显然包含了用于连接这两种数据库的Java JDBC(Java Database Connectivity)驱动程序。JDBC是Java编程语言的一个标准接口,允许Java程序与各种类型的数据库进行交互。以下是关于Oracle和...
【SpringBoot】Error: java.lang.ClassNotFoundException: org.wltea.analyzer.core.IKSegmenter报错明细问题分析后记 报错明细 IDEA SpringBoot集成hadoop运行环境,本地启动项目,GET请求接口触发远程提交...
深入浅出Java_Swing程序设计(高清),第二部分,分卷压缩 Swing开发入门经典教材