Could not find class 'java.beans.BeanInfo'

I keep seeing this in my logcat, I can’t receive push notifications although my device is registered.

I am testing on Samsung Galaxy S2, Software: CyanogenMod 11, API Level 19

what would be the problem? I couldn’t find anyone talking about this on the internet…

Here’s my logcat:

03-25 18:52:49.187: E/dalvikvm(19467): Could not find class 'javax.servlet.http.HttpServletRequest', referenced from method weborb.util.ThreadContext.getHttpRequest
03-25 18:52:49.187: W/dalvikvm(19467): VFY: unable to resolve check-cast 2268 (Ljavax/servlet/http/HttpServletRequest;) in Lweborb/util/ThreadContext;
03-25 18:52:49.187: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x0006
03-25 18:52:49.187: E/dalvikvm(19467): Could not find class 'javax.servlet.http.HttpServletResponse', referenced from method weborb.util.ThreadContext.getHttpResponse
03-25 18:52:49.187: W/dalvikvm(19467): VFY: unable to resolve check-cast 2269 (Ljavax/servlet/http/HttpServletResponse;) in Lweborb/util/ThreadContext;
03-25 18:52:49.187: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x0006
03-25 18:52:49.195: E/dalvikvm(19467): Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSession
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to resolve check-cast 2270 (Ljavax/servlet/http/HttpSession;) in Lweborb/util/ThreadContext;
03-25 18:52:49.195: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x0006
03-25 18:52:49.195: E/dalvikvm(19467): Could not find class 'javax.servlet.http.HttpSession', referenced from method weborb.util.ThreadContext.getHttpSessionId
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to resolve check-cast 2270 (Ljavax/servlet/http/HttpSession;) in Lweborb/util/ThreadContext;
03-25 18:52:49.195: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x0006
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/security/Credentials;)
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to resolve instance field 5722
03-25 18:52:49.195: D/dalvikvm(19467): VFY: replacing opcode 0x54 at 0x0006
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/security/Credentials;)
03-25 18:52:49.195: W/dalvikvm(19467): VFY: unable to resolve instance field 5723
03-25 18:52:49.203: D/dalvikvm(19467): VFY: replacing opcode 0x54 at 0x0006
03-25 18:52:49.203: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/security/Credentials;)
03-25 18:52:49.203: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Ljavax/servlet/http/HttpSession;)
03-25 18:52:49.203: I/dalvikvm(19467): Could not find method javax.servlet.http.HttpSession.removeAttribute, referenced from method weborb.util.ThreadContext.setCallerCredentials
03-25 18:52:49.203: W/dalvikvm(19467): VFY: unable to resolve interface method 15202: Ljavax/servlet/http/HttpSession;.removeAttribute (Ljava/lang/String;)V
03-25 18:52:49.203: D/dalvikvm(19467): VFY: replacing opcode 0x72 at 0x000b
03-25 18:52:49.211: I/dalvikvm(19467): Could not find method javax.servlet.http.HttpSession.setAttribute, referenced from method weborb.util.ThreadContext.setCallerCredentials
03-25 18:52:49.211: W/dalvikvm(19467): VFY: unable to resolve interface method 15203: Ljavax/servlet/http/HttpSession;.setAttribute (Ljava/lang/String;Ljava/lang/Object;)V
03-25 18:52:49.211: D/dalvikvm(19467): VFY: replacing opcode 0x72 at 0x0011
03-25 18:52:49.211: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/service/WebORBCacheAttribute;)
03-25 18:52:49.219: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/util/cache/Arguments;)
03-25 18:52:49.219: E/dalvikvm(19467): Could not find class 'weborb.service.cacheinvalidatorevent.CacheInvalidator', referenced from method weborb.util.cache.Cache.ensureSubscription
03-25 18:52:49.219: W/dalvikvm(19467): VFY: unable to resolve new-instance 2579 (Lweborb/service/cacheinvalidatorevent/CacheInvalidator;) in Lweborb/util/cache/Cache;
03-25 18:52:49.219: D/dalvikvm(19467): VFY: replacing opcode 0x22 at 0x000b
03-25 18:52:49.219: W/dalvikvm(19467): VFY: unable to find class referenced in signature (Lweborb/service/WebORBCacheAttribute;)
03-25 18:52:49.226: I/dalvikvm(19467): Could not find method weborb.service.WebORBCacheAttribute.cacheScope, referenced from method weborb.util.cache.Cache.getTarget
03-25 18:52:49.226: W/dalvikvm(19467): VFY: unable to resolve interface method 16583: Lweborb/service/WebORBCacheAttribute;.cacheScope ()Lweborb/service/SimpleParameterAnnotation$CacheScope;
03-25 18:52:49.226: D/dalvikvm(19467): VFY: replacing opcode 0x72 at 0x0000
03-25 18:52:49.226: E/dalvikvm(19467): Could not find class 'weborb.service.ICacheInvalidator', referenced from method weborb.util.cache.Cache.getValue
03-25 18:52:49.226: W/dalvikvm(19467): VFY: unable to resolve const-class 2575 (Lweborb/service/ICacheInvalidator;) in Lweborb/util/cache/Cache;
03-25 18:52:49.226: D/dalvikvm(19467): VFY: replacing opcode 0x1c at 0x0002
03-25 18:52:49.226: E/dalvikvm(19467): Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.getValue
03-25 18:52:49.226: W/dalvikvm(19467): VFY: unable to resolve const-class 2578 (Lweborb/service/WebORBCacheAttribute;) in Lweborb/util/cache/Cache;
03-25 18:52:49.226: D/dalvikvm(19467): VFY: replacing opcode 0x1c at 0x0019
03-25 18:52:49.226: E/dalvikvm(19467): Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.invalidateCache
03-25 18:52:49.226: W/dalvikvm(19467): VFY: unable to resolve const-class 2578 (Lweborb/service/WebORBCacheAttribute;) in Lweborb/util/cache/Cache;
03-25 18:52:49.226: D/dalvikvm(19467): VFY: replacing opcode 0x1c at 0x000b
03-25 18:52:49.234: E/dalvikvm(19467): Could not find class 'weborb.service.WebORBCacheAttribute', referenced from method weborb.util.cache.Cache.saveValue
03-25 18:52:49.234: W/dalvikvm(19467): VFY: unable to resolve check-cast 2578 (Lweborb/service/WebORBCacheAttribute;) in Lweborb/util/cache/Cache;
03-25 18:52:49.234: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x000a
03-25 18:52:49.234: D/dalvikvm(19467): DexOpt: unable to opt direct call 0x40c9 at 0x0d in Lweborb/util/cache/Cache;.ensureSubscription
03-25 18:52:49.234: D/dalvikvm(19467): DexOpt: unable to opt direct call 0x40cb at 0x14 in Lweborb/util/cache/Cache;.ensureSubscription
03-25 18:52:49.242: I/dalvikvm(19467): DexOpt: unable to optimize static field ref 0x165c at 0x04 in Lweborb/util/cache/Cache;.getTarget
03-25 18:52:49.242: I/dalvikvm(19467): DexOpt: unable to optimize static field ref 0x165d at 0x0d in Lweborb/util/cache/Cache;.getTarget
03-25 18:52:49.242: D/dalvikvm(19467): DexOpt: unable to opt direct call 0x415b at 0xc5 in Lweborb/util/cache/Cache;.getValue
03-25 18:52:49.242: I/dalvikvm(19467): DexOpt: unable to optimize instance field ref 0x167f at 0xca in Lweborb/util/cache/Cache;.getValue
03-25 18:52:49.242: D/dalvikvm(19467): DexOpt: unable to opt direct call 0x415c at 0x5a in Lweborb/util/cache/Cache;.invalidateCache
03-25 18:52:49.242: D/dalvikvm(19467): DexOpt: unable to opt direct call 0x4166 at 0x6b in Lweborb/util/cache/Cache;.saveValue
03-25 18:52:50.406: D/OpenGLRenderer(19467): Enabling debug mode 0
03-25 18:52:50.476: I/ActivityManager(19467): Timeline: Activity_idle id: android.os.BinderProxy@419fcba0 time:136119361
03-25 18:52:50.476: W/IInputConnectionWrapper(19467): showStatusIcon on inactive InputConnection
03-25 18:52:52.640: E/dalvikvm(19467): Could not find class 'java.beans.BeanInfo', referenced from method weborb.reader.AnonymousObject.setFieldsAsBean
03-25 18:52:52.640: W/dalvikvm(19467): VFY: unable to resolve check-cast 2032 (Ljava/beans/BeanInfo;) in Lweborb/reader/AnonymousObject;
03-25 18:52:52.648: D/dalvikvm(19467): VFY: replacing opcode 0x1f at 0x001e
03-25 18:53:33.586: I/ActivityManager(19467): Timeline: Activity_idle id: android.os.BinderProxy@419fcba0 time:136162470


