No idea really.   That line in the code is:


IBindingFactory factory = BindingDirectory.getFactory(clazz);
                String[][] abstractMappings = factory.getAbstractMappings();
                String stype = abstractMappings[0][0];    <---  This Line


Thus, the index of 0 could be on either of the two indexes.   That said, I'm 
not sure why it would be an issue for either of them.     The first index is 
apparently always an array length 11 (according to the javadoc) and the second 
is the number of global abstract mappings.   Not sure why that would be 0 if 
there is a successful mapping.

I think an example might be needed for this.

Dan



On Sunday, February 26, 2012 11:49:06 PM kkzz0221 wrote:
> Hi,
> 
> I am developing web application.
> Now, Mule3.3M2 is used for the ESB, and it is calling CXF2.5.1.
> (And CXF2.5.1 uses jibx1.2.3. )
> 
> I performed the following.
>   (1). binding.xml was generated using BindGen.
>   (2). binding compiler (using -m option) was performed using Ant.
> 
> After performing the above, "ArrayIndexOutOfBoundsException" occurred at the
> time of WebLogic starting.
> Is there any idea which solves this problem some?
> 
> StackTrace
> 
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>       at
> org.apache.cxf.jibx.JibxSchemaInitializer.mapClass(JibxSchemaInitializer.jav
> a:96) at
> org.apache.cxf.jibx.JibxSchemaInitializer.begin(JibxSchemaInitializer.java:6
> 5) at
> org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisito
> r.java:97) at
> org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisito
> r.java:130) at
> org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
> at org.apache.cxf.jibx.JibxDataBinding.initialize(JibxDataBinding.java:107)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBind
> ings(AbstractServiceFactoryBean.java:86) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFrom
> Class(ReflectionServiceFactoryBean.java:445) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServic
> eModel(ReflectionServiceFactoryBean.java:508) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflectio
> nServiceFactoryBean.java:242) at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abst
> ractWSDLBasedEndpointFactory.java:101) at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at
> org.mule.module.cxf.builder.AbstractInboundMessageProcessorBuilder.build(Abs
> tractInboundMessageProcessorBuilder.java:212) at
> org.mule.module.cxf.builder.AbstractInboundMessageProcessorBuilder.build(Abs
> tractInboundMessageProcessorBuilder.java:66) at
> org.mule.module.cxf.config.FlowConfiguringMessageProcessor.initialise(FlowCo
> nfiguringMessageProcessor.java:94)
> 
> #####################################################################
> XML generated above (1) by reference is shown.
> 
> binding.xml
> 
> <binding name="binding" package="aa.test.mssg">
>   <include path="aa_test_common_mssgBinding.xml"/>
>   <include path="aa_test_baseBinding.xml"/>
>   <include path="bb_actionBinding.xml"/>
> </binding>
> 
> aa_test_common_mssgBinding.xml
> 
> <binding>
>   <namespace uri="http://aa/test/common/mssg"; default="elements"/>
>   <mapping class="aa.test.common.mssg.Message" name="message">
>     <value style="element" name="testId" field="testId" usage="optional"/>
>   </mapping>
> </binding>
> 
> aa_test_baseBinding.xml
> 
> <binding>
>   <namespace uri="http://aa/test/base"; default="elements"/>
>   <mapping class="aa.test.base.BaseBean" name="baseBean">
>     <structure map-as="aa.test.common.mssg.Message" field="message"
> usage="optional"/>
>     <value style="attribute" name="count" field="count" usage="optional"/>
>   </mapping>
> </binding>
> 
> bb_actionBinding.xml
> 
> <binding>
>   <namespace uri="http://bb/action"; default="elements"/>
>   <mapping extends="aa.test.base.BaseBean" class="bb.action.BbServices"
> name="callBbServices">
>     <structure map-as="aa.test.base.BaseBean"/>
>     <value style="element" name="userId" field="userId" usage="optional"/>
>   </mapping>
> </binding>
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Trouble-using-jibx-databinding-in-CXF-2-5-1
> -using-Mule-3-3M2-tp5518176p5518176.html Sent from the cxf-user mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to