Tough question - serialization cause infinate loop ?

If two objects with non-"transient" references to each other are serialized using ObjectOutputStream, will this create an infinite loop?
i saw this question posted on another forum and I had no freakin idea :=) but im curious does it ?
how can you get into an infinate loop situation while using ObjectOutputStream and serialization

Come on now. The people at sun are a bit smarter than that. If an object has already been serialized to a stream, the stream will not re-serialize it, it will just insert a reference to the objects position earlier in the stream.
so for example
class A implements java.io.Serializable {
   private B b;
class B java.io.Serializable {
   private A a;
}Serializing an instance of A gives this (approx.):
A{b=B{a=|}}
|       |
|-<--<--|

Similar Messages

  • FBL5N - BSEG-REBZG values cause infinite loop FDM_COLL_INVOICE_GET_BY_REF

    Hello,
    We have a problem where function FDM_COLL_INVOICE_GET_BY_REF looks at BSEG records in a loop. It finds the next BSEG record by using the contents of BSEG-REBZG.
    Unfortunately, some of our BSEG records point back to each other. We have the situation where BSEG "A" points to BSEG "B", and BSEG "B" points back to BSEG "A".
    For example:
    BSEG-BELNR   9100011111  ->  REBZG = 9111122222
    BSEG-BELNR   9111122222  ->  REBZG = 9100011111
    This data is causing the loop to execute infinitely as the exit conditions are never met.
    I cannot find a SAP Note that addresses this issue. It looks like the code involved is related to items in Dispute and Part Payments.
    Has anyone out there experienced this issue?
    Many thanks,
    Stuart.

    What release are you on?
    There is note 1105687 addressing the scenario when a credit memo is entered as an invoice reference in an invoice item which can cause such an infinite loop, but that note is only valid up to rel. 6.03
    There is also note 919415 but it is for even older systems.
    If you are on a current release, then creating an OSS message is your best bet.
    It would be theoretically possible to have a recent release with some already posted documents that were entered before the patch fixing such endless loops were applied... how likely is to have such old documents is another question. SAP support should help you to clean up the problematic records if this is the case.

  • Password Manager 4.6 and 4.7 causes CPU loop in tzres.dll

    T510 running Windows 7x64.  T510 is in a constant CPU loop with WMIPRVSE consuming the CPU as per Process Explorer.  Using Microsoft Sysinterals Process Monitor determine that the cause is constant calls to access tzres.dll.  Reboot in clean mode and one my one activate services and startup programs until the loop is observed.  It is only observed when Password Manager is started.  Do an uninstall of 4.7 and the problem goes away.  Start with 4.0 of Password Manager.  Each release from 4.0 to 4.5 work fine with no loop.  Installing 4.6 or 4.7 cause the loop.  All Lenovo drivers and programs are current.
    Any ideas?  Tom

    I'm testing a beta version of Password Manager which has solved the issue that I was experiencing.
    W520, i7-2820QM, BIOS 1.42, 1920x1080 FHD, 32 GB RAM, 2000M NVIDIA GPU, Samsung 850 Pro 1TB SSD, Crucial M550 mSata 512GB, WD 2TB USB 3.0, eSata Plextor PX-LB950UE BluRay
    W520, i7-2760QM, BIOS 1.42 1920x1080 FHD, 32 GB RAM, 1000M NVIDIA GPU, Crucial M500 480GB mSata SSD, Hitachi 500GB HDD, WD 2TB USB 3.0

  • HT1414 My Ipad is stuck in an " infinate loop" It goes from the" loading"( white apple on screen) to openning screen. I can slide but can't enter pass code. I let it drain the battery, no good. I have held the buttons, no good, can't enter the pass code

    My Ipad is stuck in an "infinate loop" it goes from the "loading" (white apple) to the openning screen. I can slide to the passcode entery screen but it will not take the passcode. ( when I type it it does not recognize on the screen)

    I suggest try getting it back to your stock iOS and forget about jailbreaking.
    http://support.apple.com/kb/TS1538
    Try a manual install (using DFU Mode), as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • [svn] 4870: TextView with textAlign="justify" causes infinite loop and eventual RTE.

