[jira] Commented: (XERCESC-1908) Xerces-c SAX application crashed on Solaris 10 x64

2010-02-02 Thread Boris Kolpackov (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12828532#action_12828532
 ] 

Boris Kolpackov commented on XERCESC-1908:
--

Bill, can you attach a test case (XML file and C++ test driver, preferably for 
the latest 3.1.0 release) that reproduces this problem?

 Xerces-c SAX application crashed on Solaris 10 x64
 --

 Key: XERCESC-1908
 URL: https://issues.apache.org/jira/browse/XERCESC-1908
 Project: Xerces-C++
  Issue Type: Bug
  Components: SAX/SAX2
Affects Versions: 2.7.0, 2.8.0, 3.0.0, 3.0.1
 Environment: $uname -a
 SunOS xsol-qa1 5.10 Generic_137138-09 i86pc i386 i86pc
 $CC -V
 CC: Sun C++ 5.7 2005/01/07
Reporter: Bill Fu

 This issue just happens on Solaris 10 x64. There is no problem on other 
 platforms, such as Solaris 10 x86 (32-bit), AIX (both 32 and 64), HP-UX (both 
 PA-RISC and IA64), Linux x86 etc.
 I wrote a xerces-c sax application on Solaris 10 x64. The class MXmlHandler 
 was the xml handler what was inherited from DefaultHandeler.
 The following is the compiler and linker flags.
 Compiler flags: -mt -xarch=amd64 -g -I/usr/app/xercesc/2.8/include 
 Linker flags: -mt -xarch=amd64 -L/usr/app/xercesc/2.8/lib -lxerces-c
 At the begining of the method
   void startElement(  const   XMLCh* consturi,
   const   XMLCh* constlocalname,
   const   XMLCh* constqname,
   const   Attributes attributes);
 the value of the parameter qname was wrong. For example the qname should be 
 a string like schemaName, but it was a recognised string. This is the 
 behavior in RELEASE libraries. In the DEBUG mode, the application crashed in 
 xerces-c libraries.
 The following is traceback.
 =[1] xercesc_2_8::XMLAttr::getValue(this = 0x18), line 486 in XMLAttr.hpp
   [2] xercesc_2_8::VecAttrListImpl::getValue(this = 0x4cc3e8, index = 1U), 
 line 86 in VecAttrListImpl.cpp
   [3] 0xfd7ffeab6546(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfd7ffeab6545
   [4] xercesc_2_8::SAXParser::startElement(this = 0x4cc3a8, elemDecl = CLASS, 
 elemURLId = 1U, elemPrefix = 0xfd7ffe1bb3b0, attrList = CLASS, attrCount 
 = 2U, isEmpty = false, isRoot = true), line 971 in SAXParser.cpp
   [5] xercesc_2_8::IGXMLScanner::scanStartTag(this = 0x4cd6b8, gotData = 
 true), line 2101 in IGXMLScanner.cpp
   [6] xercesc_2_8::IGXMLScanner::scanContent(this = 0x4cd6b8), line 899 in 
 IGXMLScanner.cpp
   [7] xercesc_2_8::IGXMLScanner::scanDocument(this = 0x4cd6b8, src = CLASS), 
 line 215 in IGXMLScanner.cpp
   [8] xercesc_2_8::XMLScanner::scanDocument(this = 0x4cd6b8, systemId = 
 0x4d4530), line 460 in XMLScanner.cpp
   [9] xercesc_2_8::XMLScanner::scanDocument(this = 0x4cd6b8, systemId = 
 0x4c7f68 ../dats/adr3xml.dat), line 468 in XMLScanner.cpp
   [10] xercesc_2_8::SAXParser::parse(this = 0x4cc3a8, systemId = 0x4c7f68 
 ../dats/adr3xml.dat), line 587 in SAXParser.cpp

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



[jira] Created: (XERCESC-1909) Need information on Exception Handling mechanism used in Log4Net project

2010-02-02 Thread Rajat Raina (JIRA)
Need information on Exception  Handling mechanism used in Log4Net project
-

 Key: XERCESC-1909
 URL: https://issues.apache.org/jira/browse/XERCESC-1909
 Project: Xerces-C++
  Issue Type: Task
Affects Versions: 1.6.0
 Environment: XP
Reporter: Rajat Raina
 Fix For: 1.6.0


I need some information as we are working on a common Exception handling 
framework for all our code.

Can you please let me know if Xerces-C++ dll defines any Exception filters 
through the usage of Microsoft's SetUnhandledExceptionFilter?

I need this information for my common exception handling framework designing.

Please let me know!

Thanks!


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



Re: Xml Vulnerability issue with C Xerces

2010-02-02 Thread Atul Parti
Thanks for sharing the info.

Does Apache Xerces C++ 3.0.1 is backward compatible.
Currently we are using Apache Xerces C++ 2.7.0 in our application.
Does it requires our application to be updated to support new version.

With Regards
Atul Parti

On Mon, Feb 1, 2010 at 6:18 PM, Boris Kolpackov bo...@codesynthesis.comwrote:

 Atul Parti atulpa...@gmail.com writes:

  is there any patch or maybe any latest version which has handle this
  issue and can be used directly.

 If you refer to the CVE-2009-1885 vulnerability, then it has been
 fixed in the just-released Xerces-C++ 3.1.0.

 Boris


 --
 Boris Kolpackov, Code Synthesis
 http://codesynthesis.com/~boris/blog
 Open-source http://codesynthesis.com/%7Eboris/blog%0AOpen-source XML
 data binding for C++   http://codesynthesis.com/products/xsd
 XML data binding for embedded systems
 http://codesynthesis.com/products/xsde
 Command line interface to C++ compiler
 http://codesynthesis.com/projects/cli

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




RE: Xml Vulnerability issue with C Xerces

2010-02-02 Thread Scott Cantor
Atul Parti wrote on 2010-02-02:
 Does Apache Xerces C++ 3.0.1 is backward compatible.
 Currently we are using Apache Xerces C++ 2.7.0 in our application.
 Does it requires our application to be updated to support new version.

Yes, possibly with substantial changes.

-- Scott



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



[jira] Closed: (XERCESC-1909) Need information on Exception Handling mechanism used in Log4Net project

2010-02-02 Thread Boris Kolpackov (JIRA)

 [ 
https://issues.apache.org/jira/browse/XERCESC-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Boris Kolpackov closed XERCESC-1909.


Resolution: Invalid

Please ask questions on the mailing list instead of filing a bug report:

http://xerces.apache.org/xerces-c/mailing-lists.html

 Need information on Exception  Handling mechanism used in Log4Net project
 -

 Key: XERCESC-1909
 URL: https://issues.apache.org/jira/browse/XERCESC-1909
 Project: Xerces-C++
  Issue Type: Task
Affects Versions: 1.6.0
 Environment: XP
Reporter: Rajat Raina
 Fix For: 1.6.0


 I need some information as we are working on a common Exception handling 
 framework for all our code.
 Can you please let me know if Xerces-C++ dll defines any Exception filters 
 through the usage of Microsoft's SetUnhandledExceptionFilter?
 I need this information for my common exception handling framework designing.
 Please let me know!
 Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



RefHashTableOfEnumerator returns me elements in different order for different platforms

2010-02-02 Thread Gordon Brown
Hi All,

 I am having a perplexing problem using Xerces 3..0 to parse an XML with a 
reference to its XML schema. Basically, the schema defines an abstract complex 
type and several derived types (using extension or restriction). I built the 
Xerces library by myself (in different platforms), and I ran the same problem 
in different platforms (for example, windows 32 bit and windows 64 bit). What I 
noticed is that the order of elements (in this case derived complex types) is 
different in windows 32 bit from windows 64 bit! Is this a known issue or I did 
something wrong?

I am attaching my schema here.

Thanks much in advance!
Gordon
=
Here is my code snippet:

  SchemaValidator sv = (SchemaValidator)m_parser-getValidator();
  RefHashTableOfEnumeratorGrammar grammars = sv.getGrammars();
    {
    Grammar curGrammar = grammars.nextElement();
   {
  SchemaGrammar schemaGrammar = 
(SchemaGrammar)curGrammar;  
RefHashTableOfComplexTypeInfo* complexTypeRegistry = 
schemaGrammar-getComplexTypeRegistry();
  {
  RefHashTableOfEnumeratorComplexTypeInfo 
enumComplexTypes(complexTypeRegistry);
  {
 
   ***Different order of 
complexType is noticed here*
   ***The bucketlist in the 
hashtable complexTypeRegistry seems to store the elements in different 
order*   }
  }
   }
}  if(complexTypeRegistry)  
while(enumComplexTypes.hasMoreElements())  
 constComplexTypeInfo ct = enumComplexTypes.nextElement(); 
while(grammars.hasMoreElements())    if(curGrammar.getGrammarType() 
== Grammar::SchemaGrammarType)



  

abstractBookstore.xsd
Description: Binary data

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

Re: LNK2019 error from newbie

2010-02-02 Thread David Bertoni

On 2/1/2010 8:10 AM, ning ji wrote:


hi, i didn't find the details from
http://xerces.apache.org/xerces-c/install-3.html#Windows

guess someone might asked it before, but don't know where to search.

basically i'm using VC 2005 (VC 8.0) to try the 1st example,
got this,


Error 2 error LNK2019: unresolved external symbol __declspec(dllimport)
public: static void __cdecl
xercesc_3_0::XMLPlatformUtils::Terminate(void)
(__imp_?termin...@xmlplatformutils@xercesc_3_0@@SAXXZ) referenced in
function __catch$_wmain$0 xml1.obj

You need to specify the Xerces-C import library as input to the linker.




my install is in C:\opt\xercesc
i have C:\opt\xercesc\bin in the path,
i have the additional include/lib directories in the VC property page.
C:\opt\xercesc\include
C:\opt\xercesc\lib

What else could be missing ?
Add the import library to Configuration Properties | Linker | Input | 
Additional Dependencies.


Please take a look at the linker options in one of the sample 
applications for an example.


Also, please post questions like this to the user list, rather than the 
developer list.


Dave

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



Exception Handling in Xerces_c_1_6_0

2010-02-02 Thread RAINA Rajat
Hello,

 

I need some information as we are working on a common Exception handling
framework for all our code.

 

Can you please let me know if Xerces-C++ dll defines any Exception
filters through the usage of Microsoft's SetUnhandledExceptionFilter?

 

I need this information for my common exception handling framework
designing.

 

Please let me know!

 

Thanks!

 

--

Rajat



Re: Exception Handling in Xerces_c_1_6_0

2010-02-02 Thread David Bertoni

On 2/2/2010 9:40 PM, RAINA Rajat wrote:

Hello,

I need some information as we are working on a common Exception handling
framework for all our code.

Can you please let me know if Xerces-C++ dll defines any Exception
filters through the usage of Microsoft's SetUnhandledExceptionFilter?

I need this information for my common exception handling framework
designing.

Please let me know!
Xerces-C using standard C++ exceptions, so there is no support for 
Windows structured exception handling.


BTW, you are using an extremely old version of Xerces-C, so you should 
consider upgrading to a newer version.


Dave

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



RE: Exception Handling in Xerces_c_1_6_0

2010-02-02 Thread RAINA Rajat
Thanks Dave for the quick response!

What I understand from your reply is that you use the standard C++
exception handling. However, what happens in the case any exception is
not handled by this? Does Xerces anywhere use the Microsoft's
SetUnhandledExceptionFilter in the code?

Please let me know, since it is very critical for the design of our new
Exception handling framework!

Regards,
Rajat

-Original Message-
From: David Bertoni [mailto:dbert...@apache.org] 
Sent: Wednesday, February 03, 2010 12:50 PM
To: c-dev@xerces.apache.org
Subject: Re: Exception Handling in Xerces_c_1_6_0

On 2/2/2010 9:40 PM, RAINA Rajat wrote:
 Hello,

 I need some information as we are working on a common Exception
handling
 framework for all our code.

 Can you please let me know if Xerces-C++ dll defines any Exception
 filters through the usage of Microsoft's SetUnhandledExceptionFilter?

 I need this information for my common exception handling framework
 designing.

 Please let me know!
Xerces-C using standard C++ exceptions, so there is no support for 
Windows structured exception handling.

BTW, you are using an extremely old version of Xerces-C, so you should 
consider upgrading to a newer version.

Dave

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


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