My Oracle Support Banner

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 JUNE 28, 2019

Applies to:

Oracle WebCenter Portal - Version 11.1.1.8.0 to 12.2.1.3.0
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 Portal diagnostic log.

 

ERROR : 12c Release

[2018-06-11T12:00:43.869-04:00] [WC_Portal] [ERROR] [] [oracle.adf.model.adapter] [tid: [ACTIVE].ExecuteThread: '46' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <user>] [ecid: <ecid>,0] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: 0000MFjWGkPDwW05zzWByW1R7bxb000003] Exception: [[
oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.adf.model.adapter.AdapterException, msg=DCA-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:903)
at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:202)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:277)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1437)
...

Caused by: oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:901)
... 264 more
Caused by: java.lang.NullPointerException
at oracle.adfinternal.model.adapter.webservice.WSModel.getServices(WSModel.java:249)
at oracle.adfinternal.model.adapter.webservice.WSModel.getServiceOperations(WSModel.java:341)
at oracle.adfinternal.model.adapter.webservice.WSModel.getOperation(WSModel.java:466)
at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadSavedOperations(WSDefinition.java:2025)
at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadDCOperations(WSDefinition.java:1974)
at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:852)
... 264 more
## Detail 0 ##
oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:901)
at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:202)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:277)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1437)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1917)
...



ERROR : 11g Release

[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: <user>c] [ecid: <ecid>,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: <user>] [ecid: <ecid>,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:
    Development Lifecycle for Task Flows in Oracle WebCenter Portal 11gR1 version 11.1.1.8.0
     
  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.

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.