    Revision: 4870
    Author: [email protected]
    Date: 2009-02-05 15:33:52 -0800 (Thu, 05 Feb 2009)
    Log Message:
    TextView with textAlign="justify" causes infinite loop and eventual RTE. Vellum sometimes returns width and/or height larger than the request width/height due to rounding error. This triggers a contentWidth/Height change event which triggers the scroller which comes back in to TextView updateDisplayList, etc.
    QE Notes:
    Doc Notes:
    Bugs: SDK-19144
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19144
    Modified Paths:
    flex/sdk/branches/i10/frameworks/projects/flex4/src/mx/components/TextView.as

  • Cookieless session causes redirect loop when deployed to Azure Website

    I have a website that needs to use cookieless session. The website works fine locally and the session key gets passed into each request url as expected. However, when deployed to an Azure website, the website requests cause a redirect loop by reloading the
    url over and over again with new session keys each time. I've tried setting regenerateExpiredSessionId to false but that does not have any effect. The Azure Website works okay with UseCookies, but I need to use cookieless session for other technical reasons.
    What can be done to resolve this issue or get more insight into why it is happening?

    Hi,
    Disabling the affinity can be done in two ways:
    In your application
    In a site configuration
    Which one did you tried.
    Regards,
    Azam khan
    I'm unmarking this as an answer. In no way does this answer the original question. In my previous reply I stated that I used web.config setting to disable ARR Infinity cookie. This did not resolve my problem. Also, could you please take a minute to describe
    why you think disabling this feature would solve the problem? The original link you posted does not mention cookieless session or give any description of why that would be related to my problem.
    Thanks for trying to help, but unfortunately this has not solved the problem. If you have more details, please provide them.

  • AD FS - KB3003381 causes redirect loop on login

    Hi,
    I'm using AD FS 2.1 for SSO (2 IIS sites and several WCF services) but my users have been seeing redirect loops when they try to login. Once the user's browser recognises the loop and interrupts it, they are able to either resubmit the request with a page
    refresh (depending on the browser) or navigate to the URL of the site and they are logged in, but this is not a good workaround. We are using SecurEnvoy for 2FA.
    This behaviour started shortly after KB3003381 was applied to the production environment, and I have replicated the behaviour on our staging environment. Removing this patch from the staging environment causes the login mechanism to behave normally.
    From Fiddler, once users have authenticated successfully using SecurEnvoy, they are directed to
    https://<AD FS proxy URL>/adfs/ls/?wa=wsignin1.0&wtrealm=<site URL>&wctx=rm%3d0%26id%3dpassive%26ru%3d%252f&wct=<UTC timestamp>
    which results in a 302 redirect to 
    https://<AD FS proxy URL>/adfs/ls/auth/basic/?wa=wsignin1.0&wtrealm=<site URL>&wctx=rm%3d0%26id%3dpassive%26ru%3d%252f&wct=<UTC timestamp>
    This should return a 200, but instead returns a 302 redirect to the same URL, until stopped by the browser.

    It seems that you have already asked in another forum: http://serverfault.com/questions/658095/adfs-2-1-redirect-loop-on-login
    Simply remove the installed update and contact Microsoft to report the issue: http://support.microsoft.com/ContactUs
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • External monitor causes earth loop problems

    When i connect an external monitor to my macbook pro it creates horrible interference, soudns like an earth loop somewhere but i can't stop it.
    Is very irritating!
    Any suggestions would be much appreciated.
    cheers,
    josh

    still has horrible interference. Think its not an earth problem now as the interence is more than a simple hum problem, it changes when i click mosue or open applications and can hear digital nastiness to it.
    I spoke to a lecturer at uni who has the same problem he seems to thinks its a design fault with the core audio processors position i nthe mac. Its very near next to the circuits for the external monitor and it causes the intereference or soemthing like that when an external monitor is connected. Though mac are known to be good for msuci production for stablilty and software support the core audio is far too noisey even without external monitor plugged in so i feel the only way to resovle this is with an external soudncard. When used with my RME fireface the interference disappears but this card is for my PC as i don't wanna be taking out adn about with me for obvious reasons! Maybe a nice edirol FA-66 will be in my stocking at christmas...
    cheers for the reply.

