Another issue which I
had when I was using castor is that the instance variable and param name to
setter should be different. Sometimes this used to cause problems. (Shadow
variable stuff)
Try making this
change for the field you are getting the problem.. (Just sanity
check!!)
Ex:
public void
setId(String theId) {
this.id = theId;
}
/**
* @param issueInstant The issueInstant to set.
*/
public void setIssueInstant(Date theIssueInstant) {
this.issueInstant = theIssueInstant;
}
/**
* @param issuerNameFormat The issuerNameFormat to set.
*/
public void setIssuerNameFormat(String theIssuerNameFormat)
{
this.issuerNameFormat = theIssuerNameFormat;
}
-----Original
Message-----
From: Gawde,
Kiran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 10:12
AM
To:
'[EMAIL PROTECTED]'
Subject: [castor-user] Date: Wed, 9 Jun
2004 10:10:19 -0700
I am getting following error
during unmarshalling:
java.lang.IllegalArgumentException:
Type conversion error: could not set value of issuer(java.lang.String) with
value of type java.lang.String
The complete stack trace is in the
attached log file. The sample xml is in the attachment,
too.
I found out that the problem
is caused due to the NameID field being under two elements (Issuer, Subject).
If I take out one of the elements, it works fine. Is it a
bug/limitation?
Thanks,
Kiran