Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-1440

Smooks Java-To-XML FreeMarker Fails in ESB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.0.0.GA
    • 4.0.0.Beta1
    • integration-platform
    • None
    • Compatibility/Configuration

      I created a smooks-java-to-xml.xml (attached) config via the Smooks tooling in JBDS to translate a simple bean (.java file attached) back to XML via Apply Template with an XSD (attached).

      When deploying this to SOA-P and then running a test, I get the following exception (in part, full exception stack attached):

      freemarker.core.InvalidReferenceException: Expression .vars["com"] is undefined on line 3, column 21 in free-marker-template.
      freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      freemarker.core.DynamicKeyName._getAsTemplateModel(DynamicKeyName.java:75)
      freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      freemarker.core.Expression.getStringValue(Expression.java:93)
      freemarker.core.DollarVariable.accept(DollarVariable.java:76)
      freemarker.core.Environment.visit(Environment.java:208)
      freemarker.core.MixedContent.accept(MixedContent.java:92)
      freemarker.core.Environment.visit(Environment.java:208)
      freemarker.core.Environment.process(Environment.java:188)
      freemarker.template.Template.process(Template.java:232)

      This seems to be a missing descriptor or library that isn't deployed to the server? Not sure what's causing this. Maybe Smooks Java-to-XML isn't something we can do through the tooling at this time?

        1. DroolsBean.java
          1 kB
        2. exception.txt
          12 kB
        3. JBDS-1440-config.xml
          1 kB
        4. JBTravelHotelsSchema.xsd
          1 kB
        5. smooks-java-to-xml.xml
          1 kB

              tfennelly_jira Tom Fennelly (Inactive)
              wdinyes_jira Will Dinyes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: