Hi!

I'm a beginner with Xindice 1.0.
I have the following exception in my prog. I'm not sure of my query:

Code:
org.apache.xindice.client.corba.db.APIException: IDL:org/apache/xindice/client/corba/db/APIException:1.0
	at org.apache.xindice.client.corba.db.APIExceptionHelper.read(APIExceptionHelper.java:112)
	at org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_CollectionStub.java:833)
	at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResult(XUpdateQueryServiceImpl.java:165)
	at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(XUpdateQueryServiceImpl.java:185)
	at mainFrame.Register.update(Register.java:283)
	at mainFrame.Register.register_image(Register.java:44)
	at mainFrame.mainframe.actionPerformed(mainframe.java:233)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
XML:DB Exception occured 1 Query Compilation Error
My code is like this:
Code:
public String contextrequest(String context)
	{
		String request = new String();
		
		if (context.indexOf('h')!=-1)
		{
				request = request + "<context>h</context>";
		}
		
		if (context.indexOf('p')!=-1)
		{
				request = request + "<context>p</context>";
		}
		
		if (context.indexOf('t')!=-1)
		{
				request = request + "<context>t</context>";
		}
		
		if (context.indexOf('w')!=-1)
		{
				request = request + "<context>w</context>";
		}
		
		if (context.indexOf('c')!=-1)
		{
				request = request + "<context>c</context>";
		}
		
		return request;
	}
	
	public String peoplerequest(String people)
	{
		String request = new String();
		
		if (people.indexOf('f')!=-1)
		{
				request = request + "<people>f</people>";
		}
		
		if (people.indexOf('c')!=-1)
		{
				request = request + "<people>c</people>";
		}
		
		if (people.indexOf('a')!=-1)
		{
				request = request + "<people>a</people>";
		}
		
		if (people.indexOf('n')!=-1)
		{
				request = request + "<people>n</people>";
		}
		
		return request;
	}
	
	public String placerequest(String place)
	{
		String request = new String();
		
		if (place != null)
		{
			StringTokenizer st = new StringTokenizer(place,";");
		     while (st.hasMoreTokens()) 
		     {
		     	request = request + "<place>"+st.nextToken()+"</place>"; 
		     }
		}
	     return request;
	}
	
	public String propertiesrequest(String author,String date,String quality)
	{
		String request = new String();
		
		request = 	"<properties>" +
					"<author>"+author+"</author>" +
					"<date>"+date+"</date>" +
					"<quality>"+quality+"</quality>" +
					"</properties>"; 
		
	    return request;
	}
	
	public String colorrequest(String color)
	{
		String request = new String();
		
		request = "<color>"+color+"</color>"; 
		
	    return request;
	}