AnsweredAssumed Answered

Issue: Searchindex recreation in 12.1

Question asked by whole_milk on Oct 2, 2013
Latest reply on Oct 4, 2013 by whole_milk
Guys, I went through the site and gathered information about how to redo searchindex via nikuadmin. I got enough information but ran into problems.

So I thought I would create a new thread hoping I can see some light at the end of the tunnel. Here goes. This is what I sent to CA support too.

In view of our v13.2 upgrade project, we built a new environment with three
app servers, with nsa installed on app server 1.

All seems well, but the global search does not work. It gives the error
"Contact system admin, cannot retrieve document due to a server configuration
or other technical problems"

In the admin screen, under project management >> document templates, we get
the same error.

I also noticed there is no "searchindex" folder under E:\Clarity\Clarity
which is our clarity install folder. I looked up CA communities and got the
tip to run the index recreate commands. I ran the command as follows:

E:\Temp\Add-in>nikuadmin search recreate-index-files -verbose

--------------------------------------------------------------

I received the error as follows:


parsing buildfile E:\Clarity\Clarity\.setup\scripts\search.xml with URI = file:/
//E:/Clarity/Clarity/.setup/scripts/search.xml
Project base dir set to: E:\Clarity\Clarity\.setup\scripts
Build sequence for target(s) `recreate-index-files' is [init, recreate-index-fil
es]
Complete build sequence is [init, recreate-index-files, usage-index, count-files
, count-data, optimize-index-files, list-all-files, index, usage-recreate-index-
files, usage-optimize-index-data, segment-recreate-index-files, optimize-index-d
ata, list-all-data, usage-recreate-index-data, usage-optimize-index-files, recre
ate-index-data, migrate, usage, segment-recreate-index-data, ]

init:

recreate-index-files:
Executing 'E:\Clarity\jdk1.6.0_20\jre\bin\java.exe' with arguments:
'-Xmx512M'
'-classpath'
'E:\Clarity\Clarity\lib\SL_plugins.jar;E:\Clarity\Clarity\lib\Serialization.jar;
E:\Clarity\Clarity\lib\acrssefilter.jar;E:\Clarity\Clarity\lib\activation-1.1.ja
r;E:\Clarity\Clarity\lib\activation.jar;E:\Clarity\Clarity\lib\ant-launcher.jar;
E:\Clarity\Clarity\lib\ant.jar;E:\Clarity\Clarity\lib\asm.jar;E:\Clarity\Clarity
\lib\axis.jar;E:\Clarity\Clarity\lib\axis2-kernel-1.3.jar;E:\Clarity\Clarity\lib
\backport-util-concurrent-2.2.jar;E:\Clarity\Clarity\lib\batik-awt-util.jar;E:\C
larity\Clarity\lib\batik-bridge.jar;E:\Clarity\Clarity\lib\batik-css.jar;E:\Clar
ity\Clarity\lib\batik-dom.jar;E:\Clarity\Clarity\lib\batik-ext.jar;E:\Clarity\Cl
arity\lib\batik-gvt.jar;E:\Clarity\Clarity\lib\batik-parser.jar;E:\Clarity\Clari
ty\lib\batik-script.jar;E:\Clarity\Clarity\lib\batik-svg-dom.jar;E:\Clarity\Clar
ity\lib\batik-svggen.jar;E:\Clarity\Clarity\lib\batik-transcoder.jar;E:\Clarity\
Clarity\lib\batik-util.jar;E:\Clarity\Clarity\lib\batik-xml.jar;E:\Clarity\Clari
ty\lib\biarengine.jar;E:\Clarity\Clarity\lib\biplugins.jar;E:\Clarity\Clarity\li
b\bizdev.jar;E:\Clarity\Clarity\lib\blobcrack.jar;E:\Clarity\Clarity\lib\boconfi
g.jar;E:\Clarity\Clarity\lib\bpm.jar;E:\Clarity\Clarity\lib\c-base.jar;E:\Clarit
y\Clarity\lib\c-clarity.jar;E:\Clarity\Clarity\lib\c-oracle.jar;E:\Clarity\Clari
ty\lib\c-spy.jar;E:\Clarity\Clarity\lib\c-sqlserver.jar;E:\Clarity\Clarity\lib\c
-sybase.jar;E:\Clarity\Clarity\lib\c-util.jar;E:\Clarity\Clarity\lib\calendar.ja
r;E:\Clarity\Clarity\lib\castor.jar;E:\Clarity\Clarity\lib\cecore.jar;E:\Clarity
\Clarity\lib\celib.jar;E:\Clarity\Clarity\lib\ceplugins_core.jar;E:\Clarity\Clar
ity\lib\ceplugins_cr.jar;E:\Clarity\Clarity\lib\cereports.jar;E:\Clarity\Clarity
\lib\cesession.jar;E:\Clarity\Clarity\lib\ceutils.jar;E:\Clarity\Clarity\lib\com
mons-beanutils-bean-collections.jar;E:\Clarity\Clarity\lib\commons-beanutils-cor
e.jar;E:\Clarity\Clarity\lib\commons-beanutils.jar;E:\Clarity\Clarity\lib\common
s-cli.jar;E:\Clarity\Clarity\lib\commons-collections.jar;E:\Clarity\Clarity\lib\
commons-discovery.jar;E:\Clarity\Clarity\lib\commons-fileupload.jar;E:\Clarity\C
larity\lib\commons-jelly-tags-email.jar;E:\Clarity\Clarity\lib\commons-jelly-tag
s-fmt.jar;E:\Clarity\Clarity\lib\commons-jelly-tags-jsl.jar;E:\Clarity\Clarity\l
ib\commons-jelly-tags-log.jar;E:\Clarity\Clarity\lib\commons-jelly-tags-sql.jar;
E:\Clarity\Clarity\lib\commons-jelly-tags-util.jar;E:\Clarity\Clarity\lib\common
s-jelly-tags-xml.jar;E:\Clarity\Clarity\lib\commons-jelly.jar;E:\Clarity\Clarity
\lib\commons-jexl.jar;E:\Clarity\Clarity\lib\commons-lang.jar;E:\Clarity\Clarity
\lib\commons-logging.jar;E:\Clarity\Clarity\lib\commons-net.jar;E:\Clarity\Clari
ty\lib\concurrent.jar;E:\Clarity\Clarity\lib\content.jar;E:\Clarity\Clarity\lib\
corbaidl.jar;E:\Clarity\Clarity\lib\cse.jar;E:\Clarity\Clarity\lib\csk.jar;E:\Cl
arity\Clarity\lib\dbtools.jar;E:\Clarity\Clarity\lib\derby.jar;E:\Clarity\Clarit
y\lib\dms.jar;E:\Clarity\Clarity\lib\dom4j.jar;E:\Clarity\Clarity\lib\ebus405.ja
r;E:\Clarity\Clarity\lib\evm.jar;E:\Clarity\Clarity\lib\forehead.jar;E:\Clarity\
Clarity\lib\httpunit.jar;E:\Clarity\Clarity\lib\i18n.jar;E:\Clarity\Clarity\lib\
idapi.jar;E:\Clarity\Clarity\lib\idapi_helper.jar;E:\Clarity\Clarity\lib\iloglic
ense.jar;E:\Clarity\Clarity\lib\itl.jar;E:\Clarity\Clarity\lib\jakarta-regexp.ja
r;E:\Clarity\Clarity\lib\jaxb-api.jar;E:\Clarity\Clarity\lib\jaxb-impl.jar;E:\Cl
arity\Clarity\lib\jaxb-libs.jar;E:\Clarity\Clarity\lib\jaxb-xjc.jar;E:\Clarity\C
larity\lib\jaxen-core.jar;E:\Clarity\Clarity\lib\jaxen-dom.jar;E:\Clarity\Clarit
y\lib\jaxen-jdom.jar;E:\Clarity\Clarity\lib\jaxrpc.jar;E:\Clarity\Clarity\lib\jd
bcappender.jar;E:\Clarity\Clarity\lib\jdbclog.jar;E:\Clarity\Clarity\lib\jdom.ja
r;E:\Clarity\Clarity\lib\jep.jar;E:\Clarity\Clarity\lib\jgroups-all.jar;E:\Clari
ty\Clarity\lib\jhsdk.jar;E:\Clarity\Clarity\lib\js.jar;E:\Clarity\Clarity\lib\js
afeJCEFIPS.jar;E:\Clarity\Clarity\lib\jsl.jar;E:\Clarity\Clarity\lib\json.jar;E:
\Clarity\Clarity\lib\jstl.jar;E:\Clarity\Clarity\lib\jtools.jar;E:\Clarity\Clari
ty\lib\junit.jar;E:\Clarity\Clarity\lib\jviews-framework-all.jar;E:\Clarity\Clar
ity\lib\jviews-gantt-all.jar;E:\Clarity\Clarity\lib\ldapbp.jar;E:\Clarity\Clarit
y\lib\log4j.jar;E:\Clarity\Clarity\lib\logging.jar;E:\Clarity\Clarity\lib\lucene
.jar;E:\Clarity\Clarity\lib\mail.jar;E:\Clarity\Clarity\lib\nde.jar;E:\Clarity\C
larity\lib\nekohtml.jar;E:\Clarity\Clarity\lib\njs.jar;E:\Clarity\Clarity\lib\nm
c.jar;E:\Clarity\Clarity\lib\npt.jar;E:\Clarity\Clarity\lib\nsa.jar;E:\Clarity\C
larity\lib\odf.jar;E:\Clarity\Clarity\lib\omp-jpa.jar;E:\Clarity\Clarity\lib\omp
-mappings.jar;E:\Clarity\Clarity\lib\omp-tools.jar;E:\Clarity\Clarity\lib\omp.ja
r;E:\Clarity\Clarity\lib\ore.jar;E:\Clarity\Clarity\lib\oscache-2.2.jar;E:\Clari
ty\Clarity\lib\pdfbox.jar;E:\Clarity\Clarity\lib\personal.jar;E:\Clarity\Clarity
\lib\pluto-1.0.1.jar;E:\Clarity\Clarity\lib\pma.jar;E:\Clarity\Clarity\lib\poi-s
cratchpad.jar;E:\Clarity\Clarity\lib\poi.jar;E:\Clarity\Clarity\lib\portlet-api-
1.0.jar;E:\Clarity\Clarity\lib\prodpack.jar;E:\Clarity\Clarity\lib\projmgr.jar;E
:\Clarity\Clarity\lib\providerutil.jar;E:\Clarity\Clarity\lib\proxool.jar;E:\Cla
rity\Clarity\lib\rasapp.jar;E:\Clarity\Clarity\lib\rascore.jar;E:\Clarity\Clarit
y\lib\rebean.common.jar;E:\Clarity\Clarity\lib\rebean.jar;E:\Clarity\Clarity\lib
\rebean.wi.jar;E:\Clarity\Clarity\lib\relaxng.jar;E:\Clarity\Clarity\lib\reporti
ng.jar;E:\Clarity\Clarity\lib\resource.jar;E:\Clarity\Clarity\lib\resources.jar;
E:\Clarity\Clarity\lib\resources_all.jar;E:\Clarity\Clarity\lib\revmgr.jar;E:\Cl
arity\Clarity\lib\rqrmnt.jar;E:\Clarity\Clarity\lib\saaj.jar;E:\Clarity\Clarity\
lib\saxon-dom.jar;E:\Clarity\Clarity\lib\saxon-jdom.jar;E:\Clarity\Clarity\lib\s
axon-sql.jar;E:\Clarity\Clarity\lib\saxon-xom.jar;E:\Clarity\Clarity\lib\saxon-x
path.jar;E:\Clarity\Clarity\lib\saxon.jar;E:\Clarity\Clarity\lib\saxpath.jar;E:\
Clarity\Clarity\lib\schedulers.jar;E:\Clarity\Clarity\lib\search.jar;E:\Clarity\
Clarity\lib\security.jar;E:\Clarity\Clarity\lib\service.jar;E:\Clarity\Clarity\l
ib\soap.jar;E:\Clarity\Clarity\lib\spring-core.jar;E:\Clarity\Clarity\lib\standa
rd.jar;E:\Clarity\Clarity\lib\struts.jar;E:\Clarity\Clarity\lib\time.jar;E:\Clar
ity\Clarity\lib\timeadmin.jar;E:\Clarity\Clarity\lib\tools.jar;E:\Clarity\Clarit
y\lib\toplink-essentials-agent.jar;E:\Clarity\Clarity\lib\toplink-essentials.jar
;E:\Clarity\Clarity\lib\union.jar;E:\Clarity\Clarity\lib\unix.jar;E:\Clarity\Cla
rity\lib\usdjws65.jar;E:\Clarity\Clarity\lib\version.jar;E:\Clarity\Clarity\lib\
webglue.jar;E:\Clarity\Clarity\lib\wilog.jar;E:\Clarity\Clarity\lib\wsdl4j.jar;E
:\Clarity\Clarity\lib\xbean.jar;E:\Clarity\Clarity\lib\xde.jar;E:\Clarity\Clarit
y\lib\xdm.jar;E:\Clarity\Clarity\lib\xercesImpl.jar;E:\Clarity\Clarity\lib\xincl
ude.jar;E:\Clarity\Clarity\lib\xmlserver.jar;E:\Clarity\Clarity\lib\xog.jar;E:\C
larity\Clarity\lib\xpp3.jar;E:\Clarity\Clarity\lib\xql2.jar;E:\Clarity\Clarity\l
ib\xsdlib.jar;E:\Clarity\Clarity\lib\y.jar;E:\Clarity\Clarity\lib\ysvg.jar'
'com.niku.search.nspider.Nspider'
'E:\Clarity\Clarity'
'0'
'file'

The ' characters around the executable and arguments are
not part of the command.
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceede
d
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.niku.union.persistence.results.DBResultResponse.endResultSetExtra
ction(DBResultResponse.java:217)
at com.niku.union.persistence.PersistenceController.extractResultSet(Per
sistenceController.java:1616)
at com.niku.union.persistence.PersistenceController.extractResultSets(Pe
rsistenceController.java:1650)
at com.niku.union.persistence.PersistenceController.processSql(Persisten
ceController.java:2322)
at com.niku.union.persistence.PersistenceController.processStatement(Per
sistenceController.java:702)
at com.niku.union.persistence.PersistenceController.processStatements(Pe
rsistenceController.java:611)
at com.niku.union.persistence.PersistenceController.doProcessRequest(Per
sistenceController.java:451)
at com.niku.union.persistence.PersistenceController.processRequest(Persi
stenceController.java:222)
at com.niku.search.engine.IndexQuery.getVersionsFromDB(IndexQuery.java:8
3)
at com.niku.search.engine.lucene.LuceneIndexEngine.reindexfiles(LuceneIn
dexEngine.java:131)
at com.niku.search.engine.lucene.LuceneIndexEngine.reindexfiles(LuceneIn
dexEngine.java:89)
at com.niku.search.nspider.Nspider.main(Nspider.java:51)
Java Result: 1

E:\Temp\Add-in>

Outcomes