Problem with Persistable

I'm struggling a bit with data binding. I get data in XML format. I record it in the objects for later use.  These objects are made to be Persistable, because I want to store them in a hash which in turn, is stored in a persistent storage table.

The application consists of separate projects for the definitions of these objects (classes) are shared between projects via a source like many other classes. Basically, it's a substantive project with listeners and some modules of action and a GUI project with business logic. This division has worked very well so far.

The problem, in that I ran seems to emanate from having classes that define the data bound and made "Persistable".

These related classes that implements "Persistable" causes an error message at the start of the second project

in the Simulator.

Error starting MobismaLogHandler class ' bbcommon. BBConstants' multiply defined

Or is it another problem?

"I understand that if a class which will be shared between 2 projects and implement"Persistable"then it must be in a library?"

Pretty much.  To be 100% accurate, there may be a "definition" of a persistent class on the BlackBerry.  The best way to do this is to have classes as defined in a library and applications Persisted that share this library.

"I used a library to share code between projects in the previous version of the app, but changed to source bound because it seems more simple."

I think it's easier too, and she records the issues with packaging too since you know each "application" is completed. But this question is the result.

"Your suggestion to change package name defeats the idea of having a shared common source wouldn't be?"

Yes - because each "application" wouldn't be able to read the data stored by the other application.

Now, I'm not sure that I have enough information to make a recommendation with 100% confidence, but I think you have two options:

(a) create a library and import this library on the way to build projects that use it.  Then you can ship COD for each project and for the library.

(b) all merge into a single project.

There is a perhaps less alternative pleasant to the taste, and is to make all objects Persistable standard rim objects.  For example, you could store all your objects as strings in XML format and convert it into objects of analysis in the context of the recovery of the persistent store.  If your application program always gets an object, but the data that are persisted are the XML string.  But, apart from the fact that it's the conversion of objects to and from standard RIM Java classes, it also means as Persisted data will not be deleted from the unit when your application is removed.

Hope it makes sense.

Tags: BlackBerry Developers

