Verj.io Working days calendar error

Post any questions regarding Installing or Upgrading Ebase, including problems starting up the Ebase Xi Server or Designer

Moderators: Ian, Dave, jcoulson, Jon, Wai

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Verj.io Working days calendar error

#1

Postby neilnewman » Wed Jun 13, 2018 9:32 am

I have just upgraded one of our Ebase instances to Verj.io and was looking at the "Working Days Calendar".
When I click on a date I get the following error:
TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
Any ideas what I have got wrong here?
0 x

Jon
Moderator
Moderator
Posts: 1278
Joined: Wed Sep 12, 2007 12:49 pm

Re: Verj.io Working days calendar error

#2

Postby Jon » Wed Jun 13, 2018 1:39 pm

When you first go into the calendar you should see a drop down list of years going roughly from 2016 - 2027, month lists for each year and a display for each month showing Sat/Sun as holidays. Do you see all of this?
What exactly were you doing when it went wrong?
Can you recreate the problem?
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#3

Postby neilnewman » Thu Jun 14, 2018 7:46 am

Hi Jon,
Yup I can see June 2018, when I click on a date within the Calendar I get the error
Image
0 x

Jon
Moderator
Moderator
Posts: 1278
Joined: Wed Sep 12, 2007 12:49 pm

Re: Verj.io Working days calendar error

#4

Postby Jon » Thu Jun 14, 2018 11:51 am

You should be seeing Saturdays and Sundays as green. What do you have set as the Holiday Class Names parameter in server admin: Server Properties > General properties. You should have: "com.ebasetech.ufs.workflow.server.external.calendar.Weekends".
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#5

Postby neilnewman » Thu Jun 14, 2018 1:36 pm

Hi Jon,
All days are showing blue on white.
The parameter does appear to be correct, (please see attached screen shot)
Image

Many thanks
Neil
0 x

Jon
Moderator
Moderator
Posts: 1278
Joined: Wed Sep 12, 2007 12:49 pm

Re: Verj.io Working days calendar error

#6

Postby Jon » Thu Jun 14, 2018 4:50 pm

Neil,
I don't know why you're getting this error - it's a bit of a mystery. Could you please check the server log for errors. The calendar is loaded when it's first accessed after a server restart, so any errors might be some time in the past.
Regards
Jon
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#7

Postby neilnewman » Fri Jun 15, 2018 8:06 am

Hi Jon,
I have attached the systems log files, looks to have an issue, but I don't know what it is telling me:

Fri Jun 15 08:46:25: INFO Executing Javascript script SYSADMIN_CALENDAR_DAY_INIT
Fri Jun 15 08:46:25: ERROR TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)

Many thanks
Neil
Attachments
logfiles.7z
(21.35 KiB) Downloaded 18 times
0 x

Jon
Moderator
Moderator
Posts: 1278
Joined: Wed Sep 12, 2007 12:49 pm

Re: Verj.io Working days calendar error

#8

Postby Jon » Fri Jun 15, 2018 1:31 pm

Neil,

Could I ask you to do some diagnostic work to help sort this out:

1. Turn on debug for the Rest service that loads the calendar: edit file /<ebaseRoot>/InternalWorkspace/ebaseInternalServerAdmin/api/serverAdmin.eb/serverAdmin.eb
2. Locate the getOrganisationalCalendar endpoint
3. Add debug="true" as an attribute to this endpoint
4. Then restart the server and start the server admin app and click on the Working Day Calendar - this loads the calendar
5. The log file should now contain a JSON representation of the last 10 years of the calendar.

Could you please send the log file to support@ebasetech.com
P.S. if this file doesn't exist in the internal workspace, you probably haven't upgraded the server admin correctly.

Regards
Jon
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#9

Postby neilnewman » Mon Jun 18, 2018 12:01 pm

Hi Jon,
Hopefully the log file you need is below:

Many thanks
Neil

