David,

I think this is a classpath problem. Is there any chance you would have
an older version of crimson or xerces in the classpath on the machine 
where you are starting with Java Web Start? 

Vincent.

Hi all.

My application writes constructed SVG documents to file.  When run from
my
ide, the app creates and displays the SVG without problem and stores the
data correctly in the specified file.  The code for outputting to file
is
below:

      PrintWriter writer = new PrintWriter(new
java.io.FileOutputStream(file));
      SVGTranscoder transcoder = new SVGTranscoder();
      transcoder.transcode(new TranscoderInput(document),new
TranscoderOutput(writer));

I use a JFileChooser to choose the file.  When the app is downloaded
using
Java Web Start, the graph is still drawn without problems but whenever I
try
to save to file (it is a fully signed app) it tries to access the A
drive
for some reason (instead of the users' profiles directory), and then
when
the file is chosen, I get the following error:

Exception occurred during event dispatching: 
java.lang.NoSuchMethodError     
at
org.apache.batik.dom.util.DOMUtilities.writeNode(DOMUtilities.java:57)

at
org.apache.batik.dom.util.DOMUtilities.writeDocument(DOMUtilities.java:44)

at
org.apache.batik.transcoder.svg2svg.SVGTranscoder.transcode(SVGTranscoder.ja
va:169)         
at
javaAMAC.gui.chart.MaintenanceChartBuilder2.exportToFile(MaintenanceChartBui
lder2.java:540)         
at
javaAMAC.gui.Editors.Panels.MaintanenceChartPanel.exportToFile(MaintanenceCh
artPanel.java:347)      
at
javaAMAC.gui.Editors.Panels.MaintanenceChartPanel.actionPerformed(Maintanenc
eChartPanel.java:384)   
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)

at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1504)    
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3
78)     
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)

at javax.swing.AbstractButton.doClick(AbstractButton.java:279)  
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
MenuItemUI.java:886)    
at java.awt.Component.processMouseEvent(Component.java:3715)    
at java.awt.Component.processEvent(Component.java:3544)         
at java.awt.Container.processEvent(Container.java:1164)         
at java.awt.Component.dispatchEventImpl(Component.java:2593)    
at java.awt.Container.dispatchEventImpl(Container.java:1213)    
at java.awt.Component.dispatchEvent(Component.java:2497)        
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)    
at java.awt.Container.dispatchEventImpl(Container.java:1200)    
at java.awt.Window.dispatchEventImpl(Window.java:914)   
at java.awt.Component.dispatchEvent(Component.java:2497)        
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)       
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)         
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)    
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) 

No such method?!  I am using exactly the same files! (Yes I have
checked)
Has anyone else had any such problem?
If so is there a solution?

Thanks,
Dave Smith

************************************************************************
This Internet E-mail is intended solely for the person to whom it is
addressed. It may contain confidential or privileged information. If you
have received it in error please notify us immediately by telephone and
destroy the transmission. You must not copy, distribute or take any
action in reliance on it.

Aerosystems International               Phone: +44 (0)1935 443000
                                        Fax  : +44 (0)1935 443111
                                        Web  : www.aeroint.com
************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to