Git Product home page Git Product logo

smooks / smooks Goto Github PK

View Code? Open in Web Editor NEW
385.0 43.0 355.0 28.38 MB

Extensible data integration Java framework for building XML and non-XML fragment-based applications

Home Page: https://www.smooks.org

License: Other

Java 99.07% HTML 0.46% FreeMarker 0.04% JavaScript 0.20% CSS 0.18% Gherkin 0.07%
java smooks enterprise-integration big-data etl sax pipelines event-driven xml stream-processing

smooks's People

Contributors

alexproca avatar anpieber avatar bardl avatar chessray avatar cjmamo avatar cyqw avatar danbev avatar dependabot-preview[bot] avatar dependabot[bot] avatar domhof avatar douglaspalmer avatar hackmann avatar hicolour avatar hkampbjorn avatar ieugen avatar jcordes73 avatar manish-in-java avatar mgoodwin1989 avatar mipe avatar onepip2 avatar robinsonduffy avatar sorin-silaghi avatar tfennelly avatar zubairov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smooks's Issues

Smooks Json2Json

Hi, is there any sample to perform a JSON 2 JSON transform ?

I would need that to transform some JSON array (big, 1000 entries) doing some mapping to target json array.

Target JSON entries are made by combining/transforming input JSON entries.

Result is a big JSON array that has same number of entries than the input JSON array.

I have found the json reader in the documentation but nothing about json output.

Any hints appreciated.
Thanks
Cyril

Allow UNEdifactInterchangeParser to be extended with other syntax identifier codes

In UNEdifact41ControlBlockHandlerFactory there is a map of all known UN/Edifact syntax identifier codes and their corresponding java charset names.

But this is hidden inside UNEdifactInterchangeParser, UNEdifact41ControlBlockHandlerFactory and UNBHandler. InterchangeContext allows to override the UNB handler with different codes but it's bypassed in UNEdifactInterchangeParser

XML to JAVA XPATH array index doesn't work under Oracle JDK 1.8

We are using smooks 1.7 to transform data from XML to Java Object. We found that the xpath array index
/xxx/yyy/zzz[1] doesn't work under oracle JDK 1.8, and hit a NullPointerException.

java.lang.NullPointerException
  at org.milyn.cdr.xpath.SelectorStep.getEvaluators(SelectorStep.java:365)
  at org.milyn.cdr.xpath.SelectorStep.getEvaluators(SelectorStep.java:361)
  at org.milyn.delivery.sax.SAXContentDeliveryConfig.addIndexCounters(SAXContentDeliveryConfig.java:233)
  at org.milyn.delivery.sax.SAXContentDeliveryConfig.addIndexCounters(SAXContentDeliveryConfig.java:215)
  at org.milyn.delivery.ContentDeliveryConfigBuilder.createConfig(ContentDeliveryConfigBuilder.java:218)
  at org.milyn.delivery.ContentDeliveryConfigBuilder.getConfig(ContentDeliveryConfigBuilder.java:148)
  at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:91)
  at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:65)
  at org.milyn.Smooks.createExecutionContext(Smooks.java:418)
  at org.milyn.Smooks.createExecutionContext(Smooks.java:376)
  at org.milyn.Smooks.filterSource(Smooks.java:456)

[OSGi] - bundle order is important when loading resouces inside osgi containers

Hello,

The current OSGi implementation for SmooksFactory cares about the order in which bundles are started inside OSGi. I tested inside Karaf and tried to create a Smooks instance with a configuration given as a String. When Smooks loads before my bundles, it can find the resources but when it loads after my bundles, it cannot.

I believe this should not happen, and SmooksOSGiFactory should resolve resources regardless of bundle start time.

Smooks.org website is down.

The Smooks.org website is giving access denied errors, leaving it essentially unreachable. I'm opening this issue here because there is literally no other way to reach the project team right now.

Thanks for looking into this.

Add IATA Syntax identifiers to UNEdifact41ControlBlockHandlerFactory

IATA's System Communications Reference says:

Character Code Set "B" as specified in ISO 9735; referred to herein as "IATB". The "IAT" refers to the fact that IATA is the controlling agency; the "B" refers to the specific character set. Syntax Version Number is "1". A subset may be used as appropriate.

java to edi

How can I generate an EDI file from java or xml ? I'm looking for exzamples, thanks。

SAX content handler that generates edifact messages

In version 1.7.0 smooks can parse Edifact messages and based on an Edimap generate XML documents. But it cannot convert these XML document back to Edifact.

Either EJC must be used to generate java beans with embedded EDI writable implementation. Or a custom template for this specific message.

EDI parser does not support fields with cardinality larger than 1

A specific case:
COM segment in PAXLST message is defined to have 3 instances of field C076.

Segment from example message:
COM+555 123 456789:TE+555 123 456780:FX+HELPDESK AT FLYAIR.COM:EM'

The mapping for the segment for example in d02b-mapping library is:

<medi:segment xmltag="COMMUNICATION_CONTACT" truncatable="true" segcode="COM" minOccurs="1" maxOccurs="1"
              ignoreUnmappedFields="false"
              description=" To identify a communication number of adepartment or a person to whom communicationshould be directed.">
<medi:field xmltag="COMMUNICATION_CONTACT" truncatable="true" required="true" nodeTypeRef="C076">
  <medi:component xmltag="Communication_address_identifier" truncatable="true" required="true" minLength="0"
                  maxLength="512" dataType="String">
  <medi:component xmltag="Communication_means_type_code" truncatable="true" required="true" minLength="0" maxLength="3"
                  dataType="String">
    <medi:documentation>Code specifying the type of communication address.</medi:documentation>
  </medi:component>
</medi:field>
</medi:segment>

Using the mapping to parse PAXLST message results in an exception:
org.milyn.edisax.EDIParseException: EDI message processing failed [PAXLST][D:02B:UN]. Segment [COM] expected to contain 1 fields. Actually contains 3 fields (not including segment code). Currently at segment number 6

Looking at the edi-message-mapping.1.4.xsd there doesn't seem to be any way to write a mapping to fields with cardinality larger than 1 other than to explicitly name each occurrence of the field in the segment.

Please correct me if this is actually possible. And if so, is there a way to still make use of pre-built UN/EDIFACT mappings?

FieldRef revisited

Hi All,
Reading an old mailing thread around why there is SegRef, but not FieldRef from here:

http://milyn.996300.n3.nabble.com/Convert-UN-EDIFACT-td7727.html

The usecase I have is related specifically to the javabinding. When using an X12 format such as 270/271, there are field types that are POINTER fields, where a different segment may have a field that is a pointer to a another segment's field (and usually points to a composite field).

The specific example is EQ DiagPointer field, pointing to an HI composite field, where there are several DiagPointers (with priority, so order matters) pointing to one of the 8 composite fields in HI...and all 8 composite fields are the same repeated composite fields in HI.

The workaround for this looks like when working from Java:

        ==================
        <Hi01,Hi02,Hi03,Hi04,Hi05,Hi06,Hi07,Hi08> find2100cHiByPointer(String diagPointer){
        ...
        //psudeocode
        when diagPointer = "02", return hl2100c.getHi.getHi02();
        //end psudeocode, and developer has 'to know' to cast to the right HI0X class
        ==================

FieldRef would be nice, as could have a single java class type 'HiCompField' that is reused for all 8 fields, rather than having each one be its own java class.

        <medi:segment segcode="HI">
        <!-- order matters, as setting priority of importance.  No such thing as 'fieldref' in smooks, desired to reuse same class -->

        <medi:field xmltag="HI01" fieldRef="HIFIELD:HICOMPFIELD" >...
        <medi:field xmltag="HI02" fieldRef="HIFIELD:HICOMPFIELD" >...

This is likely tied to the maven-ejc plugin that is very nicely generating the java bindings.

-D

Provide example of Java to EDI

I've been looking at Smooks for a while and have been toying with the EDI to Java transformation which works great.

I've tried to find an example for a transformation the other way around... could provide some pointers on how to do that or an actual example?

SmooksRoutingException when creating the same directory in multiple threads

There is race condition below. Easy fix is not throwing exeption if mkdirs return false but the directory already exists.

if(!destinationDirectory.exists()) {
            if(!destinationDirectory.mkdirs()) {
                throw new SmooksRoutingException("Failed to create file routing target directory '" + destinationDirectory.getAbsolutePath() + "'. destinationDirectoryPattern: '" + destinationDirectoryPattern + "'");
            }
        }

Unable to deploy on ServiceMix 7.0.0

I've been playing with Smooks but ran into a problem deploying on ServiceMix 7.0.0 using the features.xml file for 1.7.0, which I need to use due to #94.

The issue seems to be around Groovy 1.8.8. When that bundle tries to install on the Karaf Console I get:

karaf@root>feature:repo-add mvn:org.milyn/milyn-smooks-all/1.7.0/xml/features
Adding feature url mvn:org.milyn/milyn-smooks-all/1.7.0/xml/features
karaf@root>feature:install smooks
Error executing command: Error
karaf@root>

Excerpts from the log show Felix is throwing an IllegalArgumentException:

2017-08-24 09:23:38,259 | ERROR | nsole user karaf | ShellUtil                        | 136 - org.apache.karaf.shell.core - 4.0.8 | Exception caught while executing command
org.apache.karaf.features.internal.util.MultiException: Error
	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:84)[8:org.apache.karaf.features.core:4.0.8]
	... c
Caused by: java.lang.Exception: Unable to create resource for bundle mvn:org.codehaus.groovy/com.springsource.org.codehaus.groovy/1.8.8
	at org.apache.karaf.features.internal.region.Subsystem.createResource(Subsystem.java:605)[8:org.apache.karaf.features.core:4.0.8]
	... 
Caused by: org.osgi.framework.BundleException: Unable to build resource for mvn:org.codehaus.groovy/com.springsource.org.codehaus.groovy/1.8.8: invalid version range: [1.0.0,1.0.0)
	at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:80)[8:org.apache.karaf.features.core:4.0.8]
	...
Caused by: java.lang.IllegalArgumentException: invalid version range: [1.0.0,1.0.0)
	at org.apache.felix.utils.version.VersionRange.checkRange(VersionRange.java:346)[8:org.apache.karaf.features.core:4.0.8]
	...

I was able to work around the issue by not using the Smooks features file and installing alternative versions and bundles as follows:

feature:install camel-groovy
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/3.5.2_1
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker/2.3.21_1
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxen/1.1.3_1
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/3.3.1_1
install -s mvn:org.ow2.bundles/ow2-bundles-externals-opencsv/1.0.36
install -s mvn:org.milyn/milyn-smooks-all/1.7.0

The camel-groovy feature is bringing in a much newer version of CodeHaus Groovy (2.4.5) and it seems to be working just fine. This is the one aspect of the work around that bothers me a little, but it keeps things consistent with Camel/ServiceMix. There isn't a newer org.codehaus.groovy/com.springsource.org.codehaus.groovy version to select. As an alternative I tested with mvn:org.codehaus.groovy/groovy-all/1.8.9 and that seemed to work as well, but due to the presence of Camel in ServiceMix, I'm going to stick with that feature.

DABigDecimalDecoder

Hello,

Would suggest that you use #0.# in the decimal encoding instead of #0.0# even if that is compliant to standards. Alot of implementation require no decimal and it has really no purpose of enforcing at least one decimal.

DIFF

diff --git a/smooks-cartridges/edi/src/main/java/org/milyn/javabean/decoders/DABigDecimalDecoder.java b/smooks-cartridges/edi/src/main/java/org/milyn/javabean/decoders/DABigDecimalDecoder.java
index 1f493cc..8831f69 100644
--- a/smooks-cartridges/edi/src/main/java/org/milyn/javabean/decoders/DABigDecimalDecoder.java
+++ b/smooks-cartridges/edi/src/main/java/org/milyn/javabean/decoders/DABigDecimalDecoder.java
@@ -82,7 +82,7 @@ public class DABigDecimalDecoder extends BigDecimalDecoder {
private synchronized void setDecimalPointFormat(DecimalFormat decimalFormat, Delimiters interchangeDelimiters) {
DecimalFormatSymbols dfs = decimalFormat.getDecimalFormatSymbols();

  •    decimalFormat.applyPattern("#0.0#");
    
  •    decimalFormat.applyPattern("#0.#");
     if (interchangeDelimiters != null) {
         dfs.setDecimalSeparator(interchangeDelimiters.getDecimalSeparator().charAt(0));
     }
    

Mvel dependency upgrade required for java 8

Works fine with mvel2-2.2.0.Final.jar

Caused by: org.milyn.SmooksException: Error in 'org.milyn.javabean.BeanInstancePopulator' while processing the visitAfter event.
    at org.milyn.delivery.sax.SAXHandler.processVisitorException(SAXHandler.java:573)
    at org.milyn.delivery.sax.SAXHandler.processVisitorException(SAXHandler.java:559)
    at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:396)
    at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
    at org.milyn.delivery.SmooksContentHandler.endElement(SmooksContentHandler.java:96)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:76)
    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86)
    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:64)
    at org.milyn.Smooks._filter(Smooks.java:526)
    at org.milyn.Smooks.filterSource(Smooks.java:482)
    at 

.....


Caused by: java.lang.NoSuchMethodError: sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class;
    at org.mvel2.optimizers.dynamic.DynamicClassLoader.defineClassX(DynamicClassLoader.java:59)
    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.loadClass(ASMAccessorOptimizer.java:1995)
    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer._initializeAccessor(ASMAccessorOptimizer.java:624)
    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.compileAccessor(ASMAccessorOptimizer.java:759)
    at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.optimizeAccessor(ASMAccessorOptimizer.java:255)
    at org.mvel2.optimizers.dynamic.DynamicGetAccessor.optimize(DynamicGetAccessor.java:83)
    at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:57)
    at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:98)
    at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:111)
    at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:41)
    at org.mvel2.MVEL.executeExpression(MVEL.java:1001)
    at org.milyn.expression.MVELExpressionEvaluator.exec(MVELExpressionEvaluator.java:99)
    at org.milyn.javabean.BeanInstancePopulator.bindExpressionValue(BeanInstancePopulator.java:507)
    at org.milyn.javabean.BeanInstancePopulator.bindSaxDataValue(BeanInstancePopulator.java:447)
    at org.milyn.javabean.BeanInstancePopulator.visitAfter(BeanInstancePopulator.java:379)
    at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
    ... 72 more

Build is environment dependent - take 2 - failing tests

Some tests (EDItoJavaTest.java) test is failing on travis - but passes on my machine.
See https://api.travis-ci.org/jobs/16306571/log.txt?deansi=true for details.

Example:

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.583 sec <<< FAILURE! - in example.EDItoJavaTest
test(example.EDItoJavaTest)  Time elapsed: 2.508 sec  <<< FAILURE!
org.junit.ComparisonFailure: Actual does not match expected. expected:<...mple.model.Order>
  [  <header>
        <orderId>1</orderId>
        <orderStatus>0</orderStatus>
        <netAmount>59.97</netAmount>
        <totalAmount>64.92</totalAmount>
        <tax>4.95</tax>
        <customer>
            <userName>user1</userName>
            <firstName>Harry</firstName>
            <lastName>Fletcher</lastName>
            <state>SD</state>
        </customer>
    </header>
    <orderItems>
        <example.model.OrderItem>
            <quantity>1</quantity>
            <productId>364</productId>
            <price>29.98</price>
            <title>The 40-Year-Old Virgin</title>
        </example.model.OrderItem>
        <example.model.OrderItem>
            <quantity>1</quantity>
            <productId>299</productId>
            <price>29.99</price>
            <title>Pulp Fiction</title>
        </example.model.OrderItem>
  ]  </orderItems>
</ex...> but was:<...mple.model.Order>
  [<header>
    <orderId>1</orderId>
    <orderStatus>0</orderStatus>
    <netAmount>59.97</netAmount>
    <totalAmount>64.92</totalAmount>
    <tax>4.95</tax>
    <date>2006-11-15 18:45:28.0 UTC</date>
    <customer>
      <userName>user1</userName>
      <firstName>Harry</firstName>
      <lastName>Fletcher</lastName>
      <state>SD</state>
    </customer>
  </header>
  <orderItems>
    <example.model.OrderItem>
      <quantity>1</quantity>
      <productId>364</productId>
      <price>29.98</price>
      <title>The 40-Year-Old Virgin</title>
    </example.model.OrderItem>
    <example.model.OrderItem>
      <quantity>1</quantity>
      <productId>299</productId>
      <price>29.99</price>
      <title>Pulp Fiction</title>
    </example.model.OrderItem>
]  </orderItems>
</ex...>
    at org.junit.Assert.assertEquals(Assert.java:115)
    at example.EDItoJavaTest.test(EDItoJavaTest.java:48)

org.milyn.javabean.gen.ConfigGenerator null pointer issue

Hi all,

after some test to figure out how to use the fabulous smooks tool, I have to use it to populate Java from Json.

My java beans have many many properties so I was really happy when I have read about the ConfigGenerator to generate the configuration withs TODOS to map the right data.

I have been trying to use it but it keeps failing with a null pointer 👍

I use JDK 1.7
I have a jar with my beans
I have use -classpath to add Java;mylin-all.jar;myclasses.jar
I have set the -c rootClass providing the full qualified name
I have set -o someFile.xml to output the configuration

> java -classpath C:\Java\jre\lib\rt.jar;milyn-smooks-all-1.5.1.jar;myClasses.jar  org.milyn.javabean.gen.ConfigGenerator -c  pkg1.pkg2.Class  -o smooks-pdc.xml
Exception in thread "main" java.lang.NullPointerException
    at org.milyn.javabean.gen.ConfigGenerator.main(ConfigGenerator.java:72)

What could be wrong with my setup ? the line 72 in src is some mkdir action on a parent to the config file... I have tried to create the file beforehand but it changed nothing.
I have not found what I have been doing wrong or if there is some bug.

Thanks,
Cyril

FreeMarker dependency outdated

According to your parent pom.xml you are still using FreeMarker 2.3.21. The current stable release is 2.3.25-incubating, so users miss out on some improvements/fixes. Perhaps the most relevant for Smooks is that instead of .vars['foo-bar'], .vars['ns:foo'], parent['foo-bar'] etc., since 2.3.22 they could write foo\-bar, ns\:foo, parent.foo\-bar (which then should be used in the User Guide as well). See also: http://freemarker.org/docs/app_versions.html

Fix artifact publishing to Nexus repo

Need to re-enable "deploy" profiles (lost during pom cleanup) so that we don't publish examples. Also think we need to re-add the gpg plugin. See RELEASE.md.

Is there repetition separator support?

It seems that messages having repetition separators fail to parse properly?

I think repetition separators are part of EDIFACT ISO 9735 Version 4, Release 1.

identityHashCode(this) returns randomly negative values causing exception.

Reported Class name: GroovyContentHandlerFactory.java

The failure scenario is as follows:

Being the generated name: SmooksVisitor_-194858501_3, its returned hash value is sometimes negative (others not), throwing the following exception:

org.milyn.cdr.SmooksConfigurationException: Error constructing class from Groovy script

This seems to be related with the environment running over Linux.

The code causing the problem is:
private synchronized String createClassName() {
StringBuilder className = new StringBuilder();

className.append("SmooksVisitor_");
// This line gives random positive or negative values. At least over Linux.
className.append(System.identityHashCode(this));
className.append("_");
className.append(classGenCount++);

return className.toString();
}

Mapping Model 'TRAVIN:12:97B:DX' not found

Hi,

I'm trying to convert a DATEX EDI message to XML, but I have a mapping model error:
org.milyn.edisax.EDIConfigurationException: Mapping Model 'TRAVIN:12:97B:DX' not found in supplied set of Mapping model.

My EDI file example starts with:

UNA:+.? 'UNB+UNOC:3+ITVIA+ART_T+160215:0000+10714337'UNH+40146057+TRAVIN:12:97B:DX'
...

My smooks-config.xml is:

<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
                      xmlns:unedifact="http://www.milyn.org/xsd/smooks/unedifact-1.4.xsd">
    <unedifact:reader mappingModel="urn:org.milyn.edi.unedifact:d97b-mapping:*" />
</smooks-resource-list>

and in my code I'm loading the d97b-mapping, which I hope is the right one:

 Smooks smooks = new Smooks();
 smooks.setReaderConfig(new UNEdifactReaderConfigurator("urn:org.milyn.edi.unedifact:d97b-mapping:*"));

My problem is I can't find examples with DATEX messages, so maybe Smooks doesn't have the necessary mapping, or the d97b is not the right one.

In case, can I create my own custom mapping? Thank you.

