Unable to Add or Execute JQuery/Javascript from HTML Components or Documents in WebCenter Portal
(Doc ID 2812447.1)
Last updated on SEPTEMBER 21, 2023
Applies to:
Oracle WebCenter Portal - Version 12.2.1.3.0 to 12.2.1.4.0Information in this document applies to any platform.
Symptoms
Unable to add or execute JQuery/Javascript from HTML Components or Document in WebCenter Portal.
Some of the symptoms are:
- Unable to Execute JQuery/Javascript from HTML Components or Documents in WebCenter Portal.
Attempting to view a Document or HTML component with Javascript or JQuery will either show a blank page or return Internal Error.
The issue happens after applying the WebCenter Portal Bundle Patch 12.2.1.4.201126 or later.
- Unable to Add JQuery/Javascript to an HTML Component in WebCenter Portal.
After adding the JQuery/Javascript to an HTML Component the page stops working and you are not able to perform any actions on the page.
Editing the source code of the page you can see the SCRIPT tags are changed to NOSCRIPT.
The issue happens after applying the WebCenter Core Bundle Patch 12.2.1.4.220601 or later.
ERROR
- Attempting to view a Document or HTML component with Javascript or JQuery will either show a blank page or return the following error:
Internal Error
(WCS#YYYY.MM.DD.HH.MI.SS)
The WC_Portal-diagnostic.log shows the following error:
[<TIMESTAMP>] [WC_Portal] [ERROR] [] [oracle.adfinternal.view.faces.webapp.rich.ServletWindowManager] [tid:[ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid:<ECID>] [APP: webcenter][partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID:<DSID>] No window specified in request
[<TIMESTAMP>] [WC_Portal] [ERROR] [WCS-11002][oracle.webcenter.content.internal.http.HttpServiceImpl] [tid:[ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default(self-tuning)'] [userId: <USERID>] [ecid:<ECID>] [APP: webcenter][partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID:<DSID>] Internal server error: {0}[[
oracle.webcenter.content.internal.http.InternalServerErrorException: Internal server error: {0}
at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.getException(HttpServiceExceptionFactory.java:191)
at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.getException(HttpServiceExceptionFactory.java:128)
at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.getException(HttpServiceExceptionFactory.java:62)
at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.createInternalServerError(HttpServiceExceptionFactory.java:618)
at oracle.webcenter.content.internal.http.HttpServiceImpl.service(HttpServiceImpl.java:233)
at oracle.webcenter.content.http.GetHandlerServlet.service(GetHandlerServlet.java:239)
...
Caused by: java.lang.StackOverflowError
at java.util.regex.Pattern$Branch.match(Pattern.java:4618)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4672)
at java.util.regex.Pattern$Loop.match(Pattern.java:4799)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4731)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4582)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3791)
- Attempting to add JQuery/Javascript to an HTML Component in WebCenter Portal results in the page stop working.
The WC_Portal-diagnostic.log shows the following error:
[<TIMESTAMP>] [WC_Portal] [WARNING] [WCS-16197] [oracle.adf.view.page.editor.event.EventManager] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>c] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] Error encountered while dispatching an Composer event. Composer will continue with the next event handler.
[<TIMESTAMP>0] [WC_Portal] [WARNING] [] [oracle.adf.view.page.editor.event.EventManager] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] An error occurred while dispatching 'dialog' event in the event handler 'oracle.webcenter.dataconnection.view.handlers.EventHandler'.
[<TIMESTAMP>0] [WC_Portal] [WARNING] [] [oracle.adf.view.page.editor.event.EventManager] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] Resolve the error caused by the event handler or contact Oracle Support Services for assistance.
Changes
Applied the the WebCenter Portal Bundle Patch 12.2.1.4.201126 or later.
or
Applied the the WebCenter Core Bundle Patch 12.2.1.4.220601 or later.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |