My Oracle Support Banner

XQuery Fails "javax.xml.xquery.XQException: Method Cannot Be Called Since The Sequence Is Closed" (Doc ID 2574415.1)

Last updated on MAY 15, 2023

Applies to:

Oracle Service Bus - Version and later
Information in this document applies to any platform.


On : version, OSB Core Functionality

XQuery fails "javax.xml.xquery.XQException: method cannot be called since the sequence is closed"

XQuery with 18 inputs fails with this stack trace:
Here's the stack trace from the OSB logs:
Caused by: javax.xml.xquery.XQException: method cannot be called since the sequence is closed
at oracle.xml.xquery.xqjimpl.OXQCUtils.createXQException(
at oracle.xml.xquery.xqjimpl.OXQCExpressionBase.bindSequence(
at com.bea.wli.common.xquery.x10.XQueryExecutor.bindVariable(
at com.bea.wli.common.xquery.x10.XQueryExecutorImpl.bindAll(
at com.bea.wli.common.xquery.x10.XQueryExecutorImpl.execute(

This worked fine in environment, but started failing after upgrating to


 Upgraded from to


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.