jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hsp" <piccina...@ibest.com.br>
Subject It was working, not now.
Date Tue, 28 Mar 2006 21:23:37 GMT
I don't mind what is happening. When I try to run a simple application, an error occurs. I
debuged and the last code is:

        try {
            initWorkspace((WorkspaceInfo) wspInfos.get(wspName));
        } catch (RepositoryException e) {
            // if default workspace failed to initialize, shutdown again
            log.fatal("Failed to initialize workspace '" + wspName + "'", e);
            log.fatal("Unable to start repository, forcing shutdown...");
            shutdown();
            throw e;
        }


I am calling like this:
       		Hashtable env = new Hashtable();
				env.put(Context.INITIAL_CONTEXT_FACTORY,
					"org.apache.jackrabbit.core.jndi" +
					".provider.DummyInitialContextFactory");

			env.put(Context.PROVIDER_URL, "localhost");

			InitialContext ctx = new InitialContext(env);

			RegistryHelper.registerRepository(ctx,
				"repo",
				configFile,
				repHomeDir,
				true);  //this is the last line that runs before the error

			Repository r = (Repository) ctx.lookup("repo");

And the error is:
359634 [main] DEBUG org.apache.jackrabbit.core.query.lucene.Recovery  - RedoLog is empty,
no recovery needed.
359635 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex  - Index initialized:
escriba_celepar_teste_2/repository/index
INFO: Exception: java.lang.reflect.InvocationTargetException
403663 [main] FATAL org.apache.jackrabbit.core.RepositoryImpl  - Failed to initialize workspace
'default'
javax.jcr.RepositoryException
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:531)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:273)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1438)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:536)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:244)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:480)
	at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:130)
	at org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:116)
	at org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:57)
	at br.gov.pr.celepar.escriba.contexto.Repositorio.getRepository(Repositorio.java:157)
	at FSImport.main(FSImport.java:101)
Caused by: java.lang.IllegalArgumentException
	at org.apache.commons.collections.BeanMap.put(BeanMap.java:374)
	at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:97)
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:525)
	... 10 more
java.lang.IllegalArgumentException
	at org.apache.commons.collections.BeanMap.put(BeanMap.java:374)
	at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:97)
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:525)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:273)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1438)
	at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:536)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:244)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:480)
	at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:130)
	at org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:116)
	at org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:57)
	at br.gov.pr.celepar.escriba.contexto.Repositorio.getRepository(Repositorio.java:157)
	at FSImport.main(FSImport.java:101)
404432 [main] FATAL org.apache.jackrabbit.core.RepositoryImpl  - Unable to start repository,
forcing shutdown...
405217 [main] INFO org.apache.jackrabbit.core.RepositoryImpl  - Shutting down repository...
405217 [main] INFO org.apache.jackrabbit.core.RepositoryImpl  - shutting down workspace 'default'...
405219 [main] INFO org.apache.jackrabbit.core.observation.ObservationManagerFactory  - Notification
of EventListeners stopped.
405220 [main] DEBUG org.apache.jackrabbit.core.ItemManager  - invalidated item cafebabe-cafe-babe-cafe-babecafebabe
405220 [main] DEBUG org.apache.jackrabbit.core.ItemManager  - removing item cafebabe-cafe-babe-cafe-babecafebabe
from cache
405221 [main] DEBUG org.apache.jackrabbit.core.observation.ObservationManagerImpl  - removing
EventListener: org.apache.jackrabbit.core.SystemSearchManager@89c116
405222 [main] DEBUG org.apache.jackrabbit.core.observation.ObservationManagerImpl  - removing
EventListener: org.apache.jackrabbit.core.RepositoryImpl@d55986
405224 [main] INFO org.apache.jackrabbit.core.RepositoryImpl  - workspace 'default' has been
shutdown
405225 [main] DEBUG org.apache.jackrabbit.core.query.lucene.IndexMerger  - dispose IndexMerger
405228 [main] DEBUG org.apache.jackrabbit.core.query.lucene.IndexMerger  - quit sent
405230 [IndexMerger] INFO org.apache.jackrabbit.core.query.lucene.IndexMerger  - IndexMerger
terminated
405231 [main] DEBUG org.apache.jackrabbit.core.query.lucene.IndexMerger  - IndexMerger thread
stopped
405231 [main] DEBUG org.apache.jackrabbit.core.query.lucene.IndexMerger  - merge queue size:
0
405237 [main] INFO org.apache.jackrabbit.core.query.lucene.SearchIndex  - Index closed: escriba_celepar_teste_2/repository/index
405294 [main] INFO org.apache.jackrabbit.core.RepositoryImpl  - Repository has been shutdown
javax.jcr.RepositoryException


Please, I need some help.
Thanks
Helio

Mime
View raw message