Failed to start camel-csv-to-xml using Karaf

Hi all,
I tried to start Smooks 1.5.1's camel-csv-to-xml using Karaf 2.2.5 but failed. I strictly follow the readme file and make sure that I've install smooks in Karaf. The error is:

karaf@root> Exception in thread "SpringOsgiExtenderThread-22" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route17 at: >>> To[smooks://smooks-config.xml] <<< in route: Route[[From[xxxxx... because of Failed to resolve endpoint: smooks://smooks-config.xml due to: No component found with scheme: smooks
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1196)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)

You can see I've setup smooks osgi:

[ 89] [Installed ] [ ] [ ] [ 60] Smooks OSGi (1.5.1)

and features list shows:

[installed ] [1.5.1 ] smooks milyn-1.5.1

Why Karaf complains that it cannot find smooks component?
BTW, I've tried mvn exec:java and it worked well but only failed in Karaf

error building examples (windows 7 / 64)

hello

mvn compile in the root directory was fine
then building examples generated an error

[DEBUG] Could not find metadata org.milyn:testres:1.6-SNAPSHOT/maven-metadata.xm
l in local (C:\Users\developer1.m2\repository)

c:\home\vladik\devel\smooks\smooks-examples>mvn -X -s settings.xml clean install

note the MVN archive indeed is missing


C:\Users\developer1.m2\repository\org\milyn\testres\1.6-SNAPSHOT>dir
Volume in drive C is TI102782W0E
Volume Serial Number is 5422-0EE5

Directory of C:\Users\developer1.m2\repository\org\milyn\testres\1.6-SNAPSHOT

05/04/2012 12:42 AM

.
05/04/2012 12:42 AM ..
05/04/2012 12:42 AM 239 resolver-status.properties
05/04/2012 12:42 AM 239 testres-1.6-SNAPSHOT.jar.lastUpdated
05/04/2012 12:42 AM 239 testres-1.6-SNAPSHOT.pom.lastUpdated
3 File(s) 717 bytes
2 Dir(s) 280,552,632,320 bytes free

C:\Users\developer1.m2\repository\org\milyn\testres\1.6-SNAPSHOT>type resolver-
status.properties

NOTE: This is an internal implementation file, its format can be changed withou

t prior notice.

Fri May 04 00:42:07 EDT 2012

maven-metadata-codehaus-snapshots.xml.error=
maven-metadata-codehaus-snapshots.xml.lastUpdated=1336106527671

C:\Users\developer1.m2\repository\org\milyn\testres\1.6-SNAPSHOT>


Any help is appreciated


[DEBUG] Configuration:



${createChecksum}
${localRepository}


${updateReleaseInfo}</updateReleaseIn
fo>

[DEBUG] =======================================================================
[DEBUG] Could not find metadata org.milyn:testres:1.6-SNAPSHOT/maven-metadata.xm
l in local (C:\Users\developer1.m2\repository)
[DEBUG] Failure to find org.milyn:testres:1.6-SNAPSHOT/maven-metadata.xml in htt
p://nexus.codehaus.org/snapshots/ was cached in the local repository, resolution
will not be reattempted until the update interval of codehaus-snapshots has ela
psed or updates are forced
[DEBUG] Could not find metadata org.milyn:testres:1.6-SNAPSHOT/maven-metadata.xm
l in local (C:\Users\developer1.m2\repository)
[DEBUG] Failure to find org.milyn:testres:1.6-SNAPSHOT/maven-metadata.xml in htt
p://nexus.codehaus.org/snapshots/ was cached in the local repository, resolution
will not be reattempted until the update interval of codehaus-snapshots has ela
psed or updates are forced
[WARNING] The POM for org.milyn:testres:jar:1.6-SNAPSHOT is missing, no dependen
cy information available
[DEBUG] Could not find metadata org.milyn:milyn-smooks-core:1.6-SNAPSHOT/maven-m
etadata.xml in local (C:\Users\developer1.m2\repository)
[DEBUG] Failure to find org.milyn:milyn-smooks-core:1.6-SNAPSHOT/maven-metadata.
xml in http://nexus.codehaus.org/snapshots/ was cached in the local repository,
resolution will not be reattempted until the update interval of codehaus-snapsho
ts has elapsed or updates are forced
[DEBUG] Could not find metadata org.milyn:milyn-smooks-core:1.6-SNAPSHOT/maven-m
etadata.xml in local (C:\Users\developer1.m2\repository)
[DEBUG] Failure to find org.milyn:milyn-smooks-core:1.6-SNAPSHOT/maven-metadata.
xml in http://nexus.codehaus.org/snapshots/ was cached in the local repository,
resolution will not be reattempted until the update interval of codehaus-snapsho
ts has elapsed or updates are forced
[WARNING] The POM for org.milyn:milyn-smooks-core:jar:1.6-SNAPSHOT is missing, n
o dependency information available
[DEBUG] org.milyn:smooks-examples:pom:1.6-SNAPSHOT
[DEBUG] org.milyn:testres:jar:1.6-SNAPSHOT:test
[DEBUG] org.milyn:milyn-smooks-core:jar:1.6-SNAPSHOT:compile
[DEBUG] log4j:log4j:jar:1.2.14:test
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Milyn Smooks Examples (Base POM) .................. FAILURE [0.225s]
[INFO] Milyn Smooks Example - XSLT-Basic ................. SKIPPED
[INFO] Milyn Smooks Example - XSLT-Groovy ................ SKIPPED
[INFO] Milyn Smooks Example - XSLT-namespaces ............ SKIPPED
[INFO] Milyn Smooks Example - Java-Basic ................. SKIPPED
[INFO] Milyn Smooks Example - XML-to-Java ................ SKIPPED
[INFO] Milyn Smooks Example - XML-to-Java-Virtual ........ SKIPPED
[INFO] Milyn Smooks Example - Basic Model Driven ......... SKIPPED
[INFO] Milyn Smooks Example - Basic Model Driven (Virtual) SKIPPED
[INFO] Milyn Smooks Example - XML Read/Write ............. SKIPPED
[INFO] Milyn Smooks Example - XML Read/Write ............. SKIPPED
[INFO] Milyn Smooks Example - Java-to-XML ................ SKIPPED
[INFO] Milyn Smooks Example - Java-to-Java ............... SKIPPED
[INFO] Milyn Smooks Example - CSV-to-XML ................. SKIPPED
[INFO] Milyn Smooks Example - CSV-to-XML-2 ............... SKIPPED
[INFO] Milyn Smooks Example - CSV-to-Java ................ SKIPPED
[INFO] Milyn Smooks Example - CSV-to-Java-Programmatic ... SKIPPED
[INFO] Milyn Smooks Example - CSV-to-XML (Variable Record) SKIPPED
[INFO] Milyn Smooks Example - Fixed length records to Java SKIPPED
[INFO] Milyn Smooks Example - Flat File to XML (Using Regex) SKIPPED
[INFO] Milyn Smooks Example - EDI-to-XML ................. SKIPPED
[INFO] Milyn Smooks Example - EDI-to-Java ................ SKIPPED
[INFO] Milyn Smooks Example - Profiling .................. SKIPPED
[INFO] Milyn Smooks Example - EDI-to-DB ETL .............. SKIPPED
[INFO] Milyn Smooks Example - File Router ................ SKIPPED
[INFO] Milyn Smooks Example - File Router (Consumer) ..... SKIPPED
[INFO] Milyn Smooks Example - File Router (Splitter) ..... SKIPPED
[INFO] Milyn Smooks Example - FreeMarker (Huge) .......... SKIPPED
[INFO] Milyn Smooks Example - Groovy ..................... SKIPPED
[INFO] Milyn Smooks Example - JMS Router ................. SKIPPED
[INFO] Milyn Smooks Example - JMS Router (Provider) ...... SKIPPED
[INFO] Milyn Smooks Example - JMS Consumer ............... SKIPPED
[INFO] Milyn Smooks Example - JMS Splitter-Router ........ SKIPPED
[INFO] Milyn Smooks Example - JSON-to-Java ............... SKIPPED
[INFO] Milyn Smooks Testimonials - SJ Rollingstock ....... SKIPPED
[INFO] Milyn Smooks Example - DAO Router ................. SKIPPED
[INFO] Milyn Smooks Example - validation-basic ........... SKIPPED
[INFO] Milyn Smooks Example - EDI-with-import-to-Java .... SKIPPED
[INFO] Milyn Smooks Example - EJC - Model Gen ............ SKIPPED
[INFO] Milyn Smooks Example - EJC - Model Use ............ SKIPPED
[INFO] Milyn Smooks Example - YAML-to-Java ............... SKIPPED
[INFO] Milyn Smooks Example - Dynamic Model Builder ...... SKIPPED
[INFO] Milyn Smooks Example - Smooks Camel Root .......... SKIPPED
[INFO] Milyn Smooks Example - Smooks Camel Integration ... SKIPPED
[INFO] Milyn Smooks Example - Smooks Camel Dataformat .... SKIPPED
[INFO] Milyn Smooks Example - Smooks Camel CVS to XML .... SKIPPED
[INFO] Milyn Smooks Example - Smooks OSGi Root ........... SKIPPED
[INFO] Milyn Smooks Example - blueprint .................. SKIPPED
[INFO] Milyn Smooks Example - bundle-activator ........... SKIPPED
[INFO] Milyn Smooks Example - service-tracker ............ SKIPPED
[INFO] Milyn Smooks Example - peaberry ................... SKIPPED
[INFO] Drools :: Examples Fusion ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.627s
[INFO] Finished at: Fri May 04 00:42:50 EDT 2012
[INFO] Final Memory: 8M/75M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project smooks-examples: Could not resolve dep
endencies for project org.milyn:smooks-examples:pom:1.6-SNAPSHOT: The following
artifacts could not be resolved: org.milyn:testres:jar:1.6-SNAPSHOT, org.milyn:m
ilyn-smooks-core:jar:1.6-SNAPSHOT: Failure to find org.milyn:testres:jar:1.6-SNA
PSHOT in http://nexus.codehaus.org/snapshots/ was cached in the local repository
, resolution will not be reattempted until the update interval of codehaus-snaps
hots has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
n project smooks-examples: Could not resolve dependencies for project org.milyn:
smooks-examples:pom:1.6-SNAPSHOT: The following artifacts could not be resolved:
org.milyn:testres:jar:1.6-SNAPSHOT, org.milyn:milyn-smooks-core:jar:1.6-SNAPSHO
T: Failure to find org.milyn:testres:jar:1.6-SNAPSHOT in http://nexus.codehaus.o
rg/snapshots/ was cached in the local repository, resolution will not be reattem
pted until the update interval of codehaus-snapshots has elapsed or updates are
forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDe
pendencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resol
veProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAr
eResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not res
olve dependencies for project org.milyn:smooks-examples:pom:1.6-SNAPSHOT: The fo
llowing artifacts could not be resolved: org.milyn:testres:jar:1.6-SNAPSHOT, org
.milyn:milyn-smooks-core:jar:1.6-SNAPSHOT: Failure to find org.milyn:testres:jar
:1.6-SNAPSHOT in http://nexus.codehaus.org/snapshots/ was cached in the local re
pository, resolution will not be reattempted until the update interval of codeha
us-snapshots has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(D
efaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDe
pendencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The fol
lowing artifacts could not be resolved: org.milyn:testres:jar:1.6-SNAPSHOT, org.
milyn:milyn-smooks-core:jar:1.6-SNAPSHOT: Failure to find org.milyn:testres:jar:
1.6-SNAPSHOT in http://nexus.codehaus.org/snapshots/ was cached in the local rep
ository, resolution will not be reattempted until the update interval of codehau
s-snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepe
ndencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(D
efaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The follo
wing artifacts could not be resolved: org.milyn:testres:jar:1.6-SNAPSHOT, org.mi
lyn:milyn-smooks-core:jar:1.6-SNAPSHOT: Failure to find org.milyn:testres:jar:1.
6-SNAPSHOT in http://nexus.codehaus.org/snapshots/ was cached in the local repos
itory, resolution will not be reattempted until the update interval of codehaus-
snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
facts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepe
ndencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to fi
nd org.milyn:testres:jar:1.6-SNAPSHOT in http://nexus.codehaus.org/snapshots/ wa
s cached in the local repository, resolution will not be reattempted until the u
pdate interval of codehaus-snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newExcept
ion(DefaultUpdateCheckManager.java:230)
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArti
fact(DefaultUpdateCheckManager.java:204)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:427)
... 26 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
c:\home\vladik\devel\smooks\smooks-examples>

MILYN-658 - Groovy upgrade

Generally everything works fine beside 3 tests .. ;)

