Oh! My bad. I meant “text”!!
-----Original Message-----
From: Gawde, Kiran
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:31
AM
To: '[EMAIL PROTECTED]'
Subject: Re: [castor-user] Help
using location
I get following error:
detailMessage= "'value' is not a valid BindXmlNodeType". The complete
stack is as below:
Thread [main] (Suspended
(exception IllegalStateException))
EnumFieldHandler.setValue(Object, Object) line: 171
UnmarshalHandler.processAttribute(String, String, XMLFieldDescriptor,
XMLClassDescriptor, Object) line: 2779
UnmarshalHandler.processAttributes(AttributeSet, XMLClassDescriptor)
line: 2479
UnmarshalHandler.startElement(String, String, AttributeSet) line: 2147
UnmarshalHandler.startElement(String, String, String, Attributes) line:
1292
SAXParser(AbstractSAXParser).startElement(QName, XMLAttributes,
Augmentations) line: not available
SAXParser(AbstractXMLDocumentParser).emptyElement(QName, XMLAttributes,
Augmentations) line: not available
XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanStartElement()
line: not available
XMLDocumentScannerImpl$ContentDispatcher(XMLDocumentFragmentScannerImpl$FragmentContentDispatcher).dispatch(boolean)
line: not available
XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanDocument(boolean)
line: not available
XML11Configuration.parse(boolean) line: not available
XML11Configuration.parse(XMLInputSource) line: not available
SAXParser(XMLParser).parse(XMLInputSource) line: not available
SAXParser(AbstractSAXParser).parse(InputSource) line: not available
Unmarshaller.unmarshal(InputSource) line: 605
Mapping.loadMappingInternal(InputSource) line: 532
Mapping.loadMapping(InputSource) line: 453
AuthzDecisionQueryTestCase(AbstractTestCase).setUp() line: 68
AuthzDecisionQueryTestCase(TestCase).runBare() line: 138
TestResult$1.protect() line: 106
TestResult.runProtected(Test, Protectable) line: 124
TestResult.run(TestCase) line: 109
AuthzDecisionQueryTestCase(TestCase).run(TestResult) line: 131
TestSuite.runTest(Test, TestResult) line: 173
TestSuite.run(TestResult) line: 168
RemoteTestRunner.runTests(String[], String) line: 421
RemoteTestRunner.run() line: 305
RemoteTestRunner.main(String[]) line: 186
-----Original
Message-----
From: Sudhendra Seshachala
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June
08, 2004 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-user] Help
using location
Try the following (In
Red)
Thanks
Sudhi
-----Original Message-----
From: Gawde, Kiran
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:03
AM
To: [EMAIL PROTECTED]
Subject: [castor-user] Help using
location
I am trying to use location as
below:
<class name="com.xxx.security.saml.AuthzDecisionQuery">
<description>Mapping for class
com.xxx.security.saml.AuthzDecisionQuery</description>
<map-to xml="samlp:AuthzDecisionQuery"/>
<field name="id"
get-method="getId" set-method="setId"
type="java.lang.String">
<bind-xml name="saml:ID"
node="attribute"/>
</field>
<field name="sessionIndex"
get-method="getSessionIndex" set-method="setSessionIndex"
type="java.lang.String">
<bind-xml name="saml:SessionIndex"
node="attribute" location="Subject"/>
</field>
<field
name="subjectNameId" get-method="getSubjectNameId"
set-method="setSubjectNameId" type="java.lang.String">
<bind-xml name="saml:Subject" node="value"
location="Subject"/>
</field>
</class>
And I get following xml output:
<samlp:AuthzDecisionQuery saml:ID="00001">
<Subject>[EMAIL PROTECTED]</Subject>
<Subject saml:SessionIndex="1234567890"/>
</samlp:AuthzDecisionQuery>
<samlp:AuthzDecisionQuery
saml:ID="00001">
<Subject saml:SessionIndex="1234567890">[EMAIL PROTECTED]</Subject>
</samlp:AuthzDecisionQuery>
How can I do that? Is it a bug?
Thanks,
Kiran
|