404 Not Found:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

404 Not Found:

Bèrto ëd Sèra
Hi!

I'm a bit puzzled, possibly I missed a serious change between
releases. If I start the Iliad demo it works fine, I can either use it
directly or call it via Apache proxy and both work fine. However, when
I call my app all I get is a big 404.

path appears to be allright, the same code from the same rep works
nice on iliad 0.6.0 on my laptop (I just double checked).

Berto


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Nicolas Petton
Le mardi 10 novembre 2009 à 13:06 +0200, Bèrto ëd Sèra a écrit :
> Hi!
>
> I'm a bit puzzled, possibly I missed a serious change between
> releases. If I start the Iliad demo it works fine, I can either use it
> directly or call it via Apache proxy and both work fine. However, when
> I call my app all I get is a big 404.

I'm a bit puzzled too. If the demo works, then your app should work
too...

if you go to <a href="http://localhost:xxxx/browse">http://localhost:xxxx/browse do you see a link to your app?

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Nicolas Petton
In reply to this post by Bèrto ëd Sèra
Just a guess, maybe you kept your controller methods in your app in the
'views' protocol? If so, you should move them to the 'controllers'
method category.

We made this change because those methods happen to be more controller
methods than anything else, and usually dispatch requests, using routes,
hash, etc to widgets.

Also, do you have an #index method in your application?

Cheers!

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Nicolas Petton
Le mardi 10 novembre 2009 à 13:17 +0200, Bèrto ëd Sèra a écrit :
> that's probably what it is :) All I have is a "/ambaradan" path... it
> worked in 0.6.0, it's too little to work here :) I'll check it out and
> let you know :)


Great, I forward it to the list, so it can help others too, I hope you
don't mind.

> merci :)

De rien :)

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fwd: 404 Not Found:

Bèrto ëd Sèra
In reply to this post by Nicolas Petton
Sorry all, I keep hitting reply instead of reply-to-all

---------- Forwarded message ----------
From: Bèrto ëd Sèra <[hidden email]>
Date: 2009/11/10
Subject: Re: [Help-smalltalk] 404 Not Found:
To: Nicolas Petton <[hidden email]>


MUUUUUUCH better :)))) Now it does something :))

I seem to miss another change:

Iliad.DivElement(Object)>>doesNotUnderstand: #anchor (AnsiExcept.st:1565)

Berto


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Bèrto ëd Sèra
In reply to this post by Nicolas Petton
In short, I have a small icon sensitive icon in front of messages
(buttons included) that need localization. It's done by a small class
that reads

  Object subclass: LocalizationStatus [
    <comment: 'version 0.6.0' >

    silent [
      <category: 'building'>
      ^[:e | nil ]
    ]

    missing [
      <category: 'building'>
      ^[:e |
          | access |
          access := e anchor.
          access onMouseOver: 'javascript:toggleLayer("translation-image");'.
          access image source: '/images/translate_me.png']
    ]

    fuzzy [
      <category: 'building'>
      ^[:e |
          | access |
          access := e anchor.
          access onMouseOver: 'javascript:toggleLayer("localizer");'.
          access image source: '/images/check_me.png']
    ]

  ]

====================

Now it looks like anchor has changed something, because it won't work anymore...

That's the full story:

Internal Error
The program sent a message which was not understood by the receiver.
did not understand #anchor

An instance of MessageNotUnderstood
  exception: a CoreException
  arguments: ()
  tag: an Object
  messageText: 'did not understand #anchor'
  resumeBlock: a BlockClosure
  onDoBlock: a BlockClosure
  handlerBlock: a BlockClosure
  context: BlockClosure>>on:do: (BlkClosure.st:192)
  isNested: nil
  previousState: 0
  creator: a DivElement
  message: anchor
  receiver: a DivElement

