Terrible error When I try to add a Issue in mantis from java

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
skp
Posts: 1
Joined: 29 Nov 2018, 03:08

Terrible error When I try to add a Issue in mantis from java

Post by skp »

I am trying to do a integration Java with mantis,so, the conection is great but when I want to add a new issue the java program show me a terrible mistake, I had been to search a any solution but i haven't find it.

This is the error:

Exception in thread "main" org.mantisbt.connect.MCException: Error Type: SYSTEM NOTICE,
Error Description: Object of class SoapFault could not be converted to int
at org.mantisbt.connect.axis.MCSession.addIssue(MCSession.java:153)
at seleniumxmantis.Conection_mantis.main(Conection_mantis.java:69)
Caused by: Error Type: SYSTEM NOTICE,
Error Description: Object of class SoapFault could not be converted to int
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

This is part of the code:

issue.setProject(new MCAttribute(proj.getId(), proj.getName())); //
issue.setAdditionalInformation(null);
issue.setOs(System.getProperty("os.name"));
issue.setOsBuild(System.getProperty("os.version"));
issue.setPlatform(System.getProperty("os.arch")); issue.setSeverity(new
MCAttribute(70, "crash")); issue.setReproducibility(new MCAttribute(10,
"always")); issue.setSummary("error" + new Date());
issue.setDescription("error");

issue.setCategory("desastroso"); issue.setPriority(new MCAttribute(40,
"high")); issue.setAdditionalInformation("mistake");

long BugID= inic_session.addIssue(issue);


Please, anyone get to help me!!
Thanks!!
Post Reply