public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/29362]  New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
@ 2006-10-05 20:47 jjohnstn at redhat dot com
  2006-10-05 20:48 ` [Bug libgcj/29362] " jjohnstn at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jjohnstn at redhat dot com @ 2006-10-05 20:47 UTC (permalink / raw)
  To: java-prs

The new FC6 eclipse cdt generates a java.lang.NullPointerException everytime it
tries to save the .cdtproject project file.  This occurs when changes are made
to a CDT project.  For example, adding a new source folder causes the error.

I have isolated the problem to a stand-alone testcase which reads in a current
.cdtproject file to prime the information, then goes about the actions taken by
the save call.

-bash-3.1$ java CDescription
Exception in thread "main" java.lang.NullPointerException
   at gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
   at gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
   at gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
   at gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
   at gnu.xml.transform.TransformerImpl.transform(libgcj.so.7rh)
   at CDescription.getAsXml(CDescription.java:93)
   at CDescription.run(CDescription.java:99)
   at CDescription.main(CDescription.java:113)


-- 
           Summary: NullPointerException in
                    gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jjohnstn at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
@ 2006-10-05 20:48 ` jjohnstn at redhat dot com
  2006-10-05 21:12 ` jjohnstn at redhat dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jjohnstn at redhat dot com @ 2006-10-05 20:48 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from jjohnstn at redhat dot com  2006-10-05 20:48 -------
Created an attachment (id=12386)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12386&action=view)
Testcase that exhibits problem


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
  2006-10-05 20:48 ` [Bug libgcj/29362] " jjohnstn at redhat dot com
@ 2006-10-05 21:12 ` jjohnstn at redhat dot com
  2006-10-05 22:01 ` [Bug xml/29362] " mark at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jjohnstn at redhat dot com @ 2006-10-05 21:12 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from jjohnstn at redhat dot com  2006-10-05 21:12 -------
Created an attachment (id=12387)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12387&action=view)
sample cdtproject file that is used by test case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
  2006-10-05 20:48 ` [Bug libgcj/29362] " jjohnstn at redhat dot com
  2006-10-05 21:12 ` jjohnstn at redhat dot com
@ 2006-10-05 22:01 ` mark at gcc dot gnu dot org
  2006-10-05 22:03 ` tromey at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mark at gcc dot gnu dot org @ 2006-10-05 22:01 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from mark at gcc dot gnu dot org  2006-10-05 22:01 -------
Confirmed with classpath CVS:

$ /usr/local/jamvm/bin/jamvm CDescription
java.lang.NullPointerException
   at gnu.xml.transform.TransformerImpl.strip(TransformerImpl.java:452)
   at gnu.xml.transform.TransformerImpl.strip(TransformerImpl.java:459)
   at gnu.xml.transform.TransformerImpl.strip(TransformerImpl.java:459)
   at gnu.xml.transform.TransformerImpl.strip(TransformerImpl.java:459)
   at gnu.xml.transform.TransformerImpl.transform(TransformerImpl.java:330)
   at CDescription.getAsXml(CDescription.java:93)
   at CDescription.run(CDescription.java:99)
   at CDescription.main(CDescription.java:113)


-- 

mark at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|libgcj                      |xml
     Ever Confirmed|0                           |1
            Product|gcc                         |classpath
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-05 22:01:37
               date|                            |
            Version|4.1.1                       |unspecified


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (2 preceding siblings ...)
  2006-10-05 22:01 ` [Bug xml/29362] " mark at gcc dot gnu dot org
@ 2006-10-05 22:03 ` tromey at gcc dot gnu dot org
  2006-10-06 19:21 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-05 22:03 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from tromey at gcc dot gnu dot org  2006-10-05 22:03 -------
Also happens with gcc svn head.
I was also going to CC dog :)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (3 preceding siblings ...)
  2006-10-05 22:03 ` tromey at gcc dot gnu dot org
@ 2006-10-06 19:21 ` tromey at gcc dot gnu dot org
  2006-10-10 19:32 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-06 19:21 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2006-10-06 19:21 -------
Created an attachment (id=12391)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12391&action=view)
proposed patch

This patch makes the crash go away.

The bug is that strip() unconditionally uses 'stylesheet', but in
our case this is null.

I have no idea if this patch is correct.  Another plausible approach
would be to check stylesheet!=null before using it in strip().

I'd appreciate it if someone could look at this rather quickly.  It
breaks Eclipse in FC6.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (4 preceding siblings ...)
  2006-10-06 19:21 ` tromey at gcc dot gnu dot org
@ 2006-10-10 19:32 ` tromey at gcc dot gnu dot org
  2006-10-10 19:35 ` jjohnstn at redhat dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-10 19:32 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from tromey at gcc dot gnu dot org  2006-10-10 19:32 -------
Subject: Bug 29362

Author: tromey
Date: Tue Oct 10 19:31:56 2006
New Revision: 117612

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117612
Log:
        PR classpath/29362:
        * gnu/xml/transform/TransformerImpl.java (transform): Only strip if
        there is a stylesheet.

Modified:
    trunk/libjava/classpath/ChangeLog.gcj
    trunk/libjava/classpath/gnu/xml/transform/TransformerImpl.java


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (5 preceding siblings ...)
  2006-10-10 19:32 ` tromey at gcc dot gnu dot org
@ 2006-10-10 19:35 ` jjohnstn at redhat dot com
  2006-10-10 19:38 ` tromey at gcc dot gnu dot org
  2006-10-10 19:39 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jjohnstn at redhat dot com @ 2006-10-10 19:35 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from jjohnstn at redhat dot com  2006-10-10 19:35 -------
I am confirming that the patch does fix the problem.  With patch, the original
Eclipse CDT problems have gone away.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (6 preceding siblings ...)
  2006-10-10 19:35 ` jjohnstn at redhat dot com
@ 2006-10-10 19:38 ` tromey at gcc dot gnu dot org
  2006-10-10 19:39 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-10 19:38 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from tromey at gcc dot gnu dot org  2006-10-10 19:38 -------
Subject: Bug 29362

Author: tromey
Date: Tue Oct 10 19:37:52 2006
New Revision: 117613

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117613
Log:
        PR classpath/29362:
        * gnu/xml/transform/TransformerImpl.java (transform): Only strip if
        there is a stylesheet.

Modified:
    branches/redhat/gcc-4_1-branch/libjava/classpath/ChangeLog.gcj
   
branches/redhat/gcc-4_1-branch/libjava/classpath/gnu/xml/transform/TransformerImpl.java


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
  2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
                   ` (7 preceding siblings ...)
  2006-10-10 19:38 ` tromey at gcc dot gnu dot org
@ 2006-10-10 19:39 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-10 19:39 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from tromey at gcc dot gnu dot org  2006-10-10 19:39 -------
I checked this in.
I'd still appreciate a review from Chris though.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |0.93


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-10-10 19:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-05 20:47 [Bug libgcj/29362] New: NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh) jjohnstn at redhat dot com
2006-10-05 20:48 ` [Bug libgcj/29362] " jjohnstn at redhat dot com
2006-10-05 21:12 ` jjohnstn at redhat dot com
2006-10-05 22:01 ` [Bug xml/29362] " mark at gcc dot gnu dot org
2006-10-05 22:03 ` tromey at gcc dot gnu dot org
2006-10-06 19:21 ` tromey at gcc dot gnu dot org
2006-10-10 19:32 ` tromey at gcc dot gnu dot org
2006-10-10 19:35 ` jjohnstn at redhat dot com
2006-10-10 19:38 ` tromey at gcc dot gnu dot org
2006-10-10 19:39 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).