You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2010/05/05 02:22:02 UTC

[jira] Closed: (JUDDI-393) Still receiving null pointer exception when notifying subscriptions filtered other than find_service

     [ https://issues.apache.org/jira/browse/JUDDI-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam closed JUDDI-393.
-----------------------------

    Fix Version/s: 3.0.2
       Resolution: Fixed

Changed the 'or' to an 'and'. This should do it.

> Still receiving null pointer exception when notifying subscriptions filtered other than find_service
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JUDDI-393
>                 URL: https://issues.apache.org/jira/browse/JUDDI-393
>             Project: jUDDI
>          Issue Type: Bug
>    Affects Versions: 3.0.2
>         Environment: Tomcat 6.0.10, PostgreSQL 8.4
>            Reporter: Jason Brown
>            Assignee: Kurt T Stam
>             Fix For: 3.0.2
>
>
> After getting the latest code from the repository we were still receiving the null pointer exception when saving subscriptions which did not contain the filter save_service as referenced in JUDDI-389. 
> As a workaround, we changed the following code (line 220, SubscriptionNotifier.java) :
> if (resultList.getServiceList()!=null || (resultList.getServiceList().getServiceInfos()!=null &&resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0)) {
>  				resultList.getServiceList().setServiceInfos(null);
> }
> to:
> 			if (resultList.getServiceList() != null) {
> 			  if (resultList.getServiceList().getServiceInfos()!=null &&
> 						resultList.getServiceList().getServiceInfos().getServiceInfo().size() == 0) {
> 							resultList.getServiceList().setServiceInfos(null);
> 				}
> 			}
> and have been receiving favorable results with the other find_xxx and get_xxx filters in our subscriptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.