Mon Jun 18 12:39:57: ************************************************************
Mon Jun 18 12:39:57: *** Starting Ebase Xi Server version 5.3.2, Build 20180105
Mon Jun 18 12:39:57: ************************************************************
Mon Jun 18 12:39:58: INFO Licence is valid
Mon Jun 18 12:40:04: Ebase Xi Designer server component initialised successfully
Mon Jun 18 12:40:04: Workflow servlet component initialised successfully
Mon Jun 18 12:40:05: FormCacheLoader: start
Mon Jun 18 12:40:05: FormCacheLoader: end
Mon Jun 18 12:40:05: ******************************************************************
Mon Jun 18 12:40:05: *** Ebase Xi Server V5.3.2 successfully initialized in 8 seconds
Mon Jun 18 12:40:05: *** Using workspace D:\Ebase\dbc-ebase-test\Workspace
Mon Jun 18 12:40:05: ******************************************************************
Mon Jun 18 12:41:27: INFO << START EXECUTION OF FORM ebaseAdmin >>
Mon Jun 18 12:41:27: INFO Running Before Form event for ebaseAdmin
Mon Jun 18 12:41:27: INFO Executing Javascript script SYSADMIN_SET_LANGUAGE
Mon Jun 18 12:41:27: INFO Executing Javascript script serverAdminPaaSInit
Mon Jun 18 12:41:27: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_CHECK
Mon Jun 18 12:41:28: INFO Registering RESTful Web Service: serverAdmin
Mon Jun 18 12:41:28: INFO Start of page LOGON_PAGE
Mon Jun 18 12:41:28: INFO Running Before Page event for Page LOGON_PAGE
Mon Jun 18 12:41:28: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_LOGON_BP
Mon Jun 18 12:41:28: INFO Running integrated server:: false
Mon Jun 18 12:41:28: INFO <-- Displaying page LOGON_PAGE
Mon Jun 18 12:41:36: INFO --> User input received on page LOGON_PAGE
Mon Jun 18 12:41:36: INFO Button (BUTTON1) clicked
Mon Jun 18 12:41:36: INFO Running On Click event for Control BUTTON1
Mon Jun 18 12:41:36: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_LOGON
Mon Jun 18 12:41:36: INFO Start of page HOME
Mon Jun 18 12:41:36: INFO Running Before Page event for Page HOME
Mon Jun 18 12:41:36: INFO Executing Javascript script SYSADMIN_HOME_INIT
Mon Jun 18 12:41:36: INFO Running Before Control event for Control H_pageHeader__FIELDCONTROL1, value=null
Mon Jun 18 12:41:36: INFO Executing Javascript script crumbTrailCopy
Mon Jun 18 12:41:36: INFO <-- Displaying page HOME
Mon Jun 18 12:41:39: INFO --> User input received on page HOME
Mon Jun 18 12:41:39: INFO Hyperlink (MENU_CALENDAR) clicked
Mon Jun 18 12:41:39: INFO Running On Click event for Control MENU_CALENDAR
Mon Jun 18 12:41:39: INFO Executing Javascript script SYSADMIN_HOMEPAGEMENU_CLICK
Mon Jun 18 12:41:39: INFO Start of page CALENDAR
Mon Jun 18 12:41:39: INFO Running Before Page event for Page CALENDAR
Mon Jun 18 12:41:39: INFO Executing Javascript script SYSADMIN_CALENDAR_INIT
Mon Jun 18 12:41:39: DEBUG Inbound REST:
----------------------------------------------------
GET /serverAdmin/getOrganisationalCalendar
Headers: {host=[127.0.0.1:3040], connection=[Keep-Alive], accept-encoding=[gzip,deflate], user-agent=[Apache-HttpClient/4.5.1 (Java/1.8.0_172)]}

Parameters:
Payload:

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

Mon Jun 18 12:41:39: DEBUG ** START EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:39: INFO Running Endpoint event for getOrganisationalCalendar
Mon Jun 18 12:41:39: INFO Executing Javascript script adminApi
Mon Jun 18 12:41:39: DEBUG ** END EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:39: DEBUG Outbound REST:
----------------------------------------------------
Status: 200
Headers:
Payload:
{
"_id" : "ebasecal",
"_yearsMap" : { }
}
----------------------------------------------------

