Questions tagged [smooks]

Smooks is an extensible framework for building applications for processing XML and non XML data (CSV, EDI, Java etc) using Java.

Smooks is an extensible data integration Java framework for building XML and non-XML fragment-based applications.

178 questions
1
vote
1 answer

Read CSV file line by line in WSO2 ESB 5.0 using Smooks

I have a CSV File that I am reading via VFS. After reading the file, I am using Smooks to convert the CSV data into XML and then sending it to another proxy. By default configuration, smooks converts the whole message into one xml…
omer khalid
  • 855
  • 1
  • 12
  • 39
1
vote
0 answers

Read csv file with smooks

I'm trying to read an csv file with smooks 1.7 which works fine in junit, but on glassfish it throw an exception. Seems the exception is complaining about an email1 atribute which doesn't exist in Customer entity, and it really doesn't exist, it is…
Eve
  • 37
  • 9
1
vote
1 answer

How to transform XML to CSV file using Smooks on WSO2 ESB?

I have a proxy on ESB that receives an XML payload, and I need to send this payload to another software that only accepts CSV files. So I need to transform this XML payload to CSV file, but using Smooks. I know how to transform CSV to XML, but the…
1
vote
0 answers

Multi Record Field Definitions smooks CSV header in 1st row

I have csv-file like this: 123456,01.01.2016,ACME,Johnson 0001,10,100,1000 0002,5,50,250 0003,6,10,60 I want to convert it to XML using smooks. In documentation there is a sample:
Maxim Fazyloff
  • 338
  • 1
  • 9
1
vote
1 answer

How to write decoder from date to date in smooks java to java

I am preparing Java object from json using ObjectMapper. Here is the json data "dateTimeSent" : "LongValue" Source and target both java classes have field is java.util.Date type. I tried mapping of like this
RCS
  • 1,370
  • 11
  • 27
1
vote
2 answers

How can I stop root elements appearing in csv output from smooks

Quick question on Smooks transforms, wondering if anyone has had any experience of the same thing, if so time to shine! Simple really I have a (very large) .csv file and I want to transform it to another .csv format (columns switched etc).. smooks…
Tim Teece
  • 21
  • 2
1
vote
0 answers

Transform pipeline separated string to a JSON object in Java

In my Java program, I have pipeline separated string "value1|value2|value3|value4". I would like to convert that string to a JSON object in java like the following: { “ payload” : { "field1": value1, "field2": value2, …
Casper
  • 107
  • 2
  • 12
1
vote
0 answers

Smooks XML to JAVA....default assignement

I am facing a problem in assigning default String value in Smooks. When I assign the default value as "Unknown" for it doesn't take it and throws an error. Smooks config file:
Deven
  • 11
  • 3
1
vote
1 answer

Multiple mapping model for smooks edi to xml

When i add just one mappingmodel then it works perfect but actually i want to add multiple mapping model as i have added onto the following code. Can someone please assist how can i do that. Smooks-config.xml
user3548196
  • 355
  • 1
  • 9
  • 32
1
vote
1 answer

netty codecs vs smooks marshalling

When working with text-based EDI X12 Message payloads (such as http://examples.x12.org/) over straight TCP, over HTTP, or SOAP, or other transport protocols, does anyone have examples or words of wisdom around either: 1) using netty for simple…
dhartford
  • 11
  • 2
1
vote
0 answers

Json-to-Json with smooks

Is there any way to do json-to-json with value replacement in smooks? It is quite straightforward to do it in xml, e.g. Xml file:
Joe
barcom
  • 559
  • 1
  • 4
  • 15
1
vote
0 answers

Smooks JARs locked by Java in Windows

I am currently using a custom Smooks transformer in Mule ESB. Some classes which are used by this transformer are kept in memory upon shutdown of the app (org.milyn.cdr.SmooksResourceConfiguration, org.milyn.xml.Namespace$SmooksNamespaceMappings).…
Gabriel Dimech
  • 699
  • 5
  • 10
1
vote
1 answer

WSO2 does not catching exception from Smooks

I am using WSO2 ESB 4.8.1 and i am using Smooks 1.5 to read a fixed length file and then parse it in raw XML. It is working fine but i have to also implement its exceptional flow. Problem: The problem is that if i mess up smooks config file it is…
omer khalid
  • 855
  • 1
  • 12
  • 39
1
vote
1 answer

wso2 esb smooks un/edifact 96a EDI to XML

I have little to begin with WSO2 ESB and need to create a scheme that allows me from a .edi file (96a) obtained via VFS (which has already been enabled) transform it into a XML ... for this I am using Smooks and UN / EDIFACT to perform the parsing.…
1
vote
1 answer

XML to XML transformation with wso2

I am using wso2 esb 4.8.1. I am trying to do xml to xml transformation with the help of smooks mediator but I am getting following exception when is hit request from the try it from application deployment console of wso2, [2014-11-07 09:39:20,401]…
Shailesh Narkhede
  • 605
  • 1
  • 5
  • 11