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
2
votes
0 answers

Smooks, Read CSV, get First Record as Header info and process the rest as Records

I am stuck on a situation where I have to read a CSV file Smooks, and split the same into small CSV or XML files. I have tried this against a big XML file which I split and transformed into another form of an XML object-it worked fine. But in this…
Chathura Kulasinghe
  • 2,640
  • 5
  • 23
  • 23
2
votes
1 answer

How do I config xml namespace for a smooks input file using WSO2?

I couldn't find any advices on how to setup Smooks (on WSO2 Developer Studio 3.1) in order to it properly read a xml input which has a namespace declaration. Without the namespace the transformation works just fine! By informing the xmlns in the…
Alexander
  • 558
  • 4
  • 13
2
votes
0 answers

Could not inspect JDBC autocommit mode exception in jboss 7.1.1

when i was using xml-java converting in smooks . getting exception is Could not inspect JDBC autocommit mode . my applicaion integrate with seam 2.1.2,jap,richfaces,smooks. when i retrieve clob column value using smooks show the error? Exception…
nag
  • 647
  • 6
  • 25
  • 43
2
votes
2 answers

WSO2 ESB custom properties for Smooks mediator

I need to use some configuration settings to transform message with Smooks mediator. For example I want to inject a base URL into attribute value of outgoing xml during transformation. In Java I'd do it by adding beans to ExecutionContext. Looking…
adnecs
  • 175
  • 1
  • 10
1
vote
1 answer

Upgrade smooks 1.4 to 1.5 breaks CSV parsing (null input)

After some struggle with smooks bean binding and CSV mapping, I managed to parse a specific CSV with empty values as shown in this question. Somehow, I got some odd errors while creating smooks instance due to xml config file validation (expects a…
Alfabravo
  • 7,493
  • 6
  • 46
  • 82
1
vote
1 answer

Trouble mapping EDI message to XML using smooks

I'd like to map the below ORDERS EDI message to xml using…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
1 answer

Unable to make Smooks EDI work with Camel

Idea is to read the edi file from file system and transfer it to XML. I tried the example downloaded from smooks and it works fine. But when I start using the same code (and edi file) from Camel Processor, I get a nullpointer. Code public class…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
2 answers

Reading CSVs with Smooks

Using Smooks (1.4) to read CSVs and transform them into a Person POJO. The CSV consists of comma-separated records on each line, and each record has pipe-delimited fields: Smith|John|45|male|Johnny|JSmith|JSmizzle, Smith|Jane|43|female|Janey etc.…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
2 answers

HashMap and smooks

I need to transform a Map into xml, and then using smooks convert it back into a Map. This map can contain complex values (ex: List), How to achieve that using smooks? ex: a1 a2
Transient
  • 326
  • 2
  • 11
1
vote
1 answer

EDIFACT-to-Java Compiler for Smooks v2

I am trying to create Java bindings for EDIFACT messages using Smooks. In particular, I want to automatically generate Java classes and corresponding mappings using Smooks. To this end, Smooks 1.x provides the EDIFACT-to-Java-Compiler (EJC). With…
Ulrich Schuster
  • 1,670
  • 15
  • 24
1
vote
0 answers

Smooks Library - EDI message processing failed - expected to contain 2 fields. Actually contains 1 fields

Address_2 is optional but still getting error. Below is Smook Config for N3 Segment.
Anand
  • 11
  • 1
1
vote
0 answers

Hardcode XML Field While Converting from CSV Using Smooks

Hello stack overflow community, I am using smooks in WSO2 EI 6.2.0 for converting csv to xml. I want to know if its possible to hardcode one of xml fields. For example my csv looks like this: Name,Age,Gender John,20,male Helen,15,female What I want…
Amna Tariq
  • 11
  • 1
1
vote
1 answer

Number Format issue in freemarker - Getting Roundoff after decimal nos

I am using Freemarker template,I have a decimal value: a = 23.65 I just want to retrieve above value as: a = 23.6 <#-- Extract first number after decimal point --> I have used number_format ex : <#setting number_format="0.#"> But it rounded off…
Naveen
  • 43
  • 2
  • 9
1
vote
1 answer

WSO2 "The prefix "soapenv" for element "soapenv:Envelope" is not bound."

Objective I am trying to convert an xml to csv in wso2 enterprise integrator. I have a simple proxy service in which I am using smooks mediator Following are my smooks configuration:
Mishi
  • 628
  • 4
  • 16
  • 40
1
vote
2 answers

Freemarker - <#if ??> doesn't seem to work in identifying null objects

I am trying XML-XML transformations using FreeMarker. What is the correct way to handle null objects. (Not values but null objects) When "AlertIndicator" tag is not present in the input XML, how can i handle it. I tried all these combinations, but…
keanu
  • 123
  • 9
1 2
3
11 12