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 25135 - Java XSL extensions don't work on 3.4b2
Summary: Java XSL extensions don't work on 3.4b2
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: _ lkramolis
URL:
Keywords:
Depends on: 34672
Blocks:
  Show dependency tree
 
Reported: 2002-06-25 15:44 UTC by Bryan T. Vold
Modified: 2007-09-25 01:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan T. Vold 2002-06-25 15:44:14 UTC
The code works fine for non-extensions.  This is for Xalan 
2.3.1.  The examples work fine from the command line, but 
the samples/extensions/3-java-namespace.xsl from Xalan 
2.3.1 do not work under Netbeans 3.4b2.  Running the 
example from within Netbeans 3.4b2 gives the following 
error message.

To repeat: mount the Xalan 2.3.1 samples/extensions 
directory under Netbeans and try to run the transformation 
for the 3-java-namespace.xsl example.

java.lang.NullPointerException
        at 
org.netbeans.api.xml.cookies.CookieMessage.<init>
(CookieMessage.java:101)
        at 
org.netbeans.api.xml.cookies.CookieMessage.<init>
(CookieMessage.java:91)
        at 
org.netbeans.spi.xml.cookies.TransformableSupport.transform
(TransformableSupport.java:132)
        at 
org.netbeans.modules.xsl.utils.TransformUtil.transform
(TransformUtil.java:215)
        at 
org.netbeans.modules.xsl.engine.TransformPerformer$Abstract
Performer.fileOutput(TransformPerformer.java:282)
        at 
org.netbeans.modules.xsl.engine.TransformPerformer$Abstract
Performer.actionPerformed(TransformPerformer.java:334)
        at 
org.netbeans.core.NbPresenter$ButtonListener.actionPerforme
d(NbPresenter.java:933)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1767)
        at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerfor
med(AbstractButton.java:1820)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:419)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:257)
        at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:258)
        at java.awt.Component.processMouseEvent
(Component.java:5021)
        at java.awt.Component.processEvent
(Component.java:4818)
        at java.awt.Container.processEvent
(Container.java:1525)
        at java.awt.Component.dispatchEventImpl
(Component.java:3526)
        at java.awt.Container.dispatchEventImpl
(Container.java:1582)
        at java.awt.Component.dispatchEvent
(Component.java:3367)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3359)
        at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3074)
        at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3004)
        at java.awt.Container.dispatchEventImpl
(Container.java:1568)
        at java.awt.Window.dispatchEventImpl
(Window.java:1581)
        at java.awt.Component.dispatchEvent
(Component.java:3367)
        at java.awt.EventQueue.dispatchEvent
(EventQueue.java:445)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:191)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:134)
        at java.awt.Dialog.show(Dialog.java:524)
        at org.netbeans.core.NbPresenter.superShow
(NbPresenter.java:680)
        at org.netbeans.core.NbPresenter.run
(NbPresenter.java:713)
        at org.openide.util.Mutex$1.run(Mutex.java:931)
[catch] at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:171)
        at java.awt.EventQueue.dispatchEvent
(EventQueue.java:443)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:191)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
        at java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)
Comment 1 _ pkuzel 2002-06-25 20:12:21 UTC
Could you please attach those files.

Unfortunatelly raised exceprion comes from exception handling code
so it is not helpful without the samples.
Comment 2 _ pkuzel 2002-06-25 20:37:11 UTC
I have found them. There is the NPE and also error at line 18:
  java:IntDate.getDate(

I have corrected it to:
  java:java.util.Date.new(

And it works!

There is ultimately a bug in the example and NetBeans (NPE) as well.
Comment 3 _ pkuzel 2002-06-25 22:23:35 UTC
Propagating Xalan errors into console.

Are you realy able to run it in standalone Xalan? It cannot work.
Comment 4 Martin Schovanek 2002-10-30 15:23:39 UTC
VERIFIED
Comment 5 _ pkuzel 2003-06-27 13:55:37 UTC
See issue 34672 for further improvement.
Comment 6 Quality Engineering 2003-07-02 08:38:25 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.