Sorry, forgot to add the customizations.xml file i'm using:

<custom property-access="true" >
  <package name="com.mycompany.socketreader.config">
    <class name="Configuration" requireds="/returnValue /retryIntervalTime
/compressed /monitoring /zippedData /sources" excludes="currentSource" >
        <value item-type="com.mycompany.config.ISource" get-method="getSources"
set-method="setSources" property-name="sources" /> 
   </class>
    <class name="Monitoring" requireds="/recipientList /addressFrom
/smtpHost /emailSubject /sendEmail" />
    <class name="ReturnedValue" requireds="/returnType"
optionals="returnMethod" />
</package>


<package name="com.mycompany.socketreader">
    <class name="SocketReader" requireds="/ip /portNumber /sourceType
/connectionTimeout /zippedData" optionals="/userName /password" />
    <class name="FileReader" requireds="/packetNumber /maxPacketsNumber
/folder /headerTemplate /dataTemplate /zippedData /sourceType" />
  </package>


</custom>





Rogelio A. Sevilla wrote:
> 
> Good day everyone, this is my first post on the forum, please excuse me if
> this question is too basic.
> 
> I'm trying to use the BindGen tool to generate my xsd and binding file
> from my classes. However, i'm getting an error that I just don't know how
> to solve.
> 
> I have 1 interface and 3 classes on my project:
> 
> public interface ISource {
>     SourceType getSourceType();  
> }
> 
> 
> public class SocketReader implements ISource{
> //some methods
> }
> 
> public class FileReader implements ISource{
> //some methods
> }
> 
> public class Configuration {
> private ArrayList<ISource> sources;
> }
> 
> 
> 
> 
> When executing the BindGen Tool like this:
> 
> java BindGet -s src com.mycompany.Configuration
> 
> 
> No compatible mapping defined for type com.mycompany.ISource; on structure
> element at (line 10, col 82, in binding.xml)
> Exception in thread "main" java.lang.NullPointerException
>         at
> org.jibx.schema.generator.DetailDirectory.populate(DetailDirectory.java:102)
>         at
> org.jibx.schema.generator.SchemaGen.buildSchemas(SchemaGen.java:1040)
>         at
> org.jibx.schema.generator.SchemaGen.generate(SchemaGen.java:1140)
>         at org.jibx.binding.generator.BindGen.main(BindGen.java:1309)
> 
> 
> Could you give me any advice on how could I solve this problem???
> 
> 
> Thanks a lot in advance or your time 
> 

-- 
View this message in context: 
http://old.nabble.com/Mapping-an-interface-implemented-by-multiple-classes-tp32593393p32593608.html
Sent from the jibx-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to