java.lang.IllegalArgumentException

Atlassian JIRA | Jeff Turner | 1 decade ago
  1. 0

    I have seen this in a few people's logs now: 2006-07-31 15:10:35,250 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.6.2-#156 2006-07-31 15:10:35,250 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: hsql 2006-07-31 15:10:35,250 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] ****************************************************************************************** hsqldb is an in-memory database, and susceptible to corruption when abnormally terminated. DO NOT USE IN PRODUCTION, please switch to a regular database. ****************************************************************************************** 2006-07-31 15:10:35,328 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] 2006-07-31 15:10:35,343 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] ***************************************************************************************************** JIRA 3.6.2 build: 156 (Enterprise Edition) started. You can now access JIRA through your web browser. ***************************************************************************************************** 2006-07-31 15:10:36,203 WARN [webwork.dispatcher.ServletDispatcher] Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir 2006-07-31 15:10:53,109 INFO [jira.action.admin.DataExport] Export took 15109ms 2006-07-31 15:10:53,109 INFO [jira.action.admin.DataExport] Wrote 247318 entities to export 2006-07-31 16:57:09,562 ERROR [webwork.util.ServletValueStack] METHOD: "fieldHtml", exception: java.lang.IllegalArgumentException at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645) at com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675) at com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:655) 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:585) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) .....

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalArgumentException
  2. 0

    I have seen this in a few people's logs now: 2006-07-31 15:10:35,250 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.6.2-#156 2006-07-31 15:10:35,250 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: hsql 2006-07-31 15:10:35,250 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] ****************************************************************************************** hsqldb is an in-memory database, and susceptible to corruption when abnormally terminated. DO NOT USE IN PRODUCTION, please switch to a regular database. ****************************************************************************************** 2006-07-31 15:10:35,328 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] 2006-07-31 15:10:35,343 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] ***************************************************************************************************** JIRA 3.6.2 build: 156 (Enterprise Edition) started. You can now access JIRA through your web browser. ***************************************************************************************************** 2006-07-31 15:10:36,203 WARN [webwork.dispatcher.ServletDispatcher] Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir 2006-07-31 15:10:53,109 INFO [jira.action.admin.DataExport] Export took 15109ms 2006-07-31 15:10:53,109 INFO [jira.action.admin.DataExport] Wrote 247318 entities to export 2006-07-31 16:57:09,562 ERROR [webwork.util.ServletValueStack] METHOD: "fieldHtml", exception: java.lang.IllegalArgumentException at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645) at com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675) at com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:655) 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:585) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) .....

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalArgumentException
  3. 0

    The actual HTML for editing the field is not displayed as the following exception is thrown: 2006-05-25 17:48:21,813 ERROR [webwork.util.ServletValueStack] METHOD: "fieldHtml", exception: java.lang.IllegalArgumentException at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645) at com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675) at com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:655) 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:324) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:177) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:552) To reproduce this, create a custom field for project A, create a custom field for project B, create 2 issues, one in each project. Stick the custom field onto the Resolve issue screen. Try to Bulk Resolve both issues. Or try to Bulk Edit them. The actual code that determines whether a custom field is avaialble for Bulk Edit uses searching code (i.e. the same code that is used to find out whether to display the custom field in issue navigator for searching). There is a bug in it which actually also causes JRA-10237 As far as I can tell the bug is in getReleventConfig(SearchContext searchContext) method in CustomFieldImpl. As the method loops over custom field and retrieves relevantConfig for each search context, if relevantConfig is not null for the first searchContext in the loop, but is null for any of the following search contexts, the custom field is shown anyway. I believe that iif the custom field is not applicable for at least one searchContext then it should not be avaialble. There are several problem there: 1. I do not think we should rely on searching code when doing bulk operations. Feels wrong to me. Need to decide if we need to completely create a new method for this. 2. Even if the searching code is used, the code loops through all the unique project id, issue type id combinations. This is not great, as if you have 2 issues, bug from project A, and task from project B, the code will loop through 4 cobninations, but really needs to check only 2. For Bulk Workflow the problem is similar. See the availableForBulkEdit(BulkEditBean bulkEditBean) method on CustomFieldImpl, it also loops over configs and if relevantConfig for an issue is null, the field is shown anyway. Hopefully this expalanation will make more sense once you have a look at the code.

    Atlassian JIRA | 1 decade ago | Anton Mazkovoi [Atlassian]
    java.lang.IllegalArgumentException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have custom fields in custom screens. This screens are used as Transition View of custom workflow. Bulk Operation: Choose Issues -> ok Bulk Operation: Choose Operation -> Edit Issues Bulk Operation: Operation Details -> there is a checkbox for each field of all transition views but they are not editable. Individual change with the same user are possible. It's the same problem choosing Transition Issues operation. I can see the custom fields of the transition view but they are not editable. Bulk Operation: Choose Issues -> ok Bulk Operation: Choose Operation -> Transition Issues Bulk Operation: Operation Details -> there is a checkbox for each field of the transition view but they are not editable. Logs: 2006-09-04 17:04:06,983 ERROR [webwork.util.ServletValueStack] METHOD: "fieldHtml", exception: java.lang.IllegalArgumentException at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645) at com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675) at com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:669) 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:324) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534)

    Atlassian JIRA | 1 decade ago | Didier Berguerand
    java.lang.IllegalArgumentException
  6. 0

    The actual HTML for editing the field is not displayed as the following exception is thrown: 2006-05-25 17:48:21,813 ERROR [webwork.util.ServletValueStack] METHOD: "fieldHtml", exception: java.lang.IllegalArgumentException at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645) at com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675) at com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:655) 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:324) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257) at org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:177) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:552) To reproduce this, create a custom field for project A, create a custom field for project B, create 2 issues, one in each project. Stick the custom field onto the Resolve issue screen. Try to Bulk Resolve both issues. Or try to Bulk Edit them. The actual code that determines whether a custom field is avaialble for Bulk Edit uses searching code (i.e. the same code that is used to find out whether to display the custom field in issue navigator for searching). There is a bug in it which actually also causes JRA-10237 As far as I can tell the bug is in getReleventConfig(SearchContext searchContext) method in CustomFieldImpl. As the method loops over custom field and retrieves relevantConfig for each search context, if relevantConfig is not null for the first searchContext in the loop, but is null for any of the following search contexts, the custom field is shown anyway. I believe that iif the custom field is not applicable for at least one searchContext then it should not be avaialble. There are several problem there: 1. I do not think we should rely on searching code when doing bulk operations. Feels wrong to me. Need to decide if we need to completely create a new method for this. 2. Even if the searching code is used, the code loops through all the unique project id, issue type id combinations. This is not great, as if you have 2 issues, bug from project A, and task from project B, the code will loop through 4 cobninations, but really needs to check only 2. For Bulk Workflow the problem is similar. See the availableForBulkEdit(BulkEditBean bulkEditBean) method on CustomFieldImpl, it also loops over configs and if relevantConfig for an issue is null, the field is shown anyway. Hopefully this expalanation will make more sense once you have a look at the code.

    Atlassian JIRA | 1 decade ago | Anton Mazkovoi [Atlassian]
    java.lang.IllegalArgumentException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No message provided

      at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml()
    2. com.atlassian.jira
      BulkWorkflowTransition.getFieldHtml
      1. com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getEditHtml(CustomFieldTypeModuleDescriptor.java:93)
      2. com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:645)
      3. com.atlassian.jira.issue.fields.CustomFieldImpl.getBulkEditHtml(CustomFieldImpl.java:675)
      4. com.atlassian.jira.web.action.issue.bulkedit.BulkWorkflowTransition.getFieldHtml(BulkWorkflowTransition.java:655)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. webwork.util
      ValueStack.findValue
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
      3. webwork.util.ValueStack.findValue(ValueStack.java:426)
      4. webwork.util.ValueStack.findValue(ValueStack.java:175)
      4 frames
    5. webwork.view.taglib
      BasicPropertyTag.doStartTag
      1. webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61)
      2. webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
      2 frames
    6. org.apache.jsp
      bulkworkflowtransition_005feditfields_jsp._jspService
      1. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_property_31(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2305)
      2. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_if_8(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:2005)
      3. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_3(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1945)
      4. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_iterator_2(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1806)
      5. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspx_meth_webwork_else_1(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:1257)
      6. org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp._jspService(org.apache.jsp.secure.views.bulkedit.bulkworkflowtransition_005feditfields_jsp:434)
      6 frames
    7. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame