[UserDataVOWS]Invalid EndTime

Gary
2013-06-27
2013-06-27
  • Gary

    Gary - 2013-06-27

    Hi,

    I use EJBCA WS to request the server (v3.8.0) and try to create an end entity user.
    I always have this error with the code:

    user.setEndTime("Jun 29, 2013 5:35 PM");

    "main" org.ejbca.core.protocol.ws.client.gen.UserDoesntFullfillEndEntityProfile_Exception: Invalid end time format.

    I already read some threads about bugs with the date format but in my case i don't know where the problem is.

    Thanks for your help

     
    Last edit: Gary 2013-06-27
  • Anders Rundgren

    Anders Rundgren - 2013-06-27

    I can't say anything about 3.8.0 because it is not supported anymore but more recent versions of EJBCA use the UTC time format.

    Cheers
    Anders
    tech support

     
  • Gary

    Gary - 2013-06-27

    I know that v3.8.0 is outdated and use an old format but i need to work on this version.

    I test many entries :
    user.setEndTime("Jun 29, 2013 5:35 PM"); => Invalid end time format.
    user.setEndTime("2015-02-28 12:32:00+00:00"); => Invalid end time format.
    user.setEndTime("12:32 2015-02-28"); => Invalid end time format.
    user.setEndTime(false); => Invalid end time format.
    user.setEndTime(null); => Invalid end time format.

     
    Last edit: Gary 2013-06-27
  • Anders Rundgren

    Anders Rundgren - 2013-06-27

    You could try:

    2015-02-28T12:32:00

    Anders

     
  • Gary

    Gary - 2013-06-27

    Doesn't work, but problem is solved. EndTime has been made optional on the server.

     
    Last edit: Gary 2013-06-27

Log in to post a comment.