Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

Hi,
I am trying to run a long running process, by redirecting to the LongRunningView using the code below. But its throwing exception Can anyone please help
string strCurrentUrl = SPUtility.OriginalServerRelativeRequestPath;
strCurrentUrl = strCurrentUrl + "?ListName=" + strListName;
////Initiates the Excel Import
if (ObjdtExcel != null && ObjdtExcel.Rows.Count > 0)
ExcelImportJob objJob = new ExcelImportJob(strTabName, ObjdtExcel, strFileExt, SPContext.Current.Site.ID, SPContext.Current.Web.ID, strWorkflow, strListName);
objJob.Title = "Excel Import Job";
//// Redirect the user to another page when finished.
objJob.RedirectWhenFinished = false;
//// Specify if the user can cancel this.
objJob.UserCanCancel = false;
//// Specify the refresh rate of the job, here, the page polls every 5 seconds for completion.
objJob.MillisecondsToWaitForFinish = 15000;
//// Finally, start the job on a web.
objJob.Start(SPContext.Current.Web);
string strUrl = string.Format("{0}?JobId={1}&Source={2}", PROGRESS_PAGE_URL, objJob.JobId, strCurrentUrl);
SPUtility.Redirect(strUrl, SPRedirectFlags.Default, HttpContext.Current);
The exception being "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
Arjun Menon U.K

