mulesoft/jira-connector — Issue #18: Class cast exception thrown on update-issues
Author: dougbass
Created: 2011-12-21 02:44:33+00:00
State: open

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
at org.mule.module.jira.api.AxisJiraClientHelper.createRemoteFieldValues(AxisJiraClientHelper.java:106)
at org.mule.module.jira.api.AxisJiraClient.updateIssue(AxisJiraClient.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Looking at the code, the cast to String[] will fail. You should call it like this:

(String[]) fieldValues.toArray(new String[fieldValues.size()]));

What do you think?