FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Dec 22, 2016, 10:35 AM
9 Posts
topic has been resolvedResolved

disableValidators returning error

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1

Hello,

For some reason, whenever I add the property disableValidators, the page gives an error "HTTP Web Server: Command Not Handled Exception".

 

Doesn't matter if I put true or false, it always returns an error.

Here is my simple xpage.  The only time this will load is if I take out disableValidators="true"

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">

    <xp:this.data>
        <xp:dominoDocument var="document1" formName="profile"
            computeWithForm="onload">
        </xp:dominoDocument>
    </xp:this.data>

    <xp:inputText value="#{document1.FirstName}" id="FirstName1"
        required="true" disableClientSideValidation="false"
        disableValidators="true">
        <xp:this.validators>
            <xp:validateRequired message="Firstname required">
            </xp:validateRequired>
        </xp:this.validators>
    </xp:inputText>
</xp:view>

 

Hopefully someone can help me out.  

Thank you in advance.

Rony

Dec 22, 2016, 3:06 PM
9 Posts
Solution

By looking in the server logs, I was able to see that the error "HTTP Web Server: Command Not Handled Exception" was returning in the logs the following error

HTTP JVM: SEVERE: CLFAD####E: Exception thrown
HTTP JVM: SEVERE: CLFAD####E: Exception occurred servicing request for: /xx/xv.nsf/Category.xsp - HTTP Code: 500
HTTP Web Server: Command Not Handled Exception [/xx/xv.nsf/Category.xsp?action=newDocument]

The issue is that the server version is different than the designer version.  I'm using a more recent version which has feature that are not compatible on the server.

"The generated page version 8.5.2 is not compatible with the server version 8.5.1, for the page /Category.xsp."

More info on this can be seen here.

https://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPagesPageVersions.htm

http://stackoverflow.com/questions/17318462/http-500-internal-server-error-when-executing-client-javascript-in-any-xpage

Solution is to upgrade the server to the same version as my designer.


FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.