MessageNotUnderstood(Signal)>>activateHandler: (ExcHandling.st:719)
MessageNotUnderstood(Exception)>>signal (AnsiExcept.st:216)
Iliad.DivElement(Object)>>doesNotUnderstand: #anchor (AnsiExcept.st:1565)
optimized [] in Ambaradan.LocalizationStatus>>missing
(Iliad-Localization.star#VFS.ZipFile/Widgets/LocalizationStatus.st:4)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
[] in Ambaradan.WidgetLogin(Ambaradan.LocalizedWidget)>>localize:
(Iliad-Localization.star#VFS.ZipFile/LocalizedWidget.st:114)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
optimized [] in Ambaradan.WidgetLogin>>contents
(Ambaradan-Application.star#VFS.ZipFile/Widgets/WidgetLogin.st:58)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
Ambaradan.WidgetLogin(Iliad.Widget)>>buildContents
(Iliad-Core.star#VFS.ZipFile/Buildables/Widget.st:130)
[] in Ambaradan.WidgetLogin(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:72)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.CurrentActionRegistry class(Iliad.DynamicVariable
class)>>use:during:
(Iliad-Core.star#VFS.ZipFile/Utilities/DynamicVariable.st:52)
Ambaradan.WidgetLogin(Iliad.Buildable)>>withActionRegistry:
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:107)
Ambaradan.WidgetLogin(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:71)
Ambaradan.WidgetLogin(Iliad.Buildable)>>buildOn:
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:85)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
optimized [] in Ambaradan.PageMain>>leftColumn
(Ambaradan-Application.star#VFS.ZipFile/Widgets/PageMain.st:118)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
optimized [] in Ambaradan.PageMain>>mainContent
(Ambaradan-Application.star#VFS.ZipFile/Widgets/PageMain.st:102)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
optimized [] in Ambaradan.PageMain>>contents
(Ambaradan-Application.star#VFS.ZipFile/Widgets/PageMain.st:69)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
Ambaradan.PageMain(Iliad.Widget)>>buildContents
(Iliad-Core.star#VFS.ZipFile/Buildables/Widget.st:130)
[] in Ambaradan.PageMain(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:72)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.CurrentActionRegistry class(Iliad.DynamicVariable
class)>>use:during:
(Iliad-Core.star#VFS.ZipFile/Utilities/DynamicVariable.st:52)
Ambaradan.PageMain(Iliad.Buildable)>>withActionRegistry:
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:107)
Ambaradan.PageMain(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:71)
optimized [] in Ambaradan.AmbaradanApplication>>index
(Ambaradan-Application.star#VFS.ZipFile/Application/AmbaradanApplication.st:2)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
optimized [] in Iliad.Application>>contents
(Iliad-Core.star#VFS.ZipFile/Buildables/Application.st:200)
BlockClosure>>buildOn: (Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:58)
Iliad.DivElement(Iliad.Element)>>build:
(Iliad-Core.star#VFS.ZipFile/Elements/Element.st:136)
Ambaradan.AmbaradanApplication(Iliad.Widget)>>buildContents
(Iliad-Core.star#VFS.ZipFile/Buildables/Widget.st:130)
[] in Ambaradan.AmbaradanApplication(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:72)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.CurrentActionRegistry class(Iliad.DynamicVariable
class)>>use:during:
(Iliad-Core.star#VFS.ZipFile/Utilities/DynamicVariable.st:52)
Ambaradan.AmbaradanApplication(Iliad.Buildable)>>withActionRegistry:
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:107)
Ambaradan.AmbaradanApplication(Iliad.Buildable)>>build
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:71)
Ambaradan.AmbaradanApplication(Iliad.Buildable)>>buildOn:
(Iliad-Core.star#VFS.ZipFile/Buildables/Buildable.st:85)
Ambaradan.AmbaradanApplication(Iliad.Application)>>respondOn:
(Iliad-Core.star#VFS.ZipFile/Buildables/Application.st:329)
Ambaradan.AmbaradanApplication(Object)>>asResponse
(Iliad-Core.star#VFS.ZipFile/Buildables/Extensions.st:45)
Iliad.ApplicationHandler>>newResponse
(Iliad-Core.star#VFS.ZipFile/RequestHandlers/ApplicationHandler.st:104)
Iliad.ApplicationHandler(Iliad.RequestHandler)>>respond:
(Iliad-Core.star#VFS.ZipFile/RequestHandlers/RequestHandler.st:60)
Iliad.ApplicationHandler>>produceResponse
(Iliad-Core.star#VFS.ZipFile/RequestHandlers/ApplicationHandler.st:80)
Iliad.ApplicationHandler>>handleRequest
(Iliad-Core.star#VFS.ZipFile/RequestHandlers/ApplicationHandler.st:75)
optimized [] in Iliad.Dispatcher>>dispatch:using:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:84)
Ambaradan.AmbaradanApplication(Object)>>ifNil:ifNotNil: (Object.st:146)
[] in Iliad.Dispatcher>>dispatch:using:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:84)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.Dispatcher>>withDispatchErrorHandling:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:101)
Iliad.Dispatcher>>dispatch:using:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:78)
[] in Iliad.Dispatcher>>dispatch:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:73)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.CurrentContext class(Iliad.DynamicVariable class)>>use:during:
(Iliad-Core.star#VFS.ZipFile/Utilities/DynamicVariable.st:52)
[] in Iliad.Dispatcher>>dispatch:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:71)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.Dispatcher>>withErrorHandling:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:111)
Iliad.Dispatcher>>dispatch:
(Iliad-Core.star#VFS.ZipFile/Dispatching/Dispatcher.st:68)
[] in Iliad.Site>>answerTo: (Iliad-Swazoo.star#VFS.ZipFile/Site.st:69)
BlockClosure>>on:do: (BlkClosure.st:192)
Iliad.Site>>answerTo: (Iliad-Swazoo.star#VFS.ZipFile/Site.st:71)
Iliad.Site>>helpResolve: (Iliad-Swazoo.star#VFS.ZipFile/Site.st:218)
Swazoo.URIResolution>>visitResource: (Swazoo.star#VFS.ZipFile/HTTP.st:1704)
[] in Swazoo.URIResolution>>visitChildrenOf:advancing:
(Swazoo.star#VFS.ZipFile/HTTP.st:1697)
OrderedCollection(SequenceableCollection)>>do: (SeqCollect.st:822)
Swazoo.URIResolution>>visitChildrenOf:advancing:
(Swazoo.star#VFS.ZipFile/HTTP.st:1699)
Swazoo.URIResolution>>resolveTransparentComposite:
(Swazoo.star#VFS.ZipFile/HTTP.st:1645)
Swazoo.URIResolution>>resolveServerRoot: (Swazoo.star#VFS.ZipFile/HTTP.st:1634)
Swazoo.ServerRootComposite>>helpResolve: (Swazoo.star#VFS.ZipFile/HTTP.st:613)
Swazoo.URIResolution>>visitResource: (Swazoo.star#VFS.ZipFile/HTTP.st:1704)
Swazoo.URIResolution class>>resolveRequest:startingAt:
(Swazoo.star#VFS.ZipFile/HTTP.st:1559)
Swazoo.HTTPServer>>answerTo: (Swazoo.star#VFS.ZipFile/HTTP.st:310)
Swazoo.HTTPConnection>>produceResponseFor: (Swazoo.star#VFS.ZipFile/HTTP.st:156)
Swazoo.HTTPConnection>>getAndDispatchMessages
(Swazoo.star#VFS.ZipFile/HTTP.st:69)
optimized [] in Swazoo.HTTPConnection>>interact
(Swazoo.star#VFS.ZipFile/HTTP.st:86)
[] in BlockClosure>>ifCurtailed: (BlkClosure.st:287)
BlockClosure>>ensure: (BlkClosure.st:269)
BlockClosure>>ifCurtailed: (BlkClosure.st:289)
optimized [] in Swazoo.HTTPConnection>>interact
(Swazoo.star#VFS.ZipFile/HTTP.st:88)
BlockClosure>>on:do: (BlkClosure.st:192)
optimized [] in Swazoo.HTTPConnection>>interact
(Swazoo.star#VFS.ZipFile/HTTP.st:90)
[] in Process>>onBlock:at:suspend: (Process.st:384)
BlockClosure>>on:do: (BlkClosure.st:192)
[] in Process>>onBlock:at:suspend: (Process.st:387)
BlockClosure>>ensure: (BlkClosure.st:269)
[] in Process>>onBlock:at:suspend: (Process.st:393)
[] in BlockClosure>>asContext: (BlkClosure.st:178)
BlockContext class>>fromClosure:parent: (BlkContext.st:68)


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: 404 Not Found:

Nicolas Petton
In reply to this post by Bèrto ëd Sèra
Le mardi 10 novembre 2009 à 13:26 +0200, Bèrto ëd Sèra a écrit :

> Sorry all, I keep hitting reply instead of reply-to-all
>
> ---------- Forwarded message ----------
> From: Bèrto ëd Sèra <[hidden email]>
> Date: 2009/11/10
> Subject: Re: [Help-smalltalk] 404 Not Found:
> To: Nicolas Petton <[hidden email]>
>
>
> MUUUUUUCH better :)))) Now it does something :))
>
> I seem to miss another change:
>
> Iliad.DivElement(Object)>>doesNotUnderstand: #anchor (AnsiExcept.st:1565)

Yes, we changed the XHTML element api a bit.

In Iliad 0.6, the api mixed XHTML and non XHTML tag names. For instance
we had #div for <div>...</div>, but #anchor for <a>...</a>.

So we decided to improve that by using html tag names and attributes
everywhere. This is also true for the RSS element hierarhy.

The idea is that users won't have surprises with inconsistent api, and
they should really have to learn how it works internally since it
follows xhtml names, they just write their html in smalltalk:

div a href: 'http://www.google.fr'.

Now, While I like it a lot and think it's a big improvement, I'm not
sure people agree...

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Nicolas Petton
In reply to this post by Bèrto ëd Sèra
Le mardi 10 novembre 2009 à 13:37 +0200, Bèrto ëd Sèra a écrit :
>

It would be something like this now:


    missing [
      <category: 'building'>
      ^[:e |
          | access |
          access := e a.
          access onMouseOver:
'javascript:toggleLayer("translation-image");'.
          access img src: '/images/translate_me.png']
    ]

or:

      ^[:e |
          e a build: [:a |
                a onMouseOver: 'javascript:...'.
                a img src: 'url']]

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Nicolas Petton
Also, you can use Iliad 0.7.0 where the old api is still there under the
'deprecated' category, so you can slowly migrate your application to
0.7.x branches without breaking everything.

Cheers!

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: 404 Not Found:

Nicolas Petton
In reply to this post by Nicolas Petton
Le mardi 10 novembre 2009 à 12:38 +0100, Nicolas Petton a écrit :
> The idea is that users won't have surprises with inconsistent api, and
> they should really have to learn how it works internally since it
> follows xhtml names, they just write their html in smalltalk:

Of course, I meant *shouldn't really have to* :p

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 404 Not Found:

Bèrto ëd Sèra
In reply to this post by Nicolas Petton
Mais non, pa des problèmes... I can grep for them all as soon as I get
a notUnderstood. It's not much stuff and the background logics is
crystal clear. I agree with you, this makes much more sense. It may
look less "like a message", but at least all you already know is
immediately usable.

Merci bien :)
Berto

2009/11/10 Nicolas Petton <[hidden email]>:
> Also, you can use Iliad 0.7.0 where the old api is still there under the
> 'deprecated' category, so you can slowly migrate your application to
> 0.7.x branches without breaking everything.
>
> Cheers!
>
> Nico
>


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk