Can not access the Instance Data of a Singleton class from MBean

I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
Can anyone explain or have hints on what's happening ? Any help will be appreciated.
I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
http://www.theserverside.com/discussions/thread.tss?thread_id=12194
http://www.jguru.com/faq/view.jsp?EID=1051835
Thanks,
Krishna

I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
Can anyone explain or have hints on what's happening ? Any help will be appreciated.
I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
http://www.theserverside.com/discussions/thread.tss?thread_id=12194
http://www.jguru.com/faq/view.jsp?EID=1051835
Thanks,
Krishna

Similar Messages

  • My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    Force close the App Store app and reset the iPad. No data will be lost when you reset the device.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • I can not access the internet through Nightly because of this message : COULD NOT FIND THE MOZZILLA RUNTIME.

    After i updated the browser i can not access the internet. Can you help me please?

    Hello LOUISE80, try a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from https://www.mozilla.org/en-US/firefox/all/ and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    Now, go ahead and reinstall Firefox:
    * Double-click the downloaded installation file and go through the steps of the installation wizard.
    * Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [[Troubleshoot and diagnose Firefox problems#w_5-reinstall-firefox|here]].
    <b>WARNING:</b>Do not use a third party uninstaller as part of this process. Doing so could permanently delete your [[Profiles|Firefox profile]] data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be easily recovered unless they have been backed up to an external device!</u> See [[Back up and restore information in Firefox profiles]]. <!-- Starting in Firefox 31, the Firefox uninstaller no longer lets you remove user profile data.Ref: Bug 432017 and https://support.mozilla.org/kb/uninstall-firefox-from-your-computer/discuss/5279 [Fx31] Windows uninstaller will no longer offer the option to remove personal data -->
    Thank you.

  • Can not access the media card files Blackberry 8310 - HELP

    Can not access the media card files Blackberry 8310.
     I had a battery drain problem. The unit would only last 16 hours before completely drained. Purchased a new battery with the same result. I figured that I should try a complete reset so I did a hard wipe. Once that was done and I loaded the unit back up and returned online, the battery drain problem was resolved but now I can not access the media card.
     Here are the messages:
     “A media card has been inserted that contains encrypted content which will be unaccessible by this device”
     I can see the files. I have transferred them to my PC via the SD card but I can not open them. Here are the settings:
     Media card support – ON
    Encryption Mode: - Security Password & Device
    Encrypt Media Files – YES
    Mass Storage Mode Support – OFF
     Please note – I can not change the encryption mode since it is set by policy
     Security Options – General Settings – Content Protection – Disabled
     The version of Desktop Manage I am using is 4.2.1.8. When I try to use the Media Manager to move the files, I get an error message and can’t move the file. If I access the file on the card and try to display it, I get:
     Unable to display file /media card/ pictures/ing000000xx.jpg.rem
     Here is what I have tried (from the advice on this board):
     1)     Read the files directly off the media card – No good
    2)     Create a “new” folder on the media card and move a file into it then try to read it – No good
    3)     Email the file then read it – No good
    4)     Reset Encryption mode to off then try – Can’t do it – IT Policy setting
    5)     Be sure that the password was set the same as before the wipe (setting is password & device) – Can’t do it – The Blackberry prevents me from using an old password.
     So I think I can’t read the files because I can’t replicate the encryption key. Could that be right? My problem is that I do not understand why this would be the case. It is still the same device and since it knows what the old password was (because it would prevent me from using it again), why would it not generate a key to access the files?
     All I am trying to get off the card are pictures on my 6 year old … some are priceless. Can someone help me do this? One would think that this should not be this hard but from all the postings I have found, it seems that it is. And yes, shame on me for not moving the files before I did the reset (THAT will never happen again!) but this being unrecoverable is unconscionable given how many seem to find themselves in this situation.
     Thanks for any help you can offer!

    Not sure why you couldn't see them using mass storage mode. Did you have the pics stored on your media card? Try going to media-menu-explore-media card-blackberry-pictures See what the extension is on your pics. If any have the extension such as .jpg.rem they are encrypted.
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

  • TS1398 I have connected my iPad 2 to my Mac Air over blue tooth.  Booth say they are connected to each other.  But I can not access the internet on the IPAD.  I can connect over blue tooth from my iPhone to my iPad with no issue.  Any thoughts?  Thank you

    I am trying to connect my Ipad 2 to my Mac Air over bluetooth.
    I can connect them to each other, and both machines say they are connected over bluetooth.
    However I can not access the internet on the Ipad...says it is not connected to the internet.
    Does anyone know if you can fix this?
    THank you

    Yes I tried this manyfold. But did not work.  Reading on, I took Tesserac's advice. Shut down router and computer.
    Start router after 15 minutes and wait another 10 minutes before starting the computer.
    Et voila.... everything is back in working order,
    Regards form Curacao, Dutch Caribean.
    Pete van Linden

  • About 1 year ago, I can not access the App Store. The message that appears is: "One Moment Please. Connecting to the iTunes Store. Loading ... I've tried all the aids presented in this and other forums and nothing solves. iTunes connects normaly...

    About 1 year ago, I can not access the App Store. The message that appears is: "One Moment Please. Connecting to the iTunes Store. Loading ... " I've tried all the aids presented in this and other forums and nothing solves. iTunes connects normaly...

    Your profile indicates your Mac is running v10.7.2
    If that is correct, updating your system software may help.
    Click Software Update from the Apple menu.
    Restart your Mac after updates are installed then try the App Store.
    If you can't update that way, there's a workaround.
    Install the OS X Lion Update 10.7.5 (Client Combo)
    Then restart your Mac and try the App Store.
    messaged edited by:  cs

  • I can not access the app from itunes

    Hi, can someone help me solve this problem?
    I have an iPhone 4 with iOS 7.0.3 with iTunes 11.1.2 and when I want my iPhone to sync from iTunes can not access the iTunes app tab I close iTunes without possibility of doing something.
    this only happens to me with the iPhone, I have also an iPad 2 and it works ok.

    Hi tankard77,
    Thanks for visiting Apple Support Communities.
    If iTunes is quitting unexpectedly when you try to sync your iPhone, start with the troubleshooting information in this article:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Best Regards,
    Jeremy

  • MY APPLE TV SHOWS THAT iT IS CONNECTED TO MY WIFI, BUT CAN NOT ACCESS THE INTERNET

    my apple tv found my wifi, but can not access the internet??

    I have been on the phone with Apple, done all of the trouble shooting they have recomended. When I attempt to connect it to the internet I get a message reading "your apple tv is connected to your wi-fi but cannot connect to the internet. I have plugged the modem right into the apple tv and it still won't work. This is the second device I've used. (apple gave me a new one after the first didn't work). I just thought there might be someone out there who had the same issue and knows how to resolve it.

  • HT204057 I have the latest airport extreme. can not access the files.

    I have previously time machine backups for two macbook pros on same drive.
    However, I connect the drive to the airport extreme and although I see the drives and the backups, I can not access the files over Airport Extreme. 
    What am I doing wrong?

    You can't access a Time Machine backup that way. Connect the drive directly, hold down the option key, and select Browse Other Backup Disks from the Time Machine menu.

  • On my ipad i am receiving a message iCloud backup "i cloud backup can not access the account . review your account in information settings .  the screen goes blank  if i push  the ignore or the settings button. what do i do

    on my ipad i am receiving a message iCloud backup Cloud backup "i cloud backup can not access the account .
    review your account in information settings . the screen goes blank  if i push  the ignore or the settings button.
    what should i do

    Hold Sleep and Home buttons for 10 seconds until your device restarts, so you will be able to use your device again

  • Two days ago, I have a new iphone 4S. After I installed the OS and start the iphone, I found a strange screen says "!9D/JC" that blocks the iphone and I can not access the iphone until click many times on the "Desmiss"  button at the botom of the screen.

    Two days ago, I have a new iphone 4S. After I installed the OS and start the iphone, I found a strange screen says "!9D/JC" that blocks the iphone and I can not access the iphone until click many times on the "Desmiss" button at the botom of the screen.
    I appreciate if you could provide me support to solve this problem especially it consumes the battery a lot.

    Another post originally dated 5th Feb, 2012 with a slightly different unheard of error "%7D/JC".
    https://discussions.apple.com/thread/3710903?start=0&tstart=0
    The user also claimed that he didn't meddle with iOS. No solution could be found though.

  • I can not access the hard drive connected to my airport extreme!  Any thoughts?

    I can not access the hard drive connected to my ariport extreme.  When I use the finder to connect a server and type in the IP of the a. extreme, 10.0.1.1 it does not work and I get an error message.
    Any thoughts.
    A

    Is the hard drive formatted for Mac in Mac OS Extended (Journaled)?
    If yes, you may need to use a powered USB hub since the USB port on the AirPort Extreme is under powered and it is often necessary to use a powered hub....even if the hard drive has its own power supply
    If both items check out above.....have you checked Finder Preferences to make sure that "Connected Servers" will be displayed?
    Finder Preferences > General > Show These Items on the Desktop > Connected Servers
    Then with the Finder menus displayed at the top of the screen click the Go menu
    Click Network and the AirPort Extreme icon should be displayed
    Double click the icon to mount the drive on the desktop

  • HELP !!! I can not access the Internet Recovery In Mac Pro!

    HELP !!! I can not access the Internet Recovery on my Mac Pro (mid 2012)! Mac Pro has Internet Recovery ?

    "Regular" Recovery (from the Recovery partition on your Hard drive or your Time Machine Backup) remains available, but Internet Recovery (from firmware only) is not a feature on the silver tower Mac Pro. It is not on this list:
    Computers that can be upgraded to use OS X Internet Recovery - Apple Support
    But the basic recovery features are available if a recovery partition is available:
    OS X: About OS X Recovery - Apple Support

  • I forget the lock code and now I can not access the iphone. What I can do?

    I forget the lock code and now I can not access the iphone. I try to restore it, but ask me to go to iphone settings to which I have no access and I can not download the latest version of iOS to do it.
    Thanks!

    If you have a passcode to the screen lock that you've forgotten, restore the device from the computer to which the device is synced. For information and instructions, see:
    http://support.apple.com/kb/ht1212
    If that will not work, you'll need to put the device into Recovery Mode and then try the Restore again:
    http://support.apple.com/kb/ht1808
    If that still doesn't work, as a last resort try DFU mode:
    http://www.iclarified.com/entry/index.php?enid=1034
    If your device is running iOS 7 and you set up Find My iPhone (iPad/iPod),  however, then it has the Activation Lock on it and you'll need to enter in your Apple ID and password to activate the device after restoring:
    http://support.apple.com/kb/HT5818
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

Maybe you are looking for