开发者

Errors silently thrown during debug run?

开发者 https://www.devze.com 2023-03-27 18:49 出处:网络
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:

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 wr开发者_StackOverflow社区apped in a PrivilegedActionException as well, but since it doesn't actually throw the error, I can't get the stack trace.

0

精彩评论

暂无评论...
验证码 换一张
取 消