This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: native xerces error?
Well, I finally got this to work.
Thanks anyway.
On Wed, 2004-06-23 at 02:19, Ray Auge wrote:
> Well, I'm so close, but after executing the following script (and
> obtaining no errors):
>
> #!/bin/sh
>
> COMMAND="gcj34 -c -fPIC
> --classpath=.:/usr/share/java/xml-commons-apis.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/gnu.regexp.jar:./pLASTer.jar TestMapper.java -o TestMapper.o"
>
> echo $COMMAND
> $COMMAND
> #-------------------------------------------------------------------------------------------------
>
> COMMAND="gcj34 -c -fPIC -I. -I/usr/share/java/xml-commons-apis.jar
> -I/usr/share/java/xmlParserAPIs.jar -I/usr/share/java/xercesImpl.jar
> -I/usr/share/java/gnu.regexp.jar pLASTer.jar -o pLASTer.o"
>
> echo $COMMAND
> $COMMAND
> #-------------------------------------------------------------------------------------------------
>
> COMMAND="gcj34 -c -fPIC /usr/share/java/gnu.regexp.jar -o gnu.regexp.o"
>
> echo $COMMAND
> $COMMAND
> #-------------------------------------------------------------------------------------------------
>
> COMMAND="gcj34 -fPIC -l-javax-xml-parsers -l-javax-xml-transform
> -l-org-apache-xerces --main=TestMapper -o TestMapper TestMapper.o
> pLASTer.o gnu.regexp.o"
>
> echo $COMMAND
> $COMMAND
>
>
> the prrogram (./TestMapper) hangs at 100% CPU.
>
> Here is the strace
>
>
> good till here.
> ...
> read(3, "#Sun Jun 20 20:59:44 GMT-05:00 2"..., 2048) = 299
> read(3, "", 2048) = 0
> access("/home/rotty/.pLASTer/configs", F_OK) = 0
> access("/home/rotty/.pLASTer/configs/default.plm", F_OK) = 0
> write(1, "Testing(Mapper)...1\n", 20Testing(Mapper)...1
> ) = 20
> write(1, "Testing(Mapper)...2\n", 20Testing(Mapper)...2
> ) = 20
> write(1, "Testing(CAMParser)...1\n", 23Testing(CAMParser)...1
> ) = 23
> stat64("/usr/lib/jaxp.properties", 0xbffff06c) = -1 ENOENT (No such file
> or directory)
> open("/usr/lib/jaxp.properties", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> futex(0x403b7e9c, FUTEX_WAKE, 2147483647) = 0
> access("./META-INF/services/javax.xml.parsers.DocumentBuilderFactory",
> F_OK) = -1 ENOENT (No such file or directory)
> access("./META-INF/services/javax.xml.parsers.DocumentBuilderFactory",
> F_OK) = -1 ENOENT (No such file or directory)
> stat64("/usr/lib/xerces.properties", 0xbfffefbc) = -1 ENOENT (No such
> file or directory)
> open("/usr/lib/xerces.properties", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> access("./META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration", F_OK) = -1 ENOENT (No such file or directory)
> access("./META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration", F_OK) = -1 ENOENT (No such file or directory)
> brk(0) = 0x8163000
> brk(0) = 0x8163000
> brk(0x8192000) = 0x8192000
> write(1, "Testing(CAMParser)...2\n", 23Testing(CAMParser)...2
> ) = 23
> write(1, "Testing(CAMParser)...3\n", 23Testing(CAMParser)...3
> ) = 23
> write(1, "Testing(CAMParser)...4\n", 23Testing(CAMParser)...4
> ) = 23
> write(1, "Testing(CAMParser)...5\n", 23Testing(CAMParser)...5
> ) = 23
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
> forever repeating...
>
> The error results from the execution of:
>
> System.out.println("Testing(CAMParser)...1");
> map = Helper.getNewBlankDocument("map");
> System.out.println("Testing(CAMParser)...2");
> Element root = map.getDocumentElement();
> System.out.println("Testing(CAMParser)...3");
> Element source = map.createElement("datasource");
> System.out.println("Testing(CAMParser)...4");
> root.appendChild(source);
>
> The error is on the "root.appendChild(source);" call.
> Seems to me like I'm getting an error from the Xerces binary package
> (Fedora Devel). Am I right, or really wrong?
--
Ray Auge <rayauge@doublebite.com>
Make sure to visit http://plaster.sourceforge.net
to see what I've been up to.