RSS Aggregator causes InvalidItemStateException on public instance when used in 
clustered mode (multiple instances sharing a single DB)
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: MAGNOLIA-3922
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3922
             Project: Magnolia
          Issue Type: Bug
      Security Level: Public
    Affects Versions: 4.4.5
         Environment: Linux Ubuntu, Java 1.6
            Reporter: Rory Gibson
            Priority: Major


We have our public instance setup to use a shared repository and have a 
customer requirement to have RSS Aggregator run and import updates every few 
mins.  When we run the public instances with clustering (on same db), we run 
into an issue where each of the instances is throwing a 
javax.jcr.InvalidItemStateException:

{noformat}
info.magnolia.module.data.importer.ImportException: Error while importing with 
handler [rssaggregator]:can't create parent 
[/rssaggregator]:202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the item 
cannot be removed because it has been modified externally.
        at 
info.magnolia.module.data.importer.ImportHandler.execute(ImportHandler.java:464)
        at 
info.magnolia.module.data.commands.ImportCommand.execute(ImportCommand.java:82)
        at 
info.magnolia.commands.MgnlCommand.executePooledOrSynchronized(MgnlCommand.java:170)
        at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:157)
        at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:84)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: info.magnolia.module.data.importer.ImportException: can't create 
parent [/rssaggregator]:202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the 
item cannot be removed because it has been modified externally.
        at 
info.magnolia.module.data.importer.ImportHandler.getParent(ImportHandler.java:295)
        at 
info.magnolia.module.data.importer.ImportHandler.lock(ImportHandler.java:271)
        at 
info.magnolia.module.data.importer.ImportHandler.executeImport(ImportHandler.java:194)
        at 
info.magnolia.module.data.importer.ImportHandler.execute(ImportHandler.java:461)
        ... 6 more
Caused by: javax.jcr.InvalidItemStateException: 
202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the item cannot be removed 
because it has been modified externally.
        at 
org.apache.jackrabbit.core.ItemImpl.getRemovedStates(ItemImpl.java:330)
        at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:966)
        at info.magnolia.cms.core.DefaultContent.save(DefaultContent.java:532)
        at 
info.magnolia.module.data.importer.ImportHandler.getParent(ImportHandler.java:290)
        ... 9 more
ERROR  info.magnolia.module.data.commands.ImportCommand 18.12.2011 07:20:01 -- 
exception during importing
{noformat}

This is causing the RSS Feeds to not display at all on public instances.

Note that running a clustered environment is essential to achieve the required 
level of scalability so only running aggregator on one of them is not 
acceptable. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to