Mantis Task Integration

Hi All!

I am trying to enable the mantis task integration in IDEA 12.1.6 and it fails against two separate servers.

Here is the error from server 1:

When pressing 'Login' a popup serves me the message:

(500)Internal Server Error

And here is the error from server 2:

When pressing 'Login' a popup serves me the message:

; nested exception is:
    org.xml.sax.SAXParseException: Content is not allowed in prolog.


These error messages shows up in the log when searching the task list(mantis servers):

2014-02-11 08:59:32,964 [318172180]   WARN -  lij.tasks.impl.TaskManagerImpl - Cannot connect to  com.intellij.tasks.mantis.MantisRepository@628c7836
java.lang.NullPointerException
    at com.intellij.tasks.mantis.MantisRepository.getIssues(MantisRepository.java:107)
    at com.intellij.tasks.mantis.MantisRepository.getIssues(MantisRepository.java:87)
    at com.intellij.tasks.impl.TaskManagerImpl.getIssuesFromRepositories(TaskManagerImpl.java:718)
    at com.intellij.tasks.impl.TaskManagerImpl.doUpdate(TaskManagerImpl.java:679)
    at com.intellij.tasks.impl.TaskManagerImpl.access$500(TaskManagerImpl.java:79)
    at com.intellij.tasks.impl.TaskManagerImpl$14.run(TaskManagerImpl.java:671)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

Has anyone got it to work?
In that case, what version?
Any modifications?


Regards

/Jesper Berglund

1 comment
Comment actions Permalink

Hello.

I have tried to reproduce the problem, but failed.

From what I've found in web (http://mark.koli.ch/resolving-orgxmlsaxsaxparseexception-content-is-not-allowed-in-prolog) the "Content is not allowed in prolog" may be shown when an XML (the server response in our case) contains BOM.

This is something related to encoding and national characters. Do you have an idea why BOM can be returned by server? Is that national text in issue summary or description (I tried my Mantis, but have not reproduced), or user name, or any server setting?

Regards,
Alexander.

0

Please sign in to leave a comment.