PAPI method viewGet(viewID) fails with a NullPointerException (Doc ID 881006.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Business Process Management Suite - Version: 10.3.1 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.
***Checked for relevance on 29-Nov-2011***

Symptoms

Execution of the papi method viewGet(viewID) gets the view, but a NPEexception occurs and Column
Ordering in Presentation object is null even though the Sorting is there in Presentation.
The error occurs only when accessing the project straight from CVS. If the test is done using an
exported version of the project it works fine.

Exception in log:

java.lang.NullPointerException
at fuego.project.io.fs.ViewVisitor$ViewFileFilter.isViewFile(ViewVisitor.java:166)
at fuego.project.io.fs.ViewVisitor$ViewFileFilter.accept(ViewVisitor.java:150)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.processFile(AbstractFileSystemVisitor.java:51)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.processFile(AbstractFileSystemVisitor.java:46)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.processFile(AbstractFileSystemVisitor.java:46)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.load(AbstractFileSystemVisitor.java:75)
at fuego.project.io.fs.visitor.AbstractVisitor.loadAll(AbstractVisitor.java:72)
at fuego.project.io.fs.FileProjectLoader.load(FileProjectLoader.java:704)
at fuego.project.io.fs.FileProjectLoader.loadViewMgmt(FileProjectLoader.java:154).
at fuego.project.FuegoProject.getViewManager(FuegoProject.java:1099)
at fuego.directory.project.engine.ProjectFullOrganizationAccessor.fetchAllViews(ProjectFullOrganizationAccessor.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at fuego.directory.provider.DirectorySessionImpl$AccessorProxy.invoke(DirectorySessionImpl.java:756)
at $Proxy3.fetchAllViews(Unknown Source)
at fuego.directory.DirView.fetchAll(DirView.java:87)
at fuego.papi.impl.view.DirectoryViewLoader.loadOrganizationalViews(DirectoryViewLoader.java:116)
at fuego.view.mgmt.ViewManager.loadOrganizationalViews(ViewManager.java:142)
at fuego.papi.impl.view.ViewManager.loadOrganizationalViews(ViewManager.java:321)
at fuego.papi.impl.ProcessServiceImpl.getViews(ProcessServiceImpl.java:1432)
at fuego.papi.impl.SessionViewManager.fill(SessionViewManager.java:717)
at fuego.papi.impl.SessionViewManager.getCache(SessionViewManager.java:704)
at fuego.papi.impl.SessionViewManager.getView(SessionViewManager.java:181)
at fuego.papi.impl.ProcessServiceSessionImpl.viewGet(ProcessServiceSessionImpl.java:3064)
at com.customer.CustomerPAPIclass.customerPAPImethod(CustomerPAPIclass.java:123)
java.lang.NullPointerException
at fuego.project.io.fs.ViewVisitor$ViewFileFilter.isViewFile(ViewVisitor.java:166)
at fuego.project.io.fs.ViewVisitor$ViewFileFilter.accept(ViewVisitor.java:150)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.processFile(AbstractFileSystemVisitor.java:51)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.processFile(AbstractFileSystemVisitor.java:46)
at fuego.project.io.fs.visitor.AbstractFileSystemVisitor.load(AbstractFileSystemVisitor.java:75)
at fuego.project.io.fs.visitor.AbstractVisitor.loadAll(AbstractVisitor.java:72)
at fuego.project.io.fs.FileProjectLoader.load(FileProjectLoader.java:704)
at fuego.project.io.fs.FileProjectLoader.loadViewMgmt(FileProjectLoader.java:154)
at fuego.project.FuegoProject.getViewManager(FuegoProject.java:1099)
at fuego.directory.project.engine.ProjectFullOrganizationAccessor.fetchAllViews(ProjectFullOrganizationAccessor.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at fuego.directory.provider.DirectorySessionImpl$AccessorProxy.invoke(DirectorySessionImpl.java:756)
at $Proxy3.fetchAllViews(Unknown Source)
at fuego.directory.DirView.fetchAll(DirView.java:87)
at fuego.papi.impl.view.DirectoryViewLoader.loadOrganizationalViews(DirectoryViewLoader.java:116)
at fuego.view.mgmt.ViewManager.loadOrganizationalViews(ViewManager.java:142)
at fuego.papi.impl.view.ViewManager.loadOrganizationalViews(ViewManager.java:321)
at fuego.papi.impl.ProcessServiceImpl.getViews(ProcessServiceImpl.java:1432)
at fuego.papi.impl.SessionViewManager.fill(SessionViewManager.java:717)
at fuego.papi.impl.SessionViewManager.getCache(SessionViewManager.java:704)
at fuego.papi.impl.SessionViewManager.getView(SessionViewManager.java:181)
at fuego.papi.impl.ProcessServiceSessionImpl.viewGet(ProcessServiceSessionImpl.java:3064)
at com.customer.CustomerPAPIclass.customerPAPImethod(CustomerPAPIclass.java:123)


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