  • Question on how to loop through a variable amount of objects

    I have a csv file which I am parsing with powershell and it works perfectly. I would like to speed it up. Currently, I call a line that is customized for each groups list of subnets.
    I have about 30 groups.
    Some groups have one subnet, some have 5 subnets.
    I want to set up some sort of loop to parse everything while executing a single Import-CSV. Currently I call Import-CSV once per group. It takes me about 2-4 minutes to parse the entire file depending on the speed of the machine.
    The csv file has about 30,000 rows. I am not concerned about running out of resources. This is as much a learning challenge as a desire to make better powershell scripts.
    Below is a portion of the one liner that would parse the entire csv file looking only for those items that match, and writing them out to that groups specific csv file.
    Example #1
    Import-Csv $HostList |  Where-Object {$_."IP Address" -Match "^192.1.*" -or $_."IP Address" -Match "^192.2.*" -or $_."IP Address" `-Match "^192.3.*"  .....}| do more stuff...
    Example #2
    Import-Csv $HostList |  Where-Object {$_."IP Address" -Match "^192.7.*" ....}| do more stuff...
    The example above is just a snippet from code that works perfectly.
    The problem I am asking for help with is, when I loop through the items I am matching against (subnets), if one group has 3 items to match against, another has 1, another has 7, how do I set up such a loop?
    Am I using some sort of 'while'  $_."IP Address" or...?
    Do I create a big 30,000 array (Does PS even use arrays?)
    I would love to know what this type of looping is called, and what I can read with examples on how to understand approaching this challenge..
    Thank you for any help.
    -= Bruce D. Meyer

    The reason for the parsing (I thought I explained it, must have been too vague) is I have about 30 agencies in a csv file.
    Each agency can be determined by their subnet(s) and domain(s)
    I need to put all lines in the csv relating to each agency in their own separate csv file to distribute to them so I am not sharing agency 'A' info with the other 29 agencies.
    I get the regex comment. Thank you. For some reason I am rather hesitant to use PCRE under windows. I'll see how it works.
    Your comment on "Reloading a large file repeatedly takes more time", is the exact reason why I asked the question. I want to get away from that.
    I appreciate your quick reply, I think your example will work nicely. 
    -= Bruce

  • FLV Array question - final flv file looping

    So the first part of my question was kindly and quickly
    answered by Rothrock. But I've got a new question that has arisen.
    When I set these up as an array it's ignoring the settings in the
    parameter field for autorewind which is set to false and it's
    looping the last movie file in the array. Is there anyway to avoid
    this by adding a snippet of new code to this code below:
    import mx.controls.MediaDisplay;
    flvURL = new Array();
    flvURL[1] = "preroll_live.flv";
    flvURL[2] = "atlas.flv";
    flvURL[3] = "jones_outro.flv";
    counter = 1;
    my_FLVplybk.contentPath = flvURL[1];
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    counter++;
    if (counter == flvURL) {
    counter = 1;
    my_FLVplybk.contentPath = flvURL[counter];
    my_FLVplybk.addEventListener("complete", listenerObject);
    Preferably I'd like to either:
    Have the movie reset to an array file of my choice but not
    auto play or just Stop the movie on the final frame.
    Any help here will be greatly appreciated.
    Many thanks!
    -Kjup

    Anyone have any ideas on this...let me know if you need more
    details.
    Thanks,
    Kjup

  • Windows Installer Infinate Looping When Starting CR XI R2

    Post Author: Mark1110
    CA Forum: General
    Hi, Our company just got Crystal Reports XI Developer. I installed it on my machine and I noticed there is a newer version Crystal Reports XI R2. I copied it to my machine and installed it. It installed fine, however when I click the icon, the windows installer tries to configure Crystal Reports XI to my machine. I let this run for over an hour but all it does is loop through the same thing. If I click cancel, it does stop after about 4 - 5 times of clicking cancel. I tried twice to uninstall then reinstall the program with the same results. I am using Windows 2000 and Java 1.4.2. After it stops, the program runs just fine. What can I do to stop the windows installer from coming on every time I click on the icon? This only happens for Release 2. The program runs fine by just using the version that came with the CD. Mark

    Hello Mark,
    This error is most likely caused by a corrupt software download or bad CD.
    I recommend :
    1.Log in as u2018Computer Administratoru2019
    2. Make sure that no anti-virus program or spy ware is running on your machine.
    3. Close Crystal Reports XI if it is already running.
    4. Manually uninstall Crystal Reports XI from your machine. To do manual un-installation, I would request you to refer to the link given below:
    u201C[How to manually uninstall Crystal Reports XIu201D|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001218535]
    5. Copy and paste all the installation files from u2018Crystal Reports XIu2019 CD to your local drive of your machine.
    6. Install u2018Crystal Reports XIu2019 by running the setup file from your local machine.
    7. After successful installation, restart your machine.
    8. Open Crystal Reports XI and let me know what happens
    Best regards
    Falk

  • DAQ Assistant with multichannels causing Simulation Loop slow?

    Hi, another LabView newbie here.
    I have in a Real Time Target (NI 9132)  a Control & Simulation Loop with DAQ Assistant block inside, whose signals are fed into a Discrete State Space block. The discrete state space model has 1 second time step. I have set the Simulation Loop parameters so that it executes every 1 second as well (see Fig. A below). *sorry for the big white gap under the figures..
    The DAQ assistant acquisition mode is set as "1 Sampe (On Demand)".
    However, when I run the VI, the plot seemed to be updated much slower than 1 second rate. To confirm this, I put an "Elapsed Time" block inside the Simulation Loop. The "elapsed time" shows the actual time in seconds while the simulation plot show slower time (see Fig. B below).
    I tried to isolate the problem by removing the block one by one. Finally, I found out that this problem was caused by (at least) the DAQ Assistant which acquires multichannels data of NI 9214. When I remove some channels and leave one or two channels, the VI runs at the actual time (see Fig. C below). But when I added more channels reading, it became slower again. 
    Here is the snippet of the block diagram (after all other blocks were removed):
    What am I doing wrong here? I'm going to use all of NI 9214 channels so how not to have similar problem like this?
    I look forward to hearing any relevant comments from the members. Thanks in advance.
    Tian

    Hi Tian,
    why do you need a Sim loop anyway?
    - When it comes to speed you shouldn't use the DAQAssistent. Use basic DAQmx functions…
    - Use parallel running loops for each task. Put DAQmx functions in their own loop, running in parallel to your Sim loop…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HT4913 How do I change my security question answers cause I forgot them!

    I forgot what I put cause I didn't think I had to put it in for my phone

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
      1. Go to: Apple Express Lane;
      2. Under Product Categories choose iTunes;
      3. Then choose iTunes Store;
      4. Then choose Account Management;
      5. Now choose iTunes Store Security and answer the bullet questions, then click
          Continue;
      6. Sign in with your Apple ID and press Continue;
      7. Under Contact Options fill out the information and advise iTunes that you would
          like your security/challenge questions reset;
      8. Click Send/Continue.
    You should get a response within 24 hours by email.
    In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
    Another user had success doing the following:
    I got some help from an apple assistant on the phone. It is kind of round about way to get in.
    Here is what he said to do and it is working for me...
      a. on the device that is asking you for the security questions go to "settings", > "store" >
          tap the Apple ID and choose view"Apple ID" and sign in.
      b. Tap on payment information and add a credit/debit card of your preference then select
          "done", in the upper right corner
      c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
          Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
          should be asked to verify your security code for the credit /debit card and NOT the
          security questions.
      d. At this time you can remove the card by going back in to edit the payment info and
          selecting "none" as the card type then saving the changes by selecting "done". You
          should now be able to use your iTunes store credit without answering the security
          questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

  • MSI GX70 and SSD causing boot loop

    Hi,
    I've bought the MSI GX70 laptop 2 weeks ago which suits my needs pretty well.
    It does seem to have some issues with SSD, not sure if they are known issues yet...
    Powering up the laptop results in a boot loop 9 out of the 10 times. As soon as it passes the POST it reboots instead of starting Windows.
    If I remove the SSD from the second slot (the only one that is available next to the existing HD) it boots from the stock HD fine, no issues.
    As soon as I install the SSD again, it's starting to loop again.
    So I thought, let's replace the stock HD with the SSD (switch connectors) but it doesn't even recognize the SSD disk as bootable device if I do so.
    I'm sure the boot order and settings are fine, played around with them to be sure.
    There is a workaround to get the system started.
    While the laptop is in the boot loop (starting up, showing the MSI logo and doing that over and over again) you have to keep pressing the DEL button to enter the bios, hit escape to quit the bios once you're in without changing and saving anything and it boots up Windows fine.
    The SSD is a PNY XLR8 120gb
    I'm sure the HD is fine because it came out of the previous laptop without issues.
    Any thought on the above?
    Thanks
    /Nick

    I guess my real question here is are you 100% certain that at this very second, the SSD is in fact 100% ok? I'm only asking as after reading a few reviews, almost 50% of them (granted, they are reviews, and people usually really only review things when they are bad...) were showing that they had to return this very SSD because it went bad.
    That's really the only thing that comes to mind. This uses the very common Sandforce chipset that quite a few SSD's have and work perfectly fine with. So I can't really comment more than that.

  • HP Expert Day - January 9-10, 2013: Tough questions? Ask the Experts!

    Thank you for coming to Expert Day – the event has now concluded.
    **To find out about future HP Expert Day events, check out this page**
    On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will return to the boards to share your experiences, both good and bad.
    We will be holding more of these Expert Days on different topics in the months to come.  We hope to see you then!
    If you still have questions to ask, feel free to post them on the Forum – we always have Experts on the HP Support Forum to help you out.
    Do you have questions using or setting up your HP notebook, desktop PC, or printer?
    Well, we’ve got answers.
    Experts will be on the notebook, desktop, and printer and all in ones boards ready to answer your questions from Wednesday, January 9th 7:00am to Thursday, January 10th 7:00am Pacific Time.
    How the day works:
    Come to the Forums and ask your tech questions. More than 250 experts will be on the Forums and will do their best to help you out. An online conversation will be born!
    Why should you come to the Forums?
    Whether you own an HP Spectre notebook, Envy printer, or an HP home desktop computer, there has never been a better chance to learn about your product.
    When do you have a chance to talk directly with the people who designed the product or wrote the manual for it?
    This will be your opportunity to connect with the best and brightest minds at HP for free.
    We’ll share our knowledge on the best ways to:
    Tweak your product to increase performance;
    Troubleshoot the issue you are having;
    Upgrade to Windows 8 or Mountain Lion MacOS;
    Set up a Wireless network;
    Safeguard your PC from viruses and spyware;
    Choose the right power supply, upgrade your video card, or add the right amount of memory;
    Use the tools built into your product that can make it run better and fix common problems;
    Ensure you have the correct print driver;
    Get the most out of Win8 – learn tips and tricks;
    And it’s FREE.
    It doesn’t matter how old the product is or what it is connected to. We will do our best to help.
    In addition to the Consumer Forum, Expert Day will also be occurring here:
    Enterprise Business Forum (January 9th from 7:00am to January 10th 7:00am PT)
    Looking forward to seeing you on January 9th!
    I work for HP, supporting the HP Experts who volunteer their time and technical knowledge to help others.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

    My HP, purchased in June 2012, died on Saturday.  I was working in recently installed Photoshop, walked away from my computer to answer the phone and when I came back the screen was blank.  When I turned it on, I got a Windows Error Recovery message.  The computer was locked and wouldn't let me move the arrow keys up or down and hitting f8 didn't do anything. 
    I'm not happy with HP.  Any suggestions?

Maybe you are looking for