The problem is that org.milyn.delivery.dom.DOMBuilder#characters is receives splited xml data and then double add last chars.

It's hard to explain how groovy affects because when I tested groovy code itself I got valid output.

I will try to solve it but maybe someone will have idea what's the root cause.

Notes in gist
https://gist.github.com/hicolour/801ecc7f14f124c2e7f6#file-smooks-xerces

++
when input data is shorter problem does not occur

NullPointerException when using UNEdifactInterchangeParser together with a XSLT transformer handler

The problem is that UNEdifactInterchangeParser calls endPrefixMapping after calling endDocument. But TransformerHandlerImpl has already cleaned up internal state after endDocument.

java.lang.NullPointerException
	at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM.endPrefixMapping(SAX2DTM.java:1809)
	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.endPrefixMapping(TransformerHandlerImpl.java:381)
	at org.milyn.namespace.NamespaceDeclarationStack.popNamespaces(NamespaceDeclarationStack.java:140)
	at org.milyn.edisax.unedifact.UNEdifactInterchangeParser.parse(UNEdifactInterchangeParser.java:125)
	at org.milyn.edisax.unedifact.no_ung.UNEdifactInterchangeParser_no_ung_Test.parseWithTransformerHandler(UNEdifactInterchangeParser_no_ung_Test.java:115)

Multi-thread issue within DataDecoder.Factory reported by Carsten Luxig

Original message from Carsten Luxig:

Hi guys,

First of all we are happy to use Smooks. Thanks for your work.

I found an issue (v 1.4.1 and 1.5), that during initial loading of smooks under a high-load multi-threaded environment the DataDecoder.Factory is erroneous.

As outcome one can see an exception like

“ContentHandler class member 'org.milyn.javabean.ValueBinder#typeAlias' must define a decoder through it's @ConfigParam annotation. Unable to automatically determine DataDecoder from member type.”

The root cause is, that one thread tries to load the decoders, while another thread tries to access them. Why this:

Before I start, the author of this class (probably tom.fennelly) should have a look, how Java synchronization is done and how to achieve it.

  1.   private static volatile Map<Class, Class<? extends DataDecoder>> installedDecoders;
    
    volatile makes really no sense here, because this is used to share a reference over multiple threads and not to make the modification thread-safe. Well, a reference to a complex object is changed in two ways:

a. specify a new instance, volatile has no effect

b. set the instance to null, volatile has no effect

c. volatile is used to synchronize the value of a field between all participating threads, immediately. Here static is used, hence installedDecoders is valid for all threads per definition. Usually volatile is not necessary, because it doesn’t locks the modification what is usually needed.

  1.   Even 100 null-checks wouldn’t bring thread-safeness. One cannot predict the point, where 1 thread is paused and another thread is waked up. See code:
    
    public static Class<? extends DataDecoder> getInstance(Class targetType) {
    
        if(installedDecoders == null) {
    
            loadInstalledDecoders();
    
        }
    
    
    
        if(targetType.isEnum()) {
    
            return EnumDecoder.class;
    
        } else {
    
            return installedDecoders.get(targetType);
    
        }
    
    }
    
    
    
    private synchronized static void loadInstalledDecoders() throws DataDecodeException {
    
        if(installedDecoders == null) {
    
            synchronized (Factory.class) {
    
                if(installedDecoders == null) {
    
                           installedDecoders = new HashMap<Class, Class<? extends DataDecoder>>();
    

The intension is clear, but it doesn’t help. Only one thread is able to step into “loadInstalledDecoders()” caused by the synchronized. The second synchronized locked over Factory.class is useless (and it shows the clueless about synchronization).

  1.   The real problem:
    

a. One thread A, the loading thread, reached the last line installedDecoders = new HashMap which changes immediately (due static and without static due volatile) the instance to be non-null and starts loading decoders.

b. A second thread B steps meanwhile into getInstance(Class), now the check that installedDecoders == null is evaluated to false and the installedDecoders.get(Class) is returned. But unfortunately this might return null, because the first Thread A didn’t load a decoder for this Class right now.

  1.   Solution:
    

a. Remove useless volatile

b. loadInstalledDecoders should be invoked without another null-check around, from getInstance

c. loadInstalledDecoders is kept synchronized, keep also the first null-check their

d. remove second synchronized over Factory.class, remove next null-check

e. don’t create HashMap for reference installedDecoders, but create a temporary Map like Map loadedDecoders = new HashMap();

f. after finishing the load-procedure publish the Map through changing reference installedDecoders = loadedDecoders;

g. (The whole load-procedure must be performed, as already is, within loadInstalledDecoders)

I’d like to file this issue in your JIRA, but I don’t have the rights therefore.

Is it possible to fix this from beginning of version 1.4.1?

Thanks and kind regards

Build is environment dependent

It seems the latest master version of edi-test cannot find a java compiler and fails on Debian 7 with OpenJDK-7

Error Message

Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-7-openjdk-amd64/jre"

Stacktrace

/var/lib/jenkins/jobs/Smooks Main/workspace/edi/edi-test/target/ant-exec.xml:20: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-7-openjdk-amd64/jre"
    at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:108)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:990)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at org.milyn.test.ant.AntRunner.run(AntRunner.java:94)
    at org.milyn.edi.test.EJCTestUtil.buildModelArchive(EJCTestUtil.java:61)
    at org.milyn.edi.test.EJCTestUtil.testModel(EJCTestUtil.java:88)
    at org.milyn.edi.test.EJCTestUtil.testModel(EJCTestUtil.java:80)
    at org.milyn.edi.test.EJCTestUtil.testModel(EJCTestUtil.java:70)
    at org.milyn.edi.test.order.EJCTest.testOrderModel(EJCTest.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

Single quotes in db:statement example

Hello Smooks dev team,
I am trying simple query, like select * from order where id='12';

Smooks throws below error
[2015-05-07 09:54:44,276] [Camel (feed) thread #0 - file://home/example/] ERROR processNonNullBody:143 org.milyn.SmooksException: Failed to filter source.
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:61)
at org.milyn.Smooks._filter(Smooks.java:516)
at org.milyn.Smooks.filterSource(Smooks.java:475)
at org.milyn.smooks.camel.processor.SmooksProcessor.process(SmooksProcessor.java:90)
at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103)
at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:416)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:416)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:416)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:416)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:433)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:211)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:175)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.milyn.SmooksException: Error executing SQL Statement 'select * from order where id='12''.
at org.milyn.routing.db.SQLExecutor.executeSQL(SQLExecutor.java:243)
at org.milyn.routing.db.SQLExecutor.visitAfter(SQLExecutor.java:174)
at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
at org.milyn.delivery.SmooksContentHandler.endElement(SmooksContentHandler.java:83)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:70)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
... 42 more
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at end of input
Position: 147
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:302)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:116)
at org.milyn.routing.db.StatementExec.executeJoinedQuery(StatementExec.java:152)
at org.milyn.routing.db.SQLExecutor.executeSQL(SQLExecutor.java:221)
... 56 more

xml version removed from edimappingconfig.xml when using maven java plugin

When creating Java model using ejc-plugin, edimappingconfig.xml does not have
<?xml version="1.1" encoding="UTF-8" ?> even though it's in the original mapping,

Example
Original

<?xml version="1.1" encoding="UTF-8" ?>
<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.6.xsd">
  <medi:description name="Order" version="1.0"/>
  <medi:delimiters segment="&#28;" field="&#29;" component="&#31;" sub-component=" "/>
  <medi:segments xmltag="Order">.... </medi:segments>
</medi:edimap>

The edimappingconfig.xml in target

<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.5.xsd">
    <medi:description name="Order" version="1.0"/>
    <medi:delimiters component="&#31;" field="&#29;" segment="&#28;" sub-component=" "/>
    <medi:segments xmltag="Order">......</medi:segments>
</medi:edimap>

CreateOnElement with condition

How to create a bean when an element with particular value for its attribute is present? I couldn't find anything on this in the documentation. It will be really helpful if it is added to the user guide. Thanks.

EJC - option to disable 'concatAndTruncate' on the write method (medi:segment)

Reference here: http://stackoverflow.com/questions/26803404/how-to-define-isa-segment-in-smooks/36269151#36269151

