Groups
Groups
Sign in
Groups
Groups
Smooks Users
Conversations
About
Send feedback
Help
Smooks Dependency Issue
2 views
Skip to first unread message
Varsha R
unread,
8:35 AM (13 hours ago)
8:35 AM
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Smooks Users
I have added the below in my smooks config and using Java 21 with the below build.gradle file. Receiving an SAXException
<smooks-resource-list
xmlns
="
https://www.smooks.org/xsd/smooks-2.0.xsd
"
xmlns:
jb
="
https://www.smooks.org/xsd/smooks/javabean-1.6.xsd
"
xmlns:
edi
="
https://www.smooks.org/xsd/smooks/edi-2.0.xsd
"
>
<resource-config
selector
="org.xml.sax.driver"
>
<resource>
org.smooks.cartridges.edi.reader.EdiReader
</resource>
<param
name
="mappingModel"
>
/edi852-mapping.edimap
</param>
</resource-config>
<!-- Root bean -->
<
jb
:bean
beanId
="productActivityReport"
class
="java.util.HashMap"
createOnElement
="ST"
>
<
jb
:wiring
property
="items"
beanIdRef
="itemList"
/>
</
jb
:bean>
<!-- List of items -->
<
jb
:bean
beanId
="itemList"
class
="java.util.ArrayList"
createOnElement
="ST"
>
<
jb
:wiring
beanIdRef
="itemDetail"
/>
</
jb
:bean>
<!-- Each LIN loop -->
<
jb
:bean
beanId
="itemDetail"
class
="org.example.model.ProductActivityDetail"
createOnElement
="LIN"
>
<
jb
:value
property
="lineItemNumber"
data
="LIN/LineItemNum"
/>
<
jb
:value
property
="productId"
data
="LIN/ProductId"
/>
<
jb
:value
property
="upcCode"
data
="LIN/UPCCode"
/>
<
jb
:value
property
="unitPrice"
data
="CTP/UnitPrice"
/>
<
jb
:value
property
="quantity"
data
="SDQ/Quantity"
/>
<
jb
:value
property
="locationId"
data
="SDQ/LocationId"
/>
</
jb
:bean>
</smooks-resource-list>
build.gradle
<smooks-resource-list
xmlns
="
https://www.smooks.org/xsd/smooks-2.0.xsd
"
xmlns:
jb
="
https://www.smooks.org/xsd/smooks/javabean-1.6.xsd
"
xmlns:
edi
="
https://www.smooks.org/xsd/smooks/edi-2.0.xsd
"
>
<resource-config
selector
="org.xml.sax.driver"
>
<resource>
org.smooks.cartridges.edi.reader.EdiReader
</resource>
<param
name
="mappingModel"
>
/edi852-mapping.edimap
</param>
</resource-config>
<!-- Root bean -->
<
jb
:bean
beanId
="productActivityReport"
class
="java.util.HashMap"
createOnElement
="ST"
>
<
jb
:wiring
property
="items"
beanIdRef
="itemList"
/>
</
jb
:bean>
<!-- List of items -->
<
jb
:bean
beanId
="itemList"
class
="java.util.ArrayList"
createOnElement
="ST"
>
<
jb
:wiring
beanIdRef
="itemDetail"
/>
</
jb
:bean>
<!-- Each LIN loop -->
<
jb
:bean
beanId
="itemDetail"
class
="org.example.model.ProductActivityDetail"
createOnElement
="LIN"
>
<
jb
:value
property
="lineItemNumber"
data
="LIN/LineItemNum"
/>
<
jb
:value
property
="productId"
data
="LIN/ProductId"
/>
<
jb
:value
property
="upcCode"
data
="LIN/UPCCode"
/>
<
jb
:value
property
="unitPrice"
data
="CTP/UnitPrice"
/>
<
jb
:value
property
="quantity"
data
="SDQ/Quantity"
/>
<
jb
:value
property
="locationId"
data
="SDQ/LocationId"
/>
</
jb
:bean>
</smooks-resource-list>
Reply all
Reply to author
Forward
0 new messages