This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37521 - Browse buttons in XSL Transormation dialog throws NPE
Summary: Browse buttons in XSL Transormation dialog throws NPE
Status: VERIFIED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 13:39 UTC by Martin Schovanek
Modified: 2007-09-25 01:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (5.15 KB, text/plain)
2003-11-26 13:40 UTC, Martin Schovanek
Details
Adresses.xml document which help to simulate UCE and the strange error message (725 bytes, text/plain)
2004-08-06 14:29 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2003-11-26 13:39:47 UTC
[Nb Build 200311251900, jdk1.4.2]

Steps to reprosuce:
-------------------
1) right-click XML or XSL node and choose 'XSL
Transformation...`, XSL Transformation dialog appears
2) click Browse... buton

IDE throws:
Comment 1 Martin Schovanek 2003-11-26 13:40:28 UTC
Created attachment 12312 [details]
NPE
Comment 2 Petr Pisl 2003-12-03 14:55:26 UTC
Problem was in the obtaining icon for the file selector according the
exception. But now I'm not able to reproduce this bug. I suspect that
could be caused with the new windowing system.
Comment 3 dmladek 2004-08-06 14:07:51 UTC
Well NPE is not thrown any more.
But this message appeared in my console after I click browse button:

[Fatal Error] :1:1: Content is not allowed in prolog.
CHYBA: 'Content is not allowed in prolog.'
ZĂVAĹ˝NĂ CHYBA: 'Nelze kompilovat pĹedlohu se stylem'


What do you think it might be? (reopening to be sure I get the answer:)

Comment 4 dmladek 2004-08-06 14:09:18 UTC
I'm using:

  Product Version       = NetBeans IDE Dev (Build 200408041800)
  Operating System      = Linux version 2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.5.0-beta3; Java HotSpot(TM) Client VM
1.5.0-beta3-b61; Sun Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.5.0/jre
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2
  Home Dir; Current Dir = /usr/local/home/delphym;
/usr/local/forte/forte3/NBdev-last/netbeans/bin
Comment 5 dmladek 2004-08-06 14:19:49 UTC
Also a CancelUserException was thrown when I click on Cancel button on 
"Select XML Document" invokend by Browse button...
rather entering new issue #46967
Comment 6 dmladek 2004-08-06 14:22:26 UTC
This printed message is fully reproductable with Adresses.xml document
which I'm going to attach
Comment 7 dmladek 2004-08-06 14:29:07 UTC
Created attachment 16675 [details]
Adresses.xml document which help to simulate UCE and the strange error message
Comment 8 _ pkuzel 2004-08-09 09:08:37 UTC
Cannot reproduce (but I commented out DOCTYPE).

INFORMATINAL exceptions do not appear in final build. Please report
only if connected with disfunctionality. In such case it can help to
reveal real cause.
Comment 9 dmladek 2004-08-09 14:28:30 UTC
Petre what you can reproduce?
IMHO the UCE and the strange message [fatal error] is fully reproductable.

Reopening (to get the answer from Petr:)
Comment 10 _ pkuzel 2004-08-09 15:58:24 UTC
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer
prints directly to console.

Fatal Error] :1:1: Content is not allowed in prolog.
ERROR:  'Content is not allowed in prolog.'
FATAL ERROR:  'Could not compile stylesheet'

JDK_1.5
Comment 11 dmladek 2004-08-23 16:23:31 UTC
hmmm... OK, verifying...

 NO NPE, and you probably can't fix the strange FATAL ERROR output in
console..