我有jira4.3并且使用eclipse web服务客户端我已经生成了客户端存根(axis1.4)。我能够登录并创建问题但是当我试图获得响应时,我得到以下错误。 请帮我解决这个问题,谢谢。
java.lang.ClassCastException: java.lang.Boolean无法强制转换为 com.atlassian.crowd.embedded.api.User 在org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) 在org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
以下是使用的代码库:
JiraSoapService jiraSoapService = soapSession.getJiraSoapService();
String authToken = soapSession.getAuthenticationToken();
RemoteIssue issue = new RemoteIssue();
issue.setProject(PROJECT_KEY);
issue.setType(ISSUE_TYPE_ID);
issue.setSummary("JIRA Ticket created via SOAP client: Without Component ID");
issue.setPriority(PRIORITY_ID);
issue.setDuedate(Calendar.getInstance());
issue.setAssignee(ASSIGNEE_ID);
issue.setDescription("In future tickets may be created through some Web form in this way ");
RemoteIssue createdIssue = jiraSoapService.createIssue(authToken, issue);
请帮我解决这个问题,我正在使用jira4.3.Am没有在任何地方使用任何嵌入式用户对象,我不知道为什么它试图返回嵌入的用户对象。