|
»
« Return to Thread: New to group
Re: New to group
I was originally using the 1.4 version of Rife with my JDK 1.4 and that was when the error I received was
java.lang.NoSuchMethodError
at com.uwyn.rife.continuations.ContinuationContext.clearActiveContext(ContinuationContext.java:114)
at com.uwyn.rife.continuations.basic.BasicContinuableRunner.run(BasicContinuableRunner.java :227)
at com.uwyn.rife.continuations.basic.BasicContinuableRunner.start(BasicContinuableRunner.java:87)
at TestPause.testPause(TestPause.java:20)
at mainTest.main(mainTest.java:13)
at com.uwyn.rife.continuations.ContinuationContext.clearActiveContext(ContinuationContext.java:114)
at com.uwyn.rife.continuations.basic.BasicContinuableRunner.run(BasicContinuableRunner.java :227)
at com.uwyn.rife.continuations.basic.BasicContinuableRunner.start(BasicContinuableRunner.java:87)
at TestPause.testPause(TestPause.java:20)
at mainTest.main(mainTest.java:13)
Which was my original question. I started with the retroweaver etc. as an attempt to debug what the problem might be.
the example you have on your site has no main and also uses StringBuilder - this is why I started to use retroweaver and 1.4 does not support this class.
Like I said I had no real problems running with continuations under rife 1.4 except for the problem when I tried to use recursion. I can't seem to get 1.6 working under SDK1.4.
I do really appreciate your help with this though.
thanks
On 11/8/07, Geert Bevin <gbevin@...> wrote:
Hi Frederick,
why are you not simply using the JDK 1.4 version of RIFE/Continuations?
You can download it here. This should just work, no need to do
retroweaver yourself or anything.
http://rifers.org/downloads/#rifecontinuations
Let me know how it goes.
Geert
On 08 Nov 2007, at 03:07, Frederick Isaac wrote:>
> Hi Geert,
>
> Continuing the saga this is what I did next. Looking at the posted
> software for continuations it dawned on me that you are using
> generics as part of the new distribution.
>
> I am still trying to use 1.4 so I downloaded the generics 2.4
> package from sun. I ran the examples and everything checked out ok.
>
> I then tried to rebuild my app with your rife 1.4 jar and still got
> the same error NoSuchMethodError.
>
> I then tried to build the continuations package that you distribute
> and received error about missing class files com.uwyn.rife.tools.
> etc... which are not included in the source continuations
> distribution.
>
> I then tried to extract the missing class files from your rife.jar
> file and used the missing ones to try to rebuild a new app.
>
> I am now getting errors about
> com.tc.object.loaders class not found.
>
> Can you please offer any help as I am unable to build a working
> continuations application for a JDK 1.4 with your distribution.
>
> Cheers
>
> P.S. any feedback would be appreciated
>
>
>
>
> On 11/6/07, Frederick Isaac <freddyisaac@...> wrote:
> Hi Geert,
>
> I am trying with a 1.4 JDK to put together a simple TestPause
> example. I have downloaded retroweaver and am getting the following
> error.
>
> java.lang.NoSuchMethodError
> at
> com
> .uwyn
> .rife
> .continuations
> .ContinuationContext.clearActiveContext(ContinuationContext.java:114)
> at
> com
> .uwyn
> .rife
> .continuations
> .basic.BasicContinuableRunner.run(BasicContinuableRunner.java :227)
> at
> com
> .uwyn
> .rife
> .continuations
> .basic.BasicContinuableRunner.start(BasicContinuableRunner.java :87)
> at TestPause.testPause(TestPause.java:20)
> at mainTest.main(mainTest.java:13)
>
>
> Is this due to a simple mistake. I am sorry to hassle you on this
> one. I really wanted to get a demo of the breaking out of recursion
> pattern together for teaching purposes. I have tried to rip apart
> your example, but the error isn't giving much away. This example I
> am trying is not a recursive example.
>
> Any help would be much appreciated.
>
>
> Cheers
>
> again - sorry for having to keep coming back to you.
>
>
> On 11/2/07, Geert Bevin <gbevin@...> wrote:
> Hi Frederic,
>
> I'll look at this later, but I strongly recommend that you try with
> the latest version of RIFE/Continuations, and maybe even one of the
> nightly builds. Most of RIFE's development lately has gone to the
> standalone continuations lib.
>
> Best regards,
>
> Geert
>
> On 02 Nov 2007, at 19:15, Frederick Isaac wrote:
>
> > Hi Geert,
> >
> > Thanks for your prompt reply. I do have a slightly older version -
> > I think that it is version 1.4 which I downloaded previously and
> > compiled myself. I have not tried the newer version as yet - has
> > there been any major api changes or should the same code work?
> >
> > I am enclosing the simple example I was trying to run. It actually
> > runs three little tests
> >
> > first - a simple Tower of Hanoi (no continuations)
> > second - a simple pause continuation example
> > third - the Hanoi with continuation which does demonstrate the
> > problem under Rife 1.4
> >
> > I did modify the code from your examples, but is is mostly a juggle
> > around to put the same code in one single object called
> > ContinuationObject. There is a build and run unix script that just
> > need paths setting to build and run.
> >
> > Thanks very much for any help you may provide.
> >
> > Cheers
> >
> >
> >
> > On 11/2/07, Geert Bevin <gbevin@...> wrote:
> > Hi,
> >
> > first, which version of RIFE/Continuations are you using?
> >
> > Also, would you mind attaching the actual source code that you're
> > using so that it can be run in a very easy fashion. If there is a
> > problem, this drastically reduces the time to figure it out.
> >
> > Thanks,
> >
> > Geert
> >
> > On 01 Nov 2007, at 22:29, bonehead wrote:
> >
> > >
> > > Hi,
> > >
> > > I was trying to use the rife continuations package to develop a
> > simple
> > > java example and came across a small problem.
> > >
> > > I was trying to use a continuation to code a simple
> > recursiveTower of
> > > Hanoi program. Something akin to the wki example here
> > >
> > > http://en.wikipedia.org/wiki/Tower_of_Hanoi.
> > >
> > > I replaced the move with a pause() to break out of the recursion
> > >
> > >
> > > hanoi(disks,...)
> > > {
> > > if(disks > 0)
> > > {
> > > hanoi(disks-1,...);
> > > pause("Moving disk " ...);
> > > hanoi(disks-1, ....);
> > > }
> > > }
> > >
> > >
> > > When I do this it breaks out at the continuation, but upon
> > reentry it
> > > cauces a stack overflow problem. I am using an older version of
> the
> > > rife continuaitons jar.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Cheers
> >
> > --
> > Geert Bevin
> > Terracotta - http://www.terracotta.org
> > Uwyn "Use what you need" - http://uwyn.com
> > RIFE Java application framework - http://rifers.org
> > Music and words - http://gbevin.com
> >
> >
> >
> >
> > >
> > <jcon.jar.gz>
>
> --
> Geert Bevin
> Terracotta - http://www.terracotta.org
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
>
>
>
> >
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-dev" group.
To post to this group, send email to rife-dev@...
To unsubscribe from this group, send email to rife-dev-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-dev?hl=en
-~----------~----~----~----~------~----~------~--~---
« Return to Thread: New to group
| Free embeddable forum powered by Nabble | Forum Help |
