Subversion Repositories SmartDukaan

Rev

Rev 6610 | Rev 6614 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6610 Rev 6613
Line 787... Line 787...
787
    			if(item.isRisky()){
787
    			if(item.isRisky()){
788
    				try {
788
    				try {
789
    					ItemShippingInfo isi = catalogClientProd.isActive(item.getId());
789
    					ItemShippingInfo isi = catalogClientProd.isActive(item.getId());
790
    					isActive = isi.isIsActive();
790
    					isActive = isi.isIsActive();
791
    				} catch (Exception e) {
791
    				} catch (Exception e) {
-
 
792
    					Utils.info("Some problem Occurred while fetching shippingInfo for catalogitem " + item.getCatalogItemId() + "\n" +e + "\nTrying again");
-
 
793
    					try {
-
 
794
    					catalogClientProd = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(), ConfigClientKeys.catalog_service_server_port.toString()).getClient();
-
 
795
    					ItemShippingInfo isi = catalogClientProd.isActive(item.getId());
-
 
796
    					isActive = isi.isIsActive();
-
 
797
    					} catch (Exception e1) {
-
 
798
    						Utils.info("Some problem in catalog Service. Marking it true");
792
    					isActive = true;
799
        					isActive = true;
-
 
800
						}
793
    				}
801
    				}
794
    			}
802
    			}
795
    			if(isActive) {
803
    			if(isActive) {
796
	    			inStockCatalogItemIds.add(item.getCatalogItemId());
804
	    			inStockCatalogItemIds.add(item.getCatalogItemId());
797
	    			if(validParentCategories.contains(parentCategory.getID())) { 
805
	    			if(validParentCategories.contains(parentCategory.getID())) {