当前位置:首页 > 开发 > 移动开发 > 正文

Class not found when unmarshalling: false, e: java.lang.ClassNotFoundException:

发表于: 2014-04-24   作者:伈吢塌哋   来源:转载   浏览:
摘要: 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 uncau
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);

Class not found when unmarshalling: false, e: java.lang.ClassNotFoundException:

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
在做Spring+Struts+Hibernate时,在刚增加了Hibernate开发能力后,增加Spring开发能力时,applicati
Class Not Found Exception org.springframework.web.context.ContextLoaderListener 解决办法 刚才
Maven 配置web 项目时,Jar都通过maven配置引入了,但是运行时,提示类找不到: 第一步:检查jar是
当本地编译测试过的mapreduce程序放到集群上跑则报以下错误 15/12/24 14:19:36 INFO mapreduce.JobS
https://github.com/evant/gradle-retrolambda/issues/23 class file for java.lang.invoke.MethodT
提示:致命错误 Yaf_Application 基类没有加载进去 一检查:phpinfo() 里yaf 扩展有没有安装上 扩展
今天在测试PhoneGap官方提供的例子,运行到手机上一直弹出Error initializing Cordova:Class not fo
when u r getting message like class not found it means from where ur application is being sta
解决办法主要有以下两个: 1> 先用apt命令将主程序进行编译,然后生成一些java文件 2> 升级JD
使用kettle工具时,创建连接时提Driver class 'com.ibm.db2.jcc.DB2Driver' could not be found 解
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号