java - Xstream no-args constructor error -


i'm getting following error when tries create instance of 'transacao'

`error: cannot construct br.com.cbmp.ecommerce.resposta.transacao not have no-args constructor : cannot construct br.com.cbmp.ecommerce.resposta.transacao not have no-args constructor `  ---- debugging information ----  message : cannot construct br.com.cbmp.ecommerce.resposta.transacao not have no-args constructor   cause-exception : com.thoughtworks.xstream.converters.reflection.objectaccessexception   cause-message : cannot construct br.com.cbmp.ecommerce.resposta.transacao not have no-args constructor `  class : br.com.cbmp.ecommerce.resposta.transacao   required-type : br.com.cbmp.ecommerce.resposta.transacao   path : /transacao 

i aware there's bug xstream 1.3.1 , jdk7, i'm using xstream 1.3.1 , jdk6. ideas why error still happening?

thanks

3 solutions:

  1. provide no-args constructor (obvious)
  2. make object implement serializable.
  3. upgrade xstream 1.4.4*

i use solution #2 time.

*i verified 1.2.2 doesn't work , 1.4.4 work, haven't tried versions in-between


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -