[ 
https://issues.apache.org/jira/browse/CONNECTORS-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552857#comment-13552857
 ] 

Karl Wright commented on CONNECTORS-611:
----------------------------------------

The Axis-generated code looks like this:

{code}
 try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] 
{objectName, objectType});

        if (_resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)_resp;
        }
        else {
            extractAttachments(_call);
            try {
                return 
(com.microsoft.sharepoint.webpartpages.GetPermissionCollectionResponseGetPermissionCollectionResult)
 _resp;
            } catch (java.lang.Exception _exception) {
                return 
(com.microsoft.sharepoint.webpartpages.GetPermissionCollectionResponseGetPermissionCollectionResult)
 org.apache.axis.utils.JavaUtils.convert(_resp, 
com.microsoft.sharepoint.webpartpages.GetPermissionCollectionResponseGetPermissionCollectionResult.class);
            }
        }
  } catch (org.apache.axis.AxisFault axisFaultException) {
  throw axisFaultException;
}
{code}

The only way null can be returned from this is if the _call.invoke() method 
returns null, OR if org.apache.axis.utils.JavaUtils.convert() returns null.  
Both of these methods are inside Axis, so I have to dig deeper...

                
> SharePoint connector throws NPE getting permissions in some cases
> -----------------------------------------------------------------
>
>                 Key: CONNECTORS-611
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-611
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: SharePoint connector
>    Affects Versions: ManifoldCF 1.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.1
>
>         Attachments: Archive.zip
>
>
> Here's the exception:
> {code}
> > FATAL 2013-01-14 17:13:46,871 (Worker thread '15') - Error tossed: null
> > java.lang.NullPointerException
> >         at 
> > org.apache.manifoldcf.crawler.connectors.sharepoint.SPSProxyHelper.getDocumentACLs(SPSProxyHelper.java:324)
> >         at 
> > org.apache.manifoldcf.crawler.connectors.sharepoint.SharePointRepository.getDocumentVersions(SharePointRepository.java:929)
> >         at 
> > org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:321)
> >
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to