Error when access the variables twice

X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

I modified a bit of the X-Query string of the X-Application, and tried to search two elements by the same value of ONE textfield. The following is a bit of the coding:

INPUT NAME=“keyword” SIZE=“20” TYPE=“text”/>

name=“FILTER_/article/title” scope=“session"
value=”[/article/title~=’${keyword$}’ or /article/abstract~=’${keyword$}’]“

<xapp:setvar name=“querySearch” scope=“session” value="/article${FILTER_/article/title$}" default=""/>

<xapp:action type=“query” arg="${querySearch$}" form=“form1”>


When, got the following error. Any ideas?

An error occurred in the application program. Please report the following problem to your webmaster.
Error message: No looping variable assignments allowed! Current sequence until loop detected: (querySearch)(FILTER_/article/title)(keyword)(keyword)
Help message: You are trying to evaluate a variable with invalid content. Loops of variable replacement is not allowed, because of danger of stack overflows. Please check the definitions of your defined values (Scope ?) or maybe your request contains a typo.
Exception id: 245
Exception Type: DesignException

XException: id = 215 arg[0] = com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.queryDocuments arg[1] = query
id = 245 arg[0] = (querySearch)(FILTER_/article/title)(keyword)(keyword)
at com.softwareag.xtools.xapplication.plugin.VariablesHandler.replaceVariables(
at com.softwareag.xtools.xapplication.plugin.VariablesHandler.evaluatingReplace(
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.queryDocuments(
at java.lang.reflect.Method.invoke(Native Method)
at com.softwareag.xtools.xapplication.plugin.Action.invoke(
at com.softwareag.xtools.xapplication.plugin.Dispatcher.execute(
at com.softwareag.xtools.xapplication.jsp.SessionContext.processWorkspaceAction(
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.processDocumentAction(
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.doStartTagCore(
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(
at list_7._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at Source)
at org.apache.tomcat.util.threads.ThreadPool$ Source)


[This message was edited by Christian Freytag on 21 Mar 2003 at 12:23.]

Hi Mullin,

Your Problem looks very similar to a problem previously was posted.

This was a bug, which will be fxied with a patch.

You will find this patch as an attachment in the related topic.

Hope that it will fix your problem.



Yes, it seems working!



this problem is fixed in X-Application 4.1.1.