Similar Questions

  • Problem with persistent keyboard on Satellite C660

    Hello

    I am the owner of a Toshiba Satellite C660-PSC1GE and my laptop suffers from the known problem keyboard (keys work twice or doesn't work do not at all).

    I've already updated my BIOS to the newest version 1.90, which, according to Toshiba, should have solved the problem. A reboot later, the problem persists however.
    Any suggestions? I really need laptop for work right now and would really like to avoid to bring it into a store.

    Thank you

    Indeed, the keyboard problem should be solved by updating the BIOS as shown here:
    http://APS2.toshiba-tro.de/KB0/TSB1103370000R02.htm

    Alternatively, you can try to press the "Fn" key then the "N" key then "1" in order to test if the number of keystrokes always displays
    But of course, it would be possible that the problem mentioned is not the same thing and possibly its related to a malfunction of the keyboard
    In this case, replace the keyboard to see if it would help.

    By the way: it works external USB keyboard properly?
    It the USB keyboard works correctly, while this problem is NOT related to the BIOS, but possibly with a malfunction of the internal keyboard.

  • Persistent problems with the Magic Mouse

    I have persistent problems with my Magic Mouse. He often stops followed (i.e. the cursor on the screen does not move when I move the mouse), or the input button on malfunctions (i.e. I don't click and drag, or cannot right click, or when I click on something and that you hold the button down it doesn't "stick").

    I called Apple and they took me through all the troubleshooting steps (reset the SMC, PRAM, etc.) and I finally get a new mouse. I got a new and have exactly the same problems!

    The ONLY thing that solved the problem by restarting the computer, or logging in and out. But the problem then begins again after anywhere from a few minutes to a few days (the most often within hours).

    Any ideas?

    Here is more information in case it is useful:

    • I plugged a wired Logitech mouse, and to my surprise, it also does not work. I thought that the problem was related to the wireless/Bluetooth connection, but this clearly isn't.
    • I have a Wacom tablet attached to my computer, and it works very well, no matter if it has connected (via USB dongle) wireless or wired (via USB).

    There seems to be something wrong with any particular software/system control the mouse.

  • launch of checkers problems: error: trying to re-launch your game. If the problem persists, it may be network with the server problems or a problem with the configuration of your firewall.

    Windows Vista can not launch problem of checkers: try to re-launch your game. If the problem persists, it may be network with the server problems or a problem with the configuration of your firewall. Please check your firewall settings by visiting the Open Ports FAQ.

    Original title: launch of the problems of checkers:

    Hello

    If you have not yet tried to disable the antivirus/firewall software, then try the following steps to disable them.

    Disable the anti-virus software: http://windows.microsoft.com/en-US/windows-vista/Disable-antivirus-software

    Enable or disable Windows Firewall: http://windows.microsoft.com/en-US/windows-vista/Turn-Windows-Firewall-on-or-off

    IMPORTANT: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks

  • Hi, I have a problem with the download trial version of adobe after effect cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support

    Hi, I have a problem with the download trial version of adobe after effects cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support. What seems to be a problem? Thank you

    Please try after effects configuration required for Mac OS and Windows

    Concerning

  • There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    Why?

    Please tell us what Adobe application you are trying to download. Please try creative cloud install app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

  • Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Ivan,

    If it's on the rectangular objects, you may have encountered the bug Rectangle Live which is limited to the MAC versions from 10.7 and 10.8, but not of 10.9 (Mavericks) or 10.10 (Yosemite). If all goes well, the bug will be fixed soon.

    Thus, a switch for the Mavericks or Yosemite with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool or the free transform tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious.

    Hello.
    I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
    I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

    If the problem persists in Mode without failure, could reinstall you Firefox in this way:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    Any improvement?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • Problem with the iPhone OS. Have to restore it several times and it now has white screen flashing with Apple logo

    Got my iPhone SE a little over a month since the Thailand of the Apple Store.

    First he couldn't restore entirely made from a backup so I had to delete all data and content then restored again. Then try to restore from a backup, still have problems (apps froze, failed to synchronize all of the apps, then tried to shutdown phone and glued on white background with the Apple logo).

    Try to third, I put my phone in recovery mode and restore as a new iPhone. All original content is now gone. Should it start again.

    Then small annoying problems occurred. For example, I could not find applications in the App Store, could not download new free applications, could not buy music on the iTunes Store app. It seems that Internet was frozen, when in fact it works always fine when try browsing on Safari. Facebook froze and could not push Home button to close App game graphics making static sound glitches but always disappear when him restart the application. Can't post photos on a social media application because my whole library of photos seems to be empty, when in fact he was always there. When I was taking pictures, the preview images were extremely blurry, and when checked in Photos app there is no trace of this photo that I took. I tried to close all the applications and open it again but the problem still persists. So I close the phone and restart it just to find that it stuck on the white screen with the Apple logo once more. Then, I took the phone to the Apple service provider. They restore the phone as a new iPhone for me and I had to start over once again. Only 4 days after this, my iPhone application suddenly found me a new unlock access code within 60 minutes without reason. I have to reset hard to solve the problem. And after that, the same day, my iPhone starts to blink on and outside and sometimes the white screen with the Apple logo appears.

    Whenever I said my problem of staff Support from Apple or the Apple service provider, they told me that it was a software problem. How can I when I do all these problems again and again from the beginning until now? Can anyone suggest me the right way to solve this problem? What problem do you think it's from? I can't take this anymore. I need a good show, not working iPhone undesirable. I can't keep it restore/reset/reboot over and over again like this. Please, help me.

    Sasawan

    You can watch some of my problems here on Youtube > >

    1 screen kept flashing white background with the logo apple and restart and turn off by itself. Sometimes I can go past lock screens, but it only last a few minutes, then it starts all over again > > https://youtu.be/tfygV57NmmY

    2 message when my phone push me to reset my unblocking reason code > > https://youtu.be/a_AKPWxfAfs

    3 static glitch sound on the Sims Freeplay game > > https://youtu.be/qw12RZ4yMqc

    Take it to an Apple Store for the assessment of the guarantee.  If you have restored to factory settings, and these problems persist, there is a hardware problem, no matter what you' re said.

  • Problems with allowing to use their own fonts, on and off the web pages are displayed.

    I refer to the option 'Allow pages to choose their own fonts, instead of my selections above' content > Advanced tab of the Options menu.

    When I have this option unchecked, allowing my font choices override the default generated image text for web pages, it seems that many icons and buttons on many sites are replaced by some sort of dysfunction hexadecimal code. They appear as small boxes with four characters inside. I'm sure someone knows the official term for what they are and why they occur.

    When I have the option checked, however, any generated text not graphics on many Internet sites appears as a police Stencil ugly that I can't just simply find the origin of the. It should not be and is obviously not the default font for all of these different sites. By "text generated image", I mean any text that is not integrated in the design of the page.

    This problem has persisted through several full re - installed. No indication of a solution for one or two faces of this problem would be highly appreciated. Thanks for reading.

    You must remove (uninstall) or reinstall Georgia font, if it is corrupt currently.

    You can use the System File Checker to check the font missing and corrupt files.
    It must be run from an elevated command prompt.
    Open a window cmd.exe as an administrator:
    Start, click programs, accessories
    Right click on command prompt and select "Run as Administrator"
    Click after the UAC screen
    After the cmd.exe command prompt, type: sfc.exe/scannow, and then press enter

  • Problem with SlingTV through Airport Extreme?

    I have a Motorola SB6141 cable modem, internet of Time Warner and an Apple Airport Extreme Base Station (later) for my setup. While SlingTV is not a great service, it was $ 20 a month and gave me what I need and has been much better than that Time Warner was in charge me for the same channels.

    Despite the problems of freezing SlingTVs or what not, for a while it worked. But one day a few months back it just stopped working. When you open the app, it either does not open or just turns and turns to be forgotten and never access the content. But if I try on my phone (Verizon LTE), or another network outside my apartment with the iPad or computer laptop, it works. So at home, I tried to go directly from the cable modem and right in the Apple TV (previously an Xbox) and when I do that it works. So really what it boils down to, is my Apple Airport Extreme Base Station router. If I'm either directly connected to the Airport Extreme Base Station (Apple TV ethernet to the router), it will not work, or if I use WiFi via the Apple Airport Extreme Base Station it will not work. But directly to the modem cable or on any network outside of my home, the service works.

    So in short, something about setting up Apple isn't allowing the Sling TV app to open or work on any device. I even did a rest of the plant and installing my Apple router once again, and the same problem persists.

    FYI - I use Netflix, Amazon Prime, Hulu and all the Apple TV, TV shows, rental movies and content without ever having a problem with opening or streaming. This only happens with SlingTV when you try to access content on any device (iPad, Apple TV, Xbox One, iPhone, Macbook Air) via WiFi or Ethernet via Apple Airport Extreme.

    I tried to provide all the little details that I could. If someone could please provide a solution I would really really appreciate it! Thank you.

    Well first of all try to port forwarding. Slingbox I guess would use a similar to SlingTV montage... Unfortunately when I google for it I see just people having so many questions like you... no rigging, no answer they give up.

    http://PortForward.com/English/routers/port_forwarding/Apple/AirPortExtreme/Slin gBox.htm

    It is the old airport of model, but the idea is correct.

    If you still have questions... There is a major problem... port 5001 is used by the airport for its installation...

    If I run a scan of port of network utility, that you will find that it is already used.

    Port scan started...

    Host port scan: 192.168.2.201

    Open TCP Port: 5001 commplex-link

    Open TCP Port: 5009 winfs

    Port scan has completed...

    My recommendation is to replace the airport as your main router... Something good market like the C5 TP-Link or the WR1043ND which is less than $50US. These routers use UPNP is missing on the airport. Continue to use the airport for your customers to apple as WAP and switch.

    BTW: this is no bad thing because you also have a known problematic modem... SB6121 and SB6141 have major problems... do a quick search and you can find a lot of posts about this.

    TWC has also now use IPv6... that can ruin.

    See the instructions for installation (same as comcast for TWC).

    http://mydeviceinfo.Xfinity.com/download.php?file_id=35

  • Problem with cursor - will switch to a link

    I was hoping that someone could help with this.

    My dad's Mac has a problem with the cursor. It uses the trackpad and when you try to click on a link, it will not work. The arrow does not change into a symbol of the 'hand' and it can not click on it. This makes it almost impossible to navigate. It seems that the links are not recognized. He tried to use a mouse via the USB port and nothing changes.

    He tried to update to El Captain but he can't because the mouse doesn't work. The simple, restart or turn off / suite does not work. The problem persists on Chrome and Safari.

    Any help appreciated, thanks.

    Hi Irbea,

    Thank you for using communities of Apple Support. I see that you are the dad had problems with clicking on the links on his MacBook. These are some great troubleshooting steps to try to solve this problem. I am happy using.

    According to the steps that he has already done, I'll try to test this in safe mode. This will allow his MacBook making some changes and prevent the loading of the software. Please follow these steps to safe mode:

    Try safe mode if your Mac does not end commissioning

    While you are in safe mode, you may notice that the MacBook is running slower or the screen flashes.  No worries, it's normal.  Read this article for more information about this:

    Graphics performance limited in recovery of OS X or in safe mode

    If you continue to have problems trying to test in a new user:

    How to test a question in another account on your Mac.

    Have a great day!

  • Problem with HBO go App on Iphone 6 s

    I am unable to play a video on the HBO Go app.  Instead, I get "error video, operation canceled."  I contacted the support HBO and they said that they were unable to reproduce my problem on their end, and that's why it must be a problem with my phone or apple.  I have an iphone more than 6 s.

    I tried the usual things, restart my phone. delete the app and reinstall, nothing works.  Videos of games apps fine (CBS, ABC, Comedy Central), so this isn't a problem with lack of power or my phone provider wifi.  I am able to read HBO video on my computer, so my internet provider account doesn't seem to be the problem either.

    Any suggestions?

    Also did you watch your content on another WiFi signal? Have you reset your network settings? I have this iPhone even with the same application, and when running on the same iOS 9.3.2,and I do not have the problem you describe, although I have experienced it in the past in a singular event. If none of these work for you move in the right direction to solve this, you can always go so far as to load a new installation of the operating system on your iPhone. I would recommend that you back up before make, but restore your iPhone to factory settings and do not restore the backup in order to test the service when your iPhone is free of any settings, settings or software. If the problem persists, I would potentially look at the configuration of the router.

    The backup of your iPhone, iPad and iPod touch - Apple Support

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

    Recommended settings for the WiFi routers and access points - Apple supported

  • Firefox does not display the colors of the pages of the site despite trying your troubleshooting tips or reinstall, while without this problem with Chrome or Opera isthere

    I'm surprised, because I use Firefox for years and never met such a problem. Any Web site I can get with Firefox has its missing colors. The background is white. Also color of tab header/Navigation etc are missing. There is no problem with the sizes of fonts or colors.

    I see that this problem is only with Firefox only. I tried your troubleshooting tips which "Tools - Options - content - colours - allow pages choose own colors..." and also reinstall the latest version of Firefox without any addons. Problem persists.

    I tried the same thing about websites using Chrome and Opera, which returned the original colors of page.

    Can someone help me please?

    absolutely perfect, cor - el.

    as you suggested, I went to control panel configuration-> appearance and personalization-> personalization-> then "change theme". I chose a basic theme and here... the colors were back.

    Thank you very much cor - el for your tip fast and blind.

  • Problems with the Smart keyboard (iPad 9.7 Pro)

    I recently bought the iPad Pro 9.7 inches, gray space, Wifi, 128 GB. IOS 9.3.1 of the operating system.

    A few questions that I met in my four days of using the iPad with the Smart keyboard:

    NOTE: the following problems persist despite a technical support call which lasted, I did 2 hours and 30 minutes. I had to restore my iPad settings by connecting to iTunes via my PC to reinstall the last iOS.

    (i) switching applications: if I want to pass, say, from safari to adobe, it is quite easy to do with the keyboard. However, there is an intermittent problem when the apps. When I try to open Adobe when I use safari, the screen of the iPad shows apps that are open as soon as I press the command and tab key.

    What is supposed to happen - I choose to open Adobe, Adobe opens.

    What happens to the contrary - Adobe does not open. Another "X" application that is currently running, opens. It is quite frustrating, because there is no pattern to this. If I use once more the keyboard shortcut to open Adobe, another application 'Y' which is running, open it now.

    In this case, I pointed out, often when the App Store is running.

    (II) command key: sometimes, shortly after I use the shortcut keys to turn on screen shortcut area (pop-up shortcut) - apps, this is supposed to happen if and only if you press and hold down the command key.

    This often happens when I switch to Safari.

    (III) keyboard not responding: a problem that I met today for the first time. My keyboard will not just respond. I had to disconnect and reconnect the keyboard for this function.

    (IV) on which the space key: to wake up the iPad, pressing the SPACEBAR is enough. You don't have to press the home button. Yet, sometimes the space key does not respond and you must use the home button.

    v) Quick app - keyboard shortcut crash switch function causes: if I want to switch from app to app 'X' 'Y', but mistakenly switch to 'Z' app, I immediately want to spend to 'Y '. However, I can't do this in quick succession. I have to wait a second or two before I can switch from 'Y' 'Z' app, otherwise the automatic switching app crashes and you have to wait once more for a second or two before moving on.

    My diagnosis:

    (I) it could be a problem with the smart connector on my iPad. A hardware problem. But it does not explain why the automatic switching app appears and passes correctly but eventually open the wrong applications. Also, it does not explain why the problem is intermittent.

    (II) a software problem. However, that would make me a face 5 questions at once. Sort of. I was surprised that, apart from the question of #3 and #4, there was almost no mention of other issues.

    To restart the iPad or to disconnect and reconnect the keyboard. But I don't think that anyone would be willing to do this 4 - 5 times on a daily basis.

    Update:

    So I used my keyboard all day yesterday without opening the App Store. And guess what? It has been working perfectly. All the above problems I mentioned were not available yesterday. I'll use the App Store today and let it run in the background to see how does my iPad.

