Commit Graph
121 Commits
Author SHA1 Message Date
kohsuke 8a229acc28 improved error diagnostics
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13816 71c3de6d-444a-0410-be80-ed276b4c234a
2008-12-23 07:42:20 +00:00
kohsuke c19ecbf318 <tt>slave.jar</tt> now supports the <tt>-noCertificateCheck</tt> to bypass (or cripple) HTTPS certificate
examination entirely. Useful for working with self-signed HTTPS that are often seen in the intranet.
    (<a href="http://www.nabble.com/Getting-hudson-slaves-to-connect-to-https-hudson-with-self-signed-certificate-td21042660.html">discussion</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13719 71c3de6d-444a-0410-be80-ed276b4c234a
2008-12-18 17:07:27 +00:00
kohsuke f8fdcaac2c doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13496 71c3de6d-444a-0410-be80-ed276b4c234a
2008-12-10 22:27:14 +00:00
jglick b91438b1e2 No need to cast to HttpURLConnection.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13399 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-26 00:18:53 +00:00
jglick 1ec2624b29 Missing spaces in CLI option description.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13398 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-26 00:02:56 +00:00
kohsuke 71dfad2a42 doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13332 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-18 22:43:11 +00:00
kohsuke 7631b6b483 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13327 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-18 19:53:00 +00:00
kohsuke 655f4fe03f <li class=bug>
Use Project Security setting wasn't being persisted.
    (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=2305">issue 2305</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13224 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-14 00:29:35 +00:00
kohsuke 9640d966b0 implemented a menu item to install a slave as a windows service
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12406 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-27 17:21:40 +00:00
kohsuke c4c7cd06eb adding abstraction to arbitrate menu bar
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12403 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-27 14:53:08 +00:00
kohsuke b9f6524f19 Exposed GuiListener and MainDialog to the remoted operations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12402 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-27 13:12:42 +00:00
kohsuke 88c43ba7f9 bug fix and refactoring
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12214 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-18 18:42:12 +00:00
kohsuke 6e211c3758 Merged jnlp-agent and remoting module, so that the JNLP like proactive connection mode is available through slave.jar
This allows us to define another launch mode, especially suitable for running as a service on Windows.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12181 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-17 19:51:56 +00:00
kohsuke 26bac4f325 Moving the code that talks to Hudson server via a TCP connection
to remoting from JNLP agent, so that the same capability is
exposed from "slave.jar"



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12172 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-17 12:48:23 +00:00
kohsuke 0de942fbec For the allocationTrace to be really useful, its call stack needs to be captured in StackTraceElement[], not in the encoded binary form.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11799 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-27 23:46:22 +00:00
kohsuke aa20e2bc98 added a test case that actually doesn't verify much.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11783 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-27 06:16:07 +00:00
kohsuke add650bd9d added preload implementation
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11782 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-27 06:08:10 +00:00
kohsuke b2a96801cb simplified
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11781 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-27 04:53:48 +00:00
kohsuke 8eb731cf11 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11780 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-27 04:53:09 +00:00
kohsuke b3128adbf3 simplified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11532 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-17 06:13:42 +00:00
kohsuke 24aefa700a added a convenience implementation.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11341 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-08 18:49:08 +00:00
kohsuke d615f47878 improving the manageability of Hudson
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11206 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-04 17:36:53 +00:00
kohsuke 1dc277cb51 Improved the error diagnostics when the text mode communication between the master and slave
sees illegal characters.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10975 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-24 01:15:32 +00:00
kohsuke 5746cdfc7a [FIXED HUDSON-2063] Java 1.6 dependency crept into Hudson in 1.234.
Use of non-existent class only causes NoClassDefError at the offending line in normal execution, but I didn't realize that reflection breaks when I do that.

Switch to rely on reflection completely to fix this problem.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10783 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-11 22:22:43 +00:00
kohsuke 2195dc94be improving the error diagnostics for people launching slave.jar outside the context.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10727 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-09 22:31:42 +00:00
kohsuke 7c6859f6cc improving the error diagnostics.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10586 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-03 00:32:40 +00:00
kohsuke 3ed86c74b2 WebSphere apparently uses "wsjar:".
See http://www.nabble.com/Another-WebSphere-6.1-problem-tt18055457.html for details.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10429 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-25 21:43:45 +00:00
kohsuke 4d38db7bd5 Attempting to fix http://www.nabble.com/Surefire-reports-tt17554215.html
I'm suspecting that the file in question has been deleted by someone else, since this relies on a temporary directory.
Adding a check to make sure that the cached file exists.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10147 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-16 22:08:51 +00:00
kohsuke 512841a955 [FIXED HUDSON-1762] Another use of FilterOutputStream pointed out by Yuri Schimke.
FilterOutputStream is evil.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9789 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-03 14:36:40 +00:00
kohsuke 563d6e45cb buffering is the caller's responsibility
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9757 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-02 17:37:37 +00:00
kohsuke 704343f57e [FIXED HUDSON-1458] Fixed the mysterious JVM hang issue on Windows&Maven2.
I spent a good part of yesterday afternoon to track down this problem. I first attached Visual Studio to the hanging JVM. While I can see the JVM source code and Windows API symbols all right, I couldn't figure out how to relate back the code produced by JIT to its Java, so this made the debugging very hard.

What I observed was that Maven's main thread seems to be blocked in WaitForSingleObject kernel API, but I can't figure out what handle it's blocking on. This call appears to come directly from JIT-ed Java code.

The problem disappears if I enable Java debugger support, or if I attach jconsole. So this cannot be a plain Java-level deadlock.

So after that much work, I still coudldn't figure out the root cause.


But I took the advice from mriem@dev.ajva.net anyway, and modified the remoting to use a separate TCP socket, instead of stdin/stdout. This is useful anyway, because sometimes JVM writes out to stdout and that breaks the whole set up, which was one of the known issues.

This commit brings in this change, and in the limited testing so far, this appears to work. So let's hope that it fixes the problem once and for all.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9615 71c3de6d-444a-0410-be80-ed276b4c234a
2008-05-23 20:48:09 +00:00
kohsuke 2841eb6f58 fix pointed out by http://www.nabble.com/Hudson-on-OC4J-tt16742879.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8729 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-19 01:01:32 +00:00
kohsuke fb5127ed12 Fixed a problem related to OC4J. See http://www.nabble.com/Hudson-on-OC4J-tt16702113.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8632 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-16 01:58:10 +00:00
kohsuke f7fb35923b indentation fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8505 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-11 04:40:33 +00:00
drulli e416d4dc05 Improved 2nd exception message if which does not find a Jar file.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7705 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-13 18:10:11 +00:00
drulli 5a3bd196ab Improved exception message if which does not find a Jar file.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7697 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-13 14:26:50 +00:00
kohsuke 18816984e4 made more robust. See http://www.nabble.com/How-to-reference-library-JARs-of-a-plugin-at-runtime-%28URL%29-td15601148.html#a15601148
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7619 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-12 06:42:12 +00:00
kohsuke f2f9743cd8 accidentally commented out.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6628 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 20:00:01 +00:00
kohsuke e153f3ac61 support sending back exported objects to the caller.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6627 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 19:59:00 +00:00
kohsuke 603aeccf6f typo
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6626 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 18:31:39 +00:00
kohsuke b0d140e376 adding performance counters
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6613 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 00:19:14 +00:00
kohsuke fcc7b1ea24 adding another unwrap method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6612 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 00:18:57 +00:00
kohsuke 54c064bb4e typo
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6611 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-13 00:08:53 +00:00
kohsuke 5561ebf0f4 adding ping support. For now, only activate them when specified via CLI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6607 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-12 19:23:53 +00:00
kohsuke 0100f17291 this is needed by hudson.maven.agent.Main.main(Main.java:68)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6304 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-16 03:50:31 +00:00
kohsuke c339b1a7e0 adding trace message.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6296 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-16 01:59:48 +00:00
kohsuke 7edd9eb192 support the -text option for slaves over binary-unsafe channel.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6287 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-15 19:43:09 +00:00
kohsuke da47f62a14 implemented text tranmission mode and mode negotiation.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6286 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-15 19:40:37 +00:00
kohsuke f7a8c791f2 implemented streaming base64 encoder/decoder for tunneling connection over binary-unsafe protocol.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6285 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-15 18:02:33 +00:00
kohsuke 975f36e73a fixed a bug regarding a roundtrip exporting (where side X exports an object to the other side Y, and Y re-exports that back to X.)
When this happens to classloaders (that is, when the master exports its classloader to a remote machine, which re-exports this remote classloader to the master to make a callback), we end up creating a RemoteClassLoader on the master to load a duplicate copy. A duplicate copy happens when we try to load a class from plugins, because ImportedClassLoaderTable creates new RemoteClassLoader with the 'getClass().getClassLoader()' as the parent, which doesn't see the plugin classes.
To fix this problem, RemoteClassLoader is modified to detect the situation where a round-trip re-exporting is about to happen. Upon detecting this, it will arrange things in such a way that the other side will get the original ClassLoader instance back, instead of doubly-proxied RemoteClassLoader.
This fixes the problem discussed in http://www.nabble.com/Help-Kohsuke%21-m2-project-type-and-cobertura-tf4829718.html and http://www.nabble.com/MavenReporter-throws-Serialization-Exception-for-ProjectActions-when-writing-to-build.xml-tf4784290.html#a13687067


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5997 71c3de6d-444a-0410-be80-ed276b4c234a
2007-11-22 02:29:52 +00:00