Re: I need some help : exception in Type Browser

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

I will CC this to the mailing list on your behalf, my answers below,

(Please note that Tanveer is having problems joining the mailing list so
replies should be direct until we joings successfully)

Josh

>
>Hi Josh,
>Thank you very much. It worked !!!! never thought invoking a vb dll
>method and that too from a servlet in a tomcat server will be easier.
>When I first was asked to invoking the vb dll method from a servlet, I
>was apprehensive..afterall theoretically its possible, but then there
>would be factors like path not found specially from a web server,
>unsatisfied link error etc etc. but thankfully jawin was so easy. :)
>I tried to put this question is the mailing list, but even after
>registering myself in the site , somehow I am not authorized to post a
>mail even after clicking on the verify link sent ot my email.

Hmmm, I haven't heard of any issues like this with the mailing list, but I
registered a long time ago.  Perhaps you should try again.

>
>Just got one questions (I understand you are the one who made the GUI,
>but hoping you might be able to tell me the following too:
>1. Can I pass arguments that are Double, Date, Integer to the Vb dll
>method. My vb dll method is:
>  quoteMortgageProtection(ByVal strInsurerList as String, ByVal
>dblIntrestRate as Double, ByVal strCoverType as Integer, ByVal
>dteLife1DOB as Date)
>which means it has Double, Integer, String, Date. Do the VB
>Date,Integer,Double correspond to java java.util.Date,
>java.lang.Double,java;lang.Integer?
>I am not able to find any reference to supported data types in the
>sourcefornet site for jawin.


There are a huge number of types that can be exposed in a type library and
Jawin probably only handles a percentage of them.

There is a native piece of code, can't recall the name now that builds the
type info dll which the JTB loads.

Have a look in that code and also in the configuration files for the JTB to
see what types we currently support.

As with all open source projects, if you need something that isn't currently
supported but think you are OK to add it, we appreciate all submissions :o)

Date support might come down to using the jawin stack system and may require
that you know the number of bytes for a date and pass pointers?



>
>2. Since the invocation of servlet methods (actually I will be using
>Struts action class which is a type of servlet) is through
>multi-threads, does it means I will have to think about multi-threading
>issues
>(http://jawinproject.sourceforge.net/jawinarchitecture.html#comThreading
>)?
>

Yes multithreading will certainly be an issue if the VB DLL is not
multithreaded.  You might need to consider synchronizing access up front or
using some sort of pooling,


>
>Regards and thanks
>Tanveer
>
>
>-----Original Message-----
>From: Josh Passenger [mailto:[email protected]]
>Sent: 23 August 2004 14:52
>To: Tanveer Ali
>Subject: RE: I need some help : exception in Type Browser
>
>Hi Tanveer,
>
>No intrusion :o)
>
>Strangely enough, Xalan seems to throw this when Jawin is installed into
>a
>path containing a space.
>
>Move it and try again, otherwise post your problem to the mailing list,
>
>Josh
>
>
> >
> >Hello,
> >
> >Sorry for the intrusion, but I need some quick help.
> >
> >I want to access some methods of a vb dll from a servlet.
> >
> >I am trying to use Jawin and I think I need to create stubs. For that I
> >started the Type Browser. I created a new project and added a dll. But
> >once the dll appears in the tree in the application and I click on that
> >root node, I get this error in the prompt:
> >
> >
> >
> >[EXCEPTION] InfoPanel.generateInfo() failed to generated info
> >
> >org.jawin.browser.xsl.TransformationException:
> >TransformationManager.cacheStyles
> >
> >heet() failed to compile stylesheet from: stylesheets/info/library.xsl
>-
> >javax.x
> >
> >ml.transform.TransformerConfigurationException:
> >javax.xml.transform.TransformerC
> >
> >onfigurationException: javax.xml.transform.TransformerException:
> >java.net.Malfor
> >
> >medURLException: no protocol: stylesheets/info/library.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$MouseHandler.handleSelection(Unkno
> >
> >wn Source)
> >
> >         at
> >javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(Unknown
> >
> >Source)
> >
> >         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
> >
> >         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
> >
> >         at java.awt.Component.processMouseEvent(Unknown Source)
> >
> >
> >
> >Please let me what is the problem? Is it some path or classpath
>problem?
> >
> >thanks
> >
> >Tanveer

_________________________________________________________________
10,000 children need sponsors – change a life:
http://ad.au.doubleclick.net/clk;9294008;9739733;y?http://www.worldvision.com.au/childsponsorship/search/child_search.asp?om=1
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.