Hi Omar,

Does it occur when a push notification arrives to the device? What happens in the app right before you see the error? Is there an API call that triggers it?

Regards,
Mark

Hello Mark, thanks for the fast reply,

Actually since I started using Backendless I’m seeing this in my logcat. it doesn’t affect the app I am guessing cause I did succeed registering a user and logging in a user while having this error shown on my logcat.

my problem is that I am not able to receive a push notification.

Here’s my complete story:
I used parse.com as a backend service for my app and finished the app in like 30 days, worked really hard days and nights no break, and after calculating the proximate money I will have to pay them, It was it was not a realistic price, I only needed less than 40K push notifications a month but more than their 15M api request. I was ready to pay but not 3K $ / month, and after a long search I found out about backendless, which I respect btw, but the problem is that I can’t find a lot of tutorials or a single error solving step-by-step tutorial that actually tells me what to do and what not to do.

I cannot guess what would the error be by myself. I managed to create an activity and a textview to see the output of handling (receiving a push notifications) as mention in the codel of the api documentation.

Here it is:
http://support.backendless.com/public/PRAZd8dhDSTzb2Zze1AD.png</img>

I really need to move on, if I could receive just one byte of information I could continue from their but now all I got is this, and that weird text in my logcat.

Thanks again.

Omar

