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



Sep 23, 2013, 12:31 PM
17 Posts

Unexpected Error: executing JavaScript/Reference error

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 2

I haven't made any changes to this database, and all of a sudden, I get an (500) error when loading various Xpages. On this one, when I switch to "Display the Xpage runtime error" on xpages tab of the database properties, it displays the errors below web.

If I remove the button that this Client side code is contained (it had worked perfectly to validate an Edit Box before), the error just moves to the next piece of JavaScript on the page and gives a similar error.

I've tried to "CLEAN" project. I've tried to Sign the entire database with the server id.

 

Any help would be much appreciated!

-------------

The runtime has encountered an unexpected error.

Error source

Page Name:/msr.xsp
Control Id: _id20



Exception

Error while executing JavaScript computed expression
Script interpreter error, line=3, col=8: [ReferenceError] 'XSP' not found

   

   1: 
   2: 
   3: if(XSP.getElementById("#{id:ProjectTitle}").value == ""){
   4: 			XSP.getElementById("#{id:ProjectTitle}").focus();
   5: 			XSP.getElementById("#{id:ProjectTitle}").style.backgroundColor = "pink";
   6: 			alert("Please enter a Project Title.");
   7: 			return false;
   8: 		}
   9: 		else{
  10: 			XSP.getElementById("#{id:ProjectTitle}").style.backgroundColor = "#ffe";
  11: 		}

 

Sep 23, 2013, 2:22 PM
17 Posts
I looked at the .log files

So, after a big process of getting access to the log files server itself, I see a massive XML file. This is supposed to help. What am I looking at????

