question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class not found when starting vpnconfiguration

See original GitHub issue

Attempting to get this working, running on Windows 7 and Samsung galaxy s7, android version 8.0.0

Was getting the broadcast completed: result=0 and was looking through other issues on here and was looking through my adb logcat and found the following (attached full logcat.txt too):

11-05 10:16:04.482 24493 24493 D GnirehtetControlReceiver: Received request com.genymobile.gnirehtet.START
11-05 10:16:04.482 24493 24493 D VpnService: prepare function with android vpn context is called for non knox vpn profile
11-05 10:16:04.485  3642  5311 D ConnectivityService: prepare is called by 10976
11-05 10:16:04.486 24493 24493 W GnirehtetControlReceiver: VPN requires the authorization from the user, requesting...
11-05 10:16:04.493  3642  5311 E Parcel  : Class not found when unmarshalling: com.genymobile.gnirehtet.VpnConfiguration
11-05 10:16:04.493  3642  5311 E Parcel  : java.lang.ClassNotFoundException: com.genymobile.gnirehtet.VpnConfiguration
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.Class.classForName(Native Method)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.Class.forName(Class.java:453)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:2835)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.Parcel.readParcelable(Parcel.java:2789)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.Parcel.readValue(Parcel.java:2692)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3059)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:257)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.BaseBundle.getString(BaseBundle.java:1086)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.content.Intent.getStringExtra(Intent.java:7706)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:468)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:419)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1308)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6045)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5897)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:121)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3873)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at android.os.Binder.execTransact(Binder.java:682)
11-05 10:16:04.493  3642  5311 E Parcel  : Caused by: java.lang.ClassNotFoundException: com.genymobile.gnirehtet.VpnConfiguration
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.Class.classForName(Native Method)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.BootClassLoader.findClass(ClassLoader.java:1355)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.BootClassLoader.loadClass(ClassLoader.java:1415)
11-05 10:16:04.493  3642  5311 E Parcel  : 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
11-05 10:16:04.493  3642  5311 E Parcel  : 	... 17 more
11-05 10:16:04.493  3642  5311 E Parcel  : Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
11-05 10:16:04.494  3642  5311 W Bundle  : Failed to parse Bundle, but defusing quietly
11-05 10:16:04.494  3642  5311 W Bundle  : android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.genymobile.gnirehtet.VpnConfiguration
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.Parcel.readParcelableCreator(Parcel.java:2863)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.Parcel.readParcelable(Parcel.java:2789)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.Parcel.readValue(Parcel.java:2692)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.Parcel.readArrayMapInternal(Parcel.java:3059)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.BaseBundle.unparcel(BaseBundle.java:257)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.BaseBundle.getString(BaseBundle.java:1086)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.content.Intent.getStringExtra(Intent.java:7706)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:468)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:419)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1308)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6045)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5897)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:121)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3873)
11-05 10:16:04.494  3642  5311 W Bundle  : 	at android.os.Binder.execTransact(Binder.java:682)
11-05 10:16:04.500  3642  5311 I ActivityManager: START u0 {act=null typ=null flg=0x10000000 cmp=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.AuthorizationActivity}} from uid 10976
11-05 10:16:04.504  3642  5311 D CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 2600000  uid : 1000  pid : 3642  pkgName : AMS_APP_SWITCH@CPU_MIN@48
11-05 10:16:04.508  3642  5311 D ActivityManagerPerformance: AMP_acquire() APP_SWITCH
11-05 10:16:04.508  3642  4981 D ActivityManagerPerformance: Received MSG_CFMS_HINT_AMS_SWITCH pkgName: com.genymobile.gnirehtet
11-05 10:16:04.509  3642  7336 D TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3642 / 1000 / 7336
11-05 10:16:04.514  3642  3642 D MdnieScenarioControlService: Listener Real Multi Window State : false
11-05 10:16:04.515  3642  5136 D ActivityManager: isScaleDownAnimationEnabled() : false
11-05 10:16:04.519  3642  5136 D PersonaManagerService: Current focused persona service handled id set to : 0
11-05 10:16:04.519  3642  5136 D InputDispatcher: Focused application set to: xxxx
11-05 10:16:04.520  3642  5136 D InputDispatcher: Focus left window: 5155
11-05 10:16:04.521  3642  3969 D GameManagerService: handleForegroundChange(). pkgName: com.genymobile.gnirehtet, clsName: com.genymobile.gnirehtet.AuthorizationActivity,FgActivityName:com.genymobile.gnirehtet/.AuthorizationActivity
11-05 10:16:04.521  3642  3969 D GameManagerService: sem_perfomance_mode: 0
11-05 10:16:04.521  3642  3969 D GameManagerService: notifyResumePause(). pkg: com.genymobile.gnirehtet, type: 4, isMinimized: false, isTunableApp: false
11-05 10:16:04.521  3642  3969 D GameManagerService:   notifyResumePause(). unexpected mPrevNotiType: -1
11-05 10:16:04.521  3642  5136 D MARsPolicyManager: onPackageResumedFG pkgName = com.genymobile.gnirehtet, userId = 0
11-05 10:16:04.524  4292  4311 D ProcessObserver_FLP: onForegroundActivities changed, 24493/10976/true

logcat.txt

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
LyraGhostcommented, Nov 5, 2018

I managed to resolve the issue. I redownloaded the 2.3 release, and reinstalled the apk. I had another vpn set up for other stuff on my phone, so i tried removing that and yours started working. Not sure why the two vpns were conflicting, the other one was turned off, but i guess having it set up at all broke it.

1reaction
LyraGhostcommented, Nov 5, 2018

I tried reinstall, uninstall and installing again, still outputting same errors

Read more comments on GitHub >

github_iconTop Results From Across the Web

VPN not starting | Apple Developer Forums
I'm trying to connect with some invalid code, so connection fails. Upon this failure I'm updating the VPN configuration (removing on-demand), and save...
Read more >
JAVA Error in SSL VPN - Cisco Community
On CIsco ASA 5545x not able access finacle application through SSL VPN, error shown is "classnotfoundexception" and ...
Read more >
java.lang.ClassNotFoundException - DigitalOcean
Java ClassNotFoundException occurs when the application tries to load a class but Classloader is not able to find it in the classpath.
Read more >
VPN "Element Not Found" - TechNet - Microsoft
... from my laptop using Start>Settings>VPN>[VPN_NAME]>Connect and enter my credentials, it shows a red error that says "Element not found.
Read more >
How do I resolve ClassNotFoundException? - Stack Overflow
When you get a ClassNotFoundException, it means the JVM has traversed the entire classpath and not found the class you've attempted to reference....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found