Xindice & Encoding

"Tadej Lasic" <[email protected]>
Newsgroups gmane.text.xml.xindice.user
Message-ID <002a01c55e19$7318b6c0$0100a8c0@megatron>
Hi,

I'm using Xindice v1.0 and I'm having trouble changing (XUpdate) and adding
XML documents that contain my native characters (š - \u0161, č - \u010C and
ž - \u017D) even thought XML documents are in UTF-8 encoding and are
displayed correctly with a browser for example.

Every time I try to update an XML document using XUpdate with the mentioned
characters I get the following exception:

----------------------------------------------------------------------------
21.5.2005 17:15:23
com.sun.corba.se.impl.encoding.CodeSetConversion$JavaCTBConverter
convertCharArray
WARNING: "IOP02400001: (DATA_CONVERSION) Character does not map to
negotiated transmission code set"
org.omg.CORBA.DATA_CONVERSION:   vmcid: OMG  minor code: 1  completed: No

        at
com.sun.corba.se.impl.logging.OMGSystemException.charNotInCodeset(OMGSystemException.java:2093)
        at
com.sun.corba.se.impl.logging.OMGSystemException.charNotInCodeset(OMGSystemException.java:2111)
        at
com.sun.corba.se.impl.encoding.CodeSetConversion$JavaCTBConverter.convertCharArray(CodeSetConversion.java:259)
        at
com.sun.corba.se.impl.encoding.CodeSetConversion$JavaCTBConverter.convert(CodeSetConversion.java:206)
        at
com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:478)
        at
com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:467)
        at
com.sun.corba.se.impl.encoding.CDROutputStream.write_string(CDROutputStream.java:153)
        at
org.apache.xindice.client.corba.db.ValueHelper.write(ValueHelper.java:82)
        at
org.apache.xindice.client.corba.db._CollectionStub.queryDocument(_CollectionStub.java:876)
        at
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResourceResult(XUpdateQueryServiceImpl.java:194)
        at
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResource(XUpdateQueryServiceImpl.java:213)
        at xbeans.Xbeans.spremeniXMLPodatek(Xbeans.java:781)
        at xbeans.Xbeans.gumbShraniActionPerformed(Xbeans.java:811)
        at xbeans.Xbeans.access$100(Xbeans.java:29)
        at xbeans.Xbeans$5.actionPerformed(Xbeans.java:331)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1
        at java.nio.charset.CoderResult.throwException(CoderResult.java:261)
        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:771)
        at
com.sun.corba.se.impl.encoding.CodeSetConversion$JavaCTBConverter.convertCharArray(CodeSetConversion.java:244)
        ... 36 more
----------------------------------------------------------------------------

Any ideas what is wrong or if there's a way to work around this?

Regards,
   Tadej Lasic 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.14 - Release Date: 20.5.2005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.