Internal Server Error - parse exception

51 views
Skip to first unread message

Gregor Anželj

unread,
Jan 25, 2017, 6:28:17 PM1/25/17
to Europass Interoperability
I have a question about parsing Europass XML.

When I generate Europass XML and sent it to REST service to generate PDF, I get "parse.exception Internal Server Error".
Bug hunt reveals that it has something to do with date formatting (e.g. Birthdate element is formatted wrongly).

This in Birthdate element and to me it looks like the one in Europass XML Schema documentation.
<Birthdate year="1987" month="--01" day="---02" />

Any ideas what could cause these problesm. Was definition of dates in Europass XML changed lately in any way?

Thanks for answers.

Gregor

Gregor Anželj

unread,
Jan 25, 2017, 6:30:36 PM1/25/17
to Europass Interoperability
Even more specific error message:

ErrCode:epas-a-apps-1_v3IwqieGinternal.server.errorFailed: public java.lang.String europass.ewa.model.Demographics.formatBirthdate()@[content.xml:2519]

Hope that helps.

Gregor


Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:

Europass Interoperability

unread,
Jan 26, 2017, 4:56:55 AM1/26/17
to Europass Interoperability
Hi Gregor,

Thanks for the question.

Could you please share the specific XML file that you are using in order to check?

Best,
Stavros

Gregor Anželj

unread,
Jan 26, 2017, 5:28:33 AM1/26/17
to Europass Interoperability
I am attaching to XML files, one is with Birthdate element and the other is without.

The one without Birthdate element works OK - I get http code 200 and PDF file. But the one with Birthdate element doesn't work.

Thank you for your help.

Gregor

Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:
I have a question about parsing Europass XML.
europass-with-date.xml
europass-without-date.xml

Europass Interoperability

unread,
Jan 26, 2017, 7:21:39 AM1/26/17
to Europass Interoperability
Hi Gregor,

I had one of our developers take a look on this.

"The date format in the attached xml seems to be corrupted. The format is "/numeric/long" which is invalid.
It is not possible to generate an xml from the editor with this type of format. I have attached the xml with the correct format."

Hope that helps!

Best,
Stavros
europass-with-date.xml

Europass Interoperability

unread,
Jan 26, 2017, 8:04:20 AM1/26/17
to Europass Interoperability
Could you possibly let us know the following?

- was the xml manually edited?

- Did this come from an older version of europass? If so, what year?

Thanks,
Stavros

Gregor Anželj

unread,
Jan 26, 2017, 8:11:55 AM1/26/17
to Europass Interoperability
Stavros hi.

The problem was that I misread the documentation on available date formats. Thus when generating Europass XML users have the posibility to select the date format and I've prefixed all options with slahs character (/). So the options were "/numeric/short" (instead of "numeric/short"), "/numeric/long" (instead of "numeric/long"), "/text/short" (instead of "text/short") and "/text/long" (instead of "text/long").

Now that I removed the unneeded slash prefix characted everything works as expected.

Thank you for all your help.

Kind regards,
Gregor
 

Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:
I have a question about parsing Europass XML.

Europass Interoperability

unread,
Jan 26, 2017, 9:23:45 AM1/26/17
to Europass Interoperability
Hi Gregor,

Glad you resolved it.

Best,
Stavros

Gregor Anželj

unread,
Jan 27, 2017, 5:57:45 AM1/27/17
to Europass Interoperability
Hello Stavros and the team.

Yesterday you've helped me with date format issue. Yesterday evening I've came across another issue.

When I generate Europass XML in most cases I can get the PDF. Only when generating VerifiedBy element for foreign languages there is an "Internal Server Error".

This is the exact error message:

parse.exception 
ErrCode:epas-a-apps-1_RPTSS0pi
Internal Server Error.

I am also attaching the generated Europass XML. The problematic lines seems to be the lines from 245 to 252.

Thank you for all the help.

Kind regards,
Gregor


Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:
I have a question about parsing Europass XML.
europass-foreign-language-verifiedby-problem.xml

Europass Interoperability

unread,
Jan 27, 2017, 8:24:40 AM1/27/17
to Europass Interoperability
Hi Gregor,

Glad to help you.

Could you let us know if the XML is exported directly from the editor or you have manually edited it?

Best,
Stavros

Europass Interoperability

unread,
Jan 27, 2017, 8:33:00 AM1/27/17
to Europass Interoperability
Just to add that If I import your file into the editor and click to download I get the following xml that can be successfully sent to the rest service to generate the pdf.

Best,
Stavros
CV-Europass-20170127-User-EN.xml

Gregor Anželj

unread,
Jan 27, 2017, 12:12:03 PM1/27/17
to Europass Interoperability
The Europass XML is generated in Mahara e-portfolio service. I am writing/updating the plugin to extend Mahara with Europass support.

The Europass XML is not exported from Europass Online Editor.

Kind regards,
Gregor


Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:
I have a question about parsing Europass XML.

Europass Interoperability

unread,
Jan 30, 2017, 4:31:41 AM1/30/17
to Europass Interoperability
Good morning Gregor,

Could you please confirm that you are using the latest XML schema?

It can be found here: http://interop.europass.cedefop.europa.eu/data-model/xml-resources/v3.3.0/examples/europass-cv-example-v3.3.0.xml

Could it be the case that you are using an older version of the schema?

Best,
Stavros

Gregor Anželj

unread,
Jan 30, 2017, 4:40:26 AM1/30/17
to Europass Interoperability
Hello Stavros.

Yes I am using latest Schema v3.3.

Basicaly I've searched for the problem, but I could not found it. As far as I can tell, it has something to do with XML not being properly generated and probably some template cache issue. So the issue is on my side...

Since I don't have much time to finish this, I have switched to JSON instead of XML. This works without problems. Now I can generate JSON and send it via REST request to Europass service endpoints and get back the desired document.

Thank you for all your help.

Kind regards,
Gregor


Dne četrtek, 26. januar 2017 00.28.17 UTC+1 je oseba Gregor Anželj napisala:
I have a question about parsing Europass XML.
Reply all
Reply to author
Forward
0 new messages