[svn] 3326: Clean up of resources was happening incorrectly.

Revision: 3326
Author: [email protected]
Date: 2008-09-24 06:58:09 -0700 (Wed, 24 Sep 2008)
Log Message:
Clean up of resources was happening incorrectly.
qa: yes, see bug report
doc: no
bug: LCDS-390
checkintests: passed
Details:
modules/core/src/flex/messaging/factories/JavaFactory.java
modules/core/src/flex/messaging/FactoryDestination.java
modules/core/src/flex/messaging/MessageBroker.java
modules/core/src/flex/messaging/services/AbstractService.java
modules/core/src/flex/messaging/services/MessageService.java
* createDestination should check on whether the destination already exists before trying to create the destination
* the behavior is now more consistent with addDestination
* this should minimize the possibility that the assembler class remains in the application scope even after the createDestination failure
* since both remove and stop call stop on the FactoryDestination, only remove the instance ref if the application is running when stop is called
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-390
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/FactoryDestination.java
blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java
blazeds/trunk/modules/core/src/flex/messaging/factories/JavaFactory.java
blazeds/trunk/modules/core/src/flex/messaging/services/AbstractService.java
blazeds/trunk/modules/core/src/flex/messaging/services/MessageService.java
blazeds/trunk/sampledb/flexdemodb/flexdemodb.properties

UlrikaJ, I've heard you talk of this before, do you
know of anywhere that gives a full explanation on the
use of dispose() for Windows and other classes? I've
never called dispose() and so I suppose I just get
away with it.I've collected some of these methods: close of Input/OutputStream, cancel of Timer and dispose of Graphics and Window. There may be more but I havent found any documentation other then the class documentation.
At first I couldn't believe that you sometimes have to call a specific termination method to avoid memory leaks. I argued that it must be enougth just to release all pointers to an object for it to be garbage collected. But Pervel finally convinced me with a memory leaking test program here at post 39,
http://forum.java.sun.com/thread.jsp?forum=31&thread=401418
When I realized I'd been wrong my face went crimson for a week because I had been calling Pervel a wannabe expert -:)
I've
never called dispose() and so I suppose I just get
away with it. Doesn't
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) sort
this stuff out for you?
I never know when to check for this kind of thing....Yes I guess if you have selected EXIT_ON_CLOSE both dispose() and System.exit() get called when the user closes the frame window.

