[
https://issues.jboss.org/browse/JBDS-1440?page=com.atlassian.jira.plugin....
]
Will Dinyes edited comment on JBDS-1440 at 1/11/11 9:38 PM:
------------------------------------------------------------
Ah, looks like the difference is that we've got the FQN of the bean on the left now,
not just "com", and just the field in question on the right.
Testing, however, reveals a similar exception:
Expression .vars["com.jbtravel.DroolsBean"] is undefined on line 3, column 21 in
free-marker-template.
I will say that the tool is building out the transform this way (I tested that as well),
but I'm sad to say that it doesn't appear to have fixed the issue. I think I just
don't understand the issue properly to be able to say where this is coming from.
Maybe it's a problem with the deployed services available in the default server config
for SOA-P? Should I be using production? But the smooks.esb service is deployed in both
cases.
As a side note, the JBDS-1440-config.xml doesn't appear to open properly in the
graphical editor in JBDS Beta2, but that's probably not an issue since I did the
lion's share of testing on the nightly from late last week, and it opened in there
fine. TMI? Perhaps.
was (Author: wdinyes):
Ah, looks like the difference is that we've got the FQN of the bean on the left
now, not just "com", and just the field in question on the right.
Testing, however, reveals a similar exception:
Expression .vars["com.jbtravel.DroolsBean"]["checkIn"] is undefined on
line 3, column 21 in free-marker-template.
I will say that the tool is building out the transform this way (I tested that as well),
but I'm sad to say that it doesn't appear to have fixed the issue. I think I just
don't understand the issue properly to be able to say where this is coming from.
Maybe it's a problem with the deployed services available in the default server config
for SOA-P? Should I be using production? But the smooks.esb service is deployed in both
cases.
As a side note, the JBDS-1440-config.xml doesn't appear to open properly in the
graphical editor in JBDS Beta2, but that's probably not an issue since I did the
lion's share of testing on the nightly from late last week, and it opened in there
fine. TMI? Perhaps.
Smooks Java-To-XML FreeMarker Fails in ESB
------------------------------------------
Key: JBDS-1440
URL:
https://issues.jboss.org/browse/JBDS-1440
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Bug
Components: SOA Platform
Affects Versions: 4.0.0.Beta1
Environment: java-1.6.0-sun-devel, JBDS 4.0.0.Beta1
Reporter: Will Dinyes
Assignee: Tom Fennelly
Fix For: 4.0.x
Attachments: DroolsBean.java, exception.txt, JBDS-1440-config.xml,
JBTravelHotelsSchema.xsd, smooks-java-to-xml.xml
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?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira