You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Marcin Stański <m_...@poczta.onet.pl> on 2002/09/18 23:52:45 UTC

Problem with polish characters and XUpdate

Hi all,

I use XIndice to store data which contains polish characters. When I add new documents to the database, I use Unicode and everything works perfectly well.

But when I try to use XUpdate to change any document and the XUpdate document contains polish characters I get an exception:


org.omg.CORBA.DATA_CONVERSION  vmcid: OMG  minor code: 1  completed: No
        at com.sun.corba.se.internal.core.CodeSetConversion$JavaCTBConverter.convertCharArray(CodeSetConversion.java:247)
        at com.sun.corba.se.internal.core.CodeSetConversion$JavaCTBConverter.convert(CodeSetConversion.java:187)
        at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:436)
        at com.sun.corba.se.internal.iiop.CDROutputStream.write_string(CDROutputStream.java:186)
        at org.apache.xindice.client.corba.db.ValueHelper.write(ValueHelper.java:82)
        at org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_CollectionStub.java:817)
        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 TestMain.main(TestMain.java:49)


I tried to use Unicode, Windows-1250, ISO-8859-2 and every time I get the same error.


What should I do to use polish characters in XUpdate documents ?

If for same reasons it is not possible to use XUpdate documents with national characters - that information would also be very helpful.

Thanks in advance

Marcin Stanski

Re: Problem with polish characters and XUpdate

Posted by Johannes Wechsler <jo...@mchp.siemens.de>.
Hi Marcin,

I have a problem as well with the XUpdate command. For me it is possible to store / add / delete / ... any documents with german umlauts, but XUpdate doesn't work at all.

I get an exception that begins with:
org.apache.xindice.client.corba.db.APIExceptionHelper.read

I've solved the problem by deleting the document I want to change and then store it again with my changes. I know, that's not very elegant - but it works.

Regards,
Johannes
  ----- Original Message ----- 
  From: Marcin Stański 
  To: xindice-users@xml.apache.org 
  Sent: Wednesday, September 18, 2002 11:52 PM
  Subject: Problem with polish characters and XUpdate


  Hi all,

  I use XIndice to store data which contains polish characters. When I add new documents to the database, I use Unicode and everything works perfectly well.

  But when I try to use XUpdate to change any document and the XUpdate document contains polish characters I get an exception:


  org.omg.CORBA.DATA_CONVERSION  vmcid: OMG  minor code: 1  completed: No
          at com.sun.corba.se.internal.core.CodeSetConversion$JavaCTBConverter.convertCharArray(CodeSetConversion.java:247)
          at com.sun.corba.se.internal.core.CodeSetConversion$JavaCTBConverter.convert(CodeSetConversion.java:187)
          at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:436)
          at com.sun.corba.se.internal.iiop.CDROutputStream.write_string(CDROutputStream.java:186)
          at org.apache.xindice.client.corba.db.ValueHelper.write(ValueHelper.java:82)
          at org.apache.xindice.client.corba.db._CollectionStub.queryCollection(_CollectionStub.java:817)
          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 TestMain.main(TestMain.java:49)


  I tried to use Unicode, Windows-1250, ISO-8859-2 and every time I get the same error.


  What should I do to use polish characters in XUpdate documents ?

  If for same reasons it is not possible to use XUpdate documents with national characters - that information would also be very helpful.

  Thanks in advance

  Marcin Stanski