javax.xml.transform.TransformerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I did a search for "what's" (with no double quotes) and got the following exception in the error channel: org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- Here is the exception that was logged to stdout: javax.xml.transform.TransformerException: Expected ,, but found: s at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:567) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1530) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435) at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.PredicateExpr(XPathParser.java:1951) at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1933) at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1713) at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1613) at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1584) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1306) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172) at org.apache.xpath.XPath.<init>(XPath.java:202) at org.apache.xpath.XPathAPI.eval(XPathAPI.java:279) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:211) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:191) at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:224) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- analyzeParameters() has a catch that prints the exception stack trace to stdout. This should be at least logged to the log and not stdout. Also, the catch should be changed to only catch and wrap only TransformerException. There is no point wraping runtime exceptions in a channel because the framework will wrap them for you.
    via by Brad Johnson,
  • I did a search for "what's" (with no double quotes) and got the following exception in the error channel: org.jasig.portal.PortalException: Expected ,, but found: s at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:299) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- Here is the exception that was logged to stdout: javax.xml.transform.TransformerException: Expected ,, but found: s at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:567) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1530) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435) at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.PredicateExpr(XPathParser.java:1951) at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1933) at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1713) at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1613) at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1584) at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1306) at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225) at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131) at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052) at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994) at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919) at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859) at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823) at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796) at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172) at org.apache.xpath.XPath.<init>(XPath.java:202) at org.apache.xpath.XPathAPI.eval(XPathAPI.java:279) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:211) at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:191) at org.jasig.portal.layout.channels.CContentSubscriber.analyzeParameters(CContentSubscriber.java:224) at org.jasig.portal.layout.channels.CContentSubscriber.renderXML(CContentSubscriber.java:345) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:528) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) --------------- analyzeParameters() has a catch that prints the exception stack trace to stdout. This should be at least logged to the log and not stdout. Also, the catch should be changed to only catch and wrap only TransformerException. There is no point wraping runtime exceptions in a channel because the framework will wrap them for you.
    via by Brad Johnson,
    • javax.xml.transform.TransformerException: Expected ,, but found: s at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649) at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:567) at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1530) at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435)
    No Bugmate found.