Getting error while moving files through WebDAV

64 views
Skip to first unread message

mv

unread,
May 29, 2012, 4:42:45 PM5/29/12
to dot...@googlegroups.com
I am getting the following error when trying to move a folder using WebDAV. This is not happening when I am trying to move each file. When I click on show Archived, i dont see any folder with this name. Any help is appreciated.

Thanks

[29/05/12 16:29:18:676 EDT]  WARN util.JDBCExceptionReporter: SQL Error: 1062, SQLState: 23000
[29/05/12 16:29:18:676 EDT] ERROR util.JDBCExceptionReporter: Duplicate entry ..../-js-cf1e856d-9efc-4244-8987-e04e7c92' for key 'parent_path'
[29/05/12 16:29:18:676 EDT] ERROR impl.SessionImpl: Could not synchronize database state with session
[29/05/12 16:29:18:676 EDT] ERROR business.IdentifierFactoryImpl: saveIdentifier failed:com.dotmarketing.exception.DotHibernateException: Unable to save/update Object to Hibernate Session 
com.dotmarketing.exception.DotHibernateException: Unable to save/update Object to Hibernate Session 
at com.dotmarketing.db.HibernateUtil.saveOrUpdate(HibernateUtil.java:458)
at com.dotmarketing.business.IdentifierFactoryImpl.saveIdentifier(IdentifierFactoryImpl.java:301)
at com.dotmarketing.business.IdentifierFactoryImpl.createNewIdentifier(IdentifierFactoryImpl.java:203)
at com.dotmarketing.business.IdentifierAPIImpl.createNew(IdentifierAPIImpl.java:109)
at com.dotmarketing.portlets.folders.business.FolderAPIImpl.createFolders(FolderAPIImpl.java:522)
at com.dotmarketing.webdav.DotWebdavHelper.createFolder(DotWebdavHelper.java:1002)
at com.dotmarketing.webdav.FolderResourceImpl.createCollection(FolderResourceImpl.java:94)
at com.bradmcevoy.http.webdav.MkColHandler$DefaultCollectionResourceCreator.createResource(MkColHandler.java:142)
at com.bradmcevoy.http.webdav.MkColHandler.processMakeCol(MkColHandler.java:124)
at com.bradmcevoy.http.webdav.MkColHandler.process(MkColHandler.java:83)
at com.bradmcevoy.http.webdav.MkColHandler.process(MkColHandler.java:40)
at com.bradmcevoy.http.StandardFilter.process(StandardFilter.java:32)
at com.bradmcevoy.http.FilterChain.process(FilterChain.java:21)
at com.bradmcevoy.http.HttpManager.process(HttpManager.java:174)
at com.bradmcevoy.http.MiltonServlet.service(MiltonServlet.java:171)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:86)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:680)
Caused by: net.sf.hibernate.exception.ConstraintViolationException: could not insert: [com.dotmarketing.beans.Identifier#71731977-1ac5-4bb7-b822-91a1011e43a5]
at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:73)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1331)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:472)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:436)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:37)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at com.dotmarketing.db.HibernateUtil.saveOrUpdate(HibernateUtil.java:456)
... 46 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '...../-js-cf1e856d-9efc-4244-8987-e04e7c92' for key 'parent_path'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

Maria Ahues Bouza

unread,
May 29, 2012, 4:58:55 PM5/29/12
to dot...@googlegroups.com
If you create the folder manually in dotCMS and just move all the
files instead of moving the folder, does it work?
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/BrNAEDW4CUAJ.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to
> dotcms+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/dotcms?hl=en.



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

mv

unread,
May 29, 2012, 5:17:44 PM5/29/12
to dot...@googlegroups.com
I tried creating a folder. But the Backend UI says the folder already exists.

I tried renaming the file and uploading it. But this time, I got the error saying that the filename might be too long or invalid charset might be present. 
When I tried creating the folder from the back-end, I got the error saying that the directory exists.

Maria Ahues Bouza

unread,
May 29, 2012, 5:40:09 PM5/29/12
to dot...@googlegroups.com
So this looks like a data issue.

It seems dotCMS thinks the folder is there even though you can't see
it in the Website Browser.

If you're running 2.0 you can run a query like this (changing
/myfolder/ to the folder path you want to create)

select * from identifier where parent_path = '/myfolder/'

If this returns a record then the folder is in dotCMS and something
broke and it's not showing on the Website Browser.

If it's there you can either create another folder with a new name or
try to fix this one in the database.
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/dotcms/-/i5QF8tYuNCcJ.
Reply all
Reply to author
Forward
0 new messages