In class: CachedDataAccessController L166 ``` java Spectrum getSpectrumById(Comparable id, boolean useCache) { return useCache ? (Spectrum) cache.get(CacheEntry.SPECTRUM, id) : null; } ``` This method is being used by the PX submission pipeline: ``` java Spectrum spectrum = dataAccessController.getSpectrumById(specId); ``` > java.lang.ClassCastException: java.util.Collections$SynchronizedMap cannot be cast to uk.ac.ebi.pride.utilities.data.core.Spectrum So the cache.get() is returning a SynchonizedMap<Spectrum> instead of just one Spectrum object. Tobias
In class: CachedDataAccessController
L166
This method is being used by the PX submission pipeline:
So the cache.get() is returning a SynchonizedMap instead of just one Spectrum object.
Tobias