java.lang.NullPointerException Error When Attempting to Consume a Custom Web Service Based On Data Control from Web Center Portal as a Task Flow (Doc ID 1998193.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

When Attempting to Consume a Custom Web Service Based On Data Control from Web Center Portal as a Task Flow,
the task flow will not work and the following error is shown in the WC_Spaces-diagnostic.log.



ERROR

[2015-03-10T12:10:13.067-06:00] [WC_Spaces] [ERROR] [] [oracle.adf.model.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 14405af33773b46b:1e870e70:14c046d5458:-8000-000000000000310b,0] [APP: webcenter#11.1.1.4.0] [DSID: 0000Kk4rytGBd5O_UhL6ic1KzlNP000004] Exception: [[
oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
  at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadFromMetadata(WSDefinition.java:771)
  at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:218)
...

Caused by: java.lang.NullPointerException
  at oracle.adfinternal.model.adapter.webservice.WSModel.getServices(WSModel.java:213)
  at oracle.adfinternal.model.adapter.webservice.WSModel.getServiceOperations(WSModel.java:305)
  at oracle.adfinternal.model.adapter.webservice.WSModel.getOperation(WSModel.java:430)
...

[2015-03-10T12:10:13.074-06:00] [WC_Spaces] [WARNING] [ADF_FACES-00009] [oracle.adf.view.rich.component.fragment.UIXRegion] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 14405af33773b46b:1e870e70:14c046d5458:-8000-000000000000310b,0] [APP: webcenter#11.1.1.4.0] [DSID: 0000Kk4rytGBd5O_UhL6ic1KzlNP000004] Error processing viewId: /currency-converter-tf/currencyConverter URI: /currencyConverter.jsff actual-URI: /currencyConverter.jsff.[[
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.adf.model.adapter.AdapterException, msg=DCA-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
  at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:239)
  at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:167)
  at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1128)
...

 

STEPS

The issue can be reproduced at will with the following steps:

 

  1. Create a Custom Data Control for a WebService.

  2. Create a Task Flow for the Data Control.

  3. Confirm the Task Flow runs fine from standalone ADF application.

  4. Deploy the custom task flow to WC_Spaces managed server as shared library.

  5. Register the Task Flow with WebCenter Portal as per the following doc:
    http://www.oracle.com/technetwork/middleware/webcenter/portal/learnmore/wcp-createcustomtaskflow-2135965.pdf
     
  6. Add the task flow to a custom catalog.
     
  7. Create a portal and set it to use the custom catalog.
     
  8. Add the task flow to a page.
    Here you can see the task flow but all actions on the page are frozen.
    The spaces diagnostic log will show the java.lang.NullPointerException error.

 

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