[JBoss JIRA] Created: (JBIDE-7309) Testing a direct-to-source mapping errors out
by Brian Fitzpatrick (JIRA)
Testing a direct-to-source mapping errors out
----------------------------------------------
Key: JBIDE-7309
URL: https://jira.jboss.org/browse/JBIDE-7309
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: smooks
Affects Versions: 3.2.0.Beta2
Reporter: Brian Fitzpatrick
Assignee: Tom Fennelly
Fix For: 3.2.0.Beta2
While playing with some ideas, I tried using the Smooks Run Configuration for testing a XML-to-XML mapping. And I don't think I've done anything too wacky, but I'm getting some interesting results when I try to test the configuration.
Any ideas? I'll attach the config, input, and output XML files...
Oct 11, 2010 12:22:58 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error
SEVERE:
Error on line 4, column 15 in free-marker-template
Expecting a string, date or number here, Expression .vars["PERIODIC_TABLE"]["ATOM/NAME"] is instead a freemarker.ext.dom.NodeListModel
The problematic instruction:
----------
==> ${.vars["PERIODIC_TABLE"]["ATOM/NAME"]} [on line 4, column 13 in free-marker-template]
----------
Java backtrace for programmers:
----------
freemarker.core.NonStringException: Error on line 4, column 15 in free-marker-template
Expecting a string, date or number here, Expression .vars["PERIODIC_TABLE"]["ATOM/NAME"] is instead a freemarker.ext.dom.NodeListModel
at freemarker.core.Expression.getStringValue(Expression.java:126)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:232)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:356)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:349)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.visitAfter(FreeMarkerTemplateProcessor.java:327)
at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
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:57)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:61)
at org.milyn.Smooks._filter(Smooks.java:519)
at org.milyn.Smooks.filterSource(Smooks.java:488)
at org.milyn.Smooks.filterSource(Smooks.java:462)
at org.jboss.tools.smooks.launch.SmooksLauncher.main(SmooksLauncher.java:81)
Exception in thread "main" 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:519)
at org.milyn.Smooks.filterSource(Smooks.java:488)
at org.milyn.Smooks.filterSource(Smooks.java:462)
at org.jboss.tools.smooks.launch.SmooksLauncher.main(SmooksLauncher.java:81)
Caused by: org.milyn.SmooksException: Failed to apply FreeMarker template to fragment 'PERIODIC_TABLE'. Resource: Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [#document], Selector Namespace URI: [null], Resource: [<?xml version="1.0" encoding="UTF-8"?>
<html>
<section>
<h1>${.vars["PERIODIC_TABLE"]["ATOM/NAME"]}</h1>
<p>${.vars["PERIODIC_TABLE"]["ATOM/SYMBOL"]}</p>
<p>${.vars["PERIODIC_TABLE"]["ATOM/ATOMIC_NUMBER"]}</p>
<p>${.vars["PERIODIC_TABLE"]["ATOM/ATOMIC_WEIGHT"]}</p>
</section>
</html>], Num Params: [4]
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:359)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:349)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.visitAfter(FreeMarkerTemplateProcessor.java:327)
at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
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:57)
at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
... 5 more
Caused by: freemarker.core.NonStringException: Error on line 4, column 15 in free-marker-template
Expecting a string, date or number here, Expression .vars["PERIODIC_TABLE"]["ATOM/NAME"] is instead a freemarker.ext.dom.NodeListModel
at freemarker.core.Expression.getStringValue(Expression.java:126)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:232)
at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:356)
... 19 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] Created: (JBIDE-6828) Provide actions to open AS/EAP/SOA-P specific management apps
by Lukas Jungmann (JIRA)
Provide actions to open AS/EAP/SOA-P specific management apps
-------------------------------------------------------------
Key: JBIDE-6828
URL: https://jira.jboss.org/browse/JBIDE-6828
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JBossAS
Reporter: Lukas Jungmann
Assignee: Rob Stryker
It would be nice if a user would be able to open ie JBoss jmx console within embedded browser in the IDE through some specific action on the server node in the server view.
List of apps worth to have some specific action:
-jmx console
-administration console
-jbossws app
there might be others I'm not aware of but first two from the list are IMO the most important ones
See attached screenshot for how this looks like in Glassfish plugin
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] Created: (JBIDE-7969) Empty error message from KB validator
by Max Andersen (JIRA)
Empty error message from KB validator
-------------------------------------
Key: JBIDE-7969
URL: https://issues.jboss.org/browse/JBIDE-7969
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Reporter: Max Andersen
Assignee: Alexey Kazakov
Fix For: 3.2.0.CR1
Not sure what triggered it but got about 10 of these in my error log:
The error message is empty in the error log view; only the stack trace reveals details.
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.ListLineTracker.getLineNumberOfOffset(ListLineTracker.java:140)
at org.eclipse.jface.text.AbstractLineTracker.getLineNumberOfOffset(AbstractLineTracker.java:161)
at org.eclipse.jface.text.AbstractDocument.getLineOfOffset(AbstractDocument.java:915)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.getLineOfOffset(SynchronizableDocument.java:398)
at org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager.addError(ValidationErrorManager.java:223)
at org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager.addError(ValidationErrorManager.java:259)
at org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager.addError(ValidationErrorManager.java:175)
at org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager.addError(ValidationErrorManager.java:126)
at org.jboss.tools.jst.web.kb.internal.validation.ValidationErrorManager.addError(ValidationErrorManager.java:140)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateInjectionPoint(CDICoreValidator.java:1213)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateBean(CDICoreValidator.java:440)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateAll(CDICoreValidator.java:268)
at org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager.validateAll(ValidatorManager.java:116)
at org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager.validateInJob(ValidatorManager.java:81)
at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] Created: (JBIDE-7851) Better usability of feature 'touch web.xml'
by Libor Zoubek (JIRA)
Better usability of feature 'touch web.xml'
-------------------------------------------
Key: JBIDE-7851
URL: https://jira.jboss.org/browse/JBIDE-7851
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: infinispan
Affects Versions: 3.2.0.Beta2
Reporter: Libor Zoubek
Assignee: Max Andersen
People keep asking me, if JBDS or tools can simply touch web.xml. When they develop, they try to 'Full publish' on the deployed project, which does not actually touch web.xml (why?) They workaround it touching it by hand or simply editing and saving trivial change.
Almost nobody including me is able to use our button in main toolbar. That is probably because almost nobody uses the main toolbar and does not expect such feature there.
Can this action be added to context menu of deployed archive and possibly have some shortcut for it?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months