Hi, Matthew.

You've helped me uncover a fundamental error in the way the mapType() method works. 
I'm afraid
I'll have to go back to the drawing board on that. 

The problem is that the SOAPPortal (where mapType() ultimatel does it's work) is 
created on a
per-connection basis. SOAPPortal is created when you connect to a server. So mapType() 
needs to be
called not as part of initPlugin(), but when the client connects to a server. 

I'll have to change the architecture so that instead of putting your mapType() call 
into
initPlugin(), you'll define a mapTypes() method that will call mapType() for each type 
you need to
map. The client will then call your mapTypes() method every time a connection to an SJ 
server is
made.

You'll have to give me a little time to put this change into place. I'll try to find 
the time to
work on this tonight.

Thanks.

--Rob



--- Matthew Johnston <[EMAIL PROTECTED]> wrote:
> I've included a bitmap of the exception and here is a snippet of code where 
> the exception occurs in my plugin:
> 
> public void initPlugin(HashMap params) {
>         super.initPlugin(params);
> 
>         try{
>              mapType("urn:sj-mastercontrolprogram", "LinkedLabelList",
>                
> Class.forName("org.sourcejammer.extensions.linkedLabels.share.LinkedLabelList"));
>         }
>         catch(Exception ex){
> 
>             throw new LinkedLabelClientException(ex.getStackTrace());
> }
> 
> thanks...
> 
> >From: Robert MacGrogan <[EMAIL PROTECTED]>
> >To: Matthew Johnston <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: Is there anything else???
> >Date: Mon, 3 May 2004 07:46:57 -0700 (PDT)
> >
> >Hi Matthew.
> >
> >Try spitting out the stack trace to a log file or to System.out or 
> >something to give us a better
> >idea of what's going on.
> >
> >And as for deploying the descriptor file, if it deployed without any errors 
> >then I'm sure it
> >worked fine.
> >
> >--Rob
> >
> >--- Matthew Johnston <[EMAIL PROTECTED]> wrote:
> > > Hello Rob,
> > > I believe I was able to successfully modify the 
> >SJDeploymentDescriptor.xml
> > > file to add my class. I've attached this file for review.
> > >
> > > I've implemented this method into my plugin class:
> > >
> > > /////////////////////////////////////////////////////////////
> > >     public void initPlugin(HashMap params) {
> > >         super.initPlugin(params);
> > >
> > >         try{
> > >              mapType("urn:sj-mastercontrolprogram", "LinkedLabelList",
> > >
> > > 
> >Class.forName("org.sourcejammer.extensions.linkedLabels.share.LinkedLabelList"));
> > >         }
> > >         catch(ClassNotFoundException ex){
> > >             CommandCentral oCommand = CommandCentral.getInstance();
> > >             CommandCentral.getInstance();
> > >             JOptionPane jop = new JOptionPane();
> > >             jop.showMessageDialog(oCommand.getRootAppFrame(), new
> > > String("Plugin Exception:" + ex.getMessage()));
> > >         }
> > >         catch(Exception ex){
> > >             CommandCentral oCommand = CommandCentral.getInstance();
> > >             CommandCentral.getInstance();
> > >             JOptionPane jop = new JOptionPane();
> > >             jop.showMessageDialog(oCommand.getRootAppFrame(), new
> > > String("Plugin Exception:" + ex.getMessage()));
> > >
> > >         }
> > >     }
> > > //////////////////////////////////////////
> > >
> > > When SourceJammer runs this throws an regular "Exception" NOT a
> > > "ClassNotFoundException" exception.  However there is no message (it is
> > > NULL).
> > >
> > > I've tried these variations in the above code:
> > >
> > > mapType("urn:sj-mastercontrolprogram", "linkedlabellist",
> > > LinkedLabelList.class);
> > >
> > > mapType("urn:sj-mastercontrolprogram", "LinkedLabelList",
> > > LinkedLabelList.class);
> > >
> > >
> > > Still getting a null,  any ideas???
> > >
> > >
> > > As a note:  I ran the deploy.sh to deploy the SJDeploymentDescriptor.xml 
> >to
> > > the server to create a new DeployedServices.ds file.  It seemed to work 
> >ok,
> > > unless there is something else I'm forgetting?
> > >
> > >
> > >
> > > Previous message...
> > >
> >
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Win a $20,000 Career Makeover at Yahoo! HotJobs
> >http://hotjobs.sweepstakes.yahoo.com/careermakeover
> 
> _________________________________________________________________
> Getting married? Find tips, tools and the latest trends at MSN Life Events. 
> http://lifeevents.msn.com/category.aspx?cid=married
> 

> ATTACHMENT part 2 image/bmp name=exceptionmsg.bmp




        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
SourceJammer-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sourcejammer-devel

Reply via email to