Okay, good new !

I am able to receive push notifications msg title id etc…

I used to handle push notifications using a receiver following parse.com tutorials…

now I’m figuring out how to do it on my own… seems easy as I could start my old receivers using this method:

Intent intent = new Intent();
intent.setAction("com.example.THIS_RECEIVER");
sendBroadcast(intent); 

and adding

com.example.THIS_RECEIVERto my data in the notification section

if you know any better approach I would be thankful :slight_smile:

Best regards.

Hi Omer,

Let me put together a step by step guide for you to make it easier. I’ll post the link here.

Mark

Hello Mark,

That would be great, and I would be thankful :slight_smile:

As for now here’s what I did

Created a PushNotification_Service class, and added this code in onStartCommand():

Backendless.Messaging.subscribe(new AsyncCallback&lt;List&lt;Message&gt;>() 
                {
                    
                    @Override
                    public void handleResponse(List&lt;Message&gt; response) {
                        // TODO Auto-generated method stub

                        for( Message message : response )
                        {
                        Intent intent = new Intent();
                        intent.setAction(message.getHeaders().get(User.NOT_ACTION));
                        intent.putExtra(User.NOT_ID, message.getPublisherId());
                        intent.putExtra(User.NOT_NAME, message.getHeaders().get(User.NOT_NAME));
                        intent.putExtra(User.NOT_TIME, message.getTimestamp());
                        intent.putExtra(User.NOT_MESSAGE, message.getData().toString());
                        sendBroadcast(intent); 
                        }
                    }
                    
                    @Override
                    public void handleFault(BackendlessFault fault) 
                    {
                    //handle response here
                    }
                },
                new AsyncCallback&lt;Subscription&gt;()
                {
                public void handleResponse( Subscription response )
                {}
                public void handleFault( BackendlessFault fault )
                {}
                }
                );

and I have a Broadcast Receiver class registered in the Manifest that get called whenever I send a push notification with the header: “action”:“com.example.MY_RECEIVER”"

The PushNotification class works great,fast, and with, no errors when my main Activity is running, or onPause. But when my activities are destroyed the service still runs, but the method that handles receiving push notification in my PushNotification_Service class stops doing it’s work for some reason, although the service is still running.

I believe that it’s not a Backendless bug or something near to this, just a normal android life cycle that I’m not familiar with.

I hope that you mention how to keep listening for push notifications even if the application is terminated.

Thanks, a lot,

Omar

Everything is working great :slight_smile:

Thank you for your reply

if you still like to post the guide for anyone else that would be great!

Thanks again Mark,

Omar

Hi Omar,

I am facing the same problem and getting the exact same messages in my logcat.
I am beginner so i couldn’t figure out the solution from the above comments.
Could you please help me out?

and Mark,
if you still have that link, can you please comment it?

Hi Vaibhav,

Here’s the configuration guide link: http://backendless.com/documentation/messaging/android/messaging_push_notification_setup_androi.htm

Regards,
Mark

Hi Mark,Thanks a lot.

Everything is working perfectly now. Thanks for the help.