jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sowmi <sow...@telenav.com>
Subject Re: java.lang.IllegalStateException: workspace 'default' not initialized
Date Thu, 27 Jul 2006 18:31:05 GMT

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.


Mime
View raw message