Mon Jun 18 12:41:39: INFO Running Before Control event for Control CAL_pageHeader__FIELDCONTROL1, value=null
Mon Jun 18 12:41:39: INFO Executing Javascript script crumbTrailCopy
Mon Jun 18 12:41:39: INFO <-- Displaying page CALENDAR
Mon Jun 18 12:41:42: INFO << START EXECUTION OF FORM ebaseCalendarDayEdit >>
Mon Jun 18 12:41:42: INFO Running Before Form event for ebaseCalendarDayEdit
Mon Jun 18 12:41:42: INFO Executing Javascript script SYSADMIN_SET_LANGUAGE
Mon Jun 18 12:41:42: INFO << START EXECUTION OF FORM ebaseCalendarDayEdit >>
Mon Jun 18 12:41:42: INFO Running Before Form event for ebaseCalendarDayEdit
Mon Jun 18 12:41:42: INFO Executing Javascript script SYSADMIN_SET_LANGUAGE
Mon Jun 18 12:41:42: INFO Start of page CALENDAR_DAY_EDIT
Mon Jun 18 12:41:42: INFO Running Before Page event for Page CALENDAR_DAY_EDIT
Mon Jun 18 12:41:42: INFO Executing Javascript script SYSADMIN_CALENDAR_DAY_INIT
Mon Jun 18 12:41:42: INFO Start of page CALENDAR_DAY_EDIT
Mon Jun 18 12:41:42: INFO Running Before Page event for Page CALENDAR_DAY_EDIT
Mon Jun 18 12:41:42: INFO Executing Javascript script SYSADMIN_CALENDAR_DAY_INIT
Mon Jun 18 12:41:42: DEBUG Inbound REST:
----------------------------------------------------
GET /serverAdmin/getOrganisationalCalendar
Headers: {host=[127.0.0.1:3040], connection=[Keep-Alive], accept-encoding=[gzip,deflate], user-agent=[Apache-HttpClient/4.5.1 (Java/1.8.0_172)]}

Parameters:
Payload:

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

Mon Jun 18 12:41:42: DEBUG ** START EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:42: INFO Running Endpoint event for getOrganisationalCalendar
Mon Jun 18 12:41:42: INFO Executing Javascript script adminApi
Mon Jun 18 12:41:42: DEBUG ** END EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:42: DEBUG Outbound REST:
----------------------------------------------------
Status: 200
Headers:
Payload:
{
"_id" : "ebasecal",
"_yearsMap" : { }
}
----------------------------------------------------

Mon Jun 18 12:41:42: ERROR TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:358)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:280)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:135)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:101)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:448)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:417)
at com.ebasetech.ufs.runtime.Request._execute(Request.java:352)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:317)
at formservlets.FormProcessingUtil.executeRequest(FormProcessingUtil.java:503)
at formservlets.FormProcessor.performExecution(FormProcessor.java:162)
at formservlets.FormProcessor.processRequest(FormProcessor.java:149)
at formservlets.FormProcessor.runForm(FormProcessor.java:46)
at formservlets.FormClient.process(FormClient.java:118)
at formservlets.FormClient.doGet(FormClient.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at formservlets.EbaseFilter.processHtmlRequest(EbaseFilter.java:355)
at formservlets.EbaseFilter.processRequest(EbaseFilter.java:258)
at formservlets.EbaseFilter.performFilter(EbaseFilter.java:180)
at formservlets.EbaseFilter.doFilter(EbaseFilter.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Mon Jun 18 12:41:42: INFO Transaction rolled back
Mon Jun 18 12:41:42: ERROR com.ebasetech.xi.exceptions.FormRuntimeException: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
Mon Jun 18 12:41:42: DEBUG Inbound REST:
----------------------------------------------------
GET /serverAdmin/getOrganisationalCalendar
Headers: {host=[127.0.0.1:3040], connection=[Keep-Alive], accept-encoding=[gzip,deflate], user-agent=[Apache-HttpClient/4.5.1 (Java/1.8.0_172)]}

Parameters:
Payload:

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

Mon Jun 18 12:41:42: DEBUG ** START EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:42: INFO Running Endpoint event for getOrganisationalCalendar
Mon Jun 18 12:41:42: INFO Executing Javascript script adminApi
Mon Jun 18 12:41:42: DEBUG ** END EXECUTION OF RESTFUL WEB SERVICE serverAdmin using endpoint: getOrganisationalCalendar **
Mon Jun 18 12:41:42: ERROR TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:358)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:280)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:135)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:101)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:71)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:448)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:417)
at com.ebasetech.ufs.runtime.Request._execute(Request.java:352)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:317)
at formservlets.FormProcessingUtil.executeRequest(FormProcessingUtil.java:503)
at formservlets.FormProcessor.performExecution(FormProcessor.java:162)
at formservlets.FormProcessor.processRequest(FormProcessor.java:149)
at formservlets.FormProcessor.runForm(FormProcessor.java:46)
at formservlets.FormClient.process(FormClient.java:118)
at formservlets.FormClient.doGet(FormClient.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at formservlets.EbaseFilter.processHtmlRequest(EbaseFilter.java:355)
at formservlets.EbaseFilter.processRequest(EbaseFilter.java:258)
at formservlets.EbaseFilter.performFilter(EbaseFilter.java:180)
at formservlets.EbaseFilter.doFilter(EbaseFilter.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Mon Jun 18 12:41:42: INFO Transaction rolled back
Mon Jun 18 12:41:42: ERROR com.ebasetech.xi.exceptions.FormRuntimeException: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: TypeError: Cannot read property "6" from undefined (SYSADMIN_CALENDAR_DAY_INIT#18)
Mon Jun 18 12:41:42: DEBUG Outbound REST:
----------------------------------------------------
Status: 200
Headers:
Payload:
{
"_id" : "ebasecal",
"_yearsMap" : { }
}
----------------------------------------------------

Mon Jun 18 12:55:34: INFO --> User input received on page CALENDAR
Mon Jun 18 12:55:34: INFO Hyperlink (CAL_pageHeader__LOG_OUT) clicked
Mon Jun 18 12:55:34: INFO Running On Click event for Control CAL_pageHeader__LOG_OUT
Mon Jun 18 12:55:34: INFO Executing Javascript script SYSADMIN_LOGOUT
Mon Jun 18 12:55:34: INFO << START EXECUTION OF FORM ebaseInternalLogout >>
Mon Jun 18 12:55:34: INFO Running Before Form event for ebaseInternalLogout
Mon Jun 18 12:55:34: INFO Executing Javascript script SYSADMIN_SET_LANGUAGE
Mon Jun 18 12:55:34: INFO Start of page PAGE_1
Mon Jun 18 12:55:34: INFO <-- Displaying page PAGE_1
Mon Jun 18 12:56:08: INFO << START EXECUTION OF FORM ebaseAdmin >>
Mon Jun 18 12:56:08: INFO Running Before Form event for ebaseAdmin
Mon Jun 18 12:56:08: INFO Executing Javascript script SYSADMIN_SET_LANGUAGE
Mon Jun 18 12:56:08: INFO Executing Javascript script serverAdminPaaSInit
Mon Jun 18 12:56:08: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_CHECK
Mon Jun 18 12:56:08: INFO Start of page LOGON_PAGE
Mon Jun 18 12:56:08: INFO Running Before Page event for Page LOGON_PAGE
Mon Jun 18 12:56:08: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_LOGON_BP
Mon Jun 18 12:56:08: INFO Running integrated server:: false
Mon Jun 18 12:56:08: INFO <-- Displaying page LOGON_PAGE
Mon Jun 18 12:56:18: INFO --> User input received on page LOGON_PAGE
Mon Jun 18 12:56:18: INFO Button (BUTTON1) clicked
Mon Jun 18 12:56:18: INFO Running On Click event for Control BUTTON1
Mon Jun 18 12:56:18: INFO Executing Javascript script SYSADMIN_AUTHORIZATION_LOGON
Mon Jun 18 12:56:18: INFO Start of page HOME
Mon Jun 18 12:56:18: INFO Running Before Page event for Page HOME
Mon Jun 18 12:56:18: INFO Executing Javascript script SYSADMIN_HOME_INIT
Mon Jun 18 12:56:18: INFO Running Before Control event for Control H_pageHeader__FIELDCONTROL1, value=null
Mon Jun 18 12:56:18: INFO Executing Javascript script crumbTrailCopy
Mon Jun 18 12:56:18: INFO <-- Displaying page HOME
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#10

Postby neilnewman » Mon Jun 18, 2018 2:14 pm

Hi Jon,
I have just upgraded another instance of Ebase and the Calendar is working fine here.
I cannot see that I did anything different this time around, but this shows that I got something wrong when I upgraded the previous instances somewhere.

Any ideas as to which area I should be looking at?

Thanks
Neil
0 x

Jon
Moderator
Moderator
Posts: 1278
Joined: Wed Sep 12, 2007 12:49 pm

Re: Verj.io Working days calendar error

#11

Postby Jon » Tue Jun 19, 2018 9:05 am

Thanks for the extra info. The yearsmap object is empty - it should be full of 10 years worth of data. I'm struggling to work out any way in which this could happen. The only possibilities I can see are:

1. The holiday class names parameter is empty. This doesn't seem to be the case but you might check in server.properties in tomcat/webapps/<app>/ebaseConf just to make sure.

2. The system clock is set to a year prior to 2012 - doesn't seem very likely.
0 x

neilnewman
Ebase User
Posts: 162
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Verj.io Working days calendar error

#12

Postby neilnewman » Tue Jun 19, 2018 10:13 am

Hi Jon,
Many thanks, the issue was with the server.propeties file. The problem system had the line:
Ufs.HolidayClassNames=
whilst the working system had no such entry.

Many thanks for your help
Neil
0 x


Who is online

Users browsing this forum: No registered users and 2 guests