<jb:bean beanId="Group4_List" class="java.util.ArrayList" createOnElement="${EDIFACTCarAvailRuleRequest1P}">
<jb:wiring beanIdRef="Group4" />
</jb:bean>
<jb:bean beanId="Group4" class="com.travelport.car.at.cdcp.model.edifact.availrule.onep.request.Group4" createOnElement="${EDIFACTCarAvailRuleRequest1P}/Group4">
<jb:wiring property="rti" beanIdRef="rti" />
</jb:bean>
<jb:bean beanId="rti" class="com.travelport.car.at.cdcp.model.edifact.availrule.onep.request.Rti" createOnElement="${Group4}/rti">
<jb:wiring property="rateIdentificationDetails" beanIdRef="rateIdentificationDetails" />
</jb:bean>
<jb:bean beanId="rateIdentificationDetails" class="com.travelport.car.at.cdcp.model.edifact.availrule.onep.request.field.RateIdentificationDetails" createOnElement="${rti}/rateIdentificationDetails">
<jb:value property="rateTariffClassIdentificationCode" data="#/rateTariffClassIdentificationCode" default="null"/>
</jb:bean>
and the .dfdl file:
<xsd:element name="Group4" maxOccurs="unbounded" dfdl:ref="ibmEdiFmt:EDISegmentFormat">
<xsd:complexType>
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentSequenceFormat">
<xsd:element dfdl:initiator="RTI" name="rti" minOccurs="1" maxOccurs="1" dfdl:ref="ibmEdiFmt:EDISegmentFormat">
<xsd:complexType>
<xsd:sequence dfdl:ref="ibmEdiFmt:EDICompositeSequenceFormat">
<xsd:element name="rateIdentificationDetails">
<xsd:complexType>
<xsd:sequence dfdl:ref="ibmEdiFmt:EDICompositeSequenceFormat">
<xsd:element name="rateTariffClassIdentificationCode" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
But when I try to execute the code I receive this error:
Caused by: java.lang.StringIndexOutOfBoundsException: begin -1, end 31, length 31
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at java.base/java.lang.String.substring(String.java:2680)
at org.smooks.cartridges.javabean.MapToSelectorFromContextAwareAttribute.resolveBeandIdSelector(MapToSelectorFromContextAwareAttribute.java:116)
at org.smooks.cartridges.javabean.MapToSelectorFromContextAwareAttribute.visitBefore(MapToSelectorFromContextAwareAttribute.java:107)
Could you please help me to understand where is the error?
Thanks in advance,
Serena
--
You received this message because you are subscribed to the Google Groups "Smooks Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smooks-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/496a7145-5eef-4430-bf59-9a0538d31a63n%40googlegroups.com.
<jb:bean beanId="Group4_List" class="java.util.ArrayList" createOnElement="${EDIFACTCarAvailRuleRequest1P}">
<jb:wiring beanIdRef="Group4" />
</jb:bean>
<jb:bean beanId="Group4_List" class="java.util.ArrayList" createOnElement="${EDIFACTCarAvailRuleRequest1P}">
<jb:wiring beanIdRef="Group4" />
</jb:bean>
<jb:bean beanId="Group4" class="com.travelport.car.at.cdcp.model.edifact.availrule.onep.request.Group4" createOnElement="${EDIFACTCarAvailRuleRequest1P}/Group4">
<jb:wiring property="rti" beanIdRef="rti" />
</jb:bean>
<jb:bean beanId="rti" class="com.travelport.car.at.cdcp.model.edifact.availrule.onep.request.Rti" createOnElement="${Group4}/rti">
<jb:wiring property="rateIdentificationDetails" beanIdRef="rateIdentificationDetails" />
</jb:bean>
and the edifact that I should map is ...RTI+9'
In your opinion, what is wrong?
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/8d58a297-9c80-4a8e-ab0b-632f5c3d0d13n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/8b2bb43f-03df-4a4f-a65c-c39bae63611bn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/eaf51a97-bcf4-4dac-805e-19d92e40785cn%40googlegroups.com.
that is not clear to understand what is the error cause. Is there a way to have the real exception message?
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/fd9e637c-2412-44fc-b9eb-56b312e33d37n%40googlegroups.com.