just to test out the method. i hacked the method on my own build of sail
core to add a curnit id:

    public static void previewRootPod(Pod rootPod) throws IOException {
        File tempFile = File.createTempFile ("tempCurnit", ".jar");
        Curnit curnit = new Curnit();

        String CURNIT_PROJECTID_PRE = "cccccccc-";
        String CURNIT_PROJECTID_POST = "-0000-0000-000000000000";

        DecimalFormat df = new DecimalFormat("0000");
        String middle = df.format(50001 % 1000);
        String idStr = CURNIT_PROJECTID_PRE + middle +
CURNIT_PROJECTID_POST;

        curnit.setCurnitId(new CurnitUuid(idStr));
        curnit.setTitle("PREVIEW" + new Date());
        curnit.setRootPodId(rootPod.getPodId());
        OutputStream out = new BufferedOutputStream(new FileOutputStream(
                tempFile));
        CurnitArchive.writeArchive(curnit, out);
        URL curnitArchiveUrl = tempFile.toURL();
        loadAndStart(curnitArchiveUrl);
    }

this launches the project as expected. however there are some problems that
are werid.

1. the preview doesn't update when adding steps to existing activities. only
adding new activities with new steps.

thats with a small buildpas curnit

with a large curnit like kevins airbags.

1. the preview pops up, it takes a lonnng time. like 30-45secs. with the
stack from below. the same behavior as the small curnit is happening. adding
new steps to  new activities. works while adding new steps to existing
activities doesn't.

remove for both cases doesn't work, probably because remove in general is
busted.

none of the bean changes get to the preview.

