Please create a JIRA item for this - I will work on this today.

thanks,
Dan


<[EMAIL PROTECTED]> wrote on 01/11/2007 09:59:50 AM:

> Hi guys
> 
> 
> We're currently trying out the muse frameworks ability to create and
> destroy WDSM enabled WsResources, but we seem to have run into a slight
> problem with the correct way to destroy these resources.
> 
> A fast overview goes as follows:
> 
> 1) We've a factory to create resources on the fly.
> 2) We change a couple of the values held by the resource (to get the
> on-change WS-N sent out)
> 3) Next we attempt to clean up, by destroying the WsResources
> 4) We run the whole thing again from 1) without restarting the Tomcat
> server
> 
> Notes regarding software usage:
> MUSE 2.0.0
> Java SDK 1.5_07
> Axis 2.0
> 
> 
> The printout from the shutdown (destruction) process is:
> 11-Jan-2007 14:21:27 org.apache.muse.core.SimpleResource shutdown
> INFO: [ID = 'ResourceDestroyed'] The resource at 'WsResource' has been
> destroyed.
> 
> Though it seems as if, even though the prepareShutdown() function has
> been overridden, that our override doesn't run.
> 
> ** overridden initializeComplete()
> public void initializeCompleted() throws SoapFault {
>       super.initializeCompleted(); 
>       publishMessage("we have been created");
>    }
> 
> ** overridden prepareShutdown() 
> public void prepareShutdown() throws SoapFault {
>       super.prepareShutdown();
>       getLog().info("calling shutdown");
> 
>    }
> 
> 
> Our problem is that upon the 2nd run of the process (without shutting
> down the server) we get the following error message from the
> SimpleAdvertisement:
> 
> INFO: [ID = 'ResourceInitialized'] The resource at 'SubscriptionManager'
> has been initialized.
> java.lang.NullPointerException
>         at
> org.apache.muse.ws.dm.muws.adv.impl.SimpleAdvertisement.isAdvertised(Sim
> pleAdvertisement.java:32)
>         at
> org.apache.muse.ws.dm.muws.adv.impl.AbstractAdvertisement.resourceAdded(
> AbstractAdvertisement.java:96)
>         at
> org.apache.muse.core.SimpleResourceManager.addResource(SimpleResourceMan
> ager.java:108)
>         at
> org.apache.muse.ws.notification.impl.SimpleNotificationProducer.subscrib
> e(SimpleNotificationProducer.java:575)
>         at
> org.apache.muse.ws.dm.muws.adv.impl.AbstractAdvertisement.subscribeIniti
> alConsumer(AbstractAdvertisement.java:175)
>         ... and a lot more
> 
> 
> -- Lenni Madsen
> 
> ---------------------------------------------------------------------
> 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