Error when adding on-call role schedule

In an On-call role, when I try to add an on-call role schedule entry (put someone on call in that role) and after inputting the user, start and end time; when I click on Save, I get an unexpected error.

Details:

Problem:
*Please take a few moments to include a description of what you were doing when you encountered this problem. Without knowing the context of the error, it’s often difficult for the person looking at the problem to narrow the range of possible causes. Bug reports that do not include any information on the context in which the problem occurred will receive a lower priority and may even be closed as invalid. *

System Details
--------------
OpenNMS Version: 28.0.0
Java Version: 11.0.11 Ubuntu
Java Virtual Machine: 11.0.11+9-Ubuntu-0ubuntu2.20.04 Ubuntu
Operating System: Linux 5.4.0-81-generic amd64
Servlet Container: jetty/9.4.38.v20210224 (Servlet Spec 3.1)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Request Details
---------------
Locale: nl
Method: POST
Path Info: null
Path Info (translated): null
Protocol: HTTP/1.1
URI: /opennms/errors/unknownexception.jsp
URL: http://opennms:8980/opennms/errors/unknownexception.jsp
Scheme: http
Server Name: opennms
Server Port: 8980

Exception Stack Trace
---------------------
Print of stack trace is disabled

The schedule entry is not created.
I searched for this issue on issues.opennms.org but could not immediately find anything. Since I don’t have an account there, I post it here.

Expected outcome:
Have a new on call schedule entry.

OpenNMS version:
Horizon 28.0.0

Other relevant data:
Not sure what logs I should check.

Can you provide the exact steps to repro? I just tried on 28.0.2 and it’s working as expected, but my prior knowledge may be leading me to do this in a different order or different pattern from someone who has never used this feature before.

  1. On the Admin page I go to Configure Users, Groups and On-Call Roles, there I go to Configure On-Call Roles

  2. Button Add New On-Call Role

  3. I give it a Name, select a Supervisor and a Membership Group and click on Save

  4. On the calender view, I click on the + icon next to a date

  5. Leaving the start date (selected date 12am) untouched. En date is in the next month. Click Save button.

And that’s when the error occurs. I can’t really think of another way or order to do this.

In the meantime, can you point me to the configuration file where this can be configured ? Maybe faulty/missing or permissions related.

I would set web log to debug. You can set this in log4j2.xml, wait some time after changing it, then run a tail -f /var/log/opennms/web.log.
Usually you can find the error in the web log.

Thank you. I changed this line in log4j2.xml:

logger name=“org.eclipse.jetty.webapp” additivity=“false” level=“DEBUG”

(with the correct tags, but this forum also uses “less than” and “greater than” tags :slight_smile: )

Weird thing: When clicking on the Save button on the Edit Schedule Entry page, nothing at all is logged.

I do have other DEBUG log entries however. Fragment for example: I clicked the Save button at 9:27

2021-08-31 09:26:52,987 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResources META-INF/services/javax.xml.validation.SchemaFactory [jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/javax.xml.validation.SchemaFactory, jar:file:/usr/share/opennms/lib/xercesImpl-2.9.1.jar!/META-INF/services/javax.xml.validation.SchemaFactory]
2021-08-31 09:26:52,988 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResources META-INF/services/org.xml.sax.XMLReader []
2021-08-31 09:26:52,989 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResource META-INF/services/org.xml.sax.driver jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/org.xml.sax.driver
2021-08-31 09:26:53,066 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResources META-INF/services/javax.xml.validation.SchemaFactory [jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/javax.xml.validation.SchemaFactory, jar:file:/usr/share/opennms/lib/xercesImpl-2.9.1.jar!/META-INF/services/javax.xml.validation.SchemaFactory]
2021-08-31 09:26:53,068 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResources META-INF/services/org.xml.sax.XMLReader []
2021-08-31 09:26:53,068 DEBUG [qtp118557415-830946] o.e.j.w.WebAppClassLoader: getResource META-INF/services/org.xml.sax.driver jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/org.xml.sax.driver
2021-08-31 09:26:53,155 DEBUG [qtp118557415-975709] o.e.j.w.WebAppClassLoader: getResources META-INF/services/javax.xml.validation.SchemaFactory [jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/javax.xml.validation.SchemaFactory, jar:file:/usr/share/opennms/lib/xercesImpl-2.9.1.jar!/META-INF/services/javax.xml.validation.SchemaFactory]
2021-08-31 09:26:53,158 DEBUG [qtp118557415-975709] o.e.j.w.WebAppClassLoader: getResources META-INF/services/org.xml.sax.XMLReader []
2021-08-31 09:26:53,158 DEBUG [qtp118557415-975709] o.e.j.w.WebAppClassLoader: getResource META-INF/services/org.xml.sax.driver jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/org.xml.sax.driver
2021-08-31 09:28:06,614 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.min.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.min.json
2021-08-31 09:28:06,617 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.min.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.min.json
2021-08-31 09:28:06,618 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.min.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.min.json
2021-08-31 09:28:06,619 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.json
2021-08-31 09:28:06,622 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.json
2021-08-31 09:28:06,622 DEBUG [pool-47-thread-1] o.e.j.w.WebAppClassLoader: getResource assets/assets.json jar:file:/usr/share/opennms/lib/org.opennms.core.web-assets-28.0.0.jar!/assets/assets.json
2021-08-31 09:28:51,976 DEBUG [qtp118557415-823526] o.e.j.w.WebAppClassLoader: getResources META-INF/services/javax.xml.validation.SchemaFactory [jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/javax.xml.validation.SchemaFactory, jar:file:/usr/share/opennms/lib/xercesImpl-2.9.1.jar!/META-INF/services/javax.xml.validation.SchemaFactory]
2021-08-31 09:28:51,978 DEBUG [qtp118557415-823526] o.e.j.w.WebAppClassLoader: getResources META-INF/services/org.xml.sax.XMLReader []
2021-08-31 09:28:51,978 DEBUG [qtp118557415-823526] o.e.j.w.WebAppClassLoader: getResource META-INF/services/org.xml.sax.driver jar:file:/usr/share/opennms/lib/endorsed/org.apache.servicemix.bundles.xerces-2.11.0_1.jar!/META-INF/services/org.xml.sax.driver

So it does not even log the error that is shown in the web interface.

1 Like