This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 196982 - subversion commits fail
Summary: subversion commits fail
Status: VERIFIED INCOMPLETE
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.2
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 18:55 UTC by athompson
Modified: 2012-08-15 16:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (44.57 KB, text/plain)
2011-03-23 20:11 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2011-03-22 18:55:20 UTC
The problem popped up relatively recently in the dev builds (it's present in the 18 March build).  Attempting to commit code changes to svn results in the following error:

org.tigris.subversion.javahl.ClientException: Commit failed (details follow):
MKACTIVITY of '/Rainking/!svn/act/c146dede-2e01-0010-b241-eb5d9117326e': 500 Internal Server Error (http://subversion)
MKACTIVITY request failed on '/Rainking/!svn/act/c146dede-2e01-0010-b241-eb5d9117326e'

Despite the "Internal Server Error" message, this appears to be Netbeans specific.  There have been no changes in our SVN server, and I verified that the same commits work from the command line, from Eclipse, and from older versions of Netbeans.  I also tried removing my ".netbeans" folder but the problem persists.



Product Version: NetBeans IDE Dev (Build 201103220400)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Users\athompson\.netbeans\dev
Comment 1 Petr Jiricka 2011-03-23 06:12:45 UTC
Reassigning to subversion.
Comment 2 Ondrej Vrabec 2011-03-23 07:55:45 UTC
What was the last dev build that worked? And please attach the message log: ~/.netbeans/dev/var/log/message.log after the commit fails.
Does the svn repository require authentication? Do you have username and password correctly set (look at Tools>Options>Misc>Versioning>Subversion, click on Manage connection settings)?
You don't have access to server logs, do you? It would be very helpful to see what exactly the server complains about.
Comment 3 Ondrej Vrabec 2011-03-23 10:57:46 UTC
some notes: works fine in our tested environment, must be a server configuration problem: see a related post on http://svn.haxx.se/users/archive-2005-02/0548.shtml
Not a P1, fails only in some cases. Please answer questions in comment #2
Comment 4 athompson 2011-03-23 20:08:48 UTC
I doubt it's a server config issue because it works fine with earlier builds of Netbeans.
Comment 5 athompson 2011-03-23 20:11:19 UTC
Created attachment 107227 [details]
log file
Comment 6 athompson 2011-03-23 21:08:27 UTC
> What was the last dev build that worked?
I guess it hasn't been as recent as I thought.  I just tried 7.0-beta2 and that also has the problem, but 7.0-beta does not.  I'd guess that the problem occurred much closer to the beta2 date.

> And please attach the message log:
Done.

> Does the svn repository require authentication?
Yes, but even running with a fresh ".netbeans" directory the problem occurs before Netbeans asks for your password.  I'm not an expert at these things, but from the message it looks like the problem is not the commit itself, but something Netbeans does before the commit.  But I could be wrong.

> You don't have access to server logs, do you?
Sorry, no.
Comment 7 athompson 2011-03-23 21:24:26 UTC
As for the link, that problem is 6 years old and refers to connections over SVN+SSH, so I'd guess it's not related.
Comment 8 Ondrej Vrabec 2011-03-23 21:50:40 UTC
Have you checked the credentials in Tools>Options>Misc>Versioning>Subversion? Are they correctly set? If it still fails even with filled username and password, please run the IDE with the following commandline switch: -J-DsvnClientAdapterFactory=commandline , does it make difference?
Comment 9 athompson 2011-03-23 22:43:14 UTC
The credentials for this repository were not yet cached.   Adding the command line switch allows Netbeans to commit properly.  Once that commit is done and the credentials are cached, Netbeans will continue to work properly even when the command line switch is removed.

To summarize, if the credentials are not yet cached (or I imagine if the password has changed), instead of prompting for the password, the error is thrown.  This should be easy to recreate under these conditions.
Comment 10 Ondrej Vrabec 2011-03-24 06:58:36 UTC
Thanks, that's what i thought, but was unable to try myself, since all our test servers return 'Authentication error' message instead of your weird not so self-descriptive one. I'll fix ASAP
Comment 11 Ondrej Vrabec 2011-03-24 08:21:26 UTC
fix: http://hg.netbeans.org/core-main/rev/5cd8523dc22f
Comment 12 Ondrej Vrabec 2011-03-24 08:25:46 UTC
Please verify the fix: In Tools > Options > Versioning > Subversion, Manage Connection Settings clear your password, Then try to commit, the login dialog should now be displayed and after reentering the password the commit should pass.
Comment 13 Quality Engineering 2011-03-25 09:52:35 UTC
Integrated into 'main-golden', will be available in build *201103250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5cd8523dc22f
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #196982 - subversion commits fail
Comment 14 athompson 2011-03-25 16:59:34 UTC
Yup.
Comment 15 athompson 2011-04-14 19:34:45 UTC
Sorry, one minor hiccup:  If no credentials are stored, it will prompt you for your password twice (but then work properly).  The first time it happened I assumed I just miss-typed my password.
Comment 16 athompson 2011-04-22 20:02:50 UTC
This doesn't seem to have made it into the 7.0 release.
Comment 17 Ondrej Vrabec 2011-04-25 20:38:46 UTC
(In reply to comment #16)
> This doesn't seem to have made it into the 7.0 release.
Sure it doesn't, Target Milestone is set to Dev, meaning it's fixed in trunk and scheduled for next release
Comment 18 athompson 2011-04-26 14:45:07 UTC
I'm not sure how you guys handle your branches.  Does that mean it will be in 7.0.1 or will I need to wait until 7.1?
Comment 19 athompson 2011-04-26 14:46:45 UTC
Also, the "hiccup" from comment 15 is still present and should probably be fixed.
Comment 20 Ondrej Vrabec 2011-04-26 14:55:22 UTC
(In reply to comment #19)
> Also, the "hiccup" from comment 15 is still present and should probably be
> fixed.
Yes, it should, sorry, i reacted to the P2 priority and your comment and automatically closed this again.
What was the action that triggered the auth dialog to popup twice (commit, update)?

> I'm not sure how you guys handle your branches.  Does that mean it will be in
> 7.0.1 or will I need to wait until 7.1?
Until the next releases are created in Target Milestone field, just assume that:
Dev now stands for 7.0.1
Next stands for 7.1
So to your question: the fix will be integrated into 7.0.1
Comment 21 athompson 2011-04-26 15:30:11 UTC
Thanks.  It was a commit which caused the dialog to pop up twice.  Otherwise, it works fine.
Comment 22 freddiefishcake 2011-08-16 16:39:46 UTC
I recently started to have problems with subversion after upgrading from 7.0 to 7.0.1.
All previous versions of NetBeans have worked perfectly with subversion.
I still have 7.0 installed, if I run 7 instead of 7.0.1 the subversion still works fine.

The fault symptoms in 7.0.1 include:
a) Team | SubVersion | Checkout - use same repository URL and username password as works in v7 .. click next -- the progress bar just spins - apparently for ever ..

b) choose a project, right click, choose SubVersion | Commit .. click Commit button, get messages like this
==[IDE]== Aug 16, 2011 5:37:41 PM Preparing Commit...
==[IDE]== Aug 16, 2011 5:37:42 PM Preparing Commit... finished.
==[IDE]== Aug 16, 2011 5:37:49 PM Committing...
commit -m "added more query parameters for spatial querying via REST (bounding box co-ordinates)" C:/Users/pjl.VADOM/Documents/NetBeansProjects/JX/jx-assembly/pom.xml

and then the committing progress bar in the IDE just spins, apparently for ever .. there does seem to be network I/O, but thye commit never actually happens ..
Comment 23 athompson 2011-08-17 17:10:46 UTC
The problem I had in comment #21 seems to have gone away.

freddiefishcake: That sounds like a different problem.  You should create a new bug report for that one.
Comment 24 athompson 2011-08-17 17:13:11 UTC
That is, the problem I had in comment #15.
Comment 25 freddiefishcake 2011-08-30 14:54:27 UTC
The root cause of the problem with netbeans 7.0.1 is JDK 7.

After having similar svn problems on a Hudson linux slave that had been upgraded to JDK7 - and which were fixed by going back to JDK6, I edited netbeans.conf like this:

# Default location of JDK, can be overridden by using --jdkhome <dir>:
# going back to 1.6 to see if that fixes svn issue ..
#netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0"
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_24"

and now netbeans 7.0.1 is happily working with svn again ;-)
Comment 26 athompson 2011-08-31 22:13:42 UTC
I was using JDK6 here...
Comment 27 nicholas.alipaz 2012-08-14 23:50:08 UTC
I just installed 7.2 this morning in the hopes that it would fix this error for me.  It did not however and I had to use the commandline switch supplied in comment #8.  With that switch everything works as expected.  I don't believe this is fixed in the latest 7.2, either that or there has been a regression, any ideas?
Comment 28 Ondrej Vrabec 2012-08-15 07:09:36 UTC
(In reply to comment #27)
> I just installed 7.2 this morning in the hopes that it would fix this error for
> me.  It did not however and I had to use the commandline switch supplied in
> comment #8.  With that switch everything works as expected.  I don't believe
> this is fixed in the latest 7.2, either that or there has been a regression,
> any ideas?
Attach your messages log with the error
Comment 29 athompson 2012-08-15 16:39:19 UTC
Still working here...