Here is the entry in the log file associated with my error above:

    <CommonBaseEvent creationTime="2013-09-23T09:56:04.358-04:00" globalInstanceId="EL996703c00001414b0b296600000032" msg="CLFAD0134E: Exception processing XPage request" severity="50" version="1.0.1">
    <extendedDataElements name="CommonBaseEventLogRecord:level" type="noValue">
        <children name="CommonBaseEventLogRecord:name" type="string">
            <values>SEVERE</values>
        </children>
    </extendedDataElements>
    <extendedDataElements name="CommonBaseEventLogRecord:sourceClassName" type="string">
        <values>com.ibm.commons.log.AbstractLogMgr</values>
    </extendedDataElements>
    <extendedDataElements name="CommonBaseEventLogRecord:sourceMethodName" type="string">
        <values>log</values>
    </extendedDataElements>
    <extendedDataElements name="CommonBaseEventLogRecord:Exception" type="string">
        <values>com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression&#xD;&#xA;&#x9;at com.ibm.xsp.binding.javascript.JavaScriptValueBinding.getValue(JavaScriptValueBinding.java:132)&#xD;&#xA;&#x9;at com.ibm.xsp.actions.client.ExecuteScriptClientAction.getScript(ExecuteScriptClientAction.java:41)&#xD;&#xA;&#x9;at com.ibm.xsp.actions.client.ExecuteScriptClientAction.invoke(ExecuteScriptClientAction.java:102)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.EventHandlerRenderer.processHandlers(EventHandlerRenderer.java:124)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.EventHandlerRenderer.encodeBegin(EventHandlerRenderer.java:86)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeBegin(ReadOnlyAdapterRenderer.java:146)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:956)&#xD;&#xA;&#x9;at com.ibm.xsp.component.UICommandEx2.encodeBegin(UICommandEx2.java:395)&#xD;&#xA;&#x9;at com.ibm.xsp.component.UIEventHandler.encod</values>
        <values>eBegin(UIEventHandler.java:329)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:842)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderChildren(FacesUtil.java:873)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer.encodeChildren(HtmlBasicRenderer.java:206)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeChildren(ReadOnlyAdapterRenderer.java:162)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:979)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:844)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderChildren(FacesUtil.java:873)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer.encodeChildren(HtmlBasicRenderer.java:206)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeChildren(ReadOnlyAdapterRenderer.java:162)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:979)&#xD;&#xA;&#x9;at com.ibm.xsp.ut</values>
        <values>il.FacesUtil.renderComponent(FacesUtil.java:844)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderChildren(FacesUtil.java:873)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer.encodeChildren(HtmlBasicRenderer.java:206)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeChildren(ReadOnlyAdapterRenderer.java:162)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:979)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:844)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderChildren(FacesUtil.java:873)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer.encodeChildren(HtmlBasicRenderer.java:206)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeChildren(ReadOnlyAdapterRenderer.java:162)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:979)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:844)&#xD;&#xA;&#x9;</values>
        <values>at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderChildren(FacesUtil.java:873)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer.encodeChildren(HtmlBasicRenderer.java:206)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeChildren(ReadOnlyAdapterRenderer.java:162)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:979)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:844)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.renderkit.html_extended.layout.AbstractApplicationLayoutRenderer.renderChildren(AbstractApplicationLayoutRenderer.java:1347)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.renderkit.html_extended.layout.AbstractApplicationLayoutRenderer.writeContentColumn(AbstractApplicationLayoutRenderer.java:1149)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.renderkit.html_extended.layout.Abstr</values>
        <values>actApplicationLayoutRenderer.writeMainContent(AbstractApplicationLayoutRenderer.java:1052)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.renderkit.html_extended.layout.AbstractApplicationLayoutRenderer.writeMainFrame(AbstractApplicationLayoutRenderer.java:233)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.renderkit.html_extended.layout.AbstractApplicationLayoutRenderer.encodeBegin(AbstractApplicationLayoutRenderer.java:1313)&#xD;&#xA;&#x9;at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeBegin(ReadOnlyAdapterRenderer.java:146)&#xD;&#xA;&#x9;at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:956)&#xD;&#xA;&#x9;at com.ibm.xsp.extlib.component.layout.UIVarPublisherBase.encodeBegin(UIVarPublisherBase.java:110)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:842)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(F</values>
        <values>acesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:853)&#xD;&#xA;&#x9;at com.ibm.xsp.component.UIViewRootEx._renderView(UIViewRootEx.java:1317)&#xD;&#xA;&#x9;at com.ibm.xsp.component.UIViewRootEx.renderView(UIViewRootEx.java:1255)&#xD;&#xA;&#x9;at com.ibm.xsp.application.ViewHandlerExImpl.doRender(ViewHandlerExImpl.java:651)&#xD;&#xA;&#x9;at com.ibm.xsp.application.ViewHandlerExImpl._renderView(ViewHandlerExImpl.java:321)&#xD;&#xA;&#x9;at com.ibm.xsp.application.ViewHandlerExImpl.renderView(ViewHandlerExImpl.java:336)&#xD;&#xA;&#x9;at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:103)&#xD;&#xA;&#x9;at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)&#xD;&#xA;&#x9;at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:120)&#xD;&#xA;&#x9;at com.ibm.xsp.controller.FacesControllerImpl.render(FacesControllerImpl.java:270)&#xD;&#xA;&#x9;at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:261)&#xD;</values>
        <values>&#xA;&#x9;at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:157)&#xD;&#xA;&#x9;at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)&#xD;&#xA;&#x9;at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)&#xD;&#xA;&#x9;at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576)&#xD;&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1315)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:853)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:796)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:565)&#xD;&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1</values>
        <values>299)&#xD;&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:662)&#xD;&#xA;&#x9;at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)&#xD;&#xA;&#x9;at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)&#xD;&#xA;&#x9;at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)&#xD;&#xA;Caused by: com.ibm.jscript.InterpretException: Script interpreter error, line=3, col=8: [ReferenceError] &apos;XSP&apos; not found&#xD;&#xA;&#x9;at com.ibm.jscript.types.FBSReferenceByName$JavaPackageVariable.getValue(FBSReferenceByName.java:74)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.InterpretResult.getFBSValue(InterpretResult.java:70)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.ASTCall.interpret(ASTCall.java:91)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.ASTMember.interpret(ASTMember.java:106)&#xD;&#xA;&#x9;a</values>
        <values>t com.ibm.jscript.ASTTree.binaryop.ASTBinaryDefaultOp.interpret(ASTBinaryDefaultOp.java:49)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.ASTIf.interpret(ASTIf.java:79)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.ASTProgram.interpret(ASTProgram.java:119)&#xD;&#xA;&#x9;at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:139)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression._interpretExpression(JSExpression.java:435)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression.access$1(JSExpression.java:424)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression$2.run(JSExpression.java:414)&#xD;&#xA;&#x9;at java.security.AccessController.doPrivileged(AccessController.java:310)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:410)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:251)&#xD;&#xA;&#x9;at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:234)&#xD;&#xA;&#x9;at com.ibm.xsp.javascript.JavaScriptInterpreter.interpret(JavaScriptInterpreter.java:222)</values>
        <values>&#xD;&#xA;&#x9;at com.ibm.xsp.javascript.JavaScriptInterpreter.interpret(JavaScriptInterpreter.java:194)&#xD;&#xA;&#x9;at com.ibm.xsp.binding.javascript.JavaScriptValueBinding.getValue(JavaScriptValueBinding.java:78)&#xD;&#xA;&#x9;... 74 more&#xD;&#xA;</values>
    </extendedDataElements>
    <sourceComponentId component="Expeditor 6.2" componentIdType="ProductName" instanceId="" location="NATIC2NCTRF01" locationType="Hostname" subComponent="" threadId="4" componentType="http://www.w3.org/2001/XMLSchema-instance"/>
    <situation categoryName="ReportSituation">
        <situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
    </situation>
</CommonBaseEvent>

Sep 30, 2013, 6:58 PM
170 Posts
This is probably the problem

When you the error that XSP can't be found usually you habe written clientside javaacript in the serverside tab. 

/Fredrik

http://www.xpagedeveloper.com


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