473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Xerces XML Parser Segmentation fault with Java

Pud
Hiya,

I was wondering if anyone could help me, I am trying to create an
example program that uses the xerces XML parser in Java. Unfortunately
I have come across a problem when using this parser. I have managed to
track down the problem to the following:

import org.apache.xerces.parsers.DOMParser;

public class testDOMParser
{
public static void main(String args[]){
testDOMParser j =new testDOMParser();
}

public testDOMParser(){
DOMParser j = new DOMParser();
}
}

which when run on SOME linux machines causes a SEGMENTATION FAULT.
Anyone any ideas? ( I have tried ulimit -s 2048 which I found as a
suggestion in some old posts and this does not seem to have any
effect).

I've tried this on several machines, all of which have the following
(from /proc/version):
Linux version 2.4.21-grsec (gcc version 3.2.2 20030222 (Red Hat Linux
3.2.2-5))
all are using java 1.4.2_02 (from java.sun.com)

Two machines (one a dual processor) give a segmentation fault, but
several others all work.

Yet it seems to work fine on all machines when using j2sdk1.4.1_05. I
want to use j2sdk1.4.2_02 so that I can take advantages of the AES
that has been integrated into it.

Does anyone have any ideas what other differences I should look for to
determine why some machines work and some don't? Does anyone else have
this problem - is it perhaps a bug in java, xerces or redhat?

Any help or suggestions appreciated. I'm stuck!
Jul 20 '05 #1
0 1606

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bugbear | last post by:
Subject pretty much says it all. I'd like to parse XML (duh!) using Xerces (because its fast, and reliable, and comprehensive, and supports lots of features). I'd like to conform to standards...
2
by: Olaf Meyer | last post by:
Apprentently xerces 2.6.0 (Java) does not validate against contraints specified in the schema (e.g. constraints specified via unique element). The validation works with the XML editor I'm using...
2
by: Dale Gerdemann | last post by:
I'm having trouble with Unicode encoding in DOM. As a simple example, I read in a UTF-8 encoded xml file such as: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <aText>letter 'a' with...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
0
by: ldvmbs | last post by:
Hi, I am trying to parse an xml file on Sun Solaris using C++ and Xerces. The code works on windows but when I ported it to Sun Solaris I am getting a Segmentation Fault in the begining of the...
4
by: M Arora | last post by:
Hi All I am using Xerces parser to convert my xml to the output given below and for this i am using the xslt. How shall i create href attribute in xerces parser? When i am using MSDOM parser...
18
by: Digital Puer | last post by:
Hi, I'm coming over from Java to C++, so please bear with me. In C++, is there a way for me to use exceptions to catch segmentation faults (e.g. when I access a location off the end of an array)?...
9
by: mstilli | last post by:
Hi, I am trying to use schema for server side validation using xerces to catch the validation errors. validating this XML: <Content4> <textarea13></textarea13>...
1
by: Blocksom | last post by:
I am new to Java and XML and I am trying to solve a problem that has bothered for few days. I have download the parser Xerser-1.4.3 and jdk1.5.0_06I install the JDK first and test it, it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.