Custom Code Calling "intradoc.apputilities.idccommand.IdcExecuteServer" Fails with java.awt.HeadlessException (Doc ID 1500740.1)

Last updated on MAY 30, 2017

Applies to:

Oracle WebCenter Content - Version 11.1.1.3.0 to 11.1.1.6.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

Running a piece of custom code that uses the "intradoc.apputilities.idccommand.IdcExecuteServer" API method to call a local service fails with the following exception in the WLS UCM server log files (UCM_server1.log or UCM_server1-diagnostic.log):

 

intradoc.common.ServiceException: !csUnableToExecMethod,yourMethod
*ScriptStack YOUR_CUSTOM_SERVICE
3:createEmployeeFolder,**no captured values**
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
...
Caused by: java.lang.ExceptionInInitializerError
at intradoc.apputilities.idccommand.IdcExecuteServer.executeCommandViaStandAlone(IdcExecuteServer.java:340)
at intradoc.apputilities.idccommand.IdcExecuteServer.executeCommand(IdcExecuteServer.java:290)
at <your_custom_code>
... 48 more
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:432)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.JFrame.<init>(JFrame.java:158)
at intradoc.apps.shared.StandAloneApp.<clinit>(StandAloneApp.java:89)
at intradoc.apputilities.idccommand.IdcExecuteServer.executeCommandViaStandAlone(IdcExecuteServer.java:340)
... 47 more

 
Once this exception is thrown, UCM may become unstable and throw the following exception in the logs:

[ServletContext@153048627[app:Oracle Universal Content Management - Content Server module:/ path: spec-version:2.5]] Root cause of ServletException.
java.io.IOException: !csServletErrorExecutingRequest
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1372)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
...
Caused By: java.lang.NullPointerException
at intradoc.jdbc.JdbcWorkspace.addOrRemoveThreadTimeout(JdbcWorkspace.java:2557)
at intradoc.jdbc.JdbcWorkspace.clearThreadTimeout(JdbcWorkspace.java:2493)
at intradoc.server.ServiceManager.cleanup(ServiceManager.java:472)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:297)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1343)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
...

 

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