在调试运行期间默默抛出错误?
我在 Maven 和 Eclipse 中构建了一个非常简单的 Spring 应用程序。一切都工作正常,但是当我调试应用程序时,我遇到了一些实际上从未抛出的异常:
java.io.FileNotFoundException: /home/rfkrocktk/.m2/repository/org/springframework/spring-context/3.0.1.RELEASE/org.springframework.context.jar
我在调用脚本中引用此 JAR:
-javaagent:/home/rfkrocktk/.m2/repository/org/springframework/spring-instrument/3.0.1.RELEASE/spring-instrument-3.0.1.RELEASE.jar
奇怪的是,一切都正常工作。如果我的启动脚本中没有这个,加载时编织将无法工作。有了它,一切都会按计划进行。我在这里缺少什么吗?我认为 FileNotFoundException
也包含在 PrivilegedActionException
中,但由于它实际上并没有抛出错误,所以我无法获取堆栈跟踪。
I've got a pretty simple Spring application building in Maven and Eclipse. Everything is working fine, but when I debug the application, I hit a few exceptions that are never actually thrown:
java.io.FileNotFoundException: /home/rfkrocktk/.m2/repository/org/springframework/spring-context/3.0.1.RELEASE/org.springframework.context.jar
I'm referencing this JAR in my invocation script with:
-javaagent:/home/rfkrocktk/.m2/repository/org/springframework/spring-instrument/3.0.1.RELEASE/spring-instrument-3.0.1.RELEASE.jar
The weird thing is, everything works. Without this in my startup script, load-time weaving doesn't work. With it, everything works as planned. Is there something I'm missing here? I think the FileNotFoundException
is wrapped in a PrivilegedActionException
as well, but since it doesn't actually throw the error, I can't get the stack trace.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论