Maybe you are looking for

  • My watch keeps randomly, dropping its connection bluetooth for my iPhone 5

    I need to load my watch and kept my iPhone 5 with me, so the bluetooth connection has been lost.  When I put the watch on my wrist the Watch not re - appariaient is not with the phone. It has finally connected but then dropped again in a few minutes.

  • Re: Can you create discs recorvery to new windows 7

    Hi allcan you create a recorvery disk that ships with toshiba tools and those added software when you buy a new proffessional of windows 7? _sceaniro_I have a toshiba laptop with vista home premium and I just bought windows 7 Professional of the stor

  • Video shift fails to record Slow Motion

    Video captures Wien with the time pass option, recording workshop, but after tar slowmotion correting ok and press on save, it does not store ens at the end of the Slow Motion version. 120 Hz video seam still ok. I tried the internal and external SD

  • 3.46 GB of usable ram but 8 GB installed

    Hi there im having a problem with my computer because its only letting me use 3.46 GB of ram instead of the full 8 GB I have installed can someone help me please?

  • BlackBerry smartphone Wifi turns on automatically

    Hello I tried everything that on the forums and nothing seems to work. Dungeons WiFi turn on and its killing my battery. With the PRIV is a huge problem, my phone really quick battery drains and I do not carry a set of chargers and banks power everyw