-------------------------------------------------------------------------------- java.lang.NullPointerException at net.jxta.impl.discovery.DiscoveryServiceImpl.search(DiscoveryServiceImpl.java:1296) at net.jxta.impl.discovery.DiscoveryServiceImpl.getLocalAdvertisements(DiscoveryServiceImpl.java:439) at net.jxta.impl.discovery.DiscoveryServiceInterface.getLocalAdvertisements(DiscoveryServiceInterface.java:163) at com.shsolutions.pts.util.PTSUtil.getCacheAdvertisements(PTSUtil.java:138) # my method calling jxta method: Enumeration enVal = dsvc.getLocalAdvertisements( nDSType, szKey, szValue ); # my values passing to jxta method nDSType = 2 attribute = "Name" value = "rsmith"