There are times an X12/EDI segment may have a delimiter defined in the header segment where the delimiter is the last field in the segment. However, unless it is escaped (not desired), it will always be truncated.

Would like option in the <medi:segment definition to disable this feature when generating the associated java objects.

TravisCI builds fail under openjdk

For example:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: TestNG652Configurator
*** buffer overflow detected ***: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f391c67bdb7]
/lib/x86_64-linux-gnu/libc.so.6(+0x10bcb0)[0x7f391c67acb0]
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so(Java_java_net_Inet4AddressImpl_getLocalHostName+0x190)[0x7f390bbdc8e0]
[0x7f3911014e98]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:01 539845                             /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
00600000-00601000 r--p 00000000 08:01 539845                             /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
00601000-00602000 rw-p 00001000 08:01 539845                             /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
00d34000-00d55000 rw-p 00000000 00:00 0                                  [heap]
e8000000-e9500000 rw-p 00000000 00:00 0 
e9500000-f0000000 rw-p 00000000 00:00 0 
f0000000-f5580000 rw-p 00000000 00:00 0 
f5580000-faa80000 rw-p 00000000 00:00 0 
faa80000-fd580000 rw-p 00000000 00:00 0 
fd580000-100000000 rw-p 00000000 00:00 0 
7f38e4000000-7f38e4021000 rw-p 00000000 00:00 0 
7f38e4021000-7f38e8000000 ---p 00000000 00:00 0 
7f38e8000000-7f38e8021000 rw-p 00000000 00:00 0 
7f38e8021000-7f38ec000000 ---p 00000000 00:00 0 
7f38ec000000-7f38ec405000 rw-p 00000000 00:00 0 
7f38ec405000-7f38f0000000 ---p 00000000 00:00 0 
7f38f0000000-7f38f050b000 rw-p 00000000 00:00 0 
7f38f050b000-7f38f4000000 ---p 00000000 00:00 0 
7f38f4000000-7f38f4021000 rw-p 00000000 00:00 0 
7f38f4021000-7f38f8000000 ---p 00000000 00:00 0 
7f38f8000000-7f38f8021000 rw-p 00000000 00:00 0 
7f38f8021000-7f38fc000000 ---p 00000000 00:00 0 
7f38fc000000-7f38fc021000 rw-p 00000000 00:00 0 
7f38fc021000-7f3900000000 ---p 00000000 00:00 0 
7f3900000000-7f3900021000 rw-p 00000000 00:00 0 
7f3900021000-7f3904000000 ---p 00000000 00:00 0 
7f3904000000-7f3904021000 rw-p 00000000 00:00 0 
7f3904021000-7f3908000000 ---p 00000000 00:00 0 
7f390a3c7000-7f390a3ce000 r-xp 00000000 08:01 2494                       /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f390a3ce000-7f390a5cd000 ---p 00007000 08:01 2494                       /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f390a5cd000-7f390a5ce000 r--p 00006000 08:01 2494                       /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f390a5ce000-7f390a5cf000 rw-p 00007000 08:01 2494                       /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7f390a5cf000-7f390a8be000 rw-p 00000000 00:00 0 
7f390a8be000-7f390a8fa000 r-xp 00000000 08:01 2505                       /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f390a8fa000-7f390aaf9000 ---p 0003c000 08:01 2505                       /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f390aaf9000-7f390aafa000 r--p 0003b000 08:01 2505                       /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f390aafa000-7f390aafb000 rw-p 0003c000 08:01 2505                       /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7f390aafb000-7f390ab02000 r-xp 00000000 08:01 5431                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7f390ab02000-7f390ad01000 ---p 00007000 08:01 5431                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7f390ad01000-7f390ad02000 r--p 00006000 08:01 5431                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7f390ad02000-7f390ad03000 rw-p 00007000 08:01 5431                       /usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7f390ad03000-7f390ad1b000 r-xp 00000000 08:01 2489                       /lib/x86_64-linux-gnu/libresolv-2.15.so
7f390ad1b000-7f390af1b000 ---p 00018000 08:01 2489                       /lib/x86_64-linux-gnu/libresolv-2.15.so
7f390af1b000-7f390af1c000 r--p 00018000 08:01 2489                       /lib/x86_64-linux-gnu/libresolv-2.15.so
7f390af1c000-7f390af1d000 rw-p 00019000 08:01 2489                       /lib/x86_64-linux-gnu/libresolv-2.15.so
7f390af1d000-7f390af1f000 rw-p 00000000 00:00 0 
7f390af1f000-7f390af3c000 r-xp 00000000 08:01 2520                       /lib/x86_64-linux-gnu/libselinux.so.1
7f390af3c000-7f390b13b000 ---p 0001d000 08:01 2520                       /lib/x86_64-linux-gnu/libselinux.so.1
7f390b13b000-7f390b13c000 r--p 0001c000 08:01 2520                       /lib/x86_64-linux-gnu/libselinux.so.1
7f390b13c000-7f390b13d000 rw-p 0001d000 08:01 2520                       /lib/x86_64-linux-gnu/libselinux.so.1
7f390b13d000-7f390b13e000 rw-p 00000000 00:00 0 
7f390b13e000-7f390b141000 r-xp 00000000 08:01 5839                       /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3200.4
7f390b141000-7f390b340000 ---p 00003000 08:01 5839                       /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3200.4
7f390b340000-7f390b341000 r--p 00002000 08:01 5839                       /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3200.4
7f390b341000-7f390b342000 rw-p 00003000 08:01 5839                       /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3200.4
7f390b342000-7f390b434000 r-xp 00000000 08:01 2500                       /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4
7f390b434000-7f390b634000 ---p 000f2000 08:01 2500                       /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4
7f390b634000-7f390b635000 r--p 000f2000 08:01 2500                       /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4
7f390b635000-7f390b636000 rw-p 000f3000 08:01 2500                       /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4
7f390b636000-7f390b637000 rw-p 00000000 00:00 0 
7f390b637000-7f390b684000 r-xp 00000000 08:01 5741                       /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3200.4
7f390b684000-7f390b884000 ---p 0004d000 08:01 5741                       /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3200.4
7f390b884000-7f390b885000 r--p 0004d000 08:01 5741                       /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3200.4
7f390b885000-7f390b886000 rw-p 0004e000 08:01 5741                       /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3200.4
7f390b886000-7f390b9ce000 r-xp 00000000 08:01 5456                       /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3200.4
7f390b9ce000-7f390bbcd000 ---p 00148000 08:01 5456                       /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3200.4
7f390bbcd000-7f390bbd1000 r--p 00147000 08:01 5456                       /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3200.4
7f390bbd1000-7f390bbd3000 rw-p 0014b000 08:01 5456                       /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3200.4
7f390bbd3000-7f390bbd5000 rw-p 00000000 00:00 0 
7f390bbd5000-7f390bbec000 r-xp 00000000 08:01 539804                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7f390bbec000-7f390bdec000 ---p 00017000 08:01 539804                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7f390bdec000-7f390bded000 r--p 00017000 08:01 539804                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7f390bded000-7f390bdee000 rw-p 00018000 08:01 539804                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnet.so
7f390bdee000-7f390bdfe000 r-xp 00000000 08:01 533161                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7f390bdfe000-7f390bffe000 ---p 00010000 08:01 533161                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7f390bffe000-7f390bfff000 r--p 00010000 08:01 533161                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7f390bfff000-7f390c000000 rw-p 00011000 08:01 533161                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libnio.so
7f390c000000-7f390c021000 rw-p 00000000 00:00 0 
7f390c021000-7f3910000000 ---p 00000000 00:00 0 
7f39100e4000-7f39100fa000 r--s 000fa000 08:01 923265                     /home/travis/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.6/jaxb-impl-2.2.6.jar
7f39100fa000-7f3910129000 r--s 0024e000 08:01 1051697                    /home/travis/.m2/repository/org/apache/camel/camel-core/2.12.4/camel-core-2.12.4.jar
7f3910129000-7f391012a000 ---p 00000000 00:00 0 
7f391012a000-7f391022a000 rw-p 00000000 00:00 0                          [stack:3142]
7f391022a000-7f391022d000 ---p 00000000 00:00 0 
7f391022d000-7f391032b000 rw-p 00000000 00:00 0                          [stack:3141]
7f391032b000-7f391032e000 ---p 00000000 00:00 0 
7f391032e000-7f391042c000 rw-p 00000000 00:00 0                          [stack:3140]
7f391042c000-7f391042f000 ---p 00000000 00:00 0 
7f391042f000-7f391052d000 rw-p 00000000 00:00 0                          [stack:3139]
7f391052d000-7f3910530000 ---p 00000000 00:00 0 
7f3910530000-7f391062e000 rw-p 00000000 00:00 0                          [stack:3138]
7f391062e000-7f39108f9000 r--p 00000000 08:01 3190                       /usr/lib/locale/locale-archive
7f39108f9000-7f39108fc000 ---p 00000000 00:00 0 
7f39108fc000-7f39109fa000 rw-p 00000000 00:00 0                          [stack:3137]
7f39109fa000-7f39109fd000 ---p 00000000 00:00 0 
7f39109fd000-7f3910afb000 rw-p 00000000 00:00 0                          [stack:3136]
7f3910afb000-7f3910afc000 ---p 00000000 00:00 0 
7f3910afc000-7f3911000000 rw-p 00000000 00:00 0                          [stack:3135]
7f3911000000-7f3911270000 rwxp 00000000 00:00 0 
7f3911270000-7f391450f000 rw-p 00000000 00:00 0 
7f391450f000-7f3918000000 ---p 00000000 00:00 0 
7f3918006000-7f3918007000 rw-p 00000000 00:00 0 
7f3918007000-7f391800b000 r--s 0004f000 08:01 533094                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar
7f391800b000-7f391800d000 r--s 00008000 08:01 1184437                    /home/travis/.m2/repository/org/apache/maven/surefire/common-java5/2.18.1/common-java5-2.18.1.jar
7f391800d000-7f391800e000 r--s 00008000 08:01 1184431                    /home/travis/.m2/repository/org/apache/maven/surefire/surefire-testng/2.18.1/surefire-testng-2.18.1.jar
7f391800e000-7f3918010000 r--s 00008000 08:01 1184435                    /home/travis/.m2/repository/org/apache/maven/surefire/surefire-grouper/2.18.1/surefire-grouper-2.18.1.jar
7f3918010000-7f3918012000 r--s 00006000 08:01 1184432                    /home/travis/.m2/repository/org/apache/maven/surefire/surefire-testng-utils/2.18.1/surefire-testng-utils-2.18.1.jar
7f3918012000-7f3918014000 r--s 00005000 08:01 1051699                    /home/travis/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
7f3918014000-7f3918015000 r--s 0000a000 08:01 1051691                    /home/travis/.m2/repository/org/apache/camel/camel-test/2.12.4/camel-test-2.12.4.jar
7f3918015000-7f391801c000 r--s 00045000 08:01 923261                     /home/travis/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar
7f391801c000-7f391801e000 r--s 0000e000 08:01 524381                     /home/travis/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
7f391801e000-7f3918021000 r--s 0001b000 08:01 1051692                    /home/travis/.m2/repository/org/mockejb/mockejb/0.6-beta2/mockejb-0.6-beta2.jar
7f3918021000-7f3918023000 r--s 00009000 08:01 1051690                    /home/travis/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar
7f3918023000-7f391803f000 r--s 00103000 08:01 1051688                    /home/travis/.m2/repository/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar
7f391803f000-7f3918041000 r--s 0000e000 08:01 923262                     /home/travis/.m2/repository/mockobjects/mockobjects-j1.4-j2ee1.3/0.07/mockobjects-j1.4-j2ee1.3-0.07.jar
7f3918041000-7f3918043000 r--s 0000c000 08:01 923260                     /home/travis/.m2/repository/mockobjects/mockobjects-core/0.09/mockobjects-core-0.09.jar
7f3918043000-7f3918045000 r--s 0000b000 08:01 923258                     /home/travis/.m2/repository/mockobjects/mockobjects-jdk1.4/0.09/mockobjects-jdk1.4-0.09.jar
7f3918045000-7f391804e000 r--s 0006f000 08:01 524408                     /home/travis/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
7f391804e000-7f3918051000 r--s 00016000 08:01 524405                     /home/travis/.m2/repository/xmlunit/xmlunit/1.6/xmlunit-1.6.jar
7f3918051000-7f3918053000 r--s 00009000 08:01 1051686                    /home/travis/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
7f3918053000-7f391805b000 r--s 00045000 08:01 524403                     /home/travis/.m2/repository/junit/junit/4.12/junit-4.12.jar
7f391805b000-7f3918061000 r--s 00045000 08:01 1051684                    /home/travis/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
7f3918061000-7f3918063000 r--s 0000c000 08:01 1179767                    /home/travis/.m2/repository/com/beust/jcommander/1.27/jcommander-1.27.jar
7f3918063000-7f3918068000 r--s 00040000 08:01 1179769                    /home/travis/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
7f3918068000-7f3918076000 r--s 000bf000 08:01 1179765                    /home/travis/.m2/repository/org/testng/testng/6.8.21/testng-6.8.21.jar
7f3918076000-7f391807e000 r--s 00096000 08:01 1052335                    /home/travis/.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar
7f391807e000-7f3918086000 r--s 0008e000 08:01 1052328                    /home/travis/.m2/repository/javassist/javassist/3.11.0.GA/javassist-3.11.0.GA.jar
7f3918086000-7f391809a000 r--s 0010e000 08:01 1052330                    /home/travis/.m2/repository/org/freemarker/freemarker/2.3.21/freemarker-2.3.21.jar
7f391809a000-7f391809e000 r--s 0003c000 08:01 524429                     /home/travis/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
7f391809e000-7f39180b6000 r--s 00115000 08:01 923294                     /home/travis/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
7f39180b6000-7f3918604000 rw-p 00000000 00:00 0 
7f3918604000-7f39187b7000 r--s 01d49000 08:01 539821                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar
7f39187b7000-7f3919548000 rw-p 00000000 00:00 0 
7f3919548000-7f3919549000 ---p 00000000 00:00 0 
7f3919549000-7f3919649000 rw-p 00000000 00:00 0                          [stack:3134]
7f3919649000-7f391964a000 ---p 00000000 00:00 0 
7f391964a000-7f3919755000 rw-p 00000000 00:00 0                          [stack:3133]
7f3919755000-7f391978a000 rw-p 00000000 00:00 0 
7f391978a000-7f39197b5000 rw-p 00000000 00:00 0 
7f39197b5000-7f39197e0000 rw-p 00000000 00:00 0 
7f39197e0000-7f39197eb000 rw-p 00000000 00:00 0 
7f39197eb000-7f3919820000 rw-p 00000000 00:00 0 
7f3919820000-7f391984b000 rw-p 00000000 00:00 0 
7f391984b000-7f3919875000 rw-p 00000000 00:00 0 
7f3919875000-7f391988b000 rw-p 00000000 00:00 0 
7f391988b000-7f39198a0000 rw-p 00000000 00:00 0 
7f39198a0000-7f39198a1000 rw-p 00000000 00:00 0 
7f39198a1000-7f39198a9000 r-xp 00000000 08:01 539800                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7f39198a9000-7f3919aa8000 ---p 00008000 08:01 539800                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7f3919aa8000-7f3919aa9000 r--p 00007000 08:01 539800                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7f3919aa9000-7f3919aaa000 rw-p 00008000 08:01 539800                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libzip.so
7f3919aaa000-7f3919ab5000 r-xp 00000000 08:01 2394                       /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f3919ab5000-7f3919cb4000 ---p 0000b000 08:01 2394                       /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f3919cb4000-7f3919cb5000 r--p 0000a000 08:01 2394                       /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f3919cb5000-7f3919cb6000 rw-p 0000b000 08:01 2394                       /lib/x86_64-linux-gnu/libnss_files-2.15.so
7f3919cb6000-7f3919cc0000 r-xp 00000000 08:01 2397                       /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f3919cc0000-7f3919ec0000 ---p 0000a000 08:01 2397                       /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f3919ec0000-7f3919ec1000 r--p 0000a000 08:01 2397                       /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f3919ec1000-7f3919ec2000 rw-p 0000b000 08:01 2397                       /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7f3919ec2000-7f3919ed9000 r-xp 00000000 08:01 2548                       /lib/x86_64-linux-gnu/libnsl-2.15.so
7f3919ed9000-7f391a0d8000 ---p 00017000 08:01 2548                       /lib/x86_64-linux-gnu/libnsl-2.15.so
7f391a0d8000-7f391a0d9000 r--p 00016000 08:01 2548                       /lib/x86_64-linux-gnu/libnsl-2.15.so
7f391a0d9000-7f391a0da000 rw-p 00017000 08:01 2548                       /lib/x86_64-linux-gnu/libnsl-2.15.so
7f391a0da000-7f391a0dc000 rw-p 00000000 00:00 0 
7f391a0dc000-7f391a0e4000 r-xp 00000000 08:01 2462                       /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f391a0e4000-7f391a2e3000 ---p 00008000 08:01 2462                       /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f391a2e3000-7f391a2e4000 r--p 00007000 08:01 2462                       /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f391a2e4000-7f391a2e5000 rw-p 00008000 08:01 2462                       /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7f391a2e5000-7f391a30d000 r-xp 00000000 08:01 533163                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7f391a30d000-7f391a50d000 ---p 00028000 08:01 533163                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7f391a50d000-7f391a50e000 r--p 00028000 08:01 533163                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7f391a50e000-7f391a510000 rw-p 00029000 08:01 533163                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so
7f391a510000-7f391a51e000 r-xp 00000000 08:01 539816                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7f391a51e000-7f391a71d000 ---p 0000e000 08:01 539816                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7f391a71d000-7f391a71f000 r--p 0000d000 08:01 539816                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7f391a71f000-7f391a720000 rw-p 0000f000 08:01 539816                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libverify.so
7f391a720000-7f391a727000 r-xp 00000000 08:01 2461                       /lib/x86_64-linux-gnu/librt-2.15.so
7f391a727000-7f391a926000 ---p 00007000 08:01 2461                       /lib/x86_64-linux-gnu/librt-2.15.so
7f391a926000-7f391a927000 r--p 00006000 08:01 2461                       /lib/x86_64-linux-gnu/librt-2.15.so
7f391a927000-7f391a928000 rw-p 00007000 08:01 2461                       /lib/x86_64-linux-gnu/librt-2.15.so
7f391a928000-7f391a93d000 r-xp 00000000 08:01 2518                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f391a93d000-7f391ab3c000 ---p 00015000 08:01 2518                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f391ab3c000-7f391ab3d000 r--p 00014000 08:01 2518                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f391ab3d000-7f391ab3e000 rw-p 00015000 08:01 2518                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7f391ab3e000-7f391ac39000 r-xp 00000000 08:01 2384                       /lib/x86_64-linux-gnu/libm-2.15.so
7f391ac39000-7f391ae38000 ---p 000fb000 08:01 2384                       /lib/x86_64-linux-gnu/libm-2.15.so
7f391ae38000-7f391ae39000 r--p 000fa000 08:01 2384                       /lib/x86_64-linux-gnu/libm-2.15.so
7f391ae39000-7f391ae3a000 rw-p 000fb000 08:01 2384                       /lib/x86_64-linux-gnu/libm-2.15.so
7f391ae3a000-7f391af1c000 r-xp 00000000 08:01 5436                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7f391af1c000-7f391b11b000 ---p 000e2000 08:01 5436                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7f391b11b000-7f391b123000 r--p 000e1000 08:01 5436                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7f391b123000-7f391b125000 rw-p 000e9000 08:01 5436                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7f391b125000-7f391b13a000 rw-p 00000000 00:00 0 
7f391b13a000-7f391bc44000 r-xp 00000000 08:01 539799                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7f391bc44000-7f391be44000 ---p 00b0a000 08:01 539799                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7f391be44000-7f391bee5000 r--p 00b0a000 08:01 539799                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7f391bee5000-7f391bf08000 rw-p 00bab000 08:01 539799                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
7f391bf08000-7f391bf37000 rw-p 00000000 00:00 0 
7f391bf37000-7f391bf4d000 r-xp 00000000 08:01 2468                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f391bf4d000-7f391c14c000 ---p 00016000 08:01 2468                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f391c14c000-7f391c14d000 r--p 00015000 08:01 2468                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f391c14d000-7f391c14e000 rw-p 00016000 08:01 2468                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f391c14e000-7f391c166000 r-xp 00000000 08:01 2449                       /lib/x86_64-linux-gnu/libpthread-2.15.so
7f391c166000-7f391c365000 ---p 00018000 08:01 2449                       /lib/x86_64-linux-gnu/libpthread-2.15.so
7f391c365000-7f391c366000 r--p 00017000 08:01 2449                       /lib/x86_64-linux-gnu/libpthread-2.15.so
7f391c366000-7f391c367000 rw-p 00018000 08:01 2449                       /lib/x86_64-linux-gnu/libpthread-2.15.so
7f391c367000-7f391c36b000 rw-p 00000000 00:00 0 
7f391c36b000-7f391c36d000 r-xp 00000000 08:01 2501                       /lib/x86_64-linux-gnu/libdl-2.15.so
7f391c36d000-7f391c56d000 ---p 00002000 08:01 2501                       /lib/x86_64-linux-gnu/libdl-2.15.so
7f391c56d000-7f391c56e000 r--p 00002000 08:01 2501                       /lib/x86_64-linux-gnu/libdl-2.15.so
7f391c56e000-7f391c56f000 rw-p 00003000 08:01 2501                       /lib/x86_64-linux-gnu/libdl-2.15.so
7f391c56f000-7f391c726000 r-xp 00000000 08:01 2533                       /lib/x86_64-linux-gnu/libc-2.15.so
7f391c726000-7f391c925000 ---p 001b7000 08:01 2533                       /lib/x86_64-linux-gnu/libc-2.15.so
7f391c925000-7f391c929000 r--p 001b6000 08:01 2533                       /lib/x86_64-linux-gnu/libc-2.15.so
7f391c929000-7f391c92b000 rw-p 001ba000 08:01 2533                       /lib/x86_64-linux-gnu/libc-2.15.so
7f391c92b000-7f391c930000 rw-p 00000000 00:00 0 
7f391c930000-7f391c93d000 r-xp 00000000 08:01 539787                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/libjli.so
7f391c93d000-7f391cb3c000 ---p 0000d000 08:01 539787                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/libjli.so
7f391cb3c000-7f391cb3d000 r--p 0000c000 08:01 539787                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/libjli.so
7f391cb3d000-7f391cb3e000 rw-p 0000d000 08:01 539787                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jli/libjli.so
7f391cb3e000-7f391cb60000 r-xp 00000000 08:01 2465                       /lib/x86_64-linux-gnu/ld-2.15.so
7f391cb60000-7f391cb62000 r--s 00018000 08:01 1052332                    /home/travis/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
7f391cb62000-7f391cb64000 r--s 0000e000 08:01 923266                     /home/travis/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
7f391cb64000-7f391cb6c000 r--s 00028000 08:01 1052326                    /home/travis/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
7f391cb6c000-7f391cb71000 r--s 00020000 08:01 1052183                    /home/travis/.m2/repository/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.jar
7f391cb71000-7f391cb73000 r--s 00008000 08:01 1052163                    /home/travis/.m2/repository/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.jar
7f391cb73000-7f391cb74000 r--s 00000000 08:01 1054266                    /home/travis/build/smooks/smooks/scribe/core/target/surefire/surefirebooter4123036821941091379.jar
7f391cb74000-7f391cb77000 r--s 0003d000 08:01 533156                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
7f391cb77000-7f391cb78000 r--s 00007000 08:01 29214                      /usr/share/java/java-atk-wrapper.jar
7f391cb78000-7f391cb7c000 r--s 00034000 08:01 533152                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar
7f391cb7c000-7f391cb80000 r--s 00085000 08:01 533153                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar
7f391cb80000-7f391cb81000 r--s 00002000 08:01 533155                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar
7f391cb81000-7f391cb93000 rw-p 00000000 00:00 0 
7f391cb93000-7f391cc49000 rw-p 00000000 00:00 0 
7f391cc49000-7f391cc4c000 ---p 00000000 00:00 0 
7f391cc4c000-7f391cd4f000 rw-p 00000000 00:00 0                          [stack:3131]
7f391cd4f000-7f391cd52000 r--s 0000f000 08:01 533157                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/icedtea-sound.jar
7f391cd52000-7f391cd54000 r--s 00012000 08:01 533154                     /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar
7f391cd54000-7f391cd5c000 rw-s 00000000 08:01 524470                     /tmp/hsperfdata_travis/3130
7f391cd5c000-7f391cd5d000 rw-p 00000000 00:00 0 
7f391cd5d000-7f391cd5e000 r--p 00000000 00:00 0 
7f391cd5e000-7f391cd60000 rw-p 00000000 00:00 0 
7f391cd60000-7f391cd61000 r--p 00022000 08:01 2465                       /lib/x86_64-linux-gnu/ld-2.15.so
7f391cd61000-7f391cd63000 rw-p 00023000 08:01 2465                       /lib/x86_64-linux-gnu/ld-2.15.so
7ffc1ab03000-7ffc1ab25000 rw-p 00000000 00:00 0                          [stack]
7ffc1ab39000-7ffc1ab3b000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Milyn :: Smooks .................................... SUCCESS [  0.065 s]
[INFO] Milyn :: Test Resources ............................ SUCCESS [  0.006 s]
[INFO] Milyn :: Test Resources ............................ SUCCESS [  5.271 s]
[INFO] Milyn :: Commons ................................... SUCCESS [  2.936 s]
[INFO] Milyn :: Smooks Core ............................... SUCCESS [ 20.032 s]
[INFO] Milyn :: Scribe :: Parent pom ...................... SUCCESS [  0.001 s]
[INFO] Milyn :: Scribe :: Core ............................ FAILURE [ 14.486 s]
[INFO] Milyn :: Scribe :: JPA Adapter ..................... SKIPPED
[INFO] Milyn :: Scribe :: Hibernate adapter ............... SKIPPED
[INFO] Milyn :: Scribe :: Ibatis adapter .................. SKIPPED
[INFO] Milyn :: Scribe :: Main aggregator ................. SKIPPED
[INFO] Milyn :: EDI :: EdiSax Parser ...................... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Javabean .............. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: EDI ................... SKIPPED
[INFO] Milyn :: EDI :: Edifact Conversion Tool ............ SKIPPED
[INFO] Milyn :: EDI :: Edifact Convertion Tool - Maven Plugin Mojo SKIPPED
[INFO] Milyn :: EDI :: Edifact Java Compiler .............. SKIPPED
[INFO] Milyn :: EDI :: Edifact Java Compiler :: Maven Plugin Mojo SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Misc .................. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Templating ............ SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Routing ............... SKIPPED
[INFO] Milyn :: EDI :: Test Utilities ..................... SKIPPED
[INFO] Milyn :: EDI :: Edifact Utils ...................... SKIPPED
[INFO] Milyn :: EDI :: Aggregator ......................... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Flat File ............. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: CSV ................... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: JSON .................. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Scripting ............. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Calculation ........... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Persistence ........... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Rules ................. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Validation ............ SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Fixed Length Reader ... SKIPPED
[INFO] Milyn :: Smooks Cartridge :: YAML .................. SKIPPED
[INFO] Milyn :: Smooks Cartridge :: Camel ................. SKIPPED
[INFO] Milyn :: Smooks Cartridges :: Aggregator ........... SKIPPED
[INFO] Milyn :: Smooks :: All ............................. SKIPPED
[INFO] Milyn :: Smooks Examples :: Parent Pom ............. SKIPPED
[INFO] Milyn :: Smooks Example :: XSLT-Basic .............. SKIPPED
[INFO] Milyn :: Smooks Example :: XSLT-Groovy ............. SKIPPED
[INFO] Milyn :: Smooks Example :: XSLT-namespaces ......... SKIPPED
[INFO] Milyn :: Smooks Example :: Java-Basic .............. SKIPPED
[INFO] Milyn :: Smooks Example :: XML-to-Java ............. SKIPPED
[INFO] Milyn :: Smooks Example :: XML-to-Java-Virtual ..... SKIPPED
[INFO] Milyn :: Smooks Example :: Basic Model Driven ...... SKIPPED
[INFO] Milyn :: Smooks Example :: Basic Model Driven (Virtual) SKIPPED
[INFO] Milyn :: Smooks Example :: XML Read/Write .......... SKIPPED
[INFO] Milyn :: Smooks Example :: XML Read/Write Transform  SKIPPED
[INFO] Milyn :: Smooks Example :: Java-to-XML ............. SKIPPED
[INFO] Milyn :: Smooks Example :: Java-to-Java ............ SKIPPED
[INFO] Milyn :: Smooks Example :: CSV-to-XML .............. SKIPPED
[INFO] Milyn :: Smooks Example :: CSV-to-XML-2 ............ SKIPPED
[INFO] Milyn :: Smooks Example :: CSV-to-Java ............. SKIPPED
[INFO] Milyn :: Smooks Example :: CSV-to-Java-Programmatic  SKIPPED
[INFO] Milyn :: Smooks Example :: CSV-to-XML (Variable Record) SKIPPED
[INFO] Milyn :: Smooks Example :: Fixed length records to Java SKIPPED
[INFO] Milyn :: Smooks Example :: Flat File to XML (Using Regex) SKIPPED
[INFO] Milyn :: Smooks Example :: EDI-to-XML .............. SKIPPED
[INFO] Milyn :: Smooks Example :: EDI-to-Java ............. SKIPPED
[INFO] Milyn :: Smooks Example :: Profiling ............... SKIPPED
[INFO] Milyn :: Smooks Example :: EDI-to-DB ETL ........... SKIPPED
[INFO] Milyn :: Smooks Example :: File Router ............. SKIPPED
[INFO] Milyn :: Smooks Example :: File Router (Consumer) .. SKIPPED
[INFO] Milyn :: Smooks Example :: File Router (Splitter) .. SKIPPED
[INFO] Milyn :: Smooks Example :: FreeMarker (Huge) ....... SKIPPED
[INFO] Milyn :: Smooks Example :: Groovy .................. SKIPPED
[INFO] Milyn :: Smooks Example :: JMS Router .............. SKIPPED
[INFO] Milyn :: Smooks Example :: JMS Router (Provider) ... SKIPPED
[INFO] Milyn :: Smooks Example :: JMS Consumer ............ SKIPPED
[INFO] Milyn :: Smooks Example :: JMS Splitter-Router ..... SKIPPED
[INFO] Milyn :: Smooks Example :: JSON-to-Java ............ SKIPPED
[INFO] Milyn :: Smooks Testimonials :: SJ Rollingstock .... SKIPPED
[INFO] Milyn :: Smooks Example :: DAO Router .............. SKIPPED
[INFO] Milyn :: Smooks Example :: validation-basic ........ SKIPPED
[INFO] Milyn :: Smooks Example :: EDI-with-import-to-Java . SKIPPED
[INFO] Milyn :: Smooks Example :: EJC - Model Gen ......... SKIPPED
[INFO] Milyn :: Smooks Example :: EJC - Model Use ......... SKIPPED
[INFO] Milyn :: Smooks Example :: YAML-to-Java ............ SKIPPED
[INFO] Milyn :: Smooks Example :: Dynamic Model Builder ... SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks Camel Integration  SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks Camel Dataformat . SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks Camel CVS to XML . SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks Camel UNEDIFACT to String SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks Camel Root ....... SKIPPED
[INFO] Milyn :: Smooks Example :: Bundle-activator ........ SKIPPED
[INFO] Milyn :: Smooks Example :: Service-tracker ......... SKIPPED
[INFO] Milyn :: Smooks Example :: Peaberry ................ SKIPPED
[INFO] Milyn :: Smooks Example :: Smooks OSGi Root ........ SKIPPED
[INFO] Drools :: Examples Fusion .......................... SKIPPED
[INFO] Milyn :: Smooks Examples :: Aggregator ............. SKIPPED
[INFO] Milyn :: Main Aggregator ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.380 s
[INFO] Finished at: 2017-07-26T10:12:17+00:00
[INFO] Final Memory: 45M/214M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project milyn-scribe-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/travis/build/smooks/smooks/scribe/core && /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xms128m -Xmx256m -XX:MaxPermSize=128m -jar /home/travis/build/smooks/smooks/scribe/core/target/surefire/surefirebooter4123036821941091379.jar /home/travis/build/smooks/smooks/scribe/core/target/surefire/surefire1256524402472210924tmp /home/travis/build/smooks/smooks/scribe/core/target/surefire/surefire_33615095396809015426tmp
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :milyn-scribe-core

