"XML-20201: (Fatal Error) Expected Name Instead Of (" When Starting OC4J After Adding A Special Character "&" to system_jazn_data.xml (Doc ID 1183413.1)

Last updated on NOVEMBER 01, 2016

Applies to:

Oracle Containers for J2EE - Version 10.1.3.1.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 20-May-2016***

Symptoms

In Oracle Application Server 10.1.3 Console, when navigating to page:  Cluster Topology  >  Application Server: as1.oracle.com  >  OC4J: <OC4J_Name>  >  Application: Test  >  Security Provider  >  Change Security Provider, an issue is occurring when setting one of the Login Modules Properties (searchFilter) as following:

<name>searchFilter</name>
    <value>(&(uid={USERNAME})(inetUserStatus=Active))</value>


The above value will be written to the file system_jazn_data.xml, and will not allow the OC4J to start, with the following error reported in  $ORACLE_HOME/opmn/logsdefault_group~<OC4J_NAME>~default_group~1.log:

file:$ORACLE_HOME/j2ee/<OC4J_NAME>/config/system-jazn-data.xml<Line 332, Column 16>: XML-20201: (Fatal Error) Expected name instead of (.
10/07/08 14:37:22 Error parsing application-server config file: Invalid usermanager configuration.
10/07/08 14:37:22 oracle.security.jazn.JAZNRuntimeException: Invalid usermanager configuration.
10/07/08 14:37:22 at oracle.security.jazn.oc4j.DelegateUserManager.checkForParent(JAZNUserManager.java:3255)
10/07/08 14:37:22 at oracle.security.jazn.oc4j.DelegateUserManager.getAdminUser(JAZNUserManager.java:3279)
10/07/08 14:37:22 at oracle.security.jazn.oc4j.FilterUserManager.getAdminUser(JAZNUserManager.java:4899)
10/07/08 14:37:22 at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
10/07/08 14:37:22 at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
10/07/08 14:37:22 at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:2981)
10/07/08 14:37:22 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:95)
10/07/08 14:37:22 at java.lang.Thread.run(Thread.java:595)
10/07/08 14:37:22 Fatal error: server exiting

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms