Translate

Thursday, May 21, 2015

The local BEA product registry is corrupted

You could see this error when you are dealing with WLS, I m not sure whether this is a common error or not as I wouldn't face this error so often. But here I would like to just throw a light on this error I encountered when I was playing with Oralce WLS patches.

Error :

The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support

Solution:

When you see this error, don't have to get panic about reinstalling/setting up WLS environment as stack trace says to do.

All you just need to make sure there are no spaces in input files (XML) while running scripts, installers.

For example :

[root@NA9F2RFV1 p12426828_1035_Generic]# java -jar patch-client-installer330_generic32.jar -mode=silent silent_xml=./silent.xml -log=install.txt -log_priority=debug

For some reason installer didn't like there is a space or value is in next line in my silent.xml and it errors it out.

2015-05-21 16:24:18,956 ERROR [home] com.bea.plateng.wizard.installer.helpers.BEAHomeHelper - Error setting selections!
com.bea.cie.gpr.model.RegistryException: Unable to locate product "Common Infrastructure Engineering"
at com.bea.cie.gpr.internal.model.HomeTargetImpl.setSelections(HomeTargetImpl.java:364)
at com.bea.plateng.wizard.installer.helpers.BEAHomeHelper.buildTarget(BEAHomeHelper.java:162)
at com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask.execute(SilentBEAHomeTask.java:33)
at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
at java.lang.Thread.run(Thread.java:662)
2015-05-21 16:24:18,956 ERROR [home] com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask - The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support

Example silent.xml file -

<!-- Silent installer option -mode=silent -silent_xml=C:\myfiles\silent.xml -->
<!-- Specify values for each data-value name as follows: 
 
     BEAHOME            Complete pathname to the Middleware Home directory that 
                        will contain this installation.
 
     WLS_INSTALL_DIR    Complete pathname to the product installation 
                        directory in which to install WebLogic Server.
 
     COMPONENT_PATHS    Components and subcomponents to be installed.
                        To install multiple components, separate the components
                        with a bar (|).
                        To install subcomponents, specify a 
                        component/subcomponent combination. For example,
                        to install Core Application Server, use
                        "WebLogic Server/Core Application Server".
     
     INSTALL_NODE_MANAGER_SERVICE  Install Node Manager as a Windows 
                                   service. The default is "no".
                                   Requires Administrator privileges.
 
     NODEMGR_PORT       Node Manager listen port number. If none specified,
                        installer uses default port 5556. 
                        INSTALL_NODE_MANAGER_SERVICE must be set to "yes".
     
     INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER
                        The Windows Start menu folder in which you want the 
                        Start menu shortcuts created.
                        The user performing the installation must have 
                        Administrator privileges to install the shortcuts 
                        in the All Users folder.
                        Possible values:
                        true/yes  The shortcuts are created in 
                                  the All Users folder (default)
                        false/no  The shortcuts are created in 
                                  the local user's folder    

     BEA_BUNDLED_JVMS
                        Option to select BEA bundled JVMS (for e.g. either
                        jrockit_160_05 or jdk160_05 for Windows and Linux
                        platforms). The default value is all BEA bundled JVMs
                        for selected platform.

     LOCAL_JVMS
                        Option to select supported JVM, which is already
                        installed. Note: The presence of either(BEA_BUNDLED_JVMS
                        or LOCAL_JVMS) or both of these tokens negates any
                        default selection and only sets the values assigned for
                        these tokens as user selection. The value of the token
                        can be a pipe ('|') separated JavaHomes.
-->

<?xml version="1.0" encoding="UTF-8"?>
   <bea-installer> 
     <input-fields>
       <data-value name="BEAHOME" value="D:\Oracle\Middleware_Home" />
       <data-value name="WLS_INSTALL_DIR" value="D:\Oracle\Middleware_Home\wlserver_10.3" />
       <data-value name="COMPONENT_PATHS"
        value="WebLogic Server/Core Application Server|WebLogic Server
/Administration Console|WebLogic Server/Configuration Wizard and Upgrade 
Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic 
JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server
/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins
|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
       <data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes" />
       <data-value name="NODEMGR_PORT" value="5559" />
       <data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
    <!--
    <data-value name="LOCAL_JVMS" value="D:\jrockit_160_05|D:\jdk160_11"/>
    -->
 
   </input-fields> 
</bea-installer>

- Srikanth Govada