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

ClassNotFoundException: DataBatteryActiveStatus #5

Closed
JonasVautherin opened this issue Sep 29, 2015 · 7 comments
Closed

ClassNotFoundException: DataBatteryActiveStatus #5

JonasVautherin opened this issue Sep 29, 2015 · 7 comments

Comments

@JonasVautherin
Copy link

I keep getting the exception below, and I don't seem to find DataBatteryActiveStatus in the jar files coming with the SDK. Where is it supposed to be?

java.lang.ClassNotFoundException: dji.midware.data.model.P3.DataBatteryActiveStatus
W/System.err﹕ at java.lang.Class.classForName(Native Method)
W/System.err﹕ at java.lang.Class.forName(Class.java:251)
W/System.err﹕ at java.lang.Class.forName(Class.java:216)
W/System.err﹕ at dji.midware.data.manager.P3.g.a(Unknown Source)
W/System.err﹕ at dji.midware.data.manager.P3.g.d(Unknown Source)
W/System.err﹕ at
dji.midware.usb.P3.UsbAccessoryService$ParseOsdRunnable.run(Unknown Source)
W/System.err﹕ at java.lang.Thread.run(Thread.java:841)
W/System.err﹕ Caused by: java.lang.NoClassDefFoundError:
dji/midware/data/model/P3/DataBatteryActiveStatus
W/System.err﹕ ... 7 more
W/System.err﹕ Caused by: java.lang.ClassNotFoundException: Didn't
find class "dji.midware.data.model.P3.DataBatteryActiveStatus" on path: DexPathList[[zip file
".apk", zip file
"/code_cache/secondary-dexes/.apk.classes2.zip"],nativeLibraryDirectories=[,
/vendor/lib, /system/lib]]
W/System.err﹕ at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
W/System.err﹕ at
java.lang.ClassLoader.loadClass(ClassLoader.java:497)
W/System.err﹕ at
java.lang.ClassLoader.loadClass(ClassLoader.java:457)
W/System.err﹕ ... 7 more

@SilverChangjian
Copy link

The DataBatteryActiveStatus class is also obfuscated. If you need this functionality, could you please provide the application scenarios for us? Our product manager will review it and this might become a new functionality for next version.

Best & Thank you

@JonasVautherin
Copy link
Author

We don't use it at all. The SDK is sending us this error every few seconds. It looks like something is trying to access DataBatteryActiveStatus internally and does not find it (supposedly because it is obfuscated).

So it looks like a bug on the SDK's side.

@SilverChangjian
Copy link

Sorry, my mistake. The reason why this error occurs is that the battery is not activated and pushing data for notifying the DJi Go App to activate it. For the SDK, some internal classes (like DataBatteryActiveStatus) are obfuscated. And that's why the error type is ClassNotFoundException. For solving this problem, I suggest you could use the DJI Go App to activate the battery (just open the DJI Go App and it will do it automatically). Then there will be no data for battery's activation notification.

Thanks for reporting bugs. We will go through all the corner case for using the SDK.

Best wishes

@Dmitrij
Copy link

Dmitrij commented Sep 30, 2015

It didn't solved by opening DJI GO application. we still have same error occurring every second.

@JonasVautherin
Copy link
Author

Do you happen to have any news about that problem?

@SilverChangjian
Copy link

There will be a 2.4.1 version for this problem. I will be solved in that version

@JonasVautherin
Copy link
Author

Disappeared in 2.4.1. Thanks!

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

3 participants