Subversion Repositories SmartDukaan

Rev

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

Rev 5290 Rev 5304
Line 106... Line 106...
106
        try {
106
        try {
107
            Client snapshotClient = new CatalogClient().getClient();
107
            Client snapshotClient = new CatalogClient().getClient();
108
            return snapshotClient.getAllItems(true);
108
            return snapshotClient.getAllItems(true);
109
        } catch (Exception e) {
109
        } catch (Exception e) {
110
            logger.error("Could not fetch all items. Retrying.", e);
110
            logger.error("Could not fetch all items. Retrying.", e);
111
            return fetchItems();
111
//            return fetchItems();
-
 
112
            return new ArrayList<Item>();
112
        }
113
        }
113
    }
114
    }
114
 
115
 
115
    /**
116
    /**
116
     * 
117
     * 
Line 124... Line 125...
124
                            mapping.getItemKey());
125
                            mapping.getItemKey());
125
                }
126
                }
126
            }
127
            }
127
        } catch (Exception e) {
128
        } catch (Exception e) {
128
            logger.error("Could not load vendor item mappings. Trying to reload.", e);
129
            logger.error("Could not load vendor item mappings. Trying to reload.", e);
129
            loadHotspotMappings();
130
//            loadHotspotMappings();
130
        }
131
        }
131
    }
132
    }
132
 
133
 
133
    /**
134
    /**
134
	 * Stores the inventory updates on the history and the production server.
135
	 * Stores the inventory updates on the history and the production server.