1

我正在dwr3使用spring mvc. 当应用程序部署在tomcat(version 6). 但是在 glassfish(3.1 版)中运行相同的应用程序时出现以下错误。非常感谢任何帮助。

我得到的错误;

INFO: [ERROR] [Thread-50 05:00:02] (GrizzlyContinuationSleeper.java:wakeUp:167) Exception resuming continuation: 
java.lang.NullPointerException
    at org.directwebremoting.util.Continuation.resume(Continuation.java:108)
    at org.directwebremoting.server.grizzly.GrizzlyContinuationSleeper.wakeUp(GrizzlyContinuationSleeper.java:157)
    at org.directwebremoting.impl.OutputAlarm$AlarmScriptConduit$1.run(OutputAlarm.java:103)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

INFO: [ERROR] [Thread-50 05:00:02] (GrizzlyContinuationSleeper.java:wakeUp:167) Exception resuming continuation: 
java.lang.NullPointerException
    at org.directwebremoting.util.Continuation.resume(Continuation.java:108)
    at org.directwebremoting.server.grizzly.GrizzlyContinuationSleeper.wakeUp(GrizzlyContinuationSleeper.java:157)
    at org.directwebremoting.impl.OutputAlarm$AlarmScriptConduit$1.run(OutputAlarm.java:103)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
4

1 回答 1

1

将此添加到 POM。这应该可以解决问题

<dependency>
  <groupId>com.sun.grizzly</groupId>
  <artifactId>grizzly-continuation</artifactId>
 <version>1.9.0-RC1</version>
</dependency>

后面的 jar 文件包含使用 Grizzly 版本检测的 Grizzly 类,并将使 DWR 适用于所有 GlassFish 版本(9.1、9.1 ur1、Sailfin、OpenESB)。

于 2012-08-22T11:33:40.910 回答