You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "David S." <da...@solder.ath.cx> on 2009/11/18 00:59:31 UTC
Re: Could not load a transcoding service - Linux
Paul Leeming wrote:
>
> Hi,
>
> I am attempting to use Xerces on a Set Top Box development kit, running
> Linux. I have tested the code on an Linux PC and it works fine. However,
> when I try to run it on my target device the
> XMLPlatformUtils::Initialize() it fails with "Could not load a transcoding
> service".
>
> The Xerces code is compiled with --enable-transcoder-gnuiconv, and I have
> also tried -iconv and -icu but the code will not build as it seems these
> are not available on my system.
>
> Using a debugger, the problem seems to be when calling
>
> XMLPlatformUtils::Initialize()
> {
>
> which calls
>
> XMLPlatformUtils::makeTransService()
>
>
> which then calls
>
> tc = new IconvGNUTransService(fgMemoryManager);
>
> This fails in the constructor, in the overloaded new operator of XMemory
>
>
> I have also cross compiled one of the examples which came with Xerces, and
> this fails in the same way.
>
> Has anyone had a similar problem, or have any ideas?
>
> Thanks in advance
>
> Paul
>
>
>
GNU iconv needs files from /usr/lib/gconv in order to work with Xerces. Is
the directory present on your target system?
--
View this message in context: http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-tp25468057p26400086.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.
Re: Could not load a transcoding service - Linux
Posted by DMJ1 <dj...@affirmednetworks.com>.
Thanks for the reply. We got around it temporarily using LANG=en_US.UTF8.
This seems to be working. I also figured that the applications were built
for xcerces 3.1 but the target machine has xcerces 2.8. I am wondering
whether this has any bearing on the issue I am seeing.
David S. wrote:
>
>
> DMJ1 wrote:
>>
>>
>> David S. wrote:
>>>
>>>
>>>
>>> Paul Leeming wrote:
>>>>
>>>> Hi,
>>>>
>>>> I am attempting to use Xerces on a Set Top Box development kit, running
>>>> Linux. I have tested the code on an Linux PC and it works fine.
>>>> However, when I try to run it on my target device the
>>>> XMLPlatformUtils::Initialize() it fails with "Could not load a
>>>> transcoding service".
>>>>
>>>> The Xerces code is compiled with --enable-transcoder-gnuiconv, and I
>>>> have also tried -iconv and -icu but the code will not build as it seems
>>>> these are not available on my system.
>>>>
>>>> Using a debugger, the problem seems to be when calling
>>>>
>>>> XMLPlatformUtils::Initialize()
>>>> {
>>>>
>>>> which calls
>>>>
>>>> XMLPlatformUtils::makeTransService()
>>>>
>>>>
>>>> which then calls
>>>>
>>>> tc = new IconvGNUTransService(fgMemoryManager);
>>>>
>>>> This fails in the constructor, in the overloaded new operator of
>>>> XMemory
>>>>
>>>>
>>>> I have also cross compiled one of the examples which came with Xerces,
>>>> and this fails in the same way.
>>>>
>>>> Has anyone had a similar problem, or have any ideas?
>>>>
>>>> Thanks in advance
>>>>
>>>> Paul
>>>>
>>>>
>>>>
>>>
>>> GNU iconv needs files from /usr/lib/gconv in order to work with Xerces.
>>> Is the directory present on your target system?
>>>
>>>
>>
>> I am having similar problems. I have built my libxerces library and
>> provided it on the target system. The target system has the
>> /usr/lib/gconv and can successfully translate the when I pass the file
>> using iconv with right parameters. However, the code always spits out the
>> error:
>> could not load a transcoding service
>>
>> Has this been resolved? If so can you please provide a recipe?
>>
>> -- DMJ1
>>
>
> The only thing that comes to mind is the environment variable. On my
> system XERCESC_NLS_HOME="/usr/share/xerces-c/msg". This directory only
> contains the file XercesMessages_en_US.cat
>
>
--
View this message in context: http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-tp25468057p30639495.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.
Re: Could not load a transcoding service - Linux
Posted by "David S." <da...@solder.ath.cx>.
DMJ1 wrote:
>
>
> David S. wrote:
>>
>>
>>
>> Paul Leeming wrote:
>>>
>>> Hi,
>>>
>>> I am attempting to use Xerces on a Set Top Box development kit, running
>>> Linux. I have tested the code on an Linux PC and it works fine. However,
>>> when I try to run it on my target device the
>>> XMLPlatformUtils::Initialize() it fails with "Could not load a
>>> transcoding service".
>>>
>>> The Xerces code is compiled with --enable-transcoder-gnuiconv, and I
>>> have also tried -iconv and -icu but the code will not build as it seems
>>> these are not available on my system.
>>>
>>> Using a debugger, the problem seems to be when calling
>>>
>>> XMLPlatformUtils::Initialize()
>>> {
>>>
>>> which calls
>>>
>>> XMLPlatformUtils::makeTransService()
>>>
>>>
>>> which then calls
>>>
>>> tc = new IconvGNUTransService(fgMemoryManager);
>>>
>>> This fails in the constructor, in the overloaded new operator of
>>> XMemory
>>>
>>>
>>> I have also cross compiled one of the examples which came with Xerces,
>>> and this fails in the same way.
>>>
>>> Has anyone had a similar problem, or have any ideas?
>>>
>>> Thanks in advance
>>>
>>> Paul
>>>
>>>
>>>
>>
>> GNU iconv needs files from /usr/lib/gconv in order to work with Xerces.
>> Is the directory present on your target system?
>>
>>
>
> I am having similar problems. I have built my libxerces library and
> provided it on the target system. The target system has the /usr/lib/gconv
> and can successfully translate the when I pass the file using iconv with
> right parameters. However, the code always spits out the error:
> could not load a transcoding service
>
> Has this been resolved? If so can you please provide a recipe?
>
> -- DMJ1
>
The only thing that comes to mind is the environment variable. On my system
XERCESC_NLS_HOME="/usr/share/xerces-c/msg". This directory only contains the
file XercesMessages_en_US.cat
--
View this message in context: http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-tp25468057p30637065.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.
Re: Could not load a transcoding service - Linux
Posted by DMJ1 <dj...@affirmednetworks.com>.
David S. wrote:
>
>
>
> Paul Leeming wrote:
>>
>> Hi,
>>
>> I am attempting to use Xerces on a Set Top Box development kit, running
>> Linux. I have tested the code on an Linux PC and it works fine. However,
>> when I try to run it on my target device the
>> XMLPlatformUtils::Initialize() it fails with "Could not load a
>> transcoding service".
>>
>> The Xerces code is compiled with --enable-transcoder-gnuiconv, and I have
>> also tried -iconv and -icu but the code will not build as it seems these
>> are not available on my system.
>>
>> Using a debugger, the problem seems to be when calling
>>
>> XMLPlatformUtils::Initialize()
>> {
>>
>> which calls
>>
>> XMLPlatformUtils::makeTransService()
>>
>>
>> which then calls
>>
>> tc = new IconvGNUTransService(fgMemoryManager);
>>
>> This fails in the constructor, in the overloaded new operator of XMemory
>>
>>
>> I have also cross compiled one of the examples which came with Xerces,
>> and this fails in the same way.
>>
>> Has anyone had a similar problem, or have any ideas?
>>
>> Thanks in advance
>>
>> Paul
>>
>>
>>
>
> GNU iconv needs files from /usr/lib/gconv in order to work with Xerces. Is
> the directory present on your target system?
>
>
I am having similar problems. I have built my libxerces library and provided
it on the target system. The target system has the /usr/lib/gconv and can
successfully translate the when I pass the file using iconv with right
parameters. However, the code always spits out the error:
could not load a transcoding service
Has this been resolved? If so can you please provide a recipe?
-- DMJ1
--
View this message in context: http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-tp25468057p30614545.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.