This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 25, 2011, 10:10 AM
7 Posts

XPage build PROBLEM

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: rebuild,build,refresh,reload
  • Replies: 8
Hi,

Wondering if anybody can give me an explanation why do my XPages constantly stop from rebuilding?

On 8.5.2, it happens every time, about after an hour of development... XPage stops rebuilding - any change made in an XPage does NOT appear in Notes when previewing.

I tried Clean...
I tried manually rebuild.
Of course, I have Rebuild all turned ON all the time.
I tried restarting the designer many times.

No change appears - the client still pulls down some old version of the compiled XPage.

There is no error in the error panel.

Did anybody see something similar?

Thanks,
Adam
Feb 25, 2011, 10:48 AM
149 Posts
Re: XPage build PROBLEM
 
Not sure, but you can try and removed the local\xsp java files in the nsf using package explorer.
 
 
- Thomas
 
Feb 25, 2011, 1:16 PM
7 Posts
Re: XPage build PROBLEM
Hi Thomas,
 
I have deleted the file you suggested: Local\XSP\Test5......java
 
I went back to my XPage, clicked "Preview in Notes", it generated a new Java file BUT: I still get my old alert(...) boxes showing up even if there is no "alert" code at all in the current xps file. It's still cached somewhere but I don't understand where :-)
 
Thanks for the suggestion anyway,

Adam
 
Feb 25, 2011, 11:34 AM
9 Posts
Re: XPage build PROBLEM
The most common reason I have seen is inconsistencies in the source code of the XSP.
 
For example if you created a dataSource to an element, then deleted the element. In some cases that datasource may be left behind in the source. 
 
Good to give your XSP source a run through.
Feb 25, 2011, 1:10 PM
7 Posts
Re: XPage build PROBLEM
Hi Simon,
 
Sure, I'm pasting the source code here. It's a very simple source code because I have already removed a lot of the original page to debug it:

Thanks for help,
Adam

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoParseOnLoad="true"
    dojoTheme="true">333333<xp:span style="font-weight:bold"></xp:span><xp:br></xp:br>
    <xp:text escape="false" id="seriesA" rendered="false">
        <xp:this.value><![CDATA[#{javascript:var output:string = "";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
return output.substr(0, output.length - 1);}]]></xp:this.value>
    </xp:text>
    <xp:br></xp:br>
    <xp:br></xp:br>
    <xp:text escape="false" id="computeSeries">
                    <xp:this.value><![CDATA[#{javascript:var result = "<script language=\"JavaScript\" type=\"text/javascript\">";
result += "var series1 = [";
result += getComponent("seriesA").getValue() + "];";
result += "</script>";
return result;
}]]></xp:this.value>
                </xp:text>
    <xp:br></xp:br>
    <xp:panel id="adhocchart" style="width:400.0px;height:100px"></xp:panel>
    <xp:this.resources>
        <xp:dojoModule name="dojox.charting.widget.Chart2D"></xp:dojoModule>
    </xp:this.resources><xp:this.resources>
        <xp:dojoModule name="dojox.charting.widget.Chart2D"></xp:dojoModule>
    </xp:this.resources>
    <xp:br></xp:br>
    <xp:scriptBlock id="scriptBlock1">


    </xp:scriptBlock>
    <xp:span style="font-weight:bold"></xp:span></xp:view>
 
Feb 25, 2011, 1:24 PM
7 Posts
Re: XPage build PROBLEM
I have a news:
 
I was looking at the local/xsp Java source code (as Thomas suggested earlier in this topic) and the Java file also DOES NOT contain my old "alert" boxes.

It means that the wrong XPage is not cached in the design, but it seems that it is cached somewhere inside of the Notes client... I don't know, does it make sense?
 
Adam
Feb 25, 2011, 2:13 PM
9 Posts
Re: XPage build PROBLEM
Can you clarify how you are testing the XPages.
 
Are you opening the XPage on the server or the client? 
Feb 25, 2011, 7:35 PM
4 Posts
Re: XPage build PROBLEM
 Do your changes show up when you preview in your web browser? If they show up in the web browser but not in the notes client then this is a known caching issue which has been fixed in 8.5.3.
 
Unfortunately the only solution that I know of is to close designer and restart notes. 
 
Hope this helps. 
 
Dan 
Mar 1, 2011, 11:14 AM
7 Posts
Re: XPage build PROBLEM
Sure, I'm building XPages on local and I'm debugging them in the client (through the "Preview in Notes" button).
 
I had to create a new database a started over again. The problem came up again so I was playing with closing / reopenning all tabs in Notes, cleaning the workstation and right-clicking the XPage -> Refresh. I don't know which one of these but once it solved my problem.
 
FYI: I was reading this article :-)
 
http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21327454
 
Adam

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal