Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class not found when unmarshalling ,Class not found exception #373

Open
utkarshGithub opened this issue Jun 12, 2019 · 8 comments
Open

Class not found when unmarshalling ,Class not found exception #373

utkarshGithub opened this issue Jun 12, 2019 · 8 comments

Comments

@utkarshGithub
Copy link

Why my only one class is not getting unmarshalled. The error is class not found when unmarshalling: com.Inbox.InboxModel$$Parcelable while I can see com.Inbox.InboxModel$$Parcelable in generated files.

@utkarshGithub
Copy link
Author

I have two modules in one module I am using : implementation 'org.parceler:parceler-api:1.1.11'
annotationProcessor 'org.parceler:parceler:1.1.11'
and kapt 'org.parceler:parceler:1.1.11'
and in other implementation 'org.parceler:parceler-api:1.1.11'
annotationProcessor 'org.parceler:parceler:1.1.11'

@mgood7123
Copy link

im getting this as well

04-30 21:06:55.550  9248  9277 E Parcel  : Class not found when unmarshalling: alpine.term.TrackedActivity$$Parcelable
04-30 21:06:55.550  9248  9277 E Parcel  : java.lang.ClassNotFoundException: alpine.term.TrackedActivity$$Parcelable
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.Class.classForName(Native Method)
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.Class.forName(Class.java:453)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Parcel.readParcelableCreator(Parcel.java:2811)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Parcel.readParcelable(Parcel.java:2765)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Message.readFromParcel(Message.java:622)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Message.access$000(Message.java:34)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Message$1.createFromParcel(Message.java:578)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Message$1.createFromParcel(Message.java:575)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.IMessenger$Stub.onTransact(IMessenger.java:52)
04-30 21:06:55.550  9248  9277 E Parcel  :      at android.os.Binder.execTransact(Binder.java:731)
04-30 21:06:55.550  9248  9277 E Parcel  : Caused by: java.lang.ClassNotFoundException: alpine.term.TrackedActivity$$Parcelable
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.Class.classForName(Native Method)
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.BootClassLoader.findClass(ClassLoader.java:1346)
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.BootClassLoader.loadClass(ClassLoader.java:1406)
04-30 21:06:55.550  9248  9277 E Parcel  :      at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
04-30 21:06:55.550  9248  9277 E Parcel  :      ... 10 more
04-30 21:06:55.550  9248  9277 E Parcel  : Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
04-30 21:06:55.556  9248  9277 W Binder  : Caught a RuntimeException from the binder stub implementation.
04-30 21:06:55.556  9248  9277 W Binder  : android.os.BadParcelableException: ClassNotFoundException when unmarshalling: alpine.term.TrackedActivity$$Parcelable
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Parcel.readParcelableCreator(Parcel.java:2839)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Parcel.readParcelable(Parcel.java:2765)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Message.readFromParcel(Message.java:622)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Message.access$000(Message.java:34)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Message$1.createFromParcel(Message.java:578)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Message$1.createFromParcel(Message.java:575)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.IMessenger$Stub.onTransact(IMessenger.java:52)
04-30 21:06:55.556  9248  9277 W Binder  :      at android.os.Binder.execTransact(Binder.java:731)
04-30 21:06:55.586  4453  4453 V NavigationBar: onRotationProposal proposedRotation=ROTATION_0, winRotation=ROTATION_0, isValid=true, mNavBarWindowState=WINDOW_STATE_SHOWING, rotateSuggestionsDisabled=false, isRotateButtonVisible=false
04-30 21:06:55.596  4002  5624 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen alpine.term#0
04-30 21:06:55.596  4002  5624 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen alpine.term#0
04-30 21:06:55.707  4002  5624 E BufferQueueProducer: [com.android.launcher3/com.android.launcher3.lineage.LineageLauncher#0] disconnect: not connected (req=1)
04-30 21:06:55.707  5089  5737 W libEGL  : EGLNativeWindowType 0x79883f2010 disconnect failed
04-30 21:06:55.723  4002  5624 E BufferQueueProducer: [com.android.launcher3/com.android.launcher3.lineage.LineageLauncher#1] disconnect: not connected (req=1)
04-30 21:06:55.723  7219  7458 W libEGL  : EGLNativeWindowType 0x799a977010 disconnect failed
04-30 21:06:55.758  5089  5366 I WorkerManager: Releasing worker: [searchboxroot]/[24]/[com.google.android.apps.gsa.staticplugins.searchboxroot.x]
04-30 21:06:55.758  5089  5366 I chatty  : uid=10188(com.google.android.googlequicksearchbox) EventBus0 identical 2 lines
04-30 21:06:55.758  5089  5366 I WorkerManager: Releasing worker: [searchboxroot]/[24]/[com.google.android.apps.gsa.staticplugins.searchboxroot.x]
04-30 21:06:55.759  5089  5366 I WorkerManager: Releasing worker: [actions]/[1]/[com.google.android.apps.gsa.staticplugins.actions.p]
04-30 21:06:55.760  5089  5366 I chatty  : uid=10188(com.google.android.googlequicksearchbox) EventBus0 identical 2 lines
04-30 21:06:55.761  5089  5366 I WorkerManager: Releasing worker: [actions]/[1]/[com.google.android.apps.gsa.staticplugins.actions.p]
04-30 21:06:55.761  5089  8868 I PBSessionCacheImpl: Deleted sessionId[22383246916794181] from persistence.
04-30```

@johncarl81
Copy link
Owner

Are you using proguard?

@mgood7123
Copy link

mgood7123 commented May 2, 2020 via email

@johncarl81
Copy link
Owner

Can you share your configuration? Here's the config that generally works: http://parceler.org/#configuring_proguard

@tronku
Copy link

tronku commented Feb 17, 2023

@johncarl81 any solution? i removed proguard but still getting the issue

@johncarl81
Copy link
Owner

It's likely because of one of two things: Not adding or configuring the annotation processor properly, or proguard is removing the generated Parcelable classes.

@mgood7123
Copy link

alright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants