Hi again Linda,
It look like just test project, so it shouldn't be secret. Could you please
send me 1) the working
copy and 2) the repository directory? I think it will be simplier for me to
reproduce the problem on
your data than to try to guess and build a similar configuration.
Thanks!
> Hi,
>
> I've tried your code, but I've checked the java doc and found out that
> SVNStatus does not contain method getCombinedNodeAndContentsStatus() and
> getNodeStatus(), so I removed the two method.
>
> Below is the output:
>
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494 normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder1 normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder1\Test.java
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder1\Test3.java
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder2 normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder2\Test5.java
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder3 normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder3\Test2_Test.
> java normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder4 added none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\Folder4\Test_Svn.ja
> va added none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets normal
> none C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test2.java
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\DatabaseSe
> rvlet.java normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Main.java
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test9_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test7_2.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test8_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test6_2.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test7_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test6_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\HelloWorld
> Servlet.java normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test4_2.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test5_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test4_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\src\servlets\Test3_1.ja
> va normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\lib
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\lib\
> jsp-api.jar normal normal
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\lib\
> servlet-api-3.0.jar normal normal
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\lib\
> mysql-connector-java-5.1.10-bin.jar normal normal
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\clas
> ses normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\WEB-INF\web.
> xml normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\META-INF
> normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\META-INF\MAN
> IFEST.MF normal none
> C:\CtrlSpaceData\CtrlSpace Project
> Repository\02ea34881b6a4bfac6e033606d14a2e745945494\WebContent\index.jsp
> normal none
>
> Thank You for your help :-)
>
> Linda
>
> Dmitry Pavlenko-2 wrote:
> > Hello Linda,
> > It looks like a bug in SVNKit. To reproduce it locally I need to know the
> > working copy state. So I would like to ask you to run "svn status -v" on
> > your working copy and send me the output.
> >
> > With SVNKit you may get the status by the following code (please send me
> > the output).
> >
> > final SVNClientManager clientManager =
> >
> > SVNClientManager.newInstance();
> >
> > try {
> >
> > final SVNStatusClient statusClient =
> >
> > clientManager.getStatusClient();
> >
> > statusClient.doStatus(workingCopyDirectory,
> >
> > SVNRevision.WORKING, SVNDepth.INFINITY, false, true, true, true, new
> > ISVNStatusHandler() {
> >
> > @Override
> > public void handleStatus(SVNStatus status) throws
> >
> > SVNException {
> >
> > final File file = status.getFile();
> > final SVNStatusType combinedStatus =
> >
> > status.getCombinedNodeAndContentsStatus();
> >
> > final SVNStatusType nodeStatus =
> >
> > status.getNodeStatus();
> >
> > final SVNStatusType contentsStatus =
> >
> > status.getContentsStatus();
> >
> > final SVNStatusType propertiesStatus =
> >
> > status.getPropertiesStatus();
> >
> > System.out.println(file + " " + combinedStatus +
> > "
> >
> > " + nodeStatus + " " + contentsStatus + " " + propertiesStatus);
> >
> > }
> >
> > }, null);
> >
> > } finally {
> >
> > clientManager.dispose();
> >
> > }
> >
> > Thank you for the report!
> >
> >> Hi, I've downloaded and updated to SVNKit 1.7.5, but the problem still
> >> persists.
> >> What could still be causing this?
> >>
> >> Thanks,
> >>
> >> Linda
> >>
> >> Dmitry Pavlenko-2 wrote:
> >> > Hello,
> >> > 1.3.3 is rather old version. Could you please retry with SVNKit 1.7.5
> >>
> >> in
> >>
> >> > order to figure out if the
> >> > problem has been already fixed?
> >> >
> >> >> Hello,
> >> >> For the SVNKit version v1.3.3; SVN version v1.6.11
> >> >> A for the "fullProjectPath", it is an absolute path.
> >> >> I dont know the working copy status, is there a way / function for
> >> >> getting
> >> >> the working copy status in SVNKit?
> >> >> May I know the reason why I get this EmptyStackException?
> >> >>
> >> >> Thank You for your help. :-)
> >> >>
> >> >> Dmitry Pavlenko-2 wrote:
> >> >> > Hello,
> >> >> > could you please provide more information:
> >> >> > What SVNKit version do you use?
> >> >> > Is "fullProjectPath" an absolute or relative path?
> >> >> > What is your working copy status (please provide "svn status -v"
> >> >> > output or describe it somehow)?
> >> >> >
> >> >> >> I've been getting this error
> >> >> >>
> >> >> >> java.util.EmptyStackException
> >> >> >>
> >> >> >> at java.util.Stack.peek(Stack.java:85)
> >> >> >> at
> >>
> >> org.tmatesoft.svn.core.internal.io.fs.FSCommitEditor.addDir(FSCommitEdit
> >>
> >> >> >> or. java:149) at
> >>
> >> org.tmatesoft.svn.core.internal.wc.SVNCommitter.handleCommitPath(SVNComm
> >>
> >> >> >> itt er.java:132) at
> >>
> >> org.tmatesoft.svn.core.internal.wc.SVNCommitUtil.driveCommitEditor(SVNCo
> >>
> >> >> >> mmi tUtil.java:92) at
> >>
> >> org.tmatesoft.svn.core.internal.wc.SVNCommitter.commit(SVNCommitter.java
> >>
> >> >> >> :36 6) at
> >>
> >> org.tmatesoft.svn.core.wc.SVNCommitClient.doCommit(SVNCommitClient.java:
> >> >> >> 100 9) at
> >>
> >> org.tmatesoft.svn.core.wc.SVNCommitClient.doCommit(SVNCommitClient.java:
> >> >> >> 896 ) at
> >>
> >> org.tmatesoft.svn.core.wc.SVNCommitClient.doCommit(SVNCommitClient.java:
> >> >> >> 828 ) at
> >> >> >> com.ctrlspace.vcs.SVNKitWrapper.doCommit(SVNKitWrapper.java:147)
> >> >> >> at
> >> >> >> com.ctrlspace.vcs.commands.PushCommand.doPush(PushCommand.java:13
> >> >> >> 0)
> >> >> >>
> >> >> >> when using
> >> >> >>
> >> >> >> SVNCommitInfo info = manager.getCommitClient().doCommit(
> >> >> >>
> >> >> >> new File[] { new File(fullProjectPath)
> >> >> >> }, false,
> >> >> >> commitMessage, null, null, true, false,
> >> >> >> SVNDepth.INFINITY);
> >> >> >>
> >> >> >> Note:
> >> >> >> new File[] { new File(fullProjectPath) -> it is the list of files
> >> >>
> >> >> that
> >> >>
> >> >> >> the
> >> >> >> user want to create