PersistentObject.getContents () returns null after app update
Hello
I'm trying to track down a bug with PersistentStore.
Usually when I update the app I get the getContents() stored content.
However, something in the code has changed from one version to the other and now getContents() returns null.
I made sure the id has never changed for PersistentStore.getPersistentObject (id);
I made sure that we use the same basic sdk (4.3.0)
I made sure that there are the data stored in the stored hash table
Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);
I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.
What information is needed, please let me know and I'll paste.
I found the problem after.
Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.
It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...
I hope this helps someone else who has a similar problem.
Tags: BlackBerry Developers
Similar Questions
-
% ROWCOUNT SQL return null after Forms_DDL on a dynamic SQL
Hello
I'm new to PL/SQL coding and is currently working on the development of some application in Oracle Forms as a result of the 10 g developer.
I'm having a problem getting a number of lines (number of rows affected by the last command dml) to register after using forms_ddl
I tried to replace the global variable with a string 1 potential SQL hard coded, I changed L_rowcount to digital, attempted to directly display rowcount % SQL via dbms_output.put_line... L_rowcount is just empty during the pop-up alert.PROCEDURE P_SQL_UPDATE IS L_string1 VARCHAR2(250); L_string2 VARCHAR2(250); L_string3 VARCHAR2(250); L_string4 VARCHAR2(250); L_rowcount Pls_integer; L_count NUMBER; L_alert NUMBER; BEGIN L_string1 := 'UPDATE ' || :global.G_table_nam || ' SET '; L_string2 := NULL; L_string3 := ' WHERE '; L_string4 := NULL; ... ... building strings 2 and 3 ... :global.final_sql := L_string1 || L_string2 || L_string3 || L_string4; FORMS_DDL(:global.final_sql); L_rowcount := SQL%ROWCOUNT; if FORM_SUCCESS then set_alert_property('ALT_COMMIT_ROLLBACK',ALERT_MESSAGE_TEXT, 'The # of rows affected: ' || L_rowcount || CHR(10) || 'Commit or Rollback?'); L_alert := show_alert('ALT_COMMIT_ROLLBACK'); if L_alert = ALERT_BUTTON1 then commit; else rollback; end if; else set_alert_property('ALT_INFO',ALERT_MESSAGE_TEXT, 'Error: ' || DBMS_ERROR_CODE || ' - ' ||DBMS_ERROR_TEXT); L_alert := show_alert('ALT_INFO'); end if; END;
Another solution has been L_rowcount: = DBMS_SQL. LAST_ROW_COUNT; ... This gives a slightly different result in the alert window, instead of being white, it returns 0. If something is definitely not right. Another is that in doing so, he always returned null/one field blank on the alert popup.
I have run tests on SQL % number of lines in the editor of TOAD and got results, but during the actual shape that l_rowcount is always null after the execution of the procedure (with the exception of being 0 using the dbms_sql.last_row_count).
I want to emphasize that change is not introduced without the additional validation in the FORM_SUCCESS at the end... I had read that the Forms_DDL is an implicit validation and committing the SQL without anything else happening... This seemed a little odd as well.
Before forms_ddl, I tried to use execute, exec, or run immediately on the SQL, but nothing helped. I think of one other option would be to pass this SQL to a datablock again together and use to execute query on this block? Don't know how to go about it.
The purpose of this form is intended for users to enter values in a generic form and when he meets the validation in the field triggers, they will support on submit and ideally before the update is committed I want users to be notified of the # of lines that would be affected by their proposed... change so if the # is huge they will know that they did something wrong before they affect the entire database.
Any input would be appreciated,
TravisTravis,
The built-in function Forms_DDL() emits an implicit VALIDATION because the transaction is issued as DDL no DML. Therefore, given that the VALIDATION is the last command issued by the call of Forms_DDL, the attributes of the cursor of the implicit cursor (SQL) will all be set to NULL. If you absolutely must have the number of LINES of the documents concerned, you can create a database program unit that you can spend your dynamic statement too and have it return zero (failure) or the number of affected records (success).In addition, since Forms_DDL() emits an implicit VALIDATION, you must create a BACKUP point before calling Forms_DDL() If you want the ability to RESTORE any changes made in the call to Forms_DDL().
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
Published by: Silvere July 26, 2011 09:29
-
HP ePrint iOS app is no longer find Photosmart C4780 after app update
I have a HP Photosmart C4780 connected via WiFi to my network, but unfortunately it is not supported by AirPrint on iDevices.
So, I was working with HP ePrint home & Biz iOS app (version 4.1), which has been very useful to me because he found the printer and allowed me to print from my iPad/iPhone.
Today I have updated the app on my iPhone to version 5 (now simply called 'HP ePrint' in the App Store) and after the update, the new version is not my Photosmart C4780. I did the Activation thing on the iPhone, as it has been asked to refresh the list of printer on my network in the all tab, but after refresh no printer is found.
Still I have the old 4.1 on my iPad (and if everything goes well in my iTunes library) and is the printer, I guess, through MSDN because it shows the name specified for this parameter.
So, the question is: have you abandoned support of Photosmart C4780 under version 5.0 HP ePrint iOS app? If so, why did ' t you this properly informed about the application up-to-date descriptive text in the App Store? A message like "some printers are not supported over ' would be helpul.
If HP ePrint should find the Photosmart C4700 series printers and it is a question, how to proceed from here?
Thank you.
Kenny,
Thanks for your update.
I tried restart before (I found this same "action plan" in another thread), but it didn't work, so I removed the app. Later with the 5.0.2 update I installed again the HP ePrint back once again and it worked. However sometimes when I open the app the point in the remains of the gray label and never turns green.
Now that you mentioned the reboot, I rebooted my iPhone and my C4780 shows the green dot. But I don't know if that'll keep green whenever I need. I will continue to check and see.
What makes me confident on the app update 5.x, it is that this kind of hassle should never with old HP ePrint home & version Biz (4.x), I keep in my iPad.
I will continue to work with both versions of the app on my iPhone (5.x) and iPad (4.x) and see how it goes. I really hope that last updated works better, as 5.x is a nice update.
-
VimClient.FindViewEntities returns null after a period of time
Hi all
I'm hosting a c# webservice in IIS that makes calls against our instance of vsphere to carry out certain functions. A basic call is to get a list of all virtual machines. Every so often, the webservice will get in a State in which the call returns a null value (we always have lots of virtual machines to the top):
List<EntityViewBase> views = c.FindEntityViews(typeof(VirtualMachine), null, null, null); if (views== null) throw new Exception("List of VMs from VimClient.FindEntityViews is null!");
At this point, I believe that this occurs if the Web service has not been restarted or recycled in some time. Most likely, I'm storing the VimClient incorrectly.
I'm caching of connection of VimClient in the following way. My reason for doing this is so save time on calls (it takes about 20 seconds to call VimClient.Connect () to each webservice call, if I don't do this).
(1) for Web service starts, I give the floor
private static VimClient _vsphereClientConnection = null; _vsphereClientConnection = new VimClient(); ServiceContent sc = _vsphereClientConnection.Connect(vsphereServerURL); UserSession us = _vsphereClientConnection.Login(vsphereUsername, vspherePassword);
(2) I can enter this instance of the VimClient every time I need to perform a function at the instance of vSphere
public static VimClient VSphereClientConnection { get { Initialize.waitForInitialization(0); return _vsphereClientConnection; } }
where Initialize.waitForInitialization () checks if VimClient has completed the connection to vSphere.
I cache this connection wrong? Is there a better way to do this / a how to do it at all? Or maybe I make a wrong assumption about why FindEntityViews returns null.
I thought I could detect in the VSphereClientConnection property if the connection has expired in any way and re - connect, but it's not ideal because then the user must wait until the initialization again. I'm also not sure how to check if the service is in bad shape without making a call that I know does not work in these States 'bad '.
Thank you
Jason
You can call SessionManager.sessionIsActive () to validate a session. You could also do some other data requests. Firewall between you and vCenter can sometimes drop idle connections (vCenter has a vpxd.httpClientIdleTimeout configuration value to increase or decrease and it should be higher that your firewall connection inactive drops).
You can also simply cache the session ID (which is essentially in the cookie). I don't know if the c# Toolbox has hooks to do this easily, however. Perl, and it works very well in web servers. The logic is get sessionID, attempting to load the existing session, in case of failure, try the new name of connection with the stored credentials.
-
Virus found in the records of Creative Cloud Files After app update on 28:th July
Hi all!
After several long hours sync today, Creative cloud finally comes to rest in this marathon-sync. However, there was a warning that some files will not download cause of what they contain viruses. (See URL pasted). http://1drv.Ms/1VMfowR
The files that are supposed to have viruses located in my folder, "2015\Required\Plug-Ins\Measurements F:\Creative Cloud Adobe Photoshop CC.
All this happened after is today (July 28) updated three applications creative Cloud (Adobe Photoshop CC 2015, Adobe Media Encoder CC 2015 and Adobe Premiere Pro CC 2015).
During the update, I stopped the sync and when updates have to do, I did it again. This is! Virus in Adobe products?
The thing is that I had a virus for years. What makes it even more scary, is that I now have viruses isolated in my folder where Cloud Creative has his backup and that I pay some 61 USD
(525 SEK) / month in subscription programs Adobe. This sux!The big question is, are the files really infected or they are somehow corrupt. I scanned the whole "F:\Creative Cloud Files"- and ESET online scannerfolder with Windows Defender . Nothing wrong was found. However, reading some old poster in this forum - they apparently had problems before with the virus in what today is creative cloud.
If you are not alone, LuziAnne and I'm sorry for the support that you got was... None.
Anyone else having issues of the last days and of course; a solution.
Kind regards
Anders MagrioteliHello
Just a word of warning on the deletion of these files and folders. If you need them for Photoshop plugins and you move from this place they can stop working in Photoshop. I would say that you keep you plugins in creative cloud folder and install them elsewhere on your system. Maybe your posture in the creative cloud location of the files as a backup etc.?
I will continue to work with internal teams on that for you. Could also provide me with the exact filenames of files that download and are captured in the virus scan?, you might even share files with me through a creative Collaboration of Cloud using my email address [email protected]. I suspect that this is a false positive virus scan for some reason any.
Thank you
Warner
-
orgVdcNetwork.configuration.ipScope return null after upgrade to 5.1
I'm currently testing my workflow because I upgraded my environment at 5.1. It seems that orgVdcNetwork.configuration.ipScope now returns a null value for all of my orgVdcNetwork. I was recovering information gateway and dns for use in my workflow of the ipScope. I can't understand where that information went. I tried it tears of the ExternalNetwork as well, and it's also coming back as null there. I've rechecked in vCD and everything seems seems correct through the web administration tools.
Paul
Hello Paul,
orgVdcNetwork and Exnternal networks are containing a list of ipScopes in vCD 5.1. In vCD to 1.5 was only a single ipScope.
In order to get the ipScopes of orgVdcNetwork as a table, you can do:
var ipScopes = orgVdcNetwork.configuration.ipScopes.ipScope.enumerate ();
Enumerate() funtion replaces list table. If you have a single ipScope in the list, you can use it asipScopes [0];Same thing can be applied to external networks.I hope this helps! -
Health after app updated iOS at level 10, can't enter manually blood sugar longer?
After the upgrade to iOS 10 can I enter is no longer blood sugar? I followed my blood sugar every day for years. It seems now there is no way to do it manually. WHA' happened?
Try these general steps. They could help.
1 reset your iPhone by pressing and holding the sleep/wake and home buttons.
2 disconnect you from your iCloud account and reconnect again.
-
After new update blackBerry smartphones I had problems
Before upgrading my blackberry button the 'A' the keyboard would lock my phone so that it needed a password to return. After the update button "A" only locks the keyboard. Is there anyway that I can fix this? Was it before malfunction?
I don't think you can do it. I think that you can configure the safety lock to a touch of comfort to the game faster
-
After the update of the app, can not read the store persistent on some devices
Hello
I have a problem in an application I was able to reproduce in a simple test application.
The test application writes some info in the persistent store, then can read back and it seems to work fine.
If I change the version number of the application, then download the new version (by downloading a jad file in the browser), he invites me to replace the old version w / the new version, which I confirmed. After you download the new version of the app, he invites me to reboot the device, what I'm doing.
On most of the devices I tested this, after the reboot, when I run the app update, it works as expected - it can read the value written in the store persistent by the earlier version of the application.
However, on some devices, it is unable to do.
Debugging a bit, the error occurs when you try to get the object persistent via:
PersistentObject po1 = PersistentStore.getPersistentObject(MY_KEY);
This survey line an exception - exception message is simply 'null '. I don't know what is precisely the type of exception since it is a static method should not throw any exception that as far as I know, so I'm just catching a generic java.lang.Exception.
The same - in the version update of the application, if the software tries to write to the store persistent by using the ID of the object, the result is the same - the call to getPersistentObject throws an exception "null".
Note that I'm not changing anything this either on the object that is saved in the persistent store, and I'm not changing the identifier of object between the versions of the application.
A device on which I can reproduce this issue systematically is a Blackberry 9800 (Torch) running 6.0 Bundle 2647.
Any advice or suggestions how to debug this appreciated.
I tried to reproduce this on a Blackberry 9800 (Torch) running 6.0 Bundle 2647, identical to what noted you above but find the code example you posted worked well. Were there other changes between the versions other than increment the version number?
Is - what happens on multiple devices or just one? If it is just a device you can try to reload the software of the device in case anything is damaged.
-
After I updated my BlackBerry App World to 3.1.4.25 version, the BB App World installed applications list is empty but I can always use them. Tried resets to 3 or more soft, uninstall and re-install BB App World, try using the desktop software and synchronization of media, but the list is still empty. Now, maybe it's not a problem but it's still boring, that I will not be able to know when new updates are available for my apps unless I have all uninstall and re - install again, I guess that. If someone else has had the same problem or everyone has set this thing yet?
Hello and welcome to the community!
I suggest that you clear the cache of the AppWorld application:
1. open the App World
2. go to my world
3. follow one (and only one!) of these steps:
3. for the BB keyboard-oriented - hold down the ALT key and press on, in the sequence R, then S, then T
3B. for touch screen only BBs - hold the num-lock (! 123 button) so that it hangs and then press on, in the sequence 3, then 4, then)
3 c for the most recent (e, g., OS6 and 7) BB s, see this KB:
- KB24714 How to clear the cache of BlackBerry App World
4 AppWorld must close
5. If your BB locks after issuing clear cache, do a battery pull reboot
6. return to AppWorld/MyWorld (it can be slow, while it re - sync).
If (4) stage arrives not as described, then the empty the cache failed.
I hope it'll work for you! Good luck and let us know!
-
It happens more frequently when you exit the full screen of a video. for example, youtube, dailymotion, nbc.com - the entire site with embedded video players.
When you exit the full screen, the page goes back 2-3 pages. And no, I'm not clicking on videos related everything fullscreen all the time: that's all by launching full-screen and full-screen, all on the same page of output video.
This happens less frequently during the passage of the tabs - but if I switch to another tab, then return, the first tab will load the page that I've been there are 2 pages.
More information: when this happens, the "arrow" is grayed out and the page that loads is on the list of the "arrow" twice - lower in the list where it should be, as well as the top of the list, as if I had clicked on a link to this page.
All this started immediately after restart Firefox after updating to version 25 - no other changes have been made to my computer.
The problems were with HTML5
Subject: config > media.webm.enabled > false
Problem solved! BY ME!
(Attached picture is a screen CAP that shows up if HTML5 is disabled. I had noticed before the update of Firefox, but it was never enough to the top of long to actually read, and I didn't really like. When she returned immediately after the deactivation of HTML5, I did a screen CAP to see what has increased. Oh I see... something worked, so some fool decided to fix it... Genius!)
-
Clock radio app does not work after last update 6.0
Hey
After the update to Android 6.0 my alarm app works only some time (wake up Xtreme).
He worked all the time and was stable before the update, but now he "forgets" to sound the alarm.There is no update for the app...
What should do?Leave a comment for the developer of the app on his game store page, maybe she was not updated to be fully functional under Android 6 and requires optimization. You can use an application of different wake up at the same time, I recomment "in due time".
-
Sep 15 2016 APP store works is not after IOS update
Hello everybone. Hey I have a question and I apologize if it's already there somewhere. I just updated the newer IOS system and for the life of me, I can't have in the APP store. Not the one iTunes but the real application icon. I now have several app updates, but I get a warning "cannot connect to App Store. I scoured the net, but all that I keep finding is questions on iTunes store. It comes to my application, I have a problem with... for now. Suggestions anyone? Very much appreciated. Don't know what else to do. Thank you!
Phone: 6 sec
Hi coryfromphoenix!
I see that you get an error message when you try to download from the App Store. I know it's important to be able to update your applications, so I'm happy to offer assistance. Please follow the instructions in this article:
If you cannot connect to the iTunes Store
Thank you for using communities of Apple Support.
See you soon!
-
App update work does not after updating IOS 10
Hi guys,.
After the update my 6plus iphone to IOS 10 yesterday, I have a problem with the update of the applications on the Itunes store. Updates are not downloaded. IPhones shows it starts the download but nothing happens.
Tried via 4G and Wifi but no difference.
Help much appreciated.
Thank you
TBirdGarage
Restart your iPhone, and then try again.
- Press and hold the sleep/wake button until the Red slider appears.
- Drag the slider to turn off your device completely off.
- Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
-
The YouTube app has bugs (somewhat) after firware update on 46TL933G
When a video is completed and begins the next video in the playlist, the following video has a black screen. Sound works, the command bar works, I can press the back button to go to the menu. However, all the videos now until you restart the application has a black screen.
If I go to the next video before the end of a video, the video is displayed normally.System information:
6.9.JD.1 January 18, 2013-74.8.30.4
MBOOT Version: 00545609
MFC Version: 246009I tried to reset the settings of the TV. I guess that's a programming mistake.
Post edited by: mars199
It s required to reset the TV after each update of the firmware.
Select Reset TV resets all settings, including registered channels, to their original factory values.
(1) in the system configuration menu, press arrow up or down to select Reset TV.
2) press OK to select. A screen appears warning that all settings will be lost. Press OK to continue.
Maybe you are looking for
-
Problem unlocking security lock
Hello! I upgraded yesterday from Snow Leopard to El Capitan, and I'm having a problem to unlock the lock of security and confidentiality. I need allow installing applications from any external site. The password is correct, but locking never opens, s
-
Caught of having applications in a folder, the room/memory than on different pages on iOS devices? I want to make the most of my storage on my iPhone and I wonder which of them is the best approach. If it makes a difference, I'll be upgrading my iPho
-
Black lines on the right side of the printed document Hp 8600 N911g
I have problems with my HP 8600N911g. I have several vertical black lines on the printed page of right hand margin. This only happens when I copy or scan. Printing from my pc is fine. I did all the cleaning, cutting for over an hour and reset to f
-
I just accidentally deleted an email from my junk mail and then emptied. Is it possible to get it back?
-
print spooler is manual and off the re-boot
After making spooler running in services, and automatic printing is again manual and not started on a re-start, getting permanent plse parameter. Printer - Canon Pixma MP270 under XPpro SP3, cannot update all drivers such as use of canon "material an