Project

Profile

Help

Bug #2159

Current date and time can only be set once

Added by Michael Kay almost 5 years ago. Updated almost 4 years ago.

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

100%

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

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.

History

#1 Updated by Michael Kay almost 5 years ago

  • Project changed from Saxon - Internal to Saxon
  • Category set to XQuery Java API
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal
  • Found in version set to 9.6

#2 Updated by Michael Kay almost 5 years ago

  • Status changed from New to Resolved

A patch has been tested and committed on the 9.6 and 9.7 branches

#3 Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.2

Bug fix applied to the maintenance release Saxon 9.6.0.2

#4 Updated by O'Neil Delpratt almost 4 years ago

  • Sprint/Milestone set to 9.6.0.2
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.2 added

Please register to edit this issue

Also available in: Atom PDF