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

Calling estimote service from remote service #55

Closed
SchmearK opened this issue May 30, 2014 · 11 comments
Closed

Calling estimote service from remote service #55

SchmearK opened this issue May 30, 2014 · 11 comments

Comments

@SchmearK
Copy link

Hi,

I try to run the estimote service code out of a custom remote service and got
stuck in the following exception:

E/Parcel﹕ Class not found when unmarshalling: com.estimote.sdk.service.ScanPeriodData
java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:204)
at android.os.Parcel.readParcelableCreator(Parcel.java:2124)
at android.os.Parcel.readParcelable(Parcel.java:2088)
at android.os.Message.readFromParcel(Message.java:511)
at android.os.Message.access$000(Message.java:32)
at android.os.Message$1.createFromParcel(Message.java:468)
at android.os.Message$1.createFromParcel(Message.java:465)
at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)

After some research i found out, that there is a problem with the Android ClassLoader which is responsible for handling Parcelables but isn`t aware of custom Parcelables, that have been send via messages (like i suggest it is done in the estimote SDK between BeaconManger and BeaconService).

Apparently this can be solved by explicitly setting the classloader to the message data.

Think this problem is a not neccessary restriction in the usage of the estimote sdk.

@wiktor
Copy link
Contributor

wiktor commented Jun 2, 2014

You create and use BeaconManager only from your remote service?

@SchmearK
Copy link
Author

SchmearK commented Jun 2, 2014

Hi Viktor, thx for the fast reply.

Yes, BeaconManager is called only from my remote service.

I use the estimote-sdk to scan for estimote-beacon in an android application plugin im currently developing.
The plugin has to run in its own process in the background (started from an application),
and start/stops the estimote sdk itself on arbitrary events.

Is this clarifying the scenario?

@wiktor
Copy link
Contributor

wiktor commented Jun 17, 2014

ScanPeriodData does not contain any field besides longs so there is no place there to set custom class loader. I'll dig deeper.

@wiktor
Copy link
Contributor

wiktor commented Jun 23, 2014

So the problem is described in docs on (Message#obj)[http://developer.android.com/reference/android/os/Message.html#obj]:

An arbitrary object to send to the recipient. When using Messenger to send the message across processes this can only be non-null if it contains a Parcelable of a framework class (not one implemented by the application). For other data transfer use setData(Bundle).

I need to switch to setData method instead of using obj on Message.

@wiktor
Copy link
Contributor

wiktor commented Jun 24, 2014

Fixed with (0.4.2)[https://github.com/Estimote/Android-SDK/releases/tag/0.4.2] release. Please give it a try and tell me how it works.

@wiktor wiktor closed this as completed Jun 24, 2014
@SchmearK
Copy link
Author

Hey Wiktor,
the bug seems to be fixed! Thx!

jamesmontemagno added a commit to jamesmontemagno/Estimotes-Xamarin that referenced this issue Aug 7, 2014
0.4.2 (June 24, 2014):

Fixes Estimote/Android-Fleet-Management-SDK#55: it is safe to
use library from remote process
0.4.1 (March 18, 2014)

CAN BREAK BUILD: MonitoringListener returns list of beacons the
triggered enter region event
(Estimote/Android-Fleet-Management-SDK#18)
Better messaging when BeaconManager cannot start service to scan
beacons (Estimote/Android-Fleet-Management-SDK#25)
Fixed bug in SDK when other beacons are around
(Estimote/Android-Fleet-Management-SDK#27)
@Harishy
Copy link

Harishy commented Nov 17, 2014

Hi Guys,
I want to run the service all the time even if the app is closed, so for that i have declared the service in manifest as follows..





but now when i ran my app it is showing the error which is mentioned in this post.i'm using the latest(Estimote sdk) library .my log is as follows..

11-17 12:09:43.069: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.069: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.069: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.069: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.069: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.069: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.069: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/service/ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): ... 11 more
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.069: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.069: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.069: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.069: E/Parcel(830): ... 11 more
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.069: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.070: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.070: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.070: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.070: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.070: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.070: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.070: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.070: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.070: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.070: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.070: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.074: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.074: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.074: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.074: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.074: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.074: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.074: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/Region
11-17 12:09:43.074: E/Parcel(830): ... 11 more
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.074: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.074: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.074: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.074: E/Parcel(830): ... 11 more
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.074: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.076: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.076: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.076: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.076: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.076: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.076: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.076: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.076: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.076: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.076: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.076: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.093: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.093: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.093: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.093: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.093: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.093: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.093: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/Region
11-17 12:09:43.093: E/Parcel(830): ... 11 more
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.093: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.093: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.093: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.093: E/Parcel(830): ... 11 more
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.093: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.095: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.095: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.095: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.095: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.095: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.095: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.095: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.095: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.095: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.095: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.095: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)

i'm following http://codeisanart.blogspot.fr/2014/06/estimotes-and-monitoring-practical_22.html this sample.
Please help me how to solve this issue..?

Thanks.
Harish

@wiktor
Copy link
Contributor

wiktor commented Nov 17, 2014

Which version if lib are you using.

On Mon, Nov 17, 2014 at 7:53 AM, Harishy notifications@github.com wrote:

I want to run the service all the time even if the app is closed, so for that i have declared the service in manifest as follows..





but now when i ran my app it is showing the error which is mentioned in this post.i'm using the latest(Estimote sdk) library .my log is as follows..
11-17 12:09:43.069: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.069: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.069: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.069: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.069: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.069: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.069: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.069: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/service/ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): ... 11 more
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.069: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.069: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.069: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.069: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.069: E/Parcel(830): ... 11 more
11-17 12:09:43.069: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.069: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.070: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.070: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.service.ScanPeriodData
11-17 12:09:43.070: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.070: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.070: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.070: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.070: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.070: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.070: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.070: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.070: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.074: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.074: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.074: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.074: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.074: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.074: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.074: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.074: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/Region
11-17 12:09:43.074: E/Parcel(830): ... 11 more
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.074: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.074: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.074: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.074: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.074: E/Parcel(830): ... 11 more
11-17 12:09:43.074: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.074: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.076: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.076: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.076: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.076: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.076: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.076: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.076: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.076: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.076: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.076: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.076: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.093: E/Parcel(830): Class not found when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): at java.lang.Class.classForName(Native Method)
11-17 12:09:43.093: E/Parcel(830): at java.lang.Class.forName(Class.java:251)
11-17 12:09:43.093: E/Parcel(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2133)
11-17 12:09:43.093: E/Parcel(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.093: E/Parcel(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.093: E/Parcel(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.093: E/Parcel(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.093: E/Parcel(830): at dalvik.system.NativeStart.run(Native Method)
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: com/estimote/sdk/Region
11-17 12:09:43.093: E/Parcel(830): ... 11 more
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.ClassNotFoundException: com.estimote.sdk.Region
11-17 12:09:43.093: E/Parcel(830): at java.lang.VMClassLoader.loadClass(Native Method)
11-17 12:09:43.093: E/Parcel(830): at java.lang.BootClassLoader.findClass(ClassLoader.java:761)
11-17 12:09:43.093: E/Parcel(830): at java.lang.BootClassLoader.loadClass(ClassLoader.java:821)
11-17 12:09:43.093: E/Parcel(830): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-17 12:09:43.093: E/Parcel(830): ... 11 more
11-17 12:09:43.093: E/Parcel(830): Caused by: java.lang.NoClassDefFoundError: [generic]
11-17 12:09:43.093: E/Parcel(830): at dalvik.system.NativeStart.main(Native Method)
11-17 12:09:43.095: W/Binder(830): Caught a RuntimeException from the binder stub implementation.
11-17 12:09:43.095: W/Binder(830): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.estimote.sdk.Region
11-17 12:09:43.095: W/Binder(830): at android.os.Parcel.readParcelableCreator(Parcel.java:2147)
11-17 12:09:43.095: W/Binder(830): at android.os.Parcel.readParcelable(Parcel.java:2097)
11-17 12:09:43.095: W/Binder(830): at android.os.Message.readFromParcel(Message.java:523)
11-17 12:09:43.095: W/Binder(830): at android.os.Message.access$000(Message.java:32)
11-17 12:09:43.095: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:480)
11-17 12:09:43.095: W/Binder(830): at android.os.Message$1.createFromParcel(Message.java:477)
11-17 12:09:43.095: W/Binder(830): at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
11-17 12:09:43.095: W/Binder(830): at android.os.Binder.execTransact(Binder.java:404)
11-17 12:09:43.095: W/Binder(830): at dalvik.system.NativeStart.run(Native Method)

Please help me how to solve this issue..?

Reply to this email directly or view it on GitHub:
#55 (comment)

@Harishy
Copy link

Harishy commented Nov 17, 2014

it's 0.4.3 version of estimote sdk and i tried with 0.4.2 also got same exception.

@wiktor
Copy link
Contributor

wiktor commented Nov 17, 2014

There can be some problem with that tutorial that you are using. Please just use our examples without extra layer of service (in this case EstimoteService).

@Harishy
Copy link

Harishy commented Nov 17, 2014

In the application level it is not working so i have used that service.And also i have posted my issue..
here..http://stackoverflow.com/questions/25446441/estimote-show-notification-when-the-app-is-closed

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