paoding与jetty下报错

在用paoding-rose时,用jetty运行时报错,tomcat下正常.
可以paoding-rose几乎没有更新和维护了,先标记一下,看看什么时候调一下.


java.lang.NullPointerException
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:210)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
	at net.paoding.rose.web.portal.impl.WindowTask.run(WindowTask.java:81)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)


用的jetty版本:

<groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.26</version>


paoding的版本, 大概就这一个版本吧?

<dependency>
            <groupId>paoding-rose</groupId>
            <artifactId>paoding-rose</artifactId>
            <version>1.0.1</version>
        </dependency>


如果真的没有人维护真的想fork一个新的版本.


http://code.google.com/p/paoding是一个同名的分词项目,不是这个


改为jetty 7

<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>7.6.5.v20120716</version>

报这样的错:

java.lang.NullPointerException
	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:214)
	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
	at net.paoding.rose.web.portal.impl.WindowTask.run(WindowTask.java:81)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)


改为jetty 8.1.5

java.lang.NullPointerException
	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:197)
	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:98)
	at net.paoding.rose.web.portal.impl.WindowTask.run(WindowTask.java:81)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)


            final RequestDispatcher rd = request.getRequestDispatcher(windowPath);
            request.setAttribute("$$paoding-rose-portal.window", window);
            if (this.response.isCommitted()) {
                if (logger.isDebugEnabled()) {
                    logger.debug("onWindowTimeout: response has committed. [" + window.getName()
                            + "]@" + window.getContainer());
                }
                window.getContainer().onWindowTimeout(window);
                return;
            }
            rd.forward(request, this.response);  //这里是81行

            // done!
            window.getContainer().onWindowDone(window);
        } catch (Throwable e) {
            logger.error("", e);
            window.setThrowable(e);
            window.getContainer().onWindowError(window);
        } finally {


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值