Infrastructure at your Service

Morgan Patou

Documentum – DA 7.3 showing java.lang.NullPointerException on every actions

Last year, we started to upgrade some Documentum Administrator from 7.2 to 7.3 and directly after, we started to see some NullPointerException on the log files. We are using DA 7.3 on some recent WebLogic Servers versions (12.1.3, We usually deploy DA as a WAR file (so not exploded) with just the, keystores and logs outside of it. This is the kind of errors we started to see as soon as it was upgraded to 7.3 in the startup log file (nohup log file in our case):

        at com.documentum.web.form.WebformTag.fetchExtnNativeVersion(
        at com.documentum.web.form.WebformTag.renderExtnJavaScript(
        at com.documentum.web.form.WebformTag.doStartTag(
        at jsp_servlet._custom._jsp.__loginex._jsp__tag3(
        at jsp_servlet._custom._jsp.__loginex._jspService(
        at weblogic.servlet.jsp.JspBase.service(
        at weblogic.servlet.internal.StubSecurityHelper$
        at weblogic.servlet.internal.StubSecurityHelper$
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
        at weblogic.servlet.internal.ServletStubImpl.execute(
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(
        at weblogic.servlet.internal.ServletStubImpl.execute(


The stack on the line 7 and 8 changed, depending on the action that was being performed. For example an access to the login page would print the following:

        at jsp_servlet._custom._jsp.__loginex._jsp__tag3(
        at jsp_servlet._custom._jsp.__loginex._jspService(


Then once logged in, you would see each component printing the same kind of stack, with the following lines 7 and 8:

        at jsp_servlet._webtop._main.__mainex._jsp__tag0(
        at jsp_servlet._webtop._main.__mainex._jspService(


        at jsp_servlet._webtop._classic.__classic._jsp__tag0(
        at jsp_servlet._webtop._classic.__classic._jspService(


        at jsp_servlet._webtop._titlebar.__titlebar._jsp__tag0(
        at jsp_servlet._webtop._titlebar.__titlebar._jspService(


        at jsp_servlet._webtop._messagebar.__messagebar._jsp__tag0(
        at jsp_servlet._webtop._messagebar.__messagebar._jspService(



We were working with OpenText on this issue. As mentioned in the stack trace, this is actually because DA is trying to fetch the “ExtnNativeVersion”. This is a property file located there: wdk/extension/client/EMC/ContentXfer/com.emc.wdk.native/1. Unfortunately, when DA 7.3 is trying to locate this file, it does not work but the file is really present… It does not work because the DA is deployed as a WAR file (an archive) and therefore the path to the file is wrong. I suspect this is something that Documentum changed recently, using the getRealPath(). To change the behavior of the getRealPath function, you have to set the property “Archived Real Path Enabled” to true so it returns the canonical path of the file…

So to remove these exceptions, you have two options:

I. At the domain level:

  1. Login to the WebLogic Administration Console using your weblogic account
  2. Navigate to the correct page: DOMAIN > Configuration > Web Applications
  3. Click on the ‘Lock & Edit’ button
  4. Check the ‘Archived Real Path Enabled’ checkbox ( = set it to true)
  5. Click on the ‘Save’ and then ‘Activate Changes’ buttons

This will add the configuration to the global config.xml file so it is enabled for the whole domain. As often, I would not recommend that but rather configuring this at the application level because you might have other applications that do NOT want this setting to be set to true… So that is why you have the option number two:

II. At the application level:

The high level steps to do that would be the following ones:

  1. Extract the weblogic.xml file from the application war file
  2. Add the ‘Archived Real Path Enabled’ property in it and set it to true
  3. Repackage the war file and redeploy it

This is pretty simple:

[weblogic@weblogic_server_01 ~]$ cd $APPS_HOME
[weblogic@weblogic_server_01 apps]$ jar -xvf da.war WEB-INF/weblogic.xml
 inflated: WEB-INF/weblogic.xml
[weblogic@weblogic_server_01 apps]$
[weblogic@weblogic_server_01 apps]$ vi WEB-INF/weblogic.xml
[weblogic@weblogic_server_01 apps]$
[weblogic@weblogic_server_01 apps]$ tail -6 WEB-INF/weblogic.xml


[weblogic@weblogic_server_01 apps]$
[weblogic@weblogic_server_01 apps]$ jar -uvf da.war WEB-INF/weblogic.xml
adding: WEB-INF/weblogic.xml(in = 989) (out= 398)(deflated 59%)
[weblogic@weblogic_server_01 apps]$


Then, you just need to update the deployment in the WebLogic Administration Console and that’s it, the exceptions should be gone now. As far as I’m aware of, these exceptions did not have any impact on the proper behavior of Documentum Administrator but it is still very ugly to have hundreds of them in the log file…


Leave a Reply

Morgan Patou
Morgan Patou

Senior Consultant