Hi Janko,
> Tim, you are definitively closer! If there is Admin instead of Guest > written in upper left corner then you are really logged in. Aida > security don't let you access somehow any page and redirect you back > to login. > > Try to initialize a whole thing again from start: > > 1.SwazooServer demoStop > 2.inspect SwazooServer singleton and nil instvar sites > 3.SwazooServer demoStart > Any better now? No it still says guest in the top left - I tried the steps you suggested but it still gives the same behavior - a am returned to the login screen. I also tried saving the one change we identified and then reloading everything into a clean image again (actually it occurs to me that I am using D6 professional - maybe thats a difference?) Is it possible you have some other change you have missed? I find that I use Subversion and TortoiseSVN with Dolphin (even thought professional has omnibase) as it lets me version everything including resources, and Tortoise has a nice Diff tool - potentially it might help spot another difference? In the morning I'll try the community version and maybe try it on a different machine. In the meantime I've been looking at the code a little bit - do you have a really really simple example? Tim Tim |
Tim, look into a tutorial http://www.swazoo.org/aida-tutorial.html for
really simple example. Tutorial is still evolving, but currently is IMHO already good enough to get a basic feel about Aida. About login, just checking, do you login with username admin and password password? After that you get message in Transcript, right? How it looks you first page after login? Yes, please try community install, because I don't have Dolphin professional here. Best regards Janko macta wrote: > Hi Janko, > >> Tim, you are definitively closer! If there is Admin instead of Guest >> written in upper left corner then you are really logged in. Aida >> security don't let you access somehow any page and redirect you back >> to login. >> >> Try to initialize a whole thing again from start: >> >> 1.SwazooServer demoStop >> 2.inspect SwazooServer singleton and nil instvar sites >> 3.SwazooServer demoStart >> Any better now? > > > No it still says guest in the top left - I tried the steps you suggested > but it still gives the same behavior - a am returned to the login screen. > > I also tried saving the one change we identified and then reloading > everything into a clean image again (actually it occurs to me that I am > using D6 professional - maybe thats a difference?) > > Is it possible you have some other change you have missed? I find that I > use Subversion and TortoiseSVN with Dolphin (even thought professional > has omnibase) as it lets me version everything including resources, and > Tortoise has a nice Diff tool - potentially it might help spot another > difference? > > In the morning I'll try the community version and maybe try it on a > different machine. > > In the meantime I've been looking at the code a little bit - do you have > a really really simple example? > > Tim > > Tim > > |
Janko, Tim,
> Yes, please try community install, because I don't have Dolphin > professional here. It's just about working for me with D6 pro patchlevel 1 (not 2, though I doubt if that makes a difference). That's with the change you've already mentioned to DolphinSwazooPlatform>>collection:tokensBasedOnAll:. I can log in and see the stats, use the admin panels, and so on. There seems to be too much supression of error messages and exceptions (for an alpha version), I've added another halt to HTTPConnection>>handleError: and changed HTTPConnection>>interact so that the Error handler reads on: Error do: [:ex | ex notify. self close] One problem that revealed is that the implementation of #handleError: does not work at all -- #getSignal is not defined (I have no idea what it is supposed to mean). One other small fix is to HTTPMessage>>printHeaders: which now reads: printHeaders | stream | stream := WriteStream on: String new. self headers keysAndValuesDo: [:key :header | stream nextPutAll: header name; nextPutAll: ': '; display: header value; cr]. ^stream contents. That's because "header value" can be an Integer, and you can't use #, to concatenate a String and an Integer. I don't think that affects the ability to log in, though. -- chris |
In reply to this post by Janko Mivšek
Janko,
> Tim, look into a tutorial http://www.swazoo.org/aida-tutorial.html for > really simple example. Tutorial is still evolving, but currently is IMHO > already good enough to get a basic feel about Aida. Thanks for that, I've just worked through it, and everything worked fine. Or rather, I had a couple of glitches, but they were my fault rather than problems with either Aida or your tutorial. Still, you might consider adding a couple of warnings to help other Dolphin users avoid my mistakes (it's up to you of course!). Anyway, my first problem was that (since I can't copy-paste) the class creation methods into Dolphin, I first created AddressBookAp and AddressAp classes, and didn't even notice that I'd replaced "App" with "Ap" (the single-p looks more natural to me). But since Aida uses class name lookup that failed at runtime. So it's important to get the class names exactly right. Secondly, I spent a little time trying to find out why the suggested AddressBookApp>>viewMain had an undefined self-send of #pageFrameWith:title: I was thinking that might be the reason why my application was not working. (D6 Pro warns you about that kind of thing automatically, I don't know whether the free version does the same.) -- chris |
In reply to this post by Chris Uppal-3
How are you doing this?
I have just tried it on another machine - my desktop, and when I try to login (after applying the #collection: aCollection tokensBasedOnAll: anArray fix, I still just keep getting stuck on the password screen and so I can't run the demo locally like I can on the web site? Or are you just trying the tutorial, which doesn't look to have any of the password stuff (interestingly, I guess the website demo doesn't either?) Janko - there is something that is causing the password access to not work, and I don't understand what the difference between my two machines are from yours? Myabe Chris has a thought - or do you have a suggestion as to how I can help debug this... I am interested with what you have done - it looks more streamlined than Seaside, and maybe has the edge on the Ajax stuff... so am quite keen to get something running. Anyway - do you have any more ideas? Tim |
Tim, Janko,
> How are you doing this? Create a new directory. Unzip the stuff that Janko posted into it (creates two sub-directories). Fire up a clean D6 Pro pl1 image (I would expect that pl2 is just as good, but haven't actually tried it). Saved that as a new image (called Aida) in my new directory. Explicitly loaded package Swazoo/Swazoo.pac. Accepted the warning[*]. Explicitly loaded package Swazoo/Swazoo-Resources.pac (don't know if that's necessary). ([*] Actually. at this point I went and found the offending duplcate methods, removed them from the package, saved it, and then started again from scratch -- but I can't see why that should make any difference to your problems. Janko, you may not realise that it's important to fix this problem -- it's not just cosmetic in Dolphin since the system doesn't restore the original versions of these methods when you unload the package). Explictly loaded package AIDAWeb/AIDAWeb.pac. Explictly loaded package AIDAWeb/Swazoo-AIDA.pac. Explictly loaded package AIDAWeb/AIDA System Changes.pac. (I didn't bother with the tests package) (Janko, you may not know that you can add to the prerequisites of a package explicitly if you want. The system automatically computes prerequisites by tracking things like class references, but does not track dependencies which are only via message sends. So you can add "manaual prerequisites" by right clicking on a Package in the Package Browser, selecting "properties", selecting the manualPrerequisites item in the list of properties, and then using the new item (red asterix) button in the right-hand pane of the inspector). I have no idea why OA still make this operation so obscure. It would seem much more sensible for the manual prerequisites to be settable directly from the "Prerequsites" tab -- as was suggested years ago ;-) Tried the: SwazooServer demoStart. mantra. Found it didn't work. Started investigating by making the changes detailed in my earlier post. In the process rediscovered Janko's fix for #collection:tokensBasedOnAll:) Having made those changes (without restarting or anything) the example now works as advertised -- I could log in as admin/password (all lower-case). That shows a fairly blank-looking screen until I select one of the options in the sidebar -- Statistics, for instance. If I don't log in then I can't get to any of the side-bar pages, but just keep coming back to the login page. > Or are you just trying the tutorial, which doesn't look to have any of > the password stuff (interestingly, I guess the website demo doesn't > either?) I have tried the tutorial /too/. I have to log in as admin before it will work (the tutorial does mention that). > Myabe Chris has a thought - or do you have a suggestion as to how I can > help debug this... Make the changes that I suggested earlier, and keep an eye on your Transcript. You may (depending on your browser) find that you'll get occasional spontaneous debug halts. That's just the system working correctly (for its current, pre-alpha, state). It happens when Firefox (and maybe other browsers) time out and close the persistent connections they use to multiplex HTTP 1.1 requests over a single TCP/IP connection. Swazoo/AIDA seems to handle multiplexing fine, but the error handling code gets confused by the SocketClosed exception. You can just "resume" the dialogs when they pop up. If you want to debug through the login attempt, then one place you could put a breakpoint is in AIDASite>>answerTo:. -- chris |
Hi Chris and Tim,
I'll prepare new packages and try to more carefully package them. Non-inclussion of #collection:tokensBasedOnAll: patch obviously shows that patched Swazoo is wrongly packaged. I'll also include all packaging and prerequisite suggestions (thanks Chris for them!). Please expect new packages soon. Best regards Janko Chris Uppal wrote: > Tim, Janko, > > >>How are you doing this? > > > Create a new directory. Unzip the stuff that Janko posted into it (creates two > sub-directories). > > Fire up a clean D6 Pro pl1 image (I would expect that pl2 is just as good, but > haven't actually tried it). Saved that as a new image (called Aida) in my new > directory. > > Explicitly loaded package Swazoo/Swazoo.pac. Accepted the warning[*]. > Explicitly loaded package Swazoo/Swazoo-Resources.pac (don't know if that's > necessary). > > ([*] Actually. at this point I went and found the offending duplcate methods, > removed them from the package, saved it, and then started again from scratch -- > but I can't see why that should make any difference to your problems. Janko, > you may not realise that it's important to fix this problem -- it's not just > cosmetic in Dolphin since the system doesn't restore the original versions of > these methods when you unload the package). > > Explictly loaded package AIDAWeb/AIDAWeb.pac. Explictly loaded package > AIDAWeb/Swazoo-AIDA.pac. Explictly loaded package AIDAWeb/AIDA System > Changes.pac. (I didn't bother with the tests package) > > (Janko, you may not know that you can add to the prerequisites of a package > explicitly if you want. The system automatically computes prerequisites by > tracking things like class references, but does not track dependencies which > are only via message sends. So you can add "manaual prerequisites" by right > clicking on a Package in the Package Browser, selecting "properties", selecting > the manualPrerequisites item in the list of properties, and then using the new > item (red asterix) button in the right-hand pane of the inspector). I have no > idea why OA still make this operation so obscure. It would seem much more > sensible for the manual prerequisites to be settable directly from the > "Prerequsites" tab -- as was suggested years ago ;-) > > Tried the: > SwazooServer demoStart. > mantra. Found it didn't work. Started investigating by making the changes > detailed in my earlier post. In the process rediscovered Janko's fix for > #collection:tokensBasedOnAll:) > > Having made those changes (without restarting or anything) the example now > works as advertised -- I could log in as admin/password (all lower-case). That > shows a fairly blank-looking screen until I select one of the options in the > sidebar -- Statistics, for instance. > > If I don't log in then I can't get to any of the side-bar pages, but just keep > coming back to the login page. > > > >>Or are you just trying the tutorial, which doesn't look to have any of >>the password stuff (interestingly, I guess the website demo doesn't >>either?) > > > I have tried the tutorial /too/. I have to log in as admin before it will work > (the tutorial does mention that). > > > >>Myabe Chris has a thought - or do you have a suggestion as to how I can >>help debug this... > > > Make the changes that I suggested earlier, and keep an eye on your Transcript. > You may (depending on your browser) find that you'll get occasional spontaneous > debug halts. That's just the system working correctly (for its current, > pre-alpha, state). It happens when Firefox (and maybe other browsers) time out > and close the persistent connections they use to multiplex HTTP 1.1 requests > over a single TCP/IP connection. Swazoo/AIDA seems to handle multiplexing > fine, but the error handling code gets confused by the SocketClosed exception. > You can just "resume" the dialogs when they pop up. > > If you want to debug through the login attempt, then one place you could put a > breakpoint is in AIDASite>>answerTo:. > > -- chris > > |
In reply to this post by Chris Uppal-3
Chris, Tim and others,
In the meantime, can you comment tutorial a bit? http://www.swazoo.org/aida-tutorial.html. Is it good enough, simple enough or even too simple? Does it give you enough feel of Aida? I'll continue tutorial with forms, then actions and also most simple Ajax example (I still need to figure out how to make it simple, based on tutorial's app so far). What more do you like to be in tutorial? Best regards Janko |
In reply to this post by Tim M
I have some more info on this.
I tried it again in IE (6.0.29....) First I get an error (A runtime error has occured - Do you wish to debug? Line 2214 Error: Object required). I type no (I think I get this becuase I have the MS javascript debuger installed in IE - but I think it indicates some error in your javascript - I also notice some errors in the Firefox console as well). When I l first did a login with admin/password - I did get your left nav bar - but the center was white and the status bar indicated that the page was still trying to load (the IE flag keeps floating as well). I assumed this was the same as Firefox, however its actually not - if I click on some of the left items I can get them to work - however you still get the page not loading fully problem (is this how its supposed to work?). The Ajax examples don't seem to properly work either - e.g. typing jan does not pop up a month listbox like your web demo. I wonder if Chris is using IE? So in firefox - I am wondering what the problem is - probably some other variant of this problem to? Or maybe its some security setting? I am using firefox 1.5.0.3 Tim p.s. At least I can sort of run the tutorial in IE |
As a thought I tried loading it in to Visual Works -
I get the same behavior from Firefox (I can't login) and in IE (page keeps loading) - so I don't think its a Dolphin Port thing. It sounds like a machine configuration or a browser version thing? Although I 've tried this on two machines now - so machine config is looking a bit less likely. Tim p.s. The VW zip file, which I installed into the parcels directory of VW = seems to say its verison 4.x not 5? Maybe some comment needs updating? |
In reply to this post by Tim M
TimM wrote:
> I wonder if Chris is using IE? I was using Firefox 1.5.0.2. I've just updated to 1.5.0.3 and get the same results: it works with no obvious errors or problems in either logging in, loading, or JavaScript execution. I fired up IE (6.0.28 -- not patched in ages) and that also appears to work correctly. The only exception to the "everything works" is that in the "Tabs" demo, clicking on any of the tabs takes me to the "Image gallery" page instead of changing the tab. But I assume that's a bug in the demo itself, rather than any kind of problem with the framework. (It happens in both browsers) I've just remembered that I have Opera (8.52) installed on this machine and that appears to work too (although there were some problems getting it to realise that localhost:8888 is actually a hostname, and also its implementation of HTTP 1.1 seems to be more sensitive to the problem with socket closed exceptions which I mentioned earlier). -- chris |
In reply to this post by Janko Mivšek
Janko,
> In the meantime, can you comment tutorial a bit? > http://www.swazoo.org/aida-tutorial.html. Is it good enough, simple > enough or even too simple? Does it give you enough feel of Aida? I found it clear and helpful, and I /think/ it has given be a clear picture of what Aida is and how it works (I don't know anything much about Aida /except/ what I got from the tutorial, so I don't really know how much I may be missing ;-). I'd say that it's probably best if you leave it as it is, as a simple and complete example. If you add more tutorial material (a good idea, if you can afford the time and effort) then I'd make separate tutorial pages which concentrate on other features, rather than add anything to that page. I did make a couple of small suggestions earlier. I'll add one more. The paragraphs about logging in before trying the example are a bit obscure, I'd suggest re-writing it to something like: ============= Before you can try it out, you'll have to log in. So open your browser on: http://localhost:8888/ and log in as admin with password: 'password'. Now you can browse to our new page at: http://localhost:8888/addressbook.html If you hadn't logged in first then that would have taken you to the login page, because the default security settings don't allow the guest user to read any pages. As admin you have right to see all the pages by default. ============= BTW, it seems that if you try to read a page to which you don't have access then you are taken to the login screen, but after you have logged in, you are taken to the last page you accessed rather than the one you originally wanted. Is that something which can be changed ? And what happens if that page doesn't exist any more ? -- chris |
In reply to this post by Chris Uppal-3
This is just plain wierd - so both of my browsers seem to exhibit
behavior that I can't login (although the Transcript indicates that I have). I've tried it in VW and Dolphin and get the same problem with alpha5. So could it be an operating system or any other software that I might have running? I'm on XP SP2 on both computers - could that be a difference? Different virus checkers (norton and avg - although can't imagine they stop this). Potentially security settings of the browser? I don't knowingly have anything set to prevent cookies... I'm stumped. Tim |
Or is there some socket dll or something that I've got corrupted or out
of date on both my machines - or is there some windows update thats caused this... Tim |
In reply to this post by Tim M
Tim,
Try Firefox with FireBug extension installed and look at javascript errors reported. Also, after login, refresh your page (on IE with Ctrl-F5). Any better? I'm working with Firefox on Linux and have Win XP SP2 inside VMware, where I'm testing stuff on both IE and Firefox. All those browser combinations work for me. On IE, switch off js debugger, because there is an js error on login page, but normally browser just ignore it. I'll try to fix that too. I'd even go and sniff a raw network traffic with Ethereal to track the problem down... Janko TimM wrote: > This is just plain wierd - so both of my browsers seem to exhibit > behavior that I can't login (although the Transcript indicates that I > have). > > I've tried it in VW and Dolphin and get the same problem with alpha5. > So could it be an operating system or any other software that I might > have running? > > I'm on XP SP2 on both computers - could that be a difference? > Different virus checkers (norton and avg - although can't imagine they > stop this). > Potentially security settings of the browser? I don't knowingly have > anything set to prevent cookies... > > I'm stumped. > > Tim > |
Janko, Tim,
> I'd even go and sniff a raw network traffic with Ethereal to track the > problem down... Seconded. I would have turned to it well before this. An immensely useful tool. If you (not meant personally, Tim) don't have it in your toolset, but do ever have to trouble-shoot or debug any kind of networked service, then you are just wasting your own time. Oodles of your own time... -- chris |
I'd forgotten all about Ethereal... yes will install it.
But you know what - have just installed Firebug and now it works against VW... (althought IE still acts funny by not fully loading the page). So there is something suspicious here. My home machine hasn't got firebug so I will try that test there. Tim |
Free forum by Nabble | Edit this page |