Re: Many exceptions from jawinBrowser!

Josh Passenger <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Tobias,

2 distinct problems here.

1) You need to increase your memory using -Xmx<megs>m

eg:

java -Xmx512m -jar jawinBrowser.jar

2) Xalan barfs if you run the type browser from a path with a space in it
like you have.

Install it somewhere like:

c:\jawin\jawin-1.0.19

and try again,

Good luck,

Josh

>From: Tobias Widmer <[email protected]>
>Reply-To: Discussion of Java/Win32/COM integration with Jawin
><[email protected]>
>To: [email protected]
>Subject: [JAWIN] Many exceptions from jawinBrowser!
>Date: Thu, 20 Jan 2005 05:46:40 -0500
>
>I am trying to generate code with jawinBrowser from the MSWord.olb file.  I
>am getting many exceptions as seen in the following output.  Can anyone
>help?
>
>
>C:\Dokumente und Einstellungen\tw\TESTING
>JAVA\jawin-1.0.19\jawin-1.0.19\typebro
>wser>java -jar jawinBrowser.jar
>Loaded TypeLibWrapper
>Loaded TypeLibWrapper
>[DEBUG] ********************************************
>[DEBUG] TypeInfo GUID: GUID{00020905 0000 0000 00 00 00 00 00 00 00 00
>}
>[DEBUG] TypeInfo Locale: 0
>[DEBUG] TypeInfo Platform: 1
>[DEBUG] TypeInfo Major version: 8
>[DEBUG] TypeInfo Minor version: 3
>[DEBUG] TypeInfo Flags: 8
>Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java
>heap spa
>ce
>[DEBUG] ********************************************
>[DEBUG] TypeInfo GUID: GUID{00020905 0000 0000 00 00 00 00 00 00 00 00
>}
>[DEBUG] TypeInfo Locale: 0
>[DEBUG] TypeInfo Platform: 1
>[DEBUG] TypeInfo Major version: 8
>[DEBUG] TypeInfo Minor version: 3
>[DEBUG] TypeInfo Flags: 8
>[EXCEPTION] InfoPanel.generateInfo() failed to generated info
>org.jawin.browser.xsl.TransformationException:
>TransformationManager.cacheStyles
>heet() failed to compile stylesheet from: stylesheets/info/dispatch.xsl -
>javax.
>xml.transform.TransformerConfigurationException:
>javax.xml.transform.Transformer
>ConfigurationException: javax.xml.transform.TransformerException:
>java.net.Malfo
>rmedURLException: no protocol: stylesheets/info/dispatch.xsl
>         at
>org.jawin.browser.xsl.TransformationManager.cacheStylesheet(Transform
>ationManager.java:130)
>         at
>org.jawin.browser.xsl.TransformationManager.checkStylesheet(Transform
>ationManager.java:180)
>         at
>org.jawin.browser.xsl.TransformationManager.transform(TransformationM
>anager.java:147)
>         at
>org.jawin.browser.info.InfoPanel.generateInfo(InfoPanel.java:68)
>         at
>org.jawin.browser.info.InfoPanel.selectionChanged(InfoPanel.java:61)
>         at
>org.jawin.browser.tree.TypeDataTree.fireSelectionChanged(TypeDataTree
>.java:61)
>         at
>org.jawin.browser.tree.TypeDataTree$1.valueChanged(TypeDataTree.java:
>71)
>         at javax.swing.JTree.fireValueChanged(Unknown Source)
>         at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown
>Source
>)
>         at
>javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown S
>ource)
>         at
>javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown S
>ource)
>         at
>javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown
>Source)
>         at
>javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown S
>ource)
>         at javax.swing.JTree.setSelectionPath(Unknown Source)
>         at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown
>Source)
>
>         at
>javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown So
>urce)
>         at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown
>Sourc
>e)
>         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
>         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
>         at java.awt.Component.processMouseEvent(Unknown Source)
>         at javax.swing.JComponent.processMouseEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Container.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
>Source)
>         at java.awt.LightweightDispatcher.processMouseEvent(Unknown
>Source)
>         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Window.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
>Source)
>
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
>Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.