[Issue 3006] New - Illegal Argument Exception Configuring AccurevSCM

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3006] New - Illegal Argument Exception Configuring AccurevSCM

timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006
                 Issue #|3006
                 Summary|Illegal Argument Exception Configuring AccurevSCM
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|accurev
             Assigned to|stephenconnolly
             Reported by|timezra






------- Additional comments from [hidden email] Mon Feb  9 19:10:55 +0000 2009 -------
In version 1.281 of hudson with accurev plug-in 0.6.6, I get the error below
when trying to configure the AccuRev SCM for any build.  The problem appears to
be with how Hudson reflectively calls the constructor fr AccurevSCM.  A patch
will soon follow.

HTTP ERROR: 500
INTERNAL_SERVER_ERROR

RequestURI=/job/accurev_test/configSubmit
Caused by:
java.lang.IllegalArgumentException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.kohsuke.stapler.RequestImpl.invokeConstructor
(RequestImpl.java:378)
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:331)
        at hudson.plugins.accurev.AccurevSCM$AccurevSCMDescriptor.newInstance
(AccurevSCM.java:1006)
        at hudson.plugins.accurev.AccurevSCM$AccurevSCMDescriptor.newInstance
(AccurevSCM.java:1)
        at hudson.scm.SCMS.parseSCM(SCMS.java:38)
        at hudson.model.AbstractProject.submit(AbstractProject.java:1044)
        at hudson.model.Project.submit(Project.java:160)
        at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68)
        at hudson.model.Job.doConfigSubmit(Job.java:886)
        at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:348)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke
(Function.java:156)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch
(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch
(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:491)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1074)
        at hudson.util.PluginServletFilter$1.doFilter
(PluginServletFilter.java:68)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:60)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
        at hudson.security.ChainedServletFilter$1.doFilter
(ChainedServletFilter.java:52)
        at hudson.security.ChainedServletFilter.doFilter
(ChainedServletFilter.java:44)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:110)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:365)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:185)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:689)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHandlerCollection.java:146)
        at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:457)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:765)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
        at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:329)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:475)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006






------- Additional comments from [hidden email] Mon Feb  9 19:12:35 +0000 2009 -------
Created an attachment (id=550)
The Hudson configuration screenshot


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

timezra-2
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User timezra changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |551)
Apply this patch at t
                        |                          |he root of the accurev plu
                        |                          |g-in project.  Instead of
                        |                          |creating the constructor r
                        |                          |eflectively, the construct
                        |                          |or is created directly a l
                        |                          |a the ClearCaseSCM plug-in
                        |                          |.

--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Feb  9 19:14:32 +0000 2009 -------
Created an attachment (id=551)
Apply this patch at the root of the accurev plug-in project.  Instead of creating the constructor reflectively, the constructor is created directly a la the ClearCaseSCM plug-in.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

scm_issue_link
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Feb 10 19:15:01 +0000 2009 -------
Code changed in hudson
User: : stephenconnolly
Path:
 trunk/hudson/plugins/accurev/src/main/java/hudson/plugins/accurev/AccurevSCM.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=15194
Log:
[FIXED HUDSON-3006]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

statlor
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006






------- Additional comments from [hidden email] Wed Feb 11 15:50:54 +0000 2009 -------
Built the plugin with 15194 and confirmed that this is working with Hudson
1.282. I was receiving the same error message with 1.282 before the fix.

Other relevant info:
Hudson master running Windows XP SP 2 (in a VM)
Intel Xeon X5355, 2 gig RAM
Hudson running as a Windows service, using Sun's 1.5.0_10-b03 JVM.
AccuRev 4.5.3 (OLD)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

timezra-2
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User timezra changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|RESOLVED                  |REOPENED
--------------------------------------------------------------------------------
              Resolution|FIXED                     |
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sat Feb 14 00:33:37 +0000 2009 -------
The fix that was put in is not sufficient.
To re-create the issue, follow thse steps:
1.  Setup a new project.
2.  Set AccuRev as the SCM.
3.  Click "Advanced".
4.  Check the "Use Workspace" checkbox.
5.  Save the configuration.
You will see the stack trace pasted below.

The decision to use Boolean objects does not resolve the problem of how
the "Use Workspace" Json Object is passed to Java and resolved reflectively.  
The patch I will attach resolves both issues (similar to what the ClearCaseSCM
plug-in uses).
Let me know if you have any questions.  Thanks.
----Tim----

org.kohsuke.stapler.NoStaplerConstructorException: class java.lang.Boolean is a
built-in type
        at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames
(RequestImpl.java:424)
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:316)
        at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON
(RequestImpl.java:512)
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:328)
        at hudson.plugins.accurev.AccurevSCM$AccurevSCMDescriptor.newInstance
(AccurevSCM.java:1006)
        at hudson.plugins.accurev.AccurevSCM$AccurevSCMDescriptor.newInstance
(AccurevSCM.java:966)
        at hudson.scm.SCMS.parseSCM(SCMS.java:61)
        at hudson.model.AbstractProject.submit(AbstractProject.java:1095)
        at hudson.model.Project.submit(Project.java:183)
        at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:91)
        at hudson.model.Job.doConfigSubmit(Job.java:918)
        at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:374)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke
(Function.java:156)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch
(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch
(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:491)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1074)
        at hudson.util.PluginServletFilter$1.doFilter
(PluginServletFilter.java:91)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
        at hudson.security.ChainedServletFilter$1.doFilter
(ChainedServletFilter.java:75)
        at hudson.security.ChainedServletFilter.doFilter
(ChainedServletFilter.java:67)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:365)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:185)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:689)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHandlerCollection.java:146)
        at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:457)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:765)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
        at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:329)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:475)



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

timezra-2
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User timezra changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |561)
Patch that fixes both
                        |                          | the IllegalArgumentExcept
                        |                          |ion and the NoStaplerConst
                        |                          |ructorException

--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sat Feb 14 00:34:49 +0000 2009 -------
Created an attachment (id=561)
Patch that fixes both the IllegalArgumentException and the NoStaplerConstructorException


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

vessel
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006






------- Additional comments from [hidden email] Sat Apr  4 11:26:26 +0000 2009 -------
Hi,

can you please add this patch/fix soon to a new release of the plugin? We rely
here greately on the "Use Workspace" option, i.e. this issue is blocking is from
upgrading even Hudson itself (Hudson 1.296 + AccuRev 0.6.6 disables AccuRev
altogether).

Thanks!
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

swilliams89
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006






------- Additional comments from [hidden email] Wed Apr 22 13:08:12 +0000 2009 -------
+1 for fixing the "Use workspace" option.  I've tried many different
combinations of Hudson and the AccurevHudson plugin with no success.  We are
trying to move away from Cruise Control and with this feature working it would
greatly help our chances in the organization.

Thank You!

Scott Williams

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

statlor
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User statlor changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|stephenconnolly           |statlor
--------------------------------------------------------------------------------
                  Status|REOPENED                  |NEW
--------------------------------------------------------------------------------
              QA contact|stephenconnolly           |statlor
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Jul 13 20:06:33 +0000 2009 -------
Reassigning all unresolved AccuRev issues to me.

This issue I will look at next. Once timezra's patch is reviewed and added I
will release 0.6.8 with the fix and get back to a stable release version.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

statlor
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User statlor changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |STARTED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Jul 13 20:29:55 +0000 2009 -------
Working on this next...

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

scm_issue_link
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006






------- Additional comments from [hidden email] Sun Jul 19 07:47:44 +0000 2009 -------
Code changed in hudson
User: : statlor
Path:
 trunk/hudson/plugins/accurev/src/main/java/hudson/plugins/accurev/AccurevSCM.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=19926
Log:
FIXED HUDSON-3006 Applied timezra's patch and tested with various configurations.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3006] Illegal Argument Exception Configuring AccurevSCM

statlor
In reply to this post by timezra-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=3006



User statlor changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|STARTED                   |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sun Jul 19 07:53:44 +0000 2009 -------
Applied this patch and tested it with several build configurations, some using
workspace, some not, slave/master, unix/windows. All configurations check out.
This fix will go into 0.6.8, which I will attempt to release on 7/19.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]