My Oracle Support Banner

Issue In Importing ToDoType In Groovy Scripts. (Doc ID 2783114.1)

Last updated on OCTOBER 26, 2023

Applies to:

Oracle Utilities Customer Care and Billing - Version 2.8.0.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 2.8.0.0.0 version, ENV - Environment

Issue in importing ToDoType in groovy scripts in 2.8 environment.
Customer have observed issue with below import statement as part of groovy scripting
import com.splwg.base.domain.todo.toDoType.ToDoType

In 2.7 environment import of ToDoType class in groovy script is allowed and able to successfully save the script without compilation issue.

In 2.8 environment system throwing error while saving the scripts which has import statement to import the ToDoType

ERROR
-----------------------
10: groovy imports
General error during semantic analysis: Importing [com.splwg.base.domain.todo.toDoType.ToDoType] is not allowed
java.lang.SecurityException: Importing [com.splwg.base.domain.todo.toDoType.ToDoType] is not allowed
at org.codehaus.groovy.control.customizers.SecureASTCustomizer.assertImportIsAllowed(SecureASTCustomizer.java:957)
at org.codehaus.groovy.control.customizers.SecureASTCustomizer.call(SecureASTCustomizer.java:870)
at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:942)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:671)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:635)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389)
at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332)

Changes

 

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.