Hi Amit,
Sorry to disturb you.
How you resolved this problem? I am having the same problem and I am
struggling hard to resolve it. I tried with several options and got tired. 
If you can provide some inputs that would be great.

Please send response to [EMAIL PROTECTED]

Thanks Kiran


Werner Guttmann wrote:
> 
> Hi,
> 
> what does the XML look like that you are trying to unmarshal with Castor
> ? It looks like the XML might contain an artefact named 'import' ....
> for which of course Castor will not be able to find a valid descriptor.
> 
> Werner
> 
> Amit Edkee wrote:
>> Hi!!
>> 
>>  I'm using castor 1.0.5.
>>  I've generated Java classes from XML schema using Castor's Source
>> Generator(through Eclipse Plugin)
>>  While trying to unmarshall an XML file the following exception occurs
>> 
>>  
>> 
>> The following are lines of code I use to perform the unmarshalling
>> 
>>  Unmarshaller unm = new
>> Unmarshaller(EMMSchema.class);
>> 
>> obj =
>> (org.castor.example.schema.SomeClass)unm.unmarshal(reader);
>> 
>> Am I going the right way? I am not using any mapping file...
>> Can someone help me with this?
>> 
>>  
>> 
>> *The Input Schema has ‘imported’ another schema and also the target
>> namespace of both the schemas are different***
>> 
>>  
>> 
>> unable to find FieldDescriptor for 'import' in ClassDescriptor of
>> EMMSchema{file: [not available]; line: 5; column: 28}
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:732_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:588_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:809_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.schemaObject.EMMSchema.unmarshal(_EMMSchema.java:238_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.<init>(_EMMGeneratorHandler.java:25_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.main(_EMMGeneratorHandler.java:55_)
>> 
>> Caused by: _org.xml.sax.SAXException_: unable to find FieldDescriptor
>> for 'import' in ClassDescriptor of EMMSchema
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1937_)
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1375_)
>> 
>>       at
>> org.apache.xerces.parsers.SAXParser.startElement(_SAXParser.java:1376_)
>> 
>>       at
>> org.apache.xerces.validators.common.XMLValidator.callStartElement(_XMLValidator.java:965_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.scanElement(_XMLDocumentScanner.java:1858_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(_XMLDocumentScanner.java:1234_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.parseSome(_XMLDocumentScanner.java:381_)
>> 
>>       at
>> org.apache.xerces.framework.XMLParser.parse(_XMLParser.java:952_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:718_)
>> 
>>       ... 5 more
>> 
>> Caused by: _org.xml.sax.SAXException_: unable to find FieldDescriptor
>> for 'import' in ClassDescriptor of EMMSchema
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1937_)
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1375_)
>> 
>>       at
>> org.apache.xerces.parsers.SAXParser.startElement(_SAXParser.java:1376_)
>> 
>>       at
>> org.apache.xerces.validators.common.XMLValidator.callStartElement(_XMLValidator.java:965_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.scanElement(_XMLDocumentScanner.java:1858_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(_XMLDocumentScanner.java:1234_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.parseSome(_XMLDocumentScanner.java:381_)
>> 
>>       at
>> org.apache.xerces.framework.XMLParser.parse(_XMLParser.java:952_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:718_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:588_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:809_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.schemaObject.EMMSchema.unmarshal(_EMMSchema.java:238_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.<init>(_EMMGeneratorHandler.java:25_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.main(_EMMGeneratorHandler.java:55_)
>> 
>> Caused by: _org.xml.sax.SAXException_: unable to find FieldDescriptor
>> for 'import' in ClassDescriptor of EMMSchema
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1937_)
>> 
>>       at
>> org.exolab.castor.xml.UnmarshalHandler.startElement(_UnmarshalHandler.java:1375_)
>> 
>>       at
>> org.apache.xerces.parsers.SAXParser.startElement(_SAXParser.java:1376_)
>> 
>>       at
>> org.apache.xerces.validators.common.XMLValidator.callStartElement(_XMLValidator.java:965_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.scanElement(_XMLDocumentScanner.java:1858_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(_XMLDocumentScanner.java:1234_)
>> 
>>       at
>> org.apache.xerces.framework.XMLDocumentScanner.parseSome(_XMLDocumentScanner.java:381_)
>> 
>>       at
>> org.apache.xerces.framework.XMLParser.parse(_XMLParser.java:952_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:718_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:588_)
>> 
>>       at
>> org.exolab.castor.xml.Unmarshaller.unmarshal(_Unmarshaller.java:809_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.schemaObject.EMMSchema.unmarshal(_EMMSchema.java:238_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.<init>(_EMMGeneratorHandler.java:25_)
>> 
>>       at
>> com.techm.motorola.osf.emmgenerator.EMMGeneratorHandler.main(_EMMGeneratorHandler.java:55_)
>> 
>> ---exception---nullEMM Stringnull
>> 
>>  
>> 
>>  
>> 
>> ============================================================================================================================
>> 
>> Tech Mahindra, formerly Mahindra-British Telecom.
>> 
>> Disclaimer:
>> 
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Tech Mahindra policy statement, you may
>> review at http://www.techmahindra.com/Disclaimer.html externally and
>> http://tim.techmahindra.com/Disclaimer.html internally within Tech
>> Mahindra.
>> 
>> ============================================================================================================================
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-RFC--unable-to-find-FieldDescriptor-for-%27import%27-in--ClassDescriptor-of-...while-unmarshaling-tf2906997.html#a13398212
Sent from the Castor - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to