Getting Javascript error on Production Server

Hi,
I am facing unusual problem as my one jsp file containing javascript is working fine on testing server.I put same code on production server ,here I am getting javascript alert for not saving my data.Putting some part of my JSP file for ur reference--
Javascript--
function sysValidate(item){
                    var itemValue=item;
// alert(itemValue);
/* if((itemValue == '')||(itemValue == null))
return false;
                    var today = new Date();
                    var sysDay = today.getDate();
                    var sysMonth = today.getMonth()+1;
                    var sysYear = today.getFullYear();
                    var fieldArray = itemValue.split("/");
                    var itemDay = parseInt(fieldArray[0]);
                    var itemMonth = parseInt(fieldArray[1]);
                    var itemYear = parseInt(fieldArray[2]);
if(itemYear > sysYear)
return false;
                    else{
                         if(itemYear < sysYear)
                              return true;
                         else{
                              if(itemMonth > sysMonth)
                                   return false;
                              else{
                                   if(itemMonth < sysMonth)
                                        return true;
                                   else{
if(itemDay >=sysDay)
return false;
                                        else
return true;
if(sysValidate(exdate))
alert("Save denied as delivery date prior to sysdate");
bool=false;
return bool;
As when I am trying to save record in which my PO delivery date is greater than my Sysdate.I am getting javascript alert- "Save denied as delivery date prior to sysdate".
Plz,help.
Vaish...

956066 wrote:
1)I installed webcenter Management and Production instance and both working fineI hope you meant WebCenter Sites.
2)On community Management Instance successfully showing the UI but after clicked on any of functions getting javascript error.Ensure that Community Patch1 is applied. Can be checked as status page (should show smth like "Oracle WebCenter Sites 11gR1 | Community 223 revision 3560" )
3)On Community Production instance not able to validate the CAS.How "not able"? And what CAS: Sites Management CAS, Sites Production CAS or Visitor CAS?? Provide please details.
Did you mean status page on Production Community instance shows errors related to CAS? What does status page on Management Community instance shows in this case? The same?
Are there any errors in logs?
Did you register Community instances in the SystemSatellite table?
Edited by: 964768 on May 16, 2013 8:30 AM

Similar Messages

  • Getting javascript error in portal admin

    Dear all,
    When i tried to add a content item in the CMS of Weblogic Portal 8.1, an "unterminated string constant" javascript error is displayed and i can't add the content. This happens only when the content item is of a type that contains one or more calendar type property.
    Did anybody also encounter that and have some idea how to solve it?
    Thank you!!
    David

    Hi Bharat
    refer to this for the Log file
    Physical path of log files in EP server
    Portal Runtime Error - Where is the log file?
    For javscript problem refer  to
    Javascript error when loading Portal Content
    Portal Content Permissions
    Getting javascript error while logging in EP
    Thanx
    Pankaj

  • I've only had my iphone 5s for a week. I keep getting an error message of "Server has stopped responding."  I need the server to work. Does anyone know if there is a "fix" for the problem? Other wise, I probably best return for a refund and get a Samsung.

    I've only had my iphone 5s for a week. I keep getting an error message of "Server has stopped responding."  I need the server to work. Does anyone know if there is a "fix" for the problem? Other wise, I probably best return for a refund and get a Samsung.  Thanks

    sandyzotz wrote:
    Other wise, I probably best return for a refund and get a Samsung.
    Unlikely.  Based on the complete lack of detail of the issue provided it is entirely possible the same issue would occur.
    Unless and until the user provides some actual details of the problem, there is nothing the indicate that the issue is with the iPhone.

  • Aperture help not working - getting JavaScript error message

    My Aperture 3 has been having a lot of strange issues lately, most, but not all of which have been cleared up by holding down command + option while starting up and going through all three of the choices there.
    One problem that remains is the inability to open the Help files. I keep getting the following message:
    “The Help Library requires JavaScript.
    If JavaScript is not enabled, you will not
    be able to view all the content.”
    Help works in all other applications, like Pages and Final Cut Pro. I don’t get JavaScript error messages in any other applications.
    I’ve already done an erase and restore from a Time Machine backup, and an archive and install. I reinstalled Aperture, although not by using the Terminal command suggested in the kbase article # HT3805.
    If I go the Terminal command route, will I lose all my projects, albums, and editing? What about Mobile Me galleries?
    I have a guest user on the computer, and when I log on to that user and open Aperture, the Help Library works fine. So, I know the problem is in my user account somewhere, but I don’t know how to address it. Any ideas?

    Welcome to the forums.
    The fact that you have access to java in another user suggests that it is a local setting or preference.
    In the applications folder/utilities there is an application Java Preferences, try resetting this and seeing if it works.
    If not, try deleting the java preferences file in your users folder
    systemHD/Users/user/Library/Preferences/com.apple.java.JavaPreferences.plist
    relaunch the app Java Preferences which creates a new preferences file for you, then try Aperture again.
    Let us know how this goes.
    Tony

  • Face time no longer works for me. Lost my contacts even! Keep trying to change PWD and keep getting same error message: The server encountered an error processing registration. Please try again later. Can you advise? Thanks!

    Face time no longer works for me. Lost my contacts even! Keep trying to change PWD and keep getting same error message: The server encountered an error processing registration. Please try again later. Can you advise? Thanks!

    Face time no longer works for me. Lost my contacts even! Keep trying to change PWD and keep getting same error message: The server encountered an error processing registration. Please try again later. Can you advise? Thanks!

  • Getting javascript error in jsf portlet

    Hi,
    I wrote a jsf page with command links calling an action in ManagedBean. Its works fine if run as jsf page. But when I associate the jsf page with a portlet and run the page, I am getting javascript error when clicked on the command links.
    Please help me to resolve this problem.
    The jsf page
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/groupspace/tags/activemenus" prefix="activemenus" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <html>
    <head></head>
         <body>
    <f:view>
         <netuix:namingContainer id="facesContent">
              <h:form>
    <f:verbatim>
         <table border="0" width="100%">
              <tr>
                   <td>
                        <h:outputLabel value="Notifications" for="heading"/>
                   </td>
                   <td>
                        (<h:outputText value="#{notificationsBean.notificationsSize}" escape="true"/>)
                   </td>
                   <td>
                             <h:commandLink action="#{notificationsBean.showInWorkList}" immediate="true">
                                  <h:outputText value="Show in Worklist"/>
                             </h:commandLink>
                   </td>
                   <td>
                        <h:outputText value="hai"/>
                   </td>
              </tr>
         </table>
    </f:verbatim>     
              <div style="overflow: auto; width: 100%; height: 200px">
              <h:dataTable value="#{notificationsBean.userNotifs.notificationsList}" var="notification">
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="caseNB"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="####"/>
                                  <h:outputText value="Case ID"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.caseNB}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}" immediate="true">
                                  <h:outputText value="From"/>
                                  <f:param name="column" value="senderNM"/>
                                  <f:param name="pattern" value=""/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.senderNM}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="priorityCD"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Priority"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.priorityCD}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="subjectTX"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Subject"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.subjectTX}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="createDT"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="dd-MM-yyyy"/>
                                  <h:outputText value="Created(ET)"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.createDT}"/>
                   </h:column>
              </h:dataTable>
              </div>
                   </h:form>
    </netuix:namingContainer>
    </f:view>
    </body>
    </html>
    The Managed Bean:
    public class NotificationsManagedBean {
         private UserNotifications userNotifs=new UserNotifications();
         private int notificationsSize;
         private String column;
         private String sortDirection = "asc";
         private String pattern;
         public UserNotifications getUserNotifs() {
              getUserNotificationsList();
              return userNotifs;
         public void setUserNotifs(UserNotifications userNotifs) {
              this.userNotifs = userNotifs;
         public int getNotificationsSize() {
              getUserNotificationsList();
              return notificationsSize;
         public void setNotificationsSize(int notificationsSize) {
              this.notificationsSize = notificationsSize;
         public String getColumn() {
              return column;
         public void setColumn(String column) {
              this.column = column;
         public String getSortDirection() {
              return sortDirection;
         public void setSortDirection(String sortDirection) {
              if(sortDirection != null && sortDirection.trim().length()!=0)
                   this.sortDirection = sortDirection;
         public String getPattern() {
              return pattern;
         public void setPattern(String pattern) {
              this.pattern = pattern;
         public String showInWorkList() {
              System.err.println("test");
              return "success1";
              //TODO Auto-generated method stub
         public String sort(){
              sort(column, sortDirection);
              return "success";
         @SuppressWarnings("unchecked")
         private void getUserNotificationsList()
              ArrayList<Notification> notificationsList = new ArrayList<Notification>();
              for(int i=0;i<20;i++)
                   Notification notif = new Notification();
                   notif.setCaseNB("122"+i);
                   notif.setCreateDT("12-12-2002");
                   notif.setSenderNM("testing1"+(i%3));
                   System.out.println(notif.getSenderNM());
                   notif.setSubjectTX("testing2"+(i%4));
                   System.out.println(notif.getSubjectTX());
                   notif.setPriorityCD("High");
                   notificationsList.add(notif);
    userNotifs.setNotificationsList(notificationsList);
              if(userNotifs.getNotificationsList()!=null)
                   this.setNotificationsSize(userNotifs.getNotificationsList().size());
    * <p>Return the <code>FacesContext</code> instance for the
    * current request.
    protected FacesContext context() {
    return (FacesContext.getCurrentInstance());
    protected void sort(final String column, final String direction) {
              java.util.Comparator comparator = new SortComparator(userNotifs.getNotificationsList(),column,direction,pattern);
              java.util.Collections.sort(userNotifs.getNotificationsList(), comparator);     
              if(direction.equalsIgnoreCase("asc"))
                   setSortDirection("desc");
              else
                   setSortDirection("asc");
    }

    Too less relevant information and too much irrelevant code.
    First of all, which JS error exactly are you getting? You as developer should know better that you shouldn't ignore errors. They contain helpful information about the cause of the problem and thus also how to solve it. Where exactly does the error come from? (view the generated HTML source). Which JSF implementation and version exactly are you using? Which webbrowser exactly are you using? Does it work in/with other/newer versions?

  • [svn:bz-trunk] 14330: BLZ-476 : Getting different error message in server' s servlet log and console log when class is not of expected type.

    Revision: 14330
    Revision: 14330
    Author:   [email protected]
    Date:     2010-02-22 10:03:03 -0800 (Mon, 22 Feb 2010)
    Log Message:
    BLZ-476 : Getting different error message in server's servlet log and console log when class is not of expected type.
    QA: no
    Doc: no
    checkin test : pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-476
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.java

    Hi, wbracken ,
    As known, there are 2 different questions I raised.
    Regarding the reply for the second one (Nothing to do with Chinese), I noticed there are several similar issues found in this forum, and it seems no response could solve my that problem. The related methods and classes were also well check, as well as the parameters put.
    Any way, your reponse was appreciated.
    Thank you for the help.

  • [svn:bz-trunk] 14341: BLZ-476 : Getting different error message in server' s servlet log and console log when class is not of expected type.

    Revision: 14341
    Revision: 14341
    Author:   [email protected]
    Date:     2010-02-22 13:19:46 -0800 (Mon, 22 Feb 2010)
    Log Message:
    BLZ-476 : Getting different error message in server's servlet log and console log when class is not of expected type.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-476
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageBrokerServlet.java
        blazeds/trunk/modules/core/src/flex/messaging/util/ClassUtil.java

    Hi, wbracken ,
    As known, there are 2 different questions I raised.
    Regarding the reply for the second one (Nothing to do with Chinese), I noticed there are several similar issues found in this forum, and it seems no response could solve my that problem. The related methods and classes were also well check, as well as the parameters put.
    Any way, your reponse was appreciated.
    Thank you for the help.

  • I keep getting the error message "The server encountered an error processing registration.  Please try again later."  What do I need to do to fix this

    I keep getting the error message "The server encountered an error processing registration.  Please try again later."  What do I need to do to fix this

    FaceTime for Mac: troubleshooting FaceTime.
    http://support.apple.com/kb/ts4185

  • SEARCH hyperlink getting javascript errors

    The SEARCH hyperlink on the www.oracle.com/technology/index.html page doesn't work. It gets javascript errors and does nothing. I am using IE version 6.0.2800

    We are aware of the problem and working to resolve it. Hitting "Enter" after typing in your keyword will have the correct result however.
    Cheers, OTN

  • Very urgent: Travel Request Error in production server

    Hi All,
    While creating Travel request in production server, we are getting an error..
    Error while writing to the database PTRV_HEAD/PTRV_PERIO/Cluster TE
    Someone please help me on this. This is very urgent..
    Thanks in advance!

    Solved..by setting up trip number ranges..
    Thanks!

  • ESS Leave request screen giving a critical Error in production server

    Friends,
    We are in a critical face of ESS implemetation.
    We are doing an ESS MSS implementation for country grouping 99.
    When we moved our changes to production server after succesful testing in quality, getting the following Critical error for Leave Request Screen.
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:512)
         at java.util.ArrayList.get(ArrayList.java:329)
         at com.sap.aii.proxy.framework.core.JcoBaseList.get(JcoBaseList.java:272)
         at com.sap.aii.proxy.framework.core.AbstractList.get(AbstractList.java:230)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCList.get(DynamicRFCList.java:281)
         at com.sap.tc.webdynpro.progmodel.context.Node$ModelElementList.getElement(Node.java:2543)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
    Other areas like personal Info & who is who are working fine.
    Leave request was working fine in Development and Quality servers and it never worked in Production server.
    It worked fine with same config, with same master data and same employee & org structure in quality server.
    We tried the following things:
    1. Checked and confirmed the sequence of transports for configs and Developments to Quality and Production.
    Even compared the table level entries and ABAP codings B/n dev and Production. All are same.
    2. Moved the workflow changes to production and activated the same. No change found after that.
    3. Gave SAP all authorization in R/3 and full authorization from portal side as well.
    4. Assigned the userid to different employees and checked the masterdata of employees.
    5. Checked the note 1388426.Every thing mentioned in the note is there in the system.
    6. Verified Rule groups and WEBMO feature are correct and same as in quality.
    As our go live date is very near, request your help .Thanks in advance for your help.
    Regards,

    Customisation of Leave request is mising in your system, please check the rule group using PTARQ.

  • MS Sql error in production server: DBIF_REPO_SQL_ERROR

    Hi experts,
    I am getting this error in my production server.
    Environment : OS - Windows 2008, Database: MSsql 2005 sp2, ECC6.0
    when the job SAP_COLLECTOR_FOR_PERFMONITOR executes the dump occurs with the following error.
    DBIF_REPO_SQL_ERROR, SQL error 0 occurred when accessing program "CX_SY_OPEN_SQL_DB=============CP "
    and also i am not able to open db13 with ends up with abap dump.
    In the sql server log i found this error too.
    Database ID 5, Page (1:4804273) is marked RestorePending, which may indicate disk corruption. To recover from this state, perform a restore.
    Please help me on this.
    Regards
    Shankar PV

    I raised the Message with SAP and they asked to do the H/W audit. My H/W vendor executed the diagnostic reports and given the report as "NO H/W ISSUE".
    That we already get into know when i did the system refresh, (I Mean i moved the database to another machine there also i am getting those same error).
    As per the DBCC checkdb log we found 1 consistency errors in database 'PRD', and we found that the table too 'DB6PMPROT'.
    Since its the table for the the records of DB13, i can lose this table data. So I tried to delete the data from the table, tried to truncate the table
    and also tried deleting using the commands
    1. DELETE FROM [PRD].[prd].[DB6PMPROT]
    2. TRUNCATE TABLE [PRD].[prd].[DB6PMPROT]
    3. USE [PRD]
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID
    (N'[prd].[DB6PMPROT]') AND type in (N'U'))
    DROP TABLE [prd].[DB6PMPROT]
    4. DROP TABLE [PRD].[prd].[DB6PMPROT]
    For all the above mentioned commands the result is below
    Msg 829, Level 21, State 1, Line 3
    Database ID 5, Page (1:4804273) is marked RestorePending, which may
    indicate disk corruption. To recover from this state, perform a restore.
    Since the data in this table is not necessary, we need to drop and
    recreate the table.

  • Restart Workflow after error in Production Server.

    Hi Experts,
                     We had a Problem in PO Release in production Server no we have set the release strategy again.
    1)Can i Restart the Workflows from that date so that the PO which where in error will work with the new release strategy ?
    2) T code to Restart WF after Error is SWPR Right ? or should i Use SWPC
    3) Please tell me where to find WorkItem ID
    Regards,
    Hari

    Hi,
    if you know for what Key id you had wflow errored out, you can find it. FOr example, any invoice, Notification, etc., go to that document or notification, and click on the "Services for Obj" icon and go to workflow--->wflow over view. THis is how you get to the wflow log. And in that, youcan choose the Technical Details view which gives you the witem id.
    Instead, you can use SWI6 and give the BO and exact key and you will get to wflow log..Or you can use Txn SWI2_DIAG..
    Hope this helps
    venu

  • Cache refresh error in Production Server in XI

    Hi All,
    whenever any object in ID gets changed cache refresh stops in XI in the production server.It throws error that it is unable to refresh the cache.All post installation activities are done properly.What should be done to solve the issue.

    What is the exact error? You may try looking into these two guides:
    [How Tou2026 Handle Caches in SAP XI 3.0:|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290?quicklink=index&overridelayout=true]
    [How Tou2026 Handle XPI Caches in SAP NetWeaver 7.0:|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34?quicklink=index&overridelayout=true]
    For an overview of cache refresh errors in the Integration Repository or Integration Directory you can check SAP Note 780747.

Maybe you are looking for

  • Raw files not reading

    i was downloading my raw files from canon mark II and importing into Lightroom 4, i got half of them loaded but the rest didn't load bc it said it couldn't read the files.  and they say zero bytes and i can't open them or see them in my external hard

  • Hiding password in wicd

    Hi, I recently installed wicd to manage wifi connections. It bothered me that the password becomes visible after clicking into the password field (properties window). Since i didn't found anything in in the wiki and the forum i searched a little furt

  • Moving to Australia with my Imacs....

    I am moving to Australia and have two Imacs. Love them. Want to keep them. Can they run indefinitely on an international power adapter or do I need to change out the power source eventually. I don't want to sell them and rebuy over there.

  • MySql JDBC SQLException

    I am trying to connect to a MySQL database (with driver 2.0.14) using variables containing the user and password values. Unfortunately I get an SQLException "No suitable driver". It works fine when I hard code the values for the user and password in

  • Help to write using anlytical functions or singe count instead of many

    HI, Could you some one help to write as single count instead of many (.Or) Is there any way to write below query using analytical functions? SELECT paper_code,paper_code_description, numCandidates, cast(numAwaitingApproval as varchar2(10)) as numAwai