0

I'm trying to send this JSON to my Java backend

{  
 "title": "TITOLO", 
 "description": "DESCRIZIONE", 
 "mediaType": "MEDIATYPE" 
}

but for some reasons, I cannot write it correctly to my DB. Some teammates can do it without problems but I get this error from Postman:

{
    "timestamp": 1526753419760,
    "status": 500,
    "error": "Internal Server Error",
    "message": "Type definition error: [simple type, class isssr.ticketsystem.entity.Ticket]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `isssr.ticketsystem.entity.Ticket` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)\n at [Source: (PushbackInputStream); line: 2, column: 2]",
    "path": "/ticketsystem/ticket"
}

I wrote on their local DB without problems but they cannot do the same to mine.

Why this?

My OS is MacOS X High Sierra 10.13.4, using as IDE Intellij IDEA.

UPDATE

Problem was Java 10. With a downgrade to Java 8, all works fine.

JackLametta
  • 400
  • 1
  • 2
  • 21

0 Answers0