Hi Arjun,
Any update?
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • SQL Server XQuery: Sequence Expression - What is @x in the code statement of DECLARE @x xml; ? What is N in the code statement of SET @x = N ' '; ?

    Hi all,
    I did the basic stuff of T-SQL long time ago. I dive in to do the SQL Server XQuery programming. I saw the following set of code statements from a tutotial website:
    DECLARE @x xml;
    SET @x = N'';
    SELECT @x.query('(1,2,(10,11,12,13,14,15)),-6');
    1) What is @x in the code statement of DECLARE @x xml;? What is N in the code statement of SET @x = N ' '? 
    2) Is the N in the code statement of SET @x = N ' '; absobutally necessary in the SQL Server XQuery programming?  From XQuery Language Reference of SQL Server 2012 Books Online, I saw the following set of code statements:
    DECLARE @x XML
    SET @x = '<a/>'
    SELECT @x.query('if (/a[1]) then "true" else "false"')
    go
    I wonder why there is no N in the code statement of the XQuery Language Reference?
    Please kindly help, clarify my confusions and answer my questions mentioned above.
    Thanks in advance,
    Scott Chang

    @x is a variable with xml data type. An N prefix stands for the string in Unicode. The N is not necessary in the SQL Server XQuery programming if the values of the element or attribute in the xml are not in an international language.
    A Fan of SSIS, SSRS and SSAS

  • TS1292 Dear support Apple! A week ago I moved to Spain and bought 2 Gift Card in the amount of 15euro. When I entered the code App Store displays a message that you need to change the country but I was left with 10 cents in the account that you can not po

    Dear support Apple! A week ago I moved to Spain and bought 2 Gift Card for 15euro. When I entered the code App Store displays a message that you need to change the country but I was left with 10 cents in the account that not possible to spendt. Please delete this 10 cents from my account

    Please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users. You need to go here:
    iTunes Support
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • I have been unsuccessful merging serval pdf files into one file.  I select the Sidebar for both pdfs, then drag one pdf on top of the other and Save the Version.  When I open the file I think I have saved, it shows only the original pdf.  Advice would be

    I have been unsuccessful merging serval pdf files into one file.  I select the Sidebar for both pdfs, then drag one pdf on top of the other and Save the Version.  When I open the file I think I have saved, it shows only the original pdf.  Advice would be appreciated.  Thank you.

    wouldnt it be easier if you could do something like this?
    https://discussions.apple.com/thread/3392535

  • I am updating content in an old site and am using an old extension to close a child page.  It has worked fine up until I started using CS6.  The code for this is in a template I am using and the code has not changed.

    So the site is www.fulcrumcwi.com and the page URL is: FulcrumCWI Rebecca Morgan Operations Strategy Consulting Newsletters.
    if you choose the first HTML link to the current newsletter when you try to use the close buttons neither of them work.  Yet if you go down to the issue from January, and go to the HTML version, it works just fine.  This is the code that the extension puts in:
    <form>
              <input name="Close" onclick="self.close();return false" type="button" value="Close" />
            </form>
    I haven't changed it in any way.  The only change is that I'm using Dreamweaver CS6 to make these changes.  Anyone have a fix for me?
    As always, thanks in advance.  (and yes, I know this site needs major updating)
    GraphicEdge

    Boy, that didn't really come out very well.
    On the archive_newsletters.html page, the "HTML" links are supposed to have target="_blank" in them...
    <a href="newsletters_html/2014_03.html" target="_blank">HTML</a>
    so a new tab is opened with the info. That new tab is then closed by the this.close() javascript.
    On the newsletters that don't close correctly, there is no target="_blank" to open them in a new window initially, so they can't close with that method.

  • Child locked phone which is now disabled. I know the code but don't know how to use it to fix the phone.

    My child locked my iPhone and it is now disabled. I know the correct code but cant figure a way to use it.  The phone says connect to iTunes but when I do that it asks for the code but again, there is no place to input it.  I want to avoid a clean wipe.
    Any help would be greatly appreciated.
    S

    Does the link below help?
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • HT4112 I have a wireless keyboard from 2009 but it won't pair with my New ipad. It gives me the code but still doesn't connect once I've put in the code. Any ideas please. I have tried rebooting the new ipad.

    Can anyone tell me how to sync my new ipad with my keyboard as it doesn't recognise it even after I put in the code given when trying to pair it. I have tried to reboot the ipad but that didn't work either. Very frustrated. ,

    It was given to me by someone that spilt a drink on it and they dried it but went and bought a new one. It finds the ipad but won't sync once I put the code in. I have looked at support etc and they recommend unsnycing from the original computer. But as I have no access for this is there any way I can reset the keyboard to pair my ipad?
    Thanks

  • When filling in spaces of a form, the text duplicates itself, laying one layer of text on top of the other

    Why am I seeing text typed over the TOP of text, when I'm filling in the spaces of an application?
    I have Adobe XI.  I chose the hand tool, and highlighted the form.  It IS a fillable form.  Any ideas?  Also, I don't see a "submit" button so I can email the finished form back to the sender.  Am new at this.  Any input is helpful.  Thanks!

    My guess is that the author of the form accidentally placed two identically
    named fields one on top of another.
    Also, they failed to add a Submit button.
    In short, you should report these problems to them so they could fix them
    and issue a new version of the form.
    On Thu, Nov 20, 2014 at 7:43 PM, TERESAQUALLEY <[email protected]>

  • Transfer ADOBE creative Suite from an old Mac to a new Mac, I have the code but I don't have a CD. What are the correct steps?

    Hi
    I bought a new Mac and I want to transfer my Adobe Creative Suit CS6 to it from my old one. What are the correct steps? Please note that I don't have a CD because I downloaded it via the net. It was an upgrade for the student edition. I heard something about deactivation and reactivation but I don't want to do something wrong then lose my precious software. Please help. Thanks.

    You can download the software and install it using the page linked below.
    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    You are allowed to have the software installed and activated on two machines, so there should be no reason to deactivate it on your other machine, or at least you can wait until you see it loaded and working on the new one.

  • I'm moving my podcast and I don't know where to put the itunes:new-feed-url into the code. I'd love to just have somebody point to the right spot. Please advise.

    Where does it go?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?charset/?>" />
    <link rel="alternate" type="application/rss+xml" title="RSS" href="<?root_url/?>rss.xml">
        <meta name="keywords" content="mypodcast" />
        <meta name="robots" content="all" />
    <style type="text/css">
    /*DIV ID'S*/
    #maincontainer {
        border:0px solid #C1B1B1;
        width: 698px;
        text-align: left;
        background: #FFF;
    #header {
        border-bottom: 1px solid #B4B4B4;
        width: 698px;
        text-align: left;
        background: #FFF;
    #posts {
        border-top:0px solid #C1B1B1;
        border-right:0px solid #C1B1B1;
        background: #FFF;
        width: 447px;
        text-align: left;
        float: left;
        padding-top: 20px;
    #columnright {
        border-top:0px solid #C1B1B1;
        background: #FFF;
        width: 210px;
        text-align: left;
        float: right;
        padding: 20px;
    #profilepic {
        float: left;
        padding: 5px 5px 0px 0px;
    #footer {
        border-top: 0px solid #C1B1B1;
        padding: 10px 20px 10px 0px;
        background-color: #FFF;
    /*MAIN CLASSES*/
    body {
        font-family: "Verdana", Arial, Helvetica, sans-serif;
        background-color: #FFF;
        text-align: left;
        padding: 20px;
        color: #000;
        font-size: 12px;
        margin: 0px;
    h1.podcast-title {
        color: #555555;
        font-size: 26px;
        font-weight: bold;
        padding: 20px 20px 0px 0px;
        margin: 0px;
    h1.podcast-title a {
        color: #555555;
        font-size: 26px;
        font-weight: bold;
        text-decoration: none;
    h2 {
        color: #676767;
        font-size: 21px;
        font-weight: 600;
        padding: 0px 20px 0px 0px;
        margin:0px;
    h3 {
        color: #676767;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        margin: 0px;
        padding: 0px 0px 5px 20px;
        border-bottom: 1px dotted #C1B1B1;
        background:url(<?template_url/?>images/icon_subtitles3.gif) no-repeat;
    p {
        color: #737373;
        font-size: 11px;
        line-height: 15px;
        padding: 10px 20px 10px 0px;
        margin:0px;
    p.righttext {
        color: #737373;
        font-size: 11px;
        padding: 5px 0px 10px 0px;
        margin:0px;
    img {
        border:1px solid #007B9F;
        text-align: left;
        margin: 3px;
        padding: 2px;
    a {
        color: #007B9F;
        font-size: 11px;
    a:hover {
        color: #72AABA;
        font-size: 11px;
    a.posttitle {
        color: #676767;
        font-size: 21px;
        font-weight: bold;
        margin:0px;
        text-decoration: none;
    a.posttitle:hover {
        color: #676767;
        font-size: 21px;
        font-weight: bold;
        margin:0px;
        text-decoration: underline;
    a.listenpodcast {
        font-weight: bold;
        background:url(<?template_url/?>images/icon_podcast3.gif) no-repeat;
        padding-left: 15px;
    a.listenpodcast:hover {
        font-weight: bold;
        background:url(<?template_url/?>images/icon_podcast3.gif) no-repeat;
        padding-left: 15px;
        color: #72AABA;
        text-decoration: underline;
    a.comments {
        background:url(<?template_url/?>images/icon_comments3.gif) no-repeat;
        padding-left: 15px;
    a.comments:hover {
        background:url(<?template_url/?>images/icon_comments3.gif) no-repeat;
        padding-left: 15px;
        color: #72AABA;
        text-decoration: underline;
    a.profile {
        background:url(<?template_url/?>images/icon_profile3.gif) no-repeat;
        padding-left: 15px;
    a.profile:hover {
        background:url(<?template_url/?>images/icon_profile3.gif) no-repeat;
        padding-left: 15px;
        color: #72AABA;
        text-decoration: underline;
    a.posts, p.posts {
        background:url(<?template_url/?>images/icon_posts3.gif) no-repeat;
        padding-left: 15px;
        padding-bottom: 5px;
        padding-top: 5px;
        margin-left: 5px;
        margin-right: 5px;
        display: block;
        border-bottom: 1px solid #B4B4B4;
    a.posts:hover {
        background:url(<?template_url/?>images/icon_posts3.gif) no-repeat;
        padding-left: 15px;
        padding-bottom: 5px;
        padding-top: 5px;
        color: #72AABA;
        text-decoration: underline;
        display: block;
        border-bottom: 1px solid #B4B4B4;
    .date {
        color: #858585;
        font-size: 12px;
        font-weight: bold;
        padding: 20px 20px 0px 0px;
        margin: 20px 0px 0px 0px;
    p.endpost {
        border-top:0px dotted #C1B1B1;
        border-bottom:1px dotted #A0A0A0;
        margin-bottom: 20px;
    </style>
    <style type="text/css">
    .item-control {
       display:none;
    .item-control a, .item-action a {
       text-decoration:none !important;
    .quick-edit-icon {
       background: url("<?system_url/?>/images/icon18_edit_allbkg.gif") no-repeat left;
       /* makes an 18x18 box */
       padding:9px;
       margin:0 0 0 .5em;
    .delete-comment-icon {
       background: url("<?system_url/?>/images/icon_delete.gif") no-repeat left;
       /* makes a 14x14 box */
       padding:7px;
    .email-post-icon {
       background: url("<?system_url/?>/images/icon18_email.gif") no-repeat left;
       /* makes an 18x18 box */
       padding:9px;
       margin:0 0 0 .5em;
    <?AllowEditingStyle?>
    .item-control { display:inline; }
    <?/AllowEditingStyle?>
    <?EmailPostLinksStyle?>
    .item-action { display:none;}
    <?/EmailPostLinksStyle?>
    </style>
        <script language="JavaScript" src="<?system_url/?>/scripts/popup.js"></script>
    <title><?PodcastTitle/?></title>
    <script language="JavaScript" type="text/javascript" src="/scripts/flashvars.js">>
    </script>
    <script language="VBScript" type="text/vbscript" src="/scripts/flashdetect.vb">
    </script>
    <script language="JavaScript1.1" type="text/javascript" src="/scripts/flashdetect.js">
    </script>
    <script language="JavaScript" type="text/javascript" src="/scripts/insertflash.js">
    </script>
    </head>
    <body>
    <center>
    <div id="maincontainer">
        <div id="header">
        <h1 class="podcast-title"><a href="<?PodcastHome/?>"><?PodcastTitle/?></a></h1>
        <p><?PodcastDescription/?></p>
        </div>
        <div id="posts">
        <?PodcastCurrentRecords?>
        <?PodcastCurrentRecord?>
        <span class="date"><?DateHeader/?></span>
        <h2><a href="<?PermanentLink/?>" class="posttitle"><?Title/?></a></h2><?Downloads?> (<?DownloadsCount/?> downloads)<?/Downloads?>
        <p><a href="<?FileUrl/?>" class="listenpodcast">Download this episode (<?AudioFileSize/?>)</a>
    <script>
    <!--
    JSputPlayer('<?FileUrl/?>', 'FFFFFF', 'E0E0E0', '000000', '000000', '676767');
    // -->
    </script>
    <noscript>
    <b>Flash player error: JavaScript must be enabled!</b>
    </noscript>
             <br />
            <?RecordBody?>
                <?PodcastNotFloatAlign?>
                    <?RecordWithImage?>
                    <div style="width=100%; text-align: <?ImageAlign/?>;">
                    <img src="<?ImageUrl/?>">
                    </div>
                    <p>
                    <?Description/?>
                    </p>
                    <?/RecordWithImage?>
                    <?RecordWithoutImage?>
                        <?Description/?>
                    <?/RecordWithoutImage?>
                <?/PodcastNotFloatAlign?>
                <?PodcastFloatAlign?>
                    <?RecordWithImage?>
                    <img src="<?ImageUrl/?>" style="margin:10px; float:<?ImageAlign/?>;">
                    <?Description/?>
                    <br clear="all" />
                    <?/RecordWithImage?>
                    <?RecordWithoutImage?>
                        <?Description/?>
                    <?/RecordWithoutImage?>
                <?/PodcastFloatAlign?>
            <?/RecordBody?>   
        </p>   
        <p class="endpost">Posted by <?UserName/?> at <?PostTime/?> | 
                    <?CommentsLinkPlace?>
                        <a href="<?PostCommentLink/?>"  class="comments" <?CommentsInPopupTag/?>><?CommentsLinkText/?></a>
                    <?/CommentsLinkPlace?>
                    <span class="item-action">
                        <a href="<?EmailPostLink/?>" <?EmailPostPopupTag/?> title="Email Post">
                          <span class="email-post-icon"> </span>
                      </a>
                    </span>
                  <span class="item-control">
                      <a style="border:none;" href="<?EditLink/?>" title="Edit Post">
                          <span class="quick-edit-icon"> </span>
                      </a>
                  </span>
        </p>
        <?/PodcastCurrentRecord?>
        <?/PodcastCurrentRecords?>
      <?AfterOnePostOnPage?>
        <p class="comment-timestamp" style="margin-top: -1.5em;">
            <a href="<?PodcastHome/?>">&lt;&lt; Home</a>
        </p>
      <?/AfterOnePostOnPage?>
       <?CommentsPlace?> <!-- Begin #comments -->
       <div style="margin: 2em;">
        <h4><strong><?CommentsCnt/?></strong> Comments:</h4>
        <dl id="comments-block">
          <?CommentsRows?>
          <?CommentsRow?>
          <dt class="comment-poster">
            <?CommentSender/?> said...
          </dt>
          <dd class="comment-body">
            <p><?Body/?></p>
          </dd>
          <dd class="comment-timestamp"><?PostTime/?>
          <?DeleteCommentLink/?>
          </dd>
          <?/CommentsRow?>
          <?/CommentsRows?>
        </dl>
        <?PostNewCommentLink?>
            <p class="comment-timestamp">
            <a class="comment-link" href="<?PostCommentLink/?>" <?CommentsInPopupTag/?>>Post a Comment</a>
            </p>
        <?/PostNewCommentLink?>
        </div>
        <?/CommentsPlace?> <!-- End #comments -->
        <?WelcomeMessage?>
            <p class="welcome_title">Congratulations on creating your new podcast!</p>
            <p class="welcome_message">Please log into your account to add/create an episode and then publish your podcast so that the rest of the world can enjoy your work.</p>
        <?/WelcomeMessage?>           
          </div>
        <div id="columnright">
        <h3>My Profile</h3>
        <?PodcastAuthorPhotoUrlPlace?>
        <div id="profilepic"><img src="<?PodcastAuthorPhotoUrl/?>" /></div>
        <?/PodcastAuthorPhotoUrlPlace?>
        <p class="righttext"><strong><?PodcastAuthorName/?></strong><br />
          <strong><?PodcastAuthorLocation/?></strong><br />
          <?PodcastAuthorAbout/?>
        <br />
        <a href="<?PodcastAuthorUrl/?>" class="profile">View my complete profile</a></p><br clear="all"/>
        <!-- LINKS, you can change or delete list here if necessary -->
        <h3>Links</h3>
        <div style="padding: 1ex 0 1em 2em;">
        <a href="http://www.mypodcast.com/" target="_blank">Free Podcast Hosting</a><br>
        </div>
        <!-- END of LINKS block -->
        <?PrevPosts?>
        <h3>Recent Posts</h3>
        <?PrevPostsRows?>
        <?PrevPostsRow?>
        <a href="<?PermanentLink/?>" class="posts"><?Title/?></a>
        <?/PrevPostsRow?>
        <?/PrevPostsRows?>
        <?/PrevPosts?>
        <?ArchiveLinks?>
        <h3>Archives</h3>
        <?ArchiveLinksRows?>
        <?ArchiveLinksRow?>
               <?CurrentRow?>
                   <p class="posts"><?DisplayString/?></p>
               <?/CurrentRow?>
               <?NotCurrentRow?>   
                <a href="<?Link/?>" class="posts"><?DisplayString/?></a>
            <?/NotCurrentRow?>
        <?/ArchiveLinksRow?>
        <?/ArchiveLinksRows?>
        <?/ArchiveLinks?>
          <!-- Links to podcast subscriptions -->
      <div style="text-align: center;">
        <a href="<?itunes_link/?>" title="Subscribe to podcast with iTunes"><img src="<?system_url/?>/images/itunes2.png" alt="Subscribe to podcast with iTunes" style="border:0;"></a><br>
        <a href="<?google_link/?>" title="Subscribe to podcast with Google"><img src="<?system_url/?>/images/google2.png" alt="Subscribe to podcast with Google" style="border:0;"></a><br>
        <a href="<?yahoo_link/?>" title="Subscribe to podcast with Yahoo"><img src="<?system_url/?>/images/yahoo2.png" alt="Subscribe to podcast with Yahoo" style="border:0;"></a><br>
        <a href="<?rss_link/?>" title="Podcast RSS-channel"><img src="<?system_url/?>/images/podcast.png" alt="Podcast RSS-channel" style="border:0;"></a><br>
        <br>
        <a href="<?advertise_link/?>" title="If you would like to advertise in this podcast, click here for more information."><img src="<?system_url/?>/images/advertise.png" alt="If you would like to advertise in this podcast, click here for more information." style="border:0;"></a>
      </div>
        </div>
        <br clear="all" />
        <div id="footer">Powered by <a href="http://www.mypodcast.com/" target="_blank">MyPodcast.com</a></div>
    </div>
    </center>
    </body>
    </html>

    It doesn't go anywhere in that: that isn't a feed, it's a web page. A feed is a text file in XML format.
    Would you like to post the URL of your iTunes Store page?
    This page about podcasting includes a basic sample feed so you can see what one should look like, and at the bottom of the page is the method for redirecting iTunes to a new feed.
    http://rfwilmut.net/pc

  • HT201209 I received an itunes card as a gift but when i scanned the code using my camers i received an error message that says "the Gift certificate or prepaid card code you entered has not beenproperly activated." What do I do now?

    Please help!

    Are you, or the person that bought it, able to take it back to the store that it was bought from and ask them to activate it properly ? If not then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • The scroll up and down arrow will only jump from top of the page to bottom. will no longer slowly scroll

    the arrows on the bottom right of the keypad will only jump up and down from the top to bottom of the page. it will no longer slowly scroll up and down the page

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Debugging a smartform without modifying the code ?

    Hi all, please forgive my noobyness but it's the first time I'm working on smartforms...
    Basically; I have a smartform that prints out a pdf showing all the entries of a purchase order, but there's a thing that I have to correct... The price amount for position is not correct, because it doesn't contains an extra amount, let's call this quantity "limit", that is a specific property of each row in the order.
    Problem: I'm not that good to find in the code the exact point in which the price for a row is calculated, or better.... I thought I found it, did a little correction but without success.
    I'd like to debug exactly the pieces of code that are in the smartform, how to do it without modifying the code ? I've read something about hardcoding a break-point but I won't insert new code because I'm working on a pre-production machine and porting a CR is not as easy. Is there any way to debug without doing a mod on the code? Thanks in advance.

    Hi Matteo,
    it's quite simple.
    Found the Fm name of the SMARTFORM (Menu Utilities-> F.M. Name) (Something like
    /1BCDWB/SF00000015).
    Then go in SE37 transaction and put the FM founded and then display it.
    Go in the main info of the FM (tab. Propierties) and the double click on the main program.
    Then double click on the include that ends with *F01. There you will find all the code of your SF. Then you can put a breakpoint the piece of code that you want.
    This should be works.
    Let us know
    Bye
    Andrea

  • Link repositioning breaks the code

    This problem was reported on August 4th with no resolution. I have now updated to the latest version (Build 040621) on XP Pro, with Java 1.4.2_04, and the problem persists.
    I can't believe that links on a page cannot be repositioned without breaking the code. I may be doing something wrong but please try the following and tell me what result you get:
    1) - Create a New Project (nav4) - This creates a new page Page1.jsp
    2) - Drop an "output text" : value = Page 1 just to give it a visual title.
    3) - Right click on page1.jsp and select "Page Navigation"
    4) - Right Click on Page1.jsp in the navigation panel and select [New Page] . Create 2 new pages: Page2.jsp, Page3.jsp
    5) - Right Click on Page1.jsp and [Add button], [Add link] (as mentionned in tutorial)
    6) - to create a navigation link from page1.jsp to page2.jsp and page3.jsp, drag from the hyperlink on page1.jsp to page 2.jsp and the button on page1.jsp to page3.jsp
    7) - Double click on page2.jsp to open it into the design view, and drop an "output text" .Change its value to "page 2". Select page navigation again and do the same for page3.jsp . This is to show some kind of "message" on each page.
    Run the application and everything is fine.....
    Now I challenge you to move the Link on page1.jsp and see what happens.... The link won't work anymore... and you'll have to "undo" to get it to work again.
    If there is any other way I can get around this(short of hacking into the code), please let me know, this functionality is extremely important to my project.
    Thank you for your assistance.

    Hi John,
    Please do me a favour.
    After you moved the link, just verify which page the button forwards you to . You will see that after the link has moved,
    both the button and the link take you to the same page. In my case page2.jsp
    This is the content of the log file :
    Log Session: Tuesday, August 31, 2004 4:48:09 o'clock PM PDT
    System Info: Product Version = Java Studio Creator (Build 040621)
    Operating System = Windows XP version 5.1 running on x86
    Java; VM; Vendor = 1.4.2_04; Java HotSpot(TM) Client VM 1.4.2_04-b05; Sun Microsystems Inc.
    Java Home = C:\Sun\Creator\java\jre
    System Locale; Encod. = en_CA; Cp1252
    Home Dir; Current Dir = C:\Documents and Settings\bcb; C:\Sun\Creator\bin
    IDE Install; User Dir = C:\Sun\Creator; C:\Documents and Settings\bcb\.Creator\1_0
    CLASSPATH = C:\Sun\Creator\lib\ext\boot.jar;C:\Sun\Creator\lib\ext\jgraph.jar;C:\Sun\Creator\lib\ext\naming.jar;C:\Sun\Creator\lib\ext\pbclient.jar;C:\Sun\Creator\lib\ext\pbtools.jar;C:\Sun\Creator\lib\ext\rowset.jar;C:\Sun\Creator\lib\ext\smbase.jar;C:\Sun\Creator\lib\ext\smdb2.jar;C:\Sun\Creator\lib\ext\sminformix.jar;C:\Sun\Creator\lib\ext\smoracle.jar;C:\Sun\Creator\lib\ext\smresource.jar;C:\Sun\Creator\lib\ext\smsqlserver.jar;C:\Sun\Creator\lib\ext\smsybase.jar;C:\Sun\Creator\lib\ext\smutil.jar;C:\Sun\Creator\lib\ext\sql.jar;C:\Sun\Creator\lib\ext\sqlx.jar;C:\Sun\Creator\java\lib\dt.jar;C:\Sun\Creator\java\lib\tools.jar
    Boot & ext classpath = C:\Sun\Creator\java\jre\lib\rt.jar;C:\Sun\Creator\java\jre\lib\i18n.jar;C:\Sun\Creator\java\jre\lib\sunrsasign.jar;C:\Sun\Creator\java\jre\lib\jsse.jar;C:\Sun\Creator\java\jre\lib\jce.jar;C:\Sun\Creator\java\jre\lib\charsets.jar;C:\Sun\Creator\java\jre\classes;C:\Sun\Creator\java\jre\lib\ext\dnsns.jar;C:\Sun\Creator\java\jre\lib\ext\ldapsec.jar;C:\Sun\Creator\java\jre\lib\ext\localedata.jar;C:\Sun\Creator\java\jre\lib\ext\sunjce_provider.jar
    Dynamic classpath = C:\Sun\Creator\lib\core.jar;C:\Sun\Creator\lib\openfile-cli.jar;C:\Sun\Creator\lib\openide-loaders.jar;C:\Sun\Creator\lib\openide.jar;C:\Sun\Creator\lib\ravelnf.jar
    [org.netbeans.core.modules #4] Warning: the extension C:\Sun\Creator\modules\ext\sac.jar may be multiply loaded by modules: [C:\Sun\Creator\modules\css.jar, C:\Sun\Creator\modules\insync.jar]; see: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/classpath.html#class-path
    Turning on modules:
         org.openide/1 [4.26.1 040621]
         org.openide.io [1.1.1 040621]
         org.openide.execution [1.1.1 040621]
         org.openide.compiler [1.2.1 040621]
         org.netbeans.lib.terminalemulator [1.1.1 040621]
         org.openide.src [1.1.1 040621]
         org.openide.loaders [4.11.1 040621]
         org.netbeans.core/1 [1.21.1 040621]
         org.netbeans.core.output/1 [1.1.1 040621]
         org.netbeans.core.compiler/1 [1.4.1 040621]
         org.openide.debugger [1.1.1 040621]
         org.netbeans.modules.j2eeapis/1 [1.0 040621]
         org.netbeans.modules.settings/1 [1.4.1 040621]
         org.netbeans.api.xml/1 [1.3.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.javahelp/1 [2.1.1 040621]
         org.netbeans.modules.schema2beans/1 [1.7.1 040621]
         org.netbeans.core.execution/1 [1.3.1 040621]
         org.netbeans.modules.debugger.core/3 [2.10.1 040621]
         org.netbeans.libs.j2eeeditor/1 [1.1.1 040621]
         org.netbeans.modules.j2eeserver/3 [1.1.2 040701_4]
         org.netbeans.api.java/1 [1.3.1 040621]
         org.netbeans.libs.xerces/1 [1.4.1 2.6.0]
         org.apache.tools.ant.module/3 [3.6.1 040621]
         org.netbeans.modules.debugger.jpda/1 [1.17.1 040621]
         org.netbeans.api.web.dd/1 [1.1.1 1.0 040621]
         com.sun.rave.project/1 [1.0.1 040701_4]
         com.sun.rave.jsfsupport/1 [1.0.1 040701_4]
         org.netbeans.modules.editor/1 [1.14.2 040701_4]
         com.sun.rave.insync/1 [1.0.1 040701_4]
         org.netbeans.modules.diff/1 [1.7.1 040621]
         com.sun.rave.jsfmetadata/1 [1.0 040621]
         com.sun.rave.toolbox/1 [1.0.1 040701_4]
         org.netbeans.modules.classfile/1 [1.8 040621]
         org.netbeans.modules.java/1 [1.16.1 040621]
         com.sun.rave.designer/1 [1.0.1 040701_4]
         com.sun.rave.navigation/1 [1.0.1 040701_4]
         org.netbeans.modules.xml.core/2 [1.1.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.xml.catalog/2 [1.1.1.3.6.0 3.6.0 040621]
         com.sun.tools.appserver/1 [2.0 20040621-1109]
         org.netbeans.core.ui/1 [1.3.1 040621]
         com.sun.rave.servernav/1 [1.0 040621]
         com.sun.rave.licensemgr/1 [1.2 040621]
         org.openidex.util/2 [2.7.1 040621]
         org.netbeans.modules.html/1 [1.12.1 040621]
         org.netbeans.modules.extbrowser/1 [1.3.1 040621]
         org.netbeans.modules.servletapi24/1 [2.0.1 2.0.1 040621]
         org.netbeans.modules.web.jspparser/2 [2.0.1 040621]
         org.netbeans.modules.xml.text/2 [1.1.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.web.core.syntax/1 [1.13.1 040621]
         com.sun.rave.jspsyntaxint/1 [1.0 040621]
         org.netbeans.modules.schema2beansdev/1 [1.1.1 040621]
         com.sun.rave.welcome/1 [1.0 040621]
         org.netbeans.modules.beans/1 [1.11.1 040621]
         com.sun.rave.jwsdpsupport/1 [1.0 040621]
         com.sun.rave.sam/1 [1.0.1 040701_4]
         com.sun.rave.websvc/1 [1.0.1 040701_4]
         org.netbeans.modules.text/1 [1.12.1 040621]
         org.netbeans.modules.image/1 [1.11.1 040621]
         org.netbeans.modules.autoupdate/1 [2.8.1 040621]
         org.netbeans.modules.clazz/1 [1.13.1 040621]
         com.sun.rave.raveupdate/1 [1.0.1 040621]
         com.sun.rave.layoutmgr/1 [1.1 040621]
         org.netbeans.modules.properties/1 [1.11.1 040621]
         org.netbeans.modules.properties.syntax/1 [1.11 040621]
         org.netbeans.core.ide/1 [1.3.1 040621]
         org.netbeans.modules.utilities/1 [1.15.1 040621]
         com.sun.rave.errorhandler.server/1 [0.1 040621]
         com.sun.rave.plaf/1 [0.1 040621]
         com.sun.rave.windowmgr/1 [1.1 040621]
         com.sun.rave.dataconnectivity/1 [1.0.1 040701_4]
         org.netbeans.modules.css/2 [1.1.1.3.6.0 3.6.0 040621]
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! After moving the link here
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IllegalArgumentException: Dimensions (width=2147483645 height=2147483645) are too large
         at java.awt.image.SampleModel.<init>(SampleModel.java:112)
         at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:124)
         at java.awt.image.Raster.createPackedRaster(Raster.java:757)
         at java.awt.image.Raster.createPackedRaster(Raster.java:460)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:250)
         at com.sun.rave.designer.Dragger.initializeImages(Unknown Source)
         at com.sun.rave.designer.Dragger.getImages(Unknown Source)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4794)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent.paint(JComponent.java:798)
         at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
         at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
         at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
         at java.awt.Container.paint(Container.java:1312)
         at sun.awt.RepaintArea.paint(RepaintArea.java:177)
         at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
         at java.awt.Component.dispatchEventImpl(Component.java:3678)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

Maybe you are looking for