travis_time:end:1bc36af4:start=1501063888344665438,finish=1501063937984259141,duration=49639593703
�[0K
�[31;1mThe command "mvn test -B" exited with 1.�[0m

Done. Your build exited with 1.

See travis-ci/travis-ci#5227 for the specific details

[OSGI] org.milyn.cdr.SmooksConfigurationException: Unable to locate Smooks digest configuration

Hi,
we decided to use Smooks in Apache Servicemix. We want to convert java -> edi. But we found a problem with the export packages. It was also mentioned some time ago here: http://milyn.996300.n3.nabble.com/Using-Smooks-1-5-1-in-an-OSGi-environment-td8671.html#a8677

The Solution was to add the META-INF.xsd.smooks to the Export-Package section in milyn-smooks-all-1.6.jar/META-INF/MANIFEST.MF.

It would be nice, if you would fix this in the pom file. I just added one line and in the MANIFEST.MF the missing Export-Package appeared. :)

in smooks-all configuration my export-packages now look like this:

org.milyn.;-split-package:=merge-first;version="${project.version}",
META-INF.xsd.smooks, <-- new line
META-INF.xsd.smooks.
;-split-package:=merge-first,
!META-INF.services.,
!META-INF.maven.

Hope you understand what the problem is.

Best Regards

Failed to locate XSD resource '/META-INF/schema/edi-message-mapping-1.5.xsd'

I am trying to use the EJC features of this library however I am unable to run the examples (or my own code for that matter).

I get this error message:

Failed to locate XSD resource '/META-INF/schema/edi-message-mapping-1.5.xsd' on classpath. Namespace: 'http://www.milyn.org/schema/edi-message-mapping-1.5.xsd'.

It appears that milyn.org is parked. Is there another location I should be using?

milyn.org is dead

All the smooks-config.xml are referring the csv-*.xsd file on milyn.org. Since milyn.org is not accessible anymore, the smooks fails

IATA PADIS Support

Hi, Whether SMooks supports IATA PADIS? If So can I directly import the structure?

Hi, I am evaluating Smooks for Flat file to EDI( IATA PADIS ) conversion. in the below link section 2.1 It was mentioned that by loading the SMOOKS jar file we can create of modify the Smooks config.xml through GUI. Even though I downloaded the jar file and added it I don't Smook category in New file creation.
https://devstudio.jboss.com/download/documentation/PDF/JBoss_Developer_Studio-3.0-Smooks_Developer_Tools_Reference_Guide-en-US.pdf

The jar FIle downloaded from below site.
https://jar-download.com/explore-java-source-code.php?a=milyn-smooks-all&g=org.milyn&v=1.7.0&downloadable=1

Please suggest,,

File encoding when reading EDI

Hi, I had/have problems with correct file encodings when reading EDI-Files that are different than the default encoding of the system. I looked around via Google but none of the fixes seemed to work for me. I dug into the sources and added the following fix.

For the implementation of the UNEdifactInterchangeFactory that I'm using, I added the following method:

public UNEdifactInterchange fromUNEdifact(Reader reader, InputStream stream, Result... additionalResults) throws IOException {
        StreamSource streamSource = new StreamSource();
        streamSource.setInputStream(stream);
        streamSource.setReader(reader);

So I could call it like:

InputStream fs = new FileInputStream(input);
BufferedReader br = new BufferedReader(new InputStreamReader(fs, "ISO-8859-1"));
UNEdifactInterchange interchange = factory.fromUNEdifact(br, fs);

The existing interface of UNEdifactInterchangeFactory seems not to be sufficient. I found no way to create an InputStream with the correct encoding and only supplying a correctly encoded InputSource was not sufficent. In the original Implementation there is:

public UNEdifactInterchange fromUNEdifact(InputSource ediSource, Result... additionalResults) throws IOException {
        StreamSource streamSource = new StreamSource();

        streamSource.setInputStream(ediSource.getByteStream());
        streamSource.setReader(ediSource.getCharacterStream());

According to the JavaDocs, StreamSource should only use the CharacterStream if one is supplied, but you have to use streamSource.setInputStream(), too. Otherwise smooks complains that it can not set the encoding that you set on the reader because it can not get the InputStream (Is this really necessary?). So I supplied both, a correctly encoded Reader (where I guess, smooks reads the encoding from) and the raw InputStream so that smooks can set the encoding.

I guess, calling ediSource.getByteStream() makes you lose the encoding within smooks due to some bug with InputSource?

I hope this all makes sense. If I oversaw the obvious, please enlighten me.

Thank you for the time you put into smooks. Works like a charm otherwise!

Jan

Smooks failed to filter source - java.lang.NoSuchMethodError

I am relatively new to EDIFACT/D96A. I am trying to convert from edi using the D96AInterchangeFactory.

Here is what i have:
I have the D96AInterchangeFactory instance that i use to call the fromUNEdifact method. What happens is that once the control goes into Smooks i get the following error:

 org.milyn.SmooksException: Failed to filter source.
    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:97)
    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:64)
    at org.milyn.Smooks._filter(Smooks.java:526)
    at org.milyn.Smooks.filterSource(Smooks.java:482)
    at .
    .
    .

org.milyn.smooks.edi.unedifact.UNEdifactReader.parse(UNEdifactReader.java:75)
    at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:76)
    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86)
    ... 22 more
    Caused by: java.lang.NoSuchMethodError: sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class;
    at
    . .
    org.milyn.javabean.BeanInstanceCreator.createAndSetBean(BeanInstanceCreator.java:296)
        at org.milyn.javabean.BeanInstanceCreator.visitBefore(BeanInstanceCreator.java:241)
        at org.milyn.delivery.sax.SAXHandler.visitBefore(SAXHandler.java:307)
        ... 40 more