1. org.telscenter.pas.steps.Assessment SEVERE:: exception:
java.util.EmptyStackException
Unsupported shape class [B
    at net.sf.sail.common.persistance.memory.MemoryPersistenceImpl.getSock(
MemoryPersistenceImpl.java:143)
    at org.telscenter.pas.otrunk.OTrunkStep.consumeService (OTrunkStep.java
:221)
    at org.telscenter.pas.beans.PasStep.serviceAvailable(PasStep.java:154)
    at java.beans.beancontext.BeanContextServicesSupport.fireServiceAdded(
BeanContextServicesSupport.java:1070)
    at java.beans.beancontext.BeanContextServicesSupport.serviceAvailable(
BeanContextServicesSupport.java:916)
    at java.beans.beancontext.BeanContextServicesSupport.serviceAvailable(
BeanContextServicesSupport.java:928)
    at java.beans.beancontext.BeanContextServicesSupport.serviceAvailable(
BeanContextServicesSupport.java:928)
    at java.beans.beancontext.BeanContextServicesSupport.addService(
BeanContextServicesSupport.java:681)
    at java.beans.beancontext.BeanContextServicesSupport.addService(
BeanContextServicesSupport.java:647)
    at net.sf.sail.core.beans.SessionContext$ServiceProvider.register(
SessionContext.java:77)
    at net.sf.sail.core.beans.SessionContext.initiate (SessionContext.java
:171)
    at net.sf.sail.common.apps.LaunchGenericSession.launchSession(
LaunchGenericSession.java:67)
    at net.sf.sail.common.apps.PreviewCurnit.loadAndStart(PreviewCurnit.java
:74)
    at net.sf.sail.common.apps.PreviewCurnit.previewRootPod (
PreviewCurnit.java:102)


2.


java.lang.InstantiationException: net.sf.sail.core.uuid.OfferingUuid
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
java.lang.InstantiationException:
net.sf.sail.common.apps.preview.PreviewSessionDataService
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
java.lang.InstantiationException: net.sf.sail.core.uuid.SessionUuid
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
java.lang.InstantiationException : net.sf.sail.core.uuid.OfferingUuid
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
java.lang.InstantiationException:
net.sf.sail.common.apps.preview.PreviewSessionDataService
Continuing ...




-Tony


On 4/25/07, Anthony Perritano <[EMAIL PROTECTED]> wrote:
>
> i am testing it right now, the problem i am getting right now that the
> curnit is never assigned a curnitUuid and i am getting a nullpointer
> exception.
>
> -Tony
>
> On 4/25/07, Turadg <[EMAIL PROTECTED]> wrote:
> >
> >
> > That sequence just about covers it.  I've written up a utility method
> > in sail-core, PreviewCurnit.previewRootPod(). You pass it a root pod
> > and it does what it launches a preview of a curnit wrapped around it.
> > Right now it launches it in the same VM. If that poses problems, we
> > can consider launching a new VM.
> >
> > So as long as that method works, what's left on PAS-53 is just to wire
> > a button to pass the root pod to that method.
> >
> >
> >
> > On Apr 25, 12:53 pm, "Anthony Perritano" < [EMAIL PROTECTED]> wrote:
> > > we scrapped "full preview" along time go. from the jira it says " The
> > Full
> > > Preview would save the curnit to a temporarily file and the reload it
> > as a
> > > fresh preview learning session."
> > >
> > > so we want to implement this a use case for this would be:
> > >
> > > 1. user clicks on "Preview"
> > > 2. curnit is saved to a temporary file.
> > > 3. that temp file is passed to the
> > > net.sf.sail.common.apps.preview.BundleLauncher. similar to the
> > PreviewCurnit
> > > launchers we have for eclipse in pas common apps?
> > >
> > > how does this look? are there any steps missing?
> > >
> > > -Tony
> > >
> > > On 4/24/07, Turadg <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > > This looks to be exactly what's described in PAS-53.
> > >
> > > > The remedy is to implement "Full Preview" which recreates the
> > curnit's
> > > > objects from a temporarily marshalled curnit archive.  What is
> > > > happening now is "Live Preview" which can get into faulty states.
> > >
> > > > Is there any progress on Full Preview?
> > >
> > > > -t
> > >
> > > > On Apr 23, 9:34 pm, "Anthony Perritano" <[EMAIL PROTECTED] >
> > wrote:
> > > > > until now i have been working with small curnits( one or two
> > activitys
> > > > and a
> > > > > handfull of steps). so i  loaded the airbags project into the
> > authoring
> > > > tool
> > > > > and tried to modify it. moving, adding steps, adding activities
> > seems
> > > > fine.
> > > > > however, there is a problem with this curnit that i don't get with
> > the
> > > > one
> > > > > on of the smaller ones that have been built with buildPas. when i
> > go to
> > > > > preview the curnit and the vle pops up. some how the session is
> > getting
> > > > > hosed/stuck  and the user is unable to see the bean changes. i
> > think it
> > > > > might be related to this bug <
> > > > http://www.telscenter.org/jira/browse/PAS-53 >:
> > >
> > > > > i attached a screen shot and the stack. maybe somebody has some
> > ideas on
> > > > why
> > > > > this is happening. i will write a formal test for this.
> > >
> > > > > Exception in thread "AWT-EventQueue-0"
> > > > > java.lang.UnsupportedOperationException: existing service
> > reference
> > > > obtained
> > > > > from different BeanContextServiceProvider not supported
> > > > >     at
> > >
> > > >
> > java.beans.beancontext.BeanContextServicesSupport$BCSSChild$BCSSCServiceClassRef.verifyAndMaybeSetProvider
> > > > > (BeanContextServicesSupport.java:211)
> > > > >     at
> > > > >
> > java.beans.beancontext.BeanContextServicesSupport$BCSSChild.usingService
> > > > (
> > > > > BeanContextServicesSupport.java:323)
> > > > >     at
> > java.beans.beancontext.BeanContextServicesSupport.getService(
> > > > > BeanContextServicesSupport.java:844)
> > > > >     at org.telscenter.pas.beans.PasProject.consumeService(
> > > > PasProject.java
> > > > > :305)
> > > > >     at
> > >
> > > >
> > net.sf.sail.common.beansupport.SailBeanContextChildSupport$SailBeanContextServicesListener.serviceAvailable
> > > > > (SailBeanContextChildSupport.java:61)
> > > > >     at
> > > > java.beans.beancontext.BeanContextServicesSupport.fireServiceAdded(
> > > > > BeanContextServicesSupport.java:1070)
> > > > >     at
> > > > java.beans.beancontext.BeanContextServicesSupport.serviceAvailable(
> > > > > BeanContextServicesSupport.java:916)
> > > > >     at
> > java.beans.beancontext.BeanContextServicesSupport.addService (
> > > > > BeanContextServicesSupport.java:681)
> > > > >     at
> > java.beans.beancontext.BeanContextServicesSupport.addService(
> > > > > BeanContextServicesSupport.java:647)
> > > > >     at
> > net.sf.sail.core.beans.SessionContext$ServiceProvider.register(
> > > > > SessionContext.java:76)
> > > > >     at net.sf.sail.core.beans.SessionContext.initiate(
> > > > SessionContext.java
> > > > > :169)
> > > > >     at net.sf.sail.core.service.impl.SessionManagerImpl.start(
> > > > > SessionManagerImpl.java:190)
> > > > >     at net.sf.sail.common.apps.preview.BundleLauncher.launch(
> > > > > BundleLauncher.java:129)
> > > > >     at net.sf.sail.common.apps.preview.BundleLauncher.launch(
> > > > > BundleLauncher.java:91)
> > > > >     at
> > >
> > > >
> > org.telscenter.pas.authortool.actions.PasLivePreviewCurnitAction.actionPerformed
> > > > > (PasLivePreviewCurnitAction.java:82)
> > > > >     at javax.swing.AbstractButton.fireActionPerformed(
> > > > AbstractButton.java
> > > > > :1882)
> > > > >     at javax.swing.AbstractButton$Handler.actionPerformed (
> > > > > AbstractButton.java:2202)
> > > > >     at javax.swing.DefaultButtonModel.fireActionPerformed(
> > > > > DefaultButtonModel.java:420)
> > > > >     at javax.swing.DefaultButtonModel.setPressed (
> > DefaultButtonModel.java
> > > > > :258)
> > > > >     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
> > > > > BasicButtonListener.java:234)
> > > > >     at java.awt.AWTEventMulticaster.mouseReleased (
> > > > AWTEventMulticaster.java
> > > > > :231)
> > > > >     at java.awt.Component.processMouseEvent(Component.java:5554)
> > > > >     at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
> > > > >     at java.awt.Component.processEvent(Component.java:5319)
> > > > >     at java.awt.Container.processEvent(Container.java:2010)
> > > > >     at java.awt.Component.dispatchEventImpl (Component.java:4021)
> > > > >     at java.awt.Container.dispatchEventImpl(Container.java:2068)
> > > > >     at java.awt.Component.dispatchEvent(Component.java:3869)
> > > > >     at java.awt.LightweightDispatcher.retargetMouseEvent (
> > Container.java
> > > > > :4256)
> > > > >     at java.awt.LightweightDispatcher.processMouseEvent(
> > Container.java
> > > > :3936)
> > > > >     at java.awt.LightweightDispatcher.dispatchEvent(
> > Container.java :3866)
> > > > >     at java.awt.Container.dispatchEventImpl(Container.java:2054)
> > > > >     at java.awt.Window.dispatchEventImpl(Window.java:1774)
> > > > >     at java.awt.Component.dispatchEvent (Component.java:3869)
> > > > >     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> > > > >     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
> > > > > EventDispatchThread.java :269)
> > > > >     at java.awt.EventDispatchThread.pumpEventsForHierarchy(
> > > > > EventDispatchThread.java:190)
> > > > >     at java.awt.EventDispatchThread.pumpEvents(
> > EventDispatchThread.java
> > > > :184)
> > > > >     at java.awt.EventDispatchThread.pumpEvents(
> > EventDispatchThread.java
> > > > :176)
> > > > >     at java.awt.EventDispatchThread.run(EventDispatchThread.java
> > :110)
> > >
> > > > >  itshosed.png
> > > > > 229KViewDownload
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to