Project

Profile

Help

Bug #2159

closed

Current date and time can only be set once

Added by Michael Kay over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery Java API
Sprint/Milestone:
Start date:
2014-10-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

This message is generated by Saxon 9.6 when the (old) XQueryExpression.pull() method is used to run a query. For example

/Users/mike/repo/tests/original/results96/qpull/qxmp334.out

java.lang.IllegalStateException: Current date and time can only be set once, and cannot subsequently be changed

at net.sf.saxon.Controller.setCurrentDateTime(Controller.java:2474)

at net.sf.saxon.query.DynamicQueryContext.initializeController(DynamicQueryContext.java:413)

at net.sf.saxon.query.XQueryExpression.iterateEvents(XQueryExpression.java:563)

at net.sf.saxon.query.XQueryExpression.pull(XQueryExpression.java:539)

at net.sf.saxon.query.XQueryExpression.pull(XQueryExpression.java:509)

at origtest.TestSaxon.runXQueryPull(TestSaxon.java:517)

at origtest.TestSaxon.go(TestSaxon.java:296)

at origtest.TestSaxon.main(TestSaxon.java:69)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Query test failed with class java.lang.IllegalStateException

produced runnint qxmp334 in the "original" Saxon test suite.

Please register to edit this issue

Also available in: Atom PDF