fuzzySearch() looks like this:

Session session = SessionManager.getInstance().getSession();
List list = RepositorySearch.search(session, query, maxItems);

I have a singleton of SessionManager that instantiates the
TransientRepository

public static synchronized SessionManager getInstance() {
                if (sessMgr == null) {
                        sessMgr = new SessionManager();
                }
                return sessMgr;
        }
private SessionManager() {
                try {
                        repository = new TransientRepository();
                } catch (IOException ex) {
                        log.error("Unable to open the repository.", ex);
                }
        }

Will this still cause a problem?
-- 
View this message in context: 
http://www.nabble.com/java.lang.IllegalStateException%3A-workspace-%27default%27-not-initialized-tf2006499.html#a5526727
Sent from the Jackrabbit - Users forum at Nabble.com.

Reply via email to