【问题标题】:GWT SpringRoo: Exception thrown while constructing Processor objectGWT SpringRoo:构造处理器对象时抛出异常
【发布时间】:2011-06-25 14:12:28
【问题描述】:

我正在构建一个简单的 SpringRoo + GWT 应用程序以部署到 GAE。我只是处于开发的初级阶段。我有一个使用 SpringRoo 生成的简单 index.jspx 页面,由 SpringMVC 控制器(也由 SpringRoo 生成)处理。我遇到了这个错误:构造处理器对象时抛出的异常:运行 mvn gwt:run 后的 org/datanucleus/exceptions/NucleusException。该错误作为编译错误发生。

所以我运行 mvn -X gwt:run 来调试代码执行。输出显示:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: Exception thrown while constructing Processor object: org/datanuc
leus/exceptions/NucleusException
[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:17.328s
[INFO] Finished at: Fri Feb 11 13:44:59 GMT 2011
[INFO] Final Memory: 12M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
1:compile (default-compile) on project opevel: Compilation failure
[ERROR] error: Exception thrown while constructing Processor object: org/datanuc
leus/exceptions/NucleusException
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on p
roject: Compilation failure
error: Exception thrown while constructing Processor object: org/datanucleus/exc
eptions/NucleusException

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecuti
ons(MojoExecutor.java:365)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:199)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
ure
error: Exception thrown while constructing Processor object: org/datanucleus/exc
eptions/NucleusException

        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:613)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:116)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

我查看了帮助站点,它说它与 maven 插件有关。有点谷歌搜索指向 maven datacleus 插件,但在任何地方都没有复制这种错误。我还看到一篇文章与缺乏对 jspx 的 GAE 支持有关。但我还没有部署到 gae。我只想在 GWT 开发模式下测试应用。

只是说,我还在学习 SpringRoo + GAE 架构。将不胜感激。

问候

【问题讨论】:

    标签: google-app-engine gwt jpa spring-roo


    【解决方案1】:

    检查此one。它说它有同样的问题,他们建议你可以尝试 2 个修复

    【讨论】:

      猜你喜欢
      • 2018-09-27
      • 1970-01-01
      • 2016-07-14
      • 1970-01-01
      • 1970-01-01
      • 2013-07-24
      • 2020-07-02
      • 2011-10-10
      • 1970-01-01
      相关资源
      最近更新 更多