简体   繁体   English

Netbeans调试器在Class.java.getDeclaredConstructors处停止

[英]Netbeans debugger stops at Class.java.getDeclaredConstructors

I'm trying to debug web application in netbeans 7.2.1 with glassfish server 3.1. 我正在尝试使用glassfish服务器3.1在netbeans 7.2.1中调试Web应用程序。 Debugging worked fine previously. 调试以前工作正常。

But Netbeans debugger suddenly started to print this message: 但Netbeans调试器突然开始打印此消息:

Thread admin-thread-pool-4848(2) stopped at Class.java.getDeclaredConstructors0.

Debugger stops at that line as if there was a breakpoint there and also at this line: 调试器在该行停止,就像那里有一个断点一样,也在这一行:

 res = Reflection.filterFields(this, getDeclaredFields0(publicOnly));
 in method private Field[] privateGetDeclaredFields(boolean publicOnly)

If I press a button to continue it stops again at same point for several times and deploying continues for a long time until it fails with message 如果我按一个按钮继续,它会在同一点再次停止几次,并且部署会持续很长时间,直到它失败并显示消息

Deployment error: Deployment timeout has exceeded.

I know it's not much information, but maybe someone has a hint what it could be related to? 我知道这不是太多的信息,但也许有人暗示它可能与什么有关?

I had the exact same problem using Netbeans8, Glasshfish 4.0 and JavaEE JAX-RS. 我使用Netbeans8,Glasshfish 4.0和JavaEE JAX-RS时遇到了完全相同的问题。 The problem was a breakpoint placed inside a lib that was part of a previous project I was working on. 问题是在lib中放置了一个断点,它是我正在处理的上一个项目的一部分。

Solved it by clearing/deleting all breakpoints. 通过清除/删除所有断点解决了这个问题。 To do so, on the Netbeans top bar: window -> debugging -> breakpoints -> and then disable them or right click and delete all of them. 为此,在Netbeans顶部栏:窗口 - >调试 - >断点 - >然后禁用它们或右键单击并删除所有这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java ProcessBuilder调试器Netbeans - Java ProcessBuilder Debugger Netbeans Java反射调用方法“ getDeclaredConstructors” - Java reflection calling method “getDeclaredConstructors” java.lang.NoClassDefFoundError:java.lang.Class.getDeclaredConstructors0上的org / apache / commons / fileupload / FileItemFactory(本机方法) - java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory at java.lang.Class.getDeclaredConstructors0(Native Method) Class API中getDeclaredConstructors和getConstructors有什么区别? - What is the difference between getDeclaredConstructors and getConstructors in the Class API? getDeclaredConstructors()返回java.lang.NullPointerException - getDeclaredConstructors() return java.lang.NullPointerException Netbeans Java Debugger声称((true && false)== true) - Netbeans Java Debugger claims that ((true && false) == true) Eclipse Java调试器突然停止工作? - Eclipse java debugger suddenly stops working? Netbeans在调试器中没有拾取Java类 - Netbeans doesnt pick up Java classes in debugger netbeans 8.2,Windows 10 上的 java 调试器错误 - netbeans 8.2, java debugger error on windows 10 NetBeans 7.1:在Java调试器中没有当前上下文悬停 - NetBeans 7.1: No current context on hover over in Java debugger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM