cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Node

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        I recently upgraded from Alfresco 3.4.b to Alfresco 4.0.d and now have the following error:

2011-12-27 14:11:45,552  ERROR [extensions.webscripts.AbstractRuntime] [http-844
3-3] Exception from executeScript - redirecting to status template error: 112701
80 Wrapped Exception (with status template): Node without parents does not have
root aspect: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
org.springframework.extensions.webscripts.WebScriptException: 11270180 Wrapped
Exception (with status template): Node without parents does not have root aspect
: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
        at org.springframework.extensions.webscripts.AbstractWebScript.createSta
tusException(AbstractWebScript.java:905)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
e(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(Repositor
yContainer.java:393)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransacti
on(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecut
e(RepositoryContainer.java:462)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecut
eAs(RepositoryContainer.java:500)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(Repos
itoryContainer.java:275)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScri
pt(AbstractRuntime.java:372)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScri
pt(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.se
rvice(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(Global
LocalizationFilter.java:58)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:558)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Node without parents does not have root a
spect: workspace://SpacesStore/017db069-9ff6-445f-bd20-0b30da110e74
        at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.prependPaths(Abstra
ctNodeDAOImpl.java:3453)
        at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.getPaths(AbstractNo
deDAOImpl.java:3317)
        at org.alfresco.repo.solr.SOLRTrackingComponentImpl.getNodesMetadata(SOL
RTrackingComponentImpl.java:562)
        at sun.reflect.GeneratedMethodAccessor417.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invok
e(SubsystemProxyFactory.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:202)
        at $Proxy141.getNodesMetadata(Unknown Source)
        at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet.executeImpl(Nodes
MetaDataGet.java:183)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
eImpl(DeclarativeWebScript.java:235)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execut
e(DeclarativeWebScript.java:64)
        … 25 more


  I've tried entering the URL to look for the node by the id but nothing comes up.  I've checked all my files and they all seem good.  Is there a way to simply delete this node form the system and have done with it?

Cheers,

Neil
10 REPLIES 10

jctng
Champ in-the-making
Champ in-the-making
One way to avoid the solr exceptions filling up the log file is to 'disable' it by providing Alfresco with an incorrect path to solr so that Alfresco has no chance of loading it.
Note that this is only useful if you never want to use solr for search indexing and revert to lucene indexing.

In (on linux anyway)

./tomcat/conf/Catalina/localhost/solr.xml

hardcoded paths to the solr .war file and it's root dir exist.

Modify 'docBase' for .war file
Modify 'solr/home' for root dir

If you set invalid path values for both and restart, Alfresco won't find solr and, of course, can't load it.

Another post appears to have a solution (instead of the bandaid I've noted above) refer to this https://forums.alfresco.com/en/viewtopic.php?f=4&t=41847#p122150 post.
As noted in the post, direct database modification is required.