I read and also added a dependency in d96a for mvel2 and version 2.2.0.Final. Still the same error pops up.
Using JAVA 8 What might i be doing wrong? Thanking you in advance.

EDIT: For example on running a BANSTA file for 10-12 LINs, it works fine, But when the number of LINs increase, the error pops up

Unable to run $ mvn clean install

[WARNING] The POM for org.apache.felix:maven-bundle-plugin:jar:2.5.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[ERROR] Invalid extension descriptor for org.apache.felix:maven-bundle-plugin:2.5.3: error in opening zip file

What happened to segref?

I decided it was time to start using the import functionality when defining an edimap in order to reuse segments (as described here http://www.smooks.org/mediawiki/index.php?title=V1.5:Smooks_v1.5_User_Guide#Imports). However I cannot seem to get it to work with the 1.5 xsd (https://github.com/smooks/smooks/blob/master/edi/edisax/src/main/resources/META-INF/schema/edi-message-mapping-1.5.xsd). It complains that the segref is not allowed on a segment. Looking at the xsd this is indeed not allowed. In xsd 1.3 this was still available and in 1.4 it was gone.

Am I missing something? Is there another way of referencing a segment?

For now I have put a custom 1.5 xsd in my project and added the segref myself. This works.

Reason I need the 1.5 version is because you can specify ignoreUnmappedFields="true" on a segment which is very handy as well.

Hope you can help.

Best regards,
Mark

EDI parsing does not handle segment groups with an optional first segments

I have EDI x837 data that seems to make use of an optional first segment in the "drug identification 2410" loop. The group starts with an optional LIN segment followed by a CTP segment and can repeat 0 to 25 times. The spec I have says that the LIN segment is optional but I don't see a way to configure the smooks edi mapping to detect a segment group with an optional first segment for a repeated segment. I read up on EDI and 837 and it seems that this is valid. One doc said that a loop will repeat until segments are found that fall outside of the loop. Another doc said that normally a loop is detected when its first segment is hit again. I'm not 100% sure on the EDI rules around this.

Here is some example data:

LIN||N4|00703722102
CTP||||1|ML
LIN||N4|0338954206
CTP||||1|ML
CTP||||1|ME

And here is an extract from the config:

<medi:segmentGroup xmltag="DrugIdentification_2410" minOccurs="0" maxOccurs="25">
	<medi:segment segcode="LIN" xmltag="DrugIdentification" minOccurs="0" maxOccurs="1" truncatable="true">
		<medi:field xmltag="DrugAssignedIdentification" />
	</medi:segment>
	<medi:segment segcode="CTP" xmltag="DrugQuantity" minOccurs="0" maxOccurs="1" truncatable="true">
		<medi:field xmltag="DrugClassOfTradeCode" />
	</medi:segment>
</medi:segmentGroup>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.