Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file:///xsl/snapshot.xsl; Line#: 167; Column#: -1 net.sf.saxon.trans.XPathException: A sequence of more than one item is not allowed as the first operand of '-' at net.sf.saxon.expr.Expression.typeError(Expression.java:981) #465

Closed
yegor256 opened this issue Jan 26, 2014 · 3 comments
Labels

Comments

@yegor256
Copy link
Owner

Try to open this page in a browser that doesn't support XSL: http://www.rultor.com/s/rultor?open=2014-01-19T17:25:00Z+rultor-on-commit+urn:facebook:1531296526

There will be a runtime exception:

exception_type: class net.sf.saxon.trans.XPathException
request_uri: /s/rultor
servlet context path: ""
requested: http://www.rultor.com/trap (GET) at www.rultor.com:80
request: null, -1 bytes
remote: 46.129.10.31:54647 (46.129.10.31)
servlet: "rultor-web" (API 2.5) at "Apache Tomcat/6.0.35"
headers:
  host: www.rultor.com
  x-real-ip: 46.129.10.31
  user-agent: HTTP%20Client/1.0.3 CFNetwork/673.0.3 Darwin/13.0.0 (x86_64) (MacBookPro5%2C1)
  x-forwarded-proto: http
  connection: close

exception: ; SystemID: file:///xsl/snapshot.xsl; Line#: 167; Column#: -1
net.sf.saxon.trans.XPathException: A sequence of more than one item is not allowed as the first operand of '-'
    at net.sf.saxon.expr.Expression.typeError(Expression.java:981)
    at net.sf.saxon.expr.SingletonAtomizer.evaluateItem(SingletonAtomizer.java:152)
    at net.sf.saxon.expr.UntypedAtomicConverter.evaluateItem(UntypedAtomicConverter.java:173)
    at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:281)
    at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:286)
    at net.sf.saxon.instruct.SimpleContentConstructor.evaluateItem(SimpleContentConstructor.java:261)
    at net.sf.saxon.instruct.ValueOf.evaluateItem(ValueOf.java:261)
    at net.sf.saxon.instruct.SimpleNodeConstructor.iterate(SimpleNodeConstructor.java:219)
    at net.sf.saxon.instruct.BlockIterator.next(BlockIterator.java:42)
    at net.sf.saxon.instruct.SimpleContentConstructor.evaluateItem(SimpleContentConstructor.java:277)
    at net.sf.saxon.instruct.SimpleNodeConstructor.expandChildren(SimpleNodeConstructor.java:166)
    at net.sf.saxon.instruct.FixedAttribute.processLeavingTail(FixedAttribute.java:231)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
    at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
    at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
    at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Template.expand(Template.java:220)
    at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:257)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
    at net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:527)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1812)
    at net.sf.saxon.Controller.transform(Controller.java:1621)
    at com.rexsl.core.XsltFilter.transform(XsltFilter.java:194)
    at com.rexsl.core.XsltFilter.filter(XsltFilter.java:174)
    at com.rexsl.core.XsltFilter.doFilter_aroundBody2(XsltFilter.java:137)
    at com.rexsl.core.XsltFilter$AjcClosure3.run(XsltFilter.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:204)
    at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
    at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:132)
    at com.rexsl.core.XsltFilter.doFilter(XsltFilter.java:135)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at net.stax.appserver.webapp.RequestMonitorValve.invoke(RequestMonitorValve.java:35)
    at net.stax.appserver.admin.StaxApplicationQueryValve.invoke(StaxApplicationQueryValve.java:49)
    at net.stax.appserver.webapp.RequestSetupValve.invoke(RequestSetupValve.java:31)
    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:647)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Unknown Source)

Let's reproduce this bug in a test and fix it.

@alex-palevsky
Copy link
Contributor

@krzyk this is your task now, please help. The budget of it is 30 mins

krzyk pushed a commit to krzyk/rultor that referenced this issue Jan 27, 2014
krzyk pushed a commit to krzyk/rultor that referenced this issue Jan 27, 2014
ghost pushed a commit that referenced this issue Jan 28, 2014
#466: pull request #465 fixed problem with multiple start/finish tags
@yegor256
Copy link
Owner Author

yegor256 commented Feb 3, 2014

thanks!

@yegor256 yegor256 closed this as completed Feb 3, 2014
@alex-palevsky
Copy link
Contributor

@krzyk Thanks a lot, I just topped your account for 30 mins, transaction ID DA2157335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants