This issue is still very much alive for me. It can be hard to reproduce consistently, but seems to happen almost every time I am clicking save on a job page or at the /configure page when at work. Sadly, much less often when I'm trying to reproduce for this issue page...
Current system info: Windows 7 64-bit, Opera 10.63. Hudson 1.382
I can post hardware environment details if that would be interesting.
All of my jobs are free-style jobs, though this also happens at the general configuration pages and new job page.
I can get it to happen with a standard, fresh Hudson 1.382 (java -jar hudson.war) running locally, even at the very first attempt to create a job (type x for job name, click a radio button, click OK). That case is not reliably reproducible, but shows how simple of a form can cause this.
It's happened with both Winstone (java -jar hudson.war) and with Tomcat as the container.
I have tried fully clearing my Opera cache.
I usually cannot see any errors in the error console. Problem is harder to reproduce (general case not reproducible?) when opera dragonfly is running. Dragonfly is Opera's built in developer javascript debugger/DOM explorer/etc - type Ctrl+Shift+I to launch it. The best I could do after an hour of trying to get a javascript error console entry or more info using dragonfly was to reproduce without dragonfly,. Whenever the issue happens - clicking OK then clicking Save again makes it happen again...so I made it happen, enabled dragonfly (Ctrl+Shift+I), then clicked Save again and got an error 500 page like one of the others. Here is what winstone logged:
[webapp 2010/10/26 00:40:09] - Error while serving http://localhost:8080/configS
ubmit
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:25
9)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.j
ava:65)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
java:30)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453)
at org.kohsuke.stapler.Stapler.service(Stapler.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:9
4)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.ja
va:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
a:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:619)
Caused by: net.sf.json.JSONException: JSONObject["globalMavenOpts"] not found.
at net.sf.json.JSONObject.getString(JSONObject.java:1789)
at hudson.maven.MavenModuleSet$DescriptorImpl.configure(MavenModuleSet.j
ava:822)
at hudson.model.Hudson.configureDescriptor(Hudson.java:2467)
at hudson.model.Hudson.doConfigSubmit(Hudson.java:2424)
... 32 more
[Winstone 2010/10/26 00:40:09] - Untrapped Error in Servlet
javax.servlet.ServletException: net.sf.json.JSONException: JSONObject["globalMav
enOpts"] not found.
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:572)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453)
at org.kohsuke.stapler.Stapler.service(Stapler.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:9
4)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.ja
va:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
a:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:619)
Caused by: net.sf.json.JSONException: JSONObject["globalMavenOpts"] not found.
at net.sf.json.JSONObject.getString(JSONObject.java:1789)
at hudson.maven.MavenModuleSet$DescriptorImpl.configure(MavenModuleSet.j
ava:822)
at hudson.model.Hudson.configureDescriptor(Hudson.java:2467)
at hudson.model.Hudson.doConfigSubmit(Hudson.java:2424)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:25
9)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.j
ava:65)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
java:30)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537)
... 22 more
Given that Firefox is unaffected by this, I am inclined to think it's an Opera issue but I'm not sure how to gather further data for a proper bug report with them.
The same issue is present after the patch was applied (we're using 1.343 based version with custom patches) with Opera 10.60, build 6386).
Steps to reproduce:
1/ Have a job with multiple build steps (e.g. Ant targets)
2/ Click on "Advanced" for 2 or more of them
3/ Save the configuration (no modification is necessary)
4/ You'll get the error described in current issue