Similar Messages

  • Problem restoring my iPod - "Resource was not found"

    My iPod hardrive is a little bit dodgy (to say the least.) When I try to connect it to my computer, it comes up with an error message that says "ITunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes. You may also try disconnecting and reconnecting the iPod."
    So I restore it, but then another message pops up that says "There was a problem downloading the iPod software for the iPod “iPod.” The requested resource was not found." and then iTunes stops recognizing my iPod.
    Any suggestions?

    i was also having the same problem. i seem to have fixed the problem but time will tell.
    here is what i did.
    1. you have to get rid of itunes 7. i did a lot of reading on the internet looking into error 1418 and 1429 and this is happening to a lot of people after they do the software update. trash everything except the itunes music folder, (where all of your mp3's a stored. don't empty the trash until you have your old songs back on your new old version of itunes 6, just to be safe.
    2. find a download for itunes 6. not the easiest thing in the world but you should be able to find it on a bit torrent or ask a friend that might still be running on that to send you a copy.
    3. you can try and restore your ipod with the old ipod updater that comes with itunes 6, (2006-01-10). it might not work the first time, it might not work after several. but at least give it a go. mine would update sometimes but then when i tried to play songs on it later it would just tear through songs and not play anything.
    4. open up your disk utility program. i ran a repair permissions and repair disk first, both times i got a message saying there was a bad btree situation going on. if you don't get this message, i suggest trying to restore it again before you go to step five.
    5. you are going to have to completely erase the **** thing. choose erase and pick the default option that comes up (mac os extended (journaled))
    6. your ipod is going to be in disk mode now, don't trip out.
    7. run the ipod updater again. once again, mine wouldn't allow me to eject the ipod once it was done so i just restarted it.
    after all this, it opened up itunes and asked me to name my ipod. everything has been cool now since this morning. good luck!

  • Access to a protected resource was denied.

    Hi Experts
    I need some help with this error.
    I created a small button on a html page and when i click on that button i am calling the url from smartcut.When i click on it, it runs ok and the output is there but it is also displaying a error.
    error is on a small internet explorer window,
    "Failed to run job.
    access to a protected resource was denied.
    Detailed Message: NoContentPublisherRole.
    Recommended Action: Logoff and logon again. If problem persists contact your local security administrator."
    I know the user that i loggedin has publishing access and i also tried log in and log off. didnt work.
    hyperion workspace version is 9.3.1
    hyperion ui version is 9.3.1
    hyperion server version is 9.3.1
    Thank you in advance
    Kumar

    Hi Florent,
    1.  For the first error "The name has already been shared":
    I recommend you can use the the cmdlet "Get-SMBShare" to list all share folders firstly before creating a new share, and check if there is share named "$unit" on remote server.
    2.  For the second error "The requested object could not be found":
    According to your script, you want to creat a new share on remote computer, then add this share folder to the new created namespace on file server, please try the script below:
    New-DfsnRoot -Type DomainV2 -TargetPath "\\$newDestServer\$unit" -Path "\\$RootNameSpace\$unit" -EnableSiteCosting $true
    New-DfsnFolder -Path "\\$RootNameSpace\$unit\$site" -TargetPath "\\$newDestServer\$unit"
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Error while trying to restore - "Resource was not found"

    I just got a replacement for my old 60GB color Ipod.
    I plug it in to restore to make it compatible for windows, and this is what I get:
    "THERE WAS A PROBLEM DOWNLOADING THE iPOD SOFTWARE FOR THE iPOD. THE REQUESTED RESOURCE WAS NOT FOUND".
    That's the error message that comes on when I try to restore.
    I am using the brand new iTunes.

    Thanks for the reply.
    I did try and changed it several times but that didn't work. After about 4 hours of trying and disconnecting and removing deamon tools like someon suggested, i got it to be read, only to tell me that it is corrupt and that it needs to be restored.
    After many tries again, i managed to restore it and start from scratch. It is currently working fine as I am loading it up with music. But if I disconnect it, that's it. No way to add any more new music, which completely *****.
    I dont even know what I can do by now, and I dont see what could be the problem.

  • Cannot Connect to the iTunes Store. Request Resource was not found

    I hope you can help me.
    I get the following error when trying to connect to the iTunes store.
    iTunes could not connect to the iTunes store, the requested resource was not found.
    I am running Norton Internet security and have allowed all permissions for iTunes.
    Following is the diagnostics log:
    Thanks,
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Dell Inc. Latitude D820
    iTunes 7.1.1.5
    Current user is an administrator.
    Network Adapter Information
    Adapter Name: {21F2991F-5976-4BE0-8031-064BC7AC9AF0}
    Description: Intel(R) PRO/Wireless 3945ABG Network Connection - Minipuerto del administrador de paquetes
    IP Address: 192.168.2.26
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.2.200
    DHCP Enabled: No
    DNS Servers: 192.168.2.25
    168.243.165.225
    Adapter Name: {CB99A2BD-1A04-482A-BC5C-53E5597BA70B}
    Description: Broadcom NetXtreme 57xx Gigabit Controller - Minipuerto del administrador de paquetes
    IP Address: 0.0.0.0
    Subnet Mask: 0.0.0.0
    Default Gateway:
    DHCP Enabled: Yes
    DHCP Server: 192.168.0.1
    Lease Obtained: Mon Feb 12 11:09:06 2007
    Lease Expires: Tue Feb 13 11:09:06 2007
    DNS Servers: 192.168.2.25
    168.243.165.225
    Network Connection Information
    Active Connection: Conexión LAN
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is off.
    Connection attempt to Apple web site was successful.
    Connection attempt to iTunes Store was successful.
    Secure connection attempt to iTunes Store was unsuccessful.
    A secure network connection could not be established.

    Has anyone actually tried this suggestion posted by jeffporfiro's. He seems to be posting in any topic related to iTunes Store connection probs.
    Is there any credibility to his suggestion? (below)
    <<jeffporfirio wrote:
    Solution is as follows:
    Goto your C:\WINDOWS\system32\drivers
    find a file named “hosts”, mine was located in a directory named “etc” under the “drivers” directory, rename the file, to something other than its name (eg. rem-old.host) and done ! >>

  • I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    Have either of you had any luck with this issue.  It began happening to me today when I was trying to purchase music on iTunes.  I have purchased music and games in the past and have had no problem.  Any help would be appreciated.

  • When i put my iPhone in the logitech dock and i start the music it stops at exactly 1 Minute. What's the problem? I cleaned the contacts, the same happened again. always after 1 minute the music pauses!

    When i put my iPhone in the logitech dock and i start the music it stops at exactly 1 Minute. What's the problem? I cleaned the contacts, the same happened again. always after 1 minute the music pauses!

    It is a known issue and un-conventional remedy.
    It is Hardware failure. I would get the iPhone changed for a good one.

  • HT201210 Hey guys, i was trying to restore my ipad 3 through itunes but it shows an error "The requested resource was not  found".. so what do i do now?

    Guys im getting an error "The requested resource was not found. what do i do???

    Make sure you disable antivirus and firewall.
    Reboot iPad and computer.

  • TS3694 hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    hi i had a trouble with my iphone 3gs so tried to restore my ios through itunes almost everything was happening at the end of the procedure im getting apopup showing error 29 how to resolve it ?

    jk82 wrote:
    im getting apopup showing error 29
    Try Here  >  http://support.apple.com/kb/TS3694#hardware

  • Telling which resource was not found on a 404 page

    Hello.
              I thought that it would be nice to have a 404 page that tells the user what
              he was trying to get but wasn't there.
              Full of hope I constructed the file error_404.jsp containing this:
              The requested document
              <%
              if ( null != request ) {
              out.println("<i>" + request.getRequestURI() + "</i>");
              %>
              could not be found.
              Unfortunately, this only tells the user that error_404.jsp could not be
              found, and that's not even true! =)
              How can I find out which resource was originally requested by the browser?
              Regards,
              Björn
              

    Hello,
    It looks like the classloader used to load TopLink cannot find your jar or sessions.xml. Have you tried using the SessionManager api that takes in a specific classloader, for instance:
    (DatabaseSession)SessionManager.getManager().getSession("default", yourPersistenctClass.class.getClassLoader() );
    Best Regards,
    Chris

  • Requested Resource Was Not Found

    I tried accessing the Music Store, but get a message popup saying
    "iTunes could not connect to iTunes Store. The Requested Resource was not found."
    I quit and restarted the computer, and launched again. Same message. It was working yesterday just fine.

    Some basic information would probably be helpful: your OS version, your iTunes version, how your system connects to the Internet, and what changes if any you've made to the system since it last worked. Otherwise people will be working in the dark to guess what to suggest.
    Regards.

  • HT201210 Im getting a message that says the ipad cant be restored because the requested resource was not found. what does this mean?

    Im getting a message that says the ipad cant be restored because the requested resource was not found. what does this mean?

    Hi timtim89,
    Thanks for visiting Apple Support Communities.
    You may need to restore your iPhone after placing it in recovery mode. See this article for the steps:
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    Regards,
    Jeremy

  • I am unable to clear my recent call list. Both the 'missed' and 'all' numbers appear even after deleting. It was happening on ios 7.0.4 and is present on 7.0.5. Any help.

    I am unable to clear my recent call list. Both the 'missed' and 'all' numbers appear even after deleting. It was happening on ios 7.0.4 and is present on 7.0.5. Any help.

    No.
    You got 2 more basic troubleshooting steps left before you make an appointment with the Apple genius bar for an evaluation:
    Restore from backup
    Restore as new
    http://support.apple.com/kb/HT1414

  • 48 Hours ago I started to upgrade to Mtn Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - FIX IT!

    48 Hours ago I started to upgrade to Mountain Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - HOW DO I (or you) FIX IT!?

    This is a User's Forum, yelling at us won't help. You have 90 days of customer support via telephone. Use them as they can interact with their system and hopefully get you back on track. Otherwise take it to them at the Genius Bar and have them make it good.

  • Clicked on Send for a cmposed email but it was not sent and the symbol circling showed something was happening.

    I clicked on Send for an email I had composed. All that happened is that the rotating symbol showed that something was happening but the usual message that the email had been sent did not appear within about ten minutes. I have had this problem occur occasionally with Firefox on this computer and on another one. I have lost parts of a number of emails due to this problem as the version I tried to save had more in it than in the last saved version.

    The timing does make one think the two things are related, but it may not be so.  I've spent hours debugging problems thinking they were related to coincidental occurances, when they were not, so do not make assumptions.  If you are concerned, take the phone to an apple store to have it checked out.

Maybe you are looking for

  • Don't see my original jpeg files when I transfer iPhoto library to hardrive

    I had a mac I bought 8 years ago and the hard drive wasn't big enough to hold all of my photos. I transfered all of my photos to a hard drive and I now have thousands of photos on my hard drive. Well then I bought a smaller and bigger capacity hard d

  • Error message when connecting external hdd.....NTFS 3G error.

    Im receiving the following error message when trying to connect a Clickfree portable hdd. I am also recieving the message when connecting a WD portable hdd that was previously working before installing the Clickfree hdd..... NTFS-3G Could not mount /

  • Considering having an apple genious install my memory for me...

    With desktop computers I am completely confident when it comes to installing extra memory, but I'm not really the same way when it comes to installing memory in a laptop. This may be just because I have never done it before, but anways... I was consi

  • HT4557 Help me transfer catch from my iphone to my laptop

    I have catch app on my iphone i didnt have a computer when they offered the link to download the info to a computer so now that i do anyone know how i can transfer my info to my laptop? how about how to open the catch app on my laptop so i can copy a

  • My rmbp's screen Randomly froze

    My macbook pro is rmbp 975, mid-2012, and half a month ago, I went to genius bar to change my screen. After that, in the rencent one week, my mac went to be frozen for three times, I don't konw what's the problem, but I guess it's maybe they did't in