Problem to commit a new version of an existing file

Former SVN Browser
ipti
Posts: 1
Joined: Thu Jan 31, 2008 7:12 pm

Problem to commit a new version of an existing file

Postby ipti » Fri Feb 01, 2008 1:52 pm

Hello,

When i try to commit a new version of an existing file the Web Client generates the stack trace below:

Code: Select all


org.polarion.svnwebclient.data.DataProviderException: org.tmatesoft.svn.core.SVNException: svn: Network connection closed unexpectedly
   at org.polarion.svnwebclient.data.javasvn.DataProvider.checkExceptionType(DataProvider.java:909)
   at org.polarion.svnwebclient.data.javasvn.DataProvider.commitFile(DataProvider.java:793)
   at org.polarion.svnwebclient.web.servlet.FileUpdateActionServlet.executeSVNOperation(FileUpdateActionServlet.java:107)
   at org.polarion.svnwebclient.web.servlet.AbstractServlet.execute(AbstractServlet.java:64)
   at org.polarion.svnwebclient.web.servlet.FileUpdateActionServlet.doPost(FileUpdateActionServlet.java:68)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.polarion.svnwebclient.authorization.impl.BindSessionsFilter.doFilter(BindSessionsFilter.java:48)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.polarion.svnwebclient.web.CharsetFilter.doFilter(CharsetFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
   at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.tmatesoft.svn.core.SVNException: svn: Network connection closed unexpectedly
   at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
   at org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:559)
   at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:263)
   at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:210)
   at org.tmatesoft.svn.core.internal.io.svn.SVNCommitEditor.closeEdit(SVNCommitEditor.java:198)
   at org.polarion.svnwebclient.data.javasvn.SVNUtils.modifyFile(SVNUtils.java:56)
   at org.polarion.svnwebclient.data.javasvn.DataProvider.commitFile(DataProvider.java:779)
   ... 31 more


Thanks and regards from Brazil

Claudio Escobar Apparicio

linhares
Posts: 1
Joined: Thu Feb 14, 2008 1:42 pm

upload files with the same name

Postby linhares » Thu Feb 14, 2008 1:45 pm

i ´ve got the same issue conecting to a multiple repository instalation. Is that a bug or "not a feature" to upload files with the same name?

Reregistered
Posts: 3
Joined: Fri Jan 16, 2009 8:10 am

Re: Problem to commit a new version of an existing file

Postby Reregistered » Fri Jan 16, 2009 8:13 am

I am having the same issue - has anyone resolved this ?

Thanks!

Reregistered
Posts: 3
Joined: Fri Jan 16, 2009 8:10 am

Re: Problem to commit a new version of an existing file

Postby Reregistered » Tue Jan 20, 2009 10:38 am

I guess there's not much activity...anyone ?

fdel
Posts: 1
Joined: Mon Mar 09, 2009 1:09 pm

Re: Problem to commit a new version of an existing file

Postby fdel » Mon Mar 09, 2009 1:22 pm

Hello,

I have same problem, when i try to commit a new version of an existing file the Web Client displays following message :
File name must be the same as stored on server

I use SVN with ParentDirectory and multiple repositories.

Thanks,

fdel

ttran
Posts: 2
Joined: Wed Mar 11, 2009 3:41 am

Re: Problem to commit a new version of an existing file

Postby ttran » Wed Mar 11, 2009 3:45 am

There is a work around here:

viewtopic.php?t=3092

miguelbaldi
Posts: 1
Joined: Wed May 06, 2009 7:57 pm

Re: Problem to commit a new version of an existing file

Postby miguelbaldi » Wed May 06, 2009 8:01 pm

Hi guys,

I still getting the same previous error:

Code: Select all

org.polarion.svnwebclient.data.DataProviderException: org.tmatesoft.svn.core.SVNException: svn: Network connection closed unexpectedly
   at org.polarion.svnwebclient.data.javasvn.DataProvider.checkExceptionType(DataProvider.java:909)
   at org.polarion.svnwebclient.data.javasvn.DataProvider.commitFile(DataProvider.java:793)
   at org.polarion.svnwebclient.web.servlet.FileUpdateActionServlet.executeSVNOperation(FileUpdateActionServlet.java:107)
   at org.polarion.svnwebclient.web.servlet.AbstractServlet.execute(AbstractServlet.java:64)
   at org.polarion.svnwebclient.web.servlet.FileUpdateActionServlet.doPost(FileUpdateActionServlet.java:68)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.polarion.svnwebclient.authorization.impl.BindSessionsFilter.doFilter(BindSessionsFilter.java:48)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.polarion.svnwebclient.web.CharsetFilter.doFilter(CharsetFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
   at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.tmatesoft.svn.core.SVNException: svn: Network connection closed unexpectedly
   at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
   at org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:559)
   at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:263)
   at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:210)
   at org.tmatesoft.svn.core.internal.io.svn.SVNCommitEditor.closeEdit(SVNCommitEditor.java:198)
   at org.polarion.svnwebclient.data.javasvn.SVNUtils.modifyFile(SVNUtils.java:56)
   at org.polarion.svnwebclient.data.javasvn.DataProvider.commitFile(DataProvider.java:779)
   ... 31 more


Any solution?
PS.: I used ttran tip, but I still getting the above error.

mcoria
Posts: 1
Joined: Fri Feb 12, 2010 10:12 pm

Re: Problem to commit a new version of an existing file

Postby mcoria » Fri Feb 12, 2010 10:14 pm

Same problem. Please help!!!

alokito
Posts: 1
Joined: Wed Sep 01, 2010 7:32 pm

Re: Problem to commit a new version of an existing file

Postby alokito » Wed Sep 01, 2010 7:51 pm

I saw this error when committing new versions using the svn: protocol to svnserve running on the same machine (actual network issues were unlikely). I was able to fix this by patching the source code, specifically org.polarion.svnwebclient.data.javasvn.SVNUtils.java. As of revision 14367, lines 43-45 contain the following:

Code: Select all

String chksm = deltaGenerator.sendDelta(filePath, is, editor, true);
editor.textDeltaEnd(filePath); 

However, the implementation of sendDelta in the included svnkit.jar already calls textDeltaEnd(). Removing the call to textDeltaEnd() in SVNUtils.java file fixed the problem for me. I have attached a compiled class file for SVNUtils as well as a patch file, you can either apply the patch and compile the class yourself, or simply copy the class file over you existing SVNUtils, which should be located at

webapps/svnwebclient/WEB-INF/classes/org/polarion/svnwebclient/data/javasvn/SVNUtils.class

After overwriting, you will need to either restart tomcat, reload svnwebclient, or if your tomcat is set up to watch web.xml,

Code: Select all

touch webapps/svnwebclient/WEB-INF/web.xml

Regards,
Alok
Attachments

[The extension zip has been deactivated and can no longer be displayed.]

[The extension zip has been deactivated and can no longer be displayed.]

Alok Saldanha
Trefis Team
https://www.trefis.com


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 2 guests