You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Boris Kolpackov <bo...@codesynthesis.com> on 2007/08/31 18:27:48 UTC

Xerces-C++ 2.8.0 released

Hi,

I am pleased to announce the release of Xerces-C++ 2.8.0. This
version is interface-compatible with Xerces-C++ 2.7.0 and contains
a large number of bug fixes as well as improvements to the build
system. For the compete list of changes see:


http://xerces.apache.org/xerces-c/releases.html


For information on migrating from 2.7.0 to 2.8.0 see:


http://xerces.apache.org/xerces-c/migrate.html


This release is available in source code and as pre-compiled
libraries for the following platforms and architectures:

32 bit:

   Windows - MSVC 7.1
   Windows - MSVC 8.0
   GNU/Linux - g++ 3.4.x
   AIX 5.3 - xlC 7
   Solaris 10 - Sun C++ 5.7 and g++ 3.4.x, both SPARC and x86
   HP-UX 11i - aCC A.03.x, PA-RISC
   HP-UX 11i - aCC A.06.x, IA64
   Mac OS X 10.4 (Tiger) - g++ 4.0, both PowerPC and x86

64 bit:

   Windows - MSVC 8.0
   GNU/Linux - g++ 3.4.x
   AIX 5.3 - xlC 7
   Solaris 10 - Sun C++ 5.7 and g++ 3.4.x, both SPARC and x86-64
   HP-UX 11i - aCC A.03.x, PA-RISC
   HP-UX 11i - aCC A.06.x, IA64

The source code archives and pre-compiled libraries are available
from the download page:


http://xerces.apache.org/xerces-c/download.cgi


Note that it takes up to 24 hours for the release to propagate
to all the mirrors so use the master distribution directory if
the files are not yet available on your favorite mirror. It is
important that you verify the integrity of the files you download
using either the PGP signatures or MD5 checksums as described on
the download page.

With this release we have also moved the website from
xml.apache.org/xerces-c/ to xerces.apache.org/xerces-c/ and the
master distribution directory from www.apache.org/dist/xml/xerces-c/
to www.apache.org/dist/xerces/c/ . We believe we have established
redirects in all the necessary places but if you notice any problems
with the website, please report them.

Finally I would like to thank Gareth Reakes, Alberto Massari, David
Cargill as well as everybody who tested the release candidate and
provided fixes.


Enjoy,
Boris


-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: unable to open primary document entity in Xerces 301

Posted by mkrevuelta <mk...@gmail.com>.
Hi,

I am using Xerces 3.1.2.12 on Windows 7, 64 bits.

I suffered the same problem, so I debugged the code and found out that
Xerces is trying to open the file in mode FILE_SHARE_READ only. That is,
sharing for readers, but in exclusive mode with respect to writers.

When the machine is too busy, Windows takes some time to make that operation
available after the file has been open for writing. I've verified that calls
to the win32 API function CreateFile() with FILE_SHARE_READ (which opens
and/or creates a file) return INVALID_HANDLE_VALUE for a short while.

The workaround is to try to open the file in FILE_SHARE_READ mode _before_
calling Xerces. If it returns INVALID_HANDLE_VALUE and you know the file
exists, sleep for a short while and try again. Repeat several times with
increasing sleep times until you get tired.

Cheers,
Martin




--
View this message in context: http://apache-xml-project.6118.n7.nabble.com/Xerces-C-2-8-0-released-tp17353p42484.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


unable to open primary document entity in Xerces 301

Posted by SREENI <sr...@sap.com>.
Hi I am using Xerces 301 but still getting "unable to open primary document
entity" error . And this error is very random. not reproducible in debug
mode. Happens only in customer system once a while..I make sure file exits
before sending it to parser. So issue happens only within xerces.I also made
code changes to see no synchronization issues happens which basically no
other process/thread access the file which parser is trying to parse.Please
let me know what needs to be done to resolve the error.Thanks-Sreeni.



--
View this message in context: http://apache-xml-project.6118.n7.nabble.com/Xerces-C-2-8-0-released-tp17353p41654.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.

Re: Question about Xerces C Error message

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Bryan,

Bryan Wilcox <az...@yahoo.com> writes:

> The problem occurs on a tester computer using a release build, so I 
> haven't been able to debug into the issue yet.   The platform is 
> Windows Vista which is the same I am using to develop.   Is there 
> any context for this error?

Xerces-C++ couldn't open a file. It can either be the main document
or something that it references, e.g., a schema or DTD file.


> Is there some form of verbose debugging I can turn on to get more 
> information about the failure?

No, I don't think there is such a mechanism. What you can do is provide
your own entity resolver which handler file opening. Then you can
capture as much additional information as you would like.


Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: Question about Xerces C Error message

Posted by Bryan Wilcox <az...@yahoo.com>.
The problem occurs on a tester computer using a release build, so I haven't been able to debug into the issue yet.   The platform is Windows Vista which is the same I am using to develop.   Is there any context for this error?   Is there some form of verbose debugging I can turn on to get more information about the failure?

Thanks,
Bryan

________________________________
From: Boris Kolpackov <bo...@codesynthesis.com>
To: c-dev@xerces.apache.org
Sent: Wednesday, May 13, 2009 10:40:01 AM
Subject: Re: Question about Xerces C Error message

Hi Bryan,

Bryan Wilcox <az...@yahoo.com> writes:

> I am seeing an error message come from our code that is using Xerces C 
> to parse an XML document.  The error text reads "Fatal Error: Message:
> unable to open primary document entity" and lists the file name of the 
> file we are trying to open. This error only occurs sporadically. I was
> wondering if someone could tell me if there is anywhere I can find out
> more about what might be the root cause of this error.

You can try to set a breakpoint in the error handler and see what's going
on up the stack. Also if you can create a small test case that reproduces
this problem then I can take a look. BTW, which platform is it?

Boris

-- 
Boris Kolpackov, Code Synthesis Tools  http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:  http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


      

Re: Question about Xerces C Error message

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Bryan,

Bryan Wilcox <az...@yahoo.com> writes:

> I am seeing an error message come from our code that is using Xerces C 
> to parse an XML document.  The error text reads "Fatal Error: Message:
> unable to open primary document entity" and lists the file name of the 
> file we are trying to open. This error only occurs sporadically. I was
> wondering if someone could tell me if there is anywhere I can find out
> more about what might be the root cause of this error.

You can try to set a breakpoint in the error handler and see what's going
on up the stack. Also if you can create a small test case that reproduces
this problem then I can take a look. BTW, which platform is it?

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Question about Xerces C Error message

Posted by Bryan Wilcox <az...@yahoo.com>.
I am seeing an error message come from our code that is using Xerces C to parse an XML document.    The error text reads "Fatal Error: Message: unable to open primary document entity" and lists the file name of the file we are trying to open.   This error only occurs sporadically.   I was wondering if someone could tell me if there is anywhere I can find out more about what might be the root cause of this error.   Furthermore, we recently updated our code to the 3.01 Xerces version (we had been previously using 2.7) so I was wondering if there might be some changes related to the new version that could have caused this to occur.   I don't remember getting this exact error in previous versions of our code, but I guess anything is possible.

Thanks,
Bryan


      

Re: Xerces-C++ 2.8.0 released

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi,

I've written a blob post that elaborates on some of the user-
visible improvements in the 2.8.0 release. I think some of you
will find this information useful:


http://www.codesynthesis.com/~boris/blog/2007/09/02/xerces-2-8-0-released/


Boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org