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.
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)
Could you please attach those files. Unfortunatelly raised exceprion comes from exception handling code so it is not helpful without the samples.
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.
Propagating Xalan errors into console. Are you realy able to run it in standalone Xalan? It cannot work.
VERIFIED
See issue 34672 for further improvement.
Resolved for 3.4.x or earlier, no new info since then -> closing.