[mayaa-user:229] Re: グローバル関数について

suga ko.suga @ gmail.com
2006年 7月 14日 (金) 05:48:07 JST


suga です。

On 7/14/06, 松本 <kingyo @ neko-system.com> wrote:
> [mayaa-user:104]に記載されているような感じで、
> 例外用のmayaaファイルを用意してフォワードを行いたいたく、
> mayaa-sample-1.1.0-beta5.zipのコンテキストルートに
> org.seasar.mayaa.impl.engine.PageNotFoundException.html
> org.seasar.mayaa.impl.engine.PageNotFoundException.mayaa
> 上記2ファイルを配置して、色々と試してみてはいるのですが、
> フォワード出来ずに困っています。

すみません、これは Mayaa のバグのため動作しません。
次のバージョンで対応します。
# 長く出せていませんが……。


EngineImpl の handleError を下記のように変更すれば対応になります。
お急ぎの場合は直接変更するか、リビジョン2554 を取得してご利用ください。

    public void handleError(Throwable t, boolean pageFlush) {
        t = removeWrapperRuntimeException(t);
        ServiceCycle cycle = CycleUtil.getServiceCycle();
        try {
            cycle.setHandledError(t);
            getErrorHandler().doErrorHandle(t, pageFlush);
        } catch (RenderingTerminated ignore) {
            // do nothing.
        } catch (PageForwarded ignore) {
            // do nothing.
        } catch (Throwable internal) {
            if (LOG.isFatalEnabled()) {
                String fatalMsg = StringUtil.getMessage(
                        EngineImpl.class, 0, internal.getMessage());
                LOG.fatal(fatalMsg, internal);
            }
            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            }
            throw new RuntimeException(t);
        } finally {
            cycle.setHandledError(null);
        }
    }


-- 
suga ( ko.suga @ gmail.com )


mayaa-user メーリングリストの案内