ApplicationMenuItem &; Contact = >; ClassCastException
Hello
As a first step, the code:
class Demo extends UiApplication { public static void main(String[] args) { boolean autostart = false; for (int i=0; i>> DemoMenuItem::run"); Logger.debug("Context : " + context.getClass().getName()); Logger.debug("Context : " + context.toString()); BlackBerryContact c = (BlackBerryContact) context; Logger.debug("<<< DemoMenuItem::run"); return context; } } }
So, I have two entrances: from the address book and icon. It works very well.
But, the built context crash!
And I don't understand why. I used samples of the RIM, to write this!
The output of the event log:
guid:0xBD0F38F00219F634 time:2009/05/13 15:07:23.0 severity:Debug Infotype:String app:Demo data:>>> DemoMenuItem::run guid:0xBD0F38F00219F634 time:2009/05/13 15:07:23.0 severity:Debug Info type:String app:Demo data:Context : net.rim.blackberry.api.pdap.ContactImpl guid:0xBD0F38F00219F634 time:2009/05/13 15:07:23.0 severity:Debug Info type:String app:Demo data:Context : net.rim.blackberry.api.pdap.ContactImpl@7db7adad guid:0x9C3CD62E3320B498 time:2009/05/13 15:07:23.0 severity:Severe Error type:Exception app:Java data:tion data: ClassCastException No detail message Demo Demo$DemoMenuItem run 0x1A5 net_rim_bbapi_menuitem SdkProxyVerb invoke 0x844 net_rim_bb_framework_api-3 ModelScreen invokeVerb 0x65B net_rim_bb_addressbook_app-1 ViewAddressCardScreen invokeVerb 0x7C0B net_rim_bb_framework_api-2 VerbMenuItem run 0x7617 net_rim_cldc-11 Menu show 0xA492 net_rim_bb_framework_api-2 SystemEnabledMenu show 0x50AF net_rim_cldc-9 Screen onMenu 0x760F net_rim_cldc-9 Screen keyCharUnhandled 0x7339 net_rim_cldc-13 MainScreen keyCharUnhandled 0x7721 net_rim_cldc-9 Screen dispatchKeyEvent 0x6151 net_rim_bb_framework_api-1 AppsMainScreen dispatchKeyEvent 0x2945 net_rim_cldc-9 Screen processKeyEvent 0x8B73 net_rim_cldc-10 UiEngineImpl processMessage 0x916C net_rim_cldc-6 Application processNextMessage 0x2207 net_rim_cldc-7 ModalEventThread run 0x5B2C guid:0xDAA64EAD4E49C5D5 time:2009/05/13 15:07:28.0 severity:Always Logtype:String app:net.rim.usb.pwd data :CbCn
Where is my problem? and could you give me a solution?
Thank you to
Nicolas
Hello
I found my problem...
I wrote:
import net.rim.blackberry.api.pim.*;
Instead of:
import net.rim.blackberry.api.pdap.*;
Sorry...
Moreover, it is a hidden class 'net.rim.blackberry.api.pim '?
I think that I found in your samples... but I can't remember where!
Kind regards
Nicolas
Tags: BlackBerry Developers
Similar Questions
-
Uninstall software update Apple says error in seller contact package package unstaller
Try to get itunes working to make a backup of my faulty iphone before repair.
First-itunes does not start says error. I'm trying to fix it, who said success but same error when you try to start it.
Then uninstall completely worked. Then reinstall that seemed to be over except for a message "an older version of Apple software update already exists" then he went down and install itunes apparently had not been completed.
Then I try to remove the update from the apple software and executed by an error in the installation program - it says there is an error in the installation and contact the supplier of the installation package. Same error if I run the uninstall command line program.
Try to repair the Apple Software Update of programs & features Control Panel and then try to update iTunes again.
For general advice, see troubleshooting problems with iTunes for Windows updates.
The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.
Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.
The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.
Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.
TT2
-
Since the update for Sierra, contacts do not appear in Messages - just phone numbers.
Since the update for Sierra, Messages no longer displays Contact names - only phone numbers. No instructions on how to remedy this. Ideas?
Hello
Go into the Contacts application and ensure that it uses the same account synchronization like the iPhone and other devices you may be using.
Also check the part of the accounts of the Contacts application preferences and make sure that it's only using one account.
21:34 on Friday. 7 October 2016
iMac 2.5 Ghz i5 2011 (El Capitan)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro (Snow Leopard 10.6.8) 2 GB
Mac OS X (10.6.8).
iPhone and iPad (2) -
Change the name of the contact in mail
In Contacts, I use (of course) an entry for families or couples, who share a single address.
But if I send an email to one of them, the recipient sees the name of the family or the couple's two names.
Is it possible to define a different name for each e-mail address?
Thank you in advance for you help!
The best way to do it is to have separated for each individual contact.
-
Empty the Dock and bring back the Contacts!
After using my Apple Watch for a year now, I am appalled by the latest changes in operating system.
The dock is tedious in comparison with the previous shot upward and along the method to access the information useful and shows a lack of understanding of the best type of movements required by the small screen. Information slide at the top are of little value compared to what has been replaced.
The contacts button has lost its functionality as well. Contacts were essential. Where are they now?
Even if it means a loss of face to admit the new OS *, asst last make it easy for the owners to return to the way the watch worked when they bought it.
I live in hope (very little).
You do not discuss Apple here. This is a user support forum at, and your comments on Apple should go here, http://www.apple.com/feedback and click on the box in this area. Read all the comments, they usually fail. He will tell you that when you propose, but things have changed because of the feedback.
Contacts are found in the phone application, or your Messages application, depending on what you want to do. In addition, your Favorites from the phone are found in the phone app as well.
-
Contacts on my iPhone 6 will not sync with Outlook 2016
I changed my computer and my Contacts Outlook 2016 will not be synchronized. My calendar and notes synchronization through iClloud and they are OK.
I ticked the box "Remove Contacts using what is on my computer" 3 times and I'm showing still some contacts on my iPhone 6.
How to get contacts on my iPhone? I don't want to use iCloud for contacts. He keeps double and triple contacts. want to manually sync Contacts via iTunes.
Thank you
Hi ACEs of the crime pool.
I see that you are having problems of synchronization of your contacts from your computer with Outlook 2016 to your iPhone. I want to provide a resource that should help you.
Take a look at the site of the direction to take to this issue:
See you soon!
-
How do as notifications from contacts priority to ring and silencing all the others?
I just bought a new 128 GB iPhone 6 seconds more and it's now the latest version of the iOS 10.0.2 software executing. I've used other platforms (Android, BlackBerry) and I miss one features are the ability to have only sound important contacts through notifications, but all others are silenced. It is very convenient when it is at work or out with friends that I get constant, a beep or vibration but am able to know immediately when, say, my child or my boss of messages me. The boss and the child have iMessage, if this is relevant, but others are on different platforms, so I hope that I can set up in general. E-mail applications that I use the most are iMessage, BBM, text, Facebook Messenger more telephone calls.
You can use a do not disturb to reduce to silence the alerts. You can configure specific contacts so that alerts text for them always come. Go to the contact you want to implement. Press "Edit" at the top right. Type your text. At the top of the list is "Bypass of emergency." Turn it on. Tap done. Tap done again.
You can also do the same for calls.
Not disturb will silence the alerts to third-party messaging applications. I don't know of any way around that.
-
Contacts/Mac OS x Server Push Notifications and macOS strange behavior Sierra Server
I have Sierra macOS Server 5.2 and the same "user01" account configured in Contacts.app on two computers of macOS Sierra 10.12 and a device unique 10.0.2 iOS (iPad). My expectation is that change on a device (for example to add a new contact) is in a few seconds on all other devices that are configured with the same account. However, this is not always true.
Invocation of manual synchronization (quit Contacts.app, start it again) still works correctly. However the changes on a device (for example to add a new contact) are not pushed to all devices. Usually, the change is pushed and data are synchronized immediately only to the last device configured with the account. Other devices configured with the same account are not automatically updated.
There are certificates valid push (push works on all devices, it's just seem to depend on which is configured earlier and who later).
The same applies to the Calendar.app calendar events using the Protocol CalDAV, push calendar notifications and server for macOS.
In the newspaper of apsd, on Mac OS processes, can even be considered that push message arrived at the apsd process, he was in the process of Contacts. The difference is, however, that AddressBookSourceSync process is not upload all the changes from the calendar server and macOS Contacts. Sometimes, the push message does not seem to happen Server NPP (based on the apsctl for the apsd log tool).
The problem has been caused with a single device by push-topic Subscribe APNS.
-
Members of the family can share Contacts? A member of the family is on IOS9 and others are on IOS10. Our calendars are sharing but not our contacts?
No, sharing of family does not share Contacts. He shares:
Purchases
(If you are registered) Apple's music
Family Photo album
Family calendar
Location sharing
Find my iPhone
Apple - iCloud - family sharing
See you soon,.
GB
-
import outlook contacts into iphone
Uh, I need help importing outlook contacts in my iphone.
Well, it is not easy unless you have an IMAP account that supports Contacts, like Gmail or Zimbra.
-
remove a phone number in the contact information
Hi my daughter and I shared an apple ID. She now has her own but I can't seem to retire his number from the list of id main apple of numbers and e-mail contacts etc she still gets weird iMessage and she is not able to add his number to his new account help please! @!
You disconnect from the iMessage and FaceTime on his device and connect you then return with his new Apple ID? If she checked in settings > Messages, send / receive, is his number and Apple ID the only checkmark beside it? Have you checked your device in settings > Messages > Send and receive, and make sure that your number and Apple ID are the only ones to be audited?
-
How can I change a default contact number to send messages
Some of my contacts have more than 1 number of cells. In the new IOS, the first time I click on the "Send message" icon, he asked me what number I want to send your message. Next time, it will automatically use the number I chose. But if I chose the wrong number, I can't find a way to reset, and then select a new number of 'send nessage' by default.
I thought about it. Open the contact, make a pressure farm (3D touch) click the 'send message '. It opens a menu where you can select the default number.
-
uogradee iOS 10.0.2. The new 6SPlus. Cannot use "share contact" w. "Share contact" text works only E-mail w. Any suggestions on how to get "share contact" "I work text msg w? Worked before detected to 10.0.2 last week great.
Hi gpp123,
I understand that you are not able to select the 'Message' option after choosing the option of 'Sharing of Contact' in the Contacts application. I'm more than happy to help.
If you haven't done so already, please restart your iPhone and this new test to see if you are still unable to choose the option of sharing via a message. You can find more information on it here:
Restart your iPhone, iPad or iPod touch - Apple Support
Once you have finished, try to test with other contacts to see if you can reproduce the problem. It can also help to try to create a new contact to test with. Once you're done, let us know the outcome of the tests.
See you soon!
-
My watch is missing the screen list of favorite contacts (for sending messages). How can I get that back?
Unfortunately, you can not. The ability to see the list of favorite contacts by pressing the side button on the phone has been removed, with watchOS 3. Now, you need to access it via the Contacts App or Siri.
Back to Apple's http://www.apple.com/feedback/watch.html , here, if you want to let them know you want to see him back.
-
How can I buy tokens to play poker zynga with an ITunes gift card that I download on my ITunes store account. the system on my IPhone gave me the following message "your purchase cannot be completed, to contact Itunes support support on this Web site, www.apple.com/support/itunes/ww/.
Click here and ask for help from the staff of the iTunes Store.
(145085)
Maybe you are looking for
-
This problem started happening only recently. I often keep my Firefox open all night with sites like rainymood.com or grooveshark.com playing, as well as several other tabs, including but not limited to Facebook, YouTube, and Reddit. Sometimes, after
-
Apple pencil and pencil pliers
Has anyone tried to add a pencil for the pencil of Apple clip to keep from rolling? Here's an example of what I'm talking about: http://www.amazon.com/Dclips-Faultless-12-Pencil-Clips/dp/B0052VWIXY/ref=sr_1_6? s = HP & ie = UTF8 & qid = 1450905057...
-
Find anything on my new HP Pavilion Slimline s5000 desktop with Windows 7?
I OFTEN need to know WHERE on my computer a file or a folder is, and I don't know how to do it. I use computers for 31 years! I need to know its complete track so that I can FIND it to move or refer to him. Can you tell me how to do what you please?
-
Cannot find the Cisco IP Cam on VSOM 6020
I am trying to add Cisco IP camera 6020 to VSOM but this model is not available. I use VSM v.7.0. Is there a solution for this problem or solution?
-
LSI MegaRaid 9261-8i drowngrade firmware
We recently had a failure of the Raid Controller on a C250 M1 with Oracle Solaris Server (Yes, I understand, it's old :)). The replacement raid controller a lot a more recent firmware, which seems to cause the Solaris to panic at the start. Is there