This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I just had this problem: "java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract". I can't say what triggered it besides just Build and Compile and Running my code. I've had it before but was able to get around it somehow. However this time I couldn't get around it at all. Build and Compile appeared to work fine one time but then the thing wouldn't work when I hit the Run button and threw all kinds of exceptions. Sometimes Build and Compile fails because it can't delete a particular JAR file and maybe that leads to this. The one it stuck on after a while was (Tomcat Log): SEVERE: Servlet.service() for servlet jsp threw exception java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract ... Earlier it was complaining about my code such as: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /index.jsp(17,0) The value for the useBean class attribute caseDataUtil.caseDataHelper is invalid. at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) or: SEVERE: Servlet.service() for servlet jsp threw exception java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract at caseDataUtil.caseDataHelper.<init>(caseDataHelper.java:59) at org.apache.jsp.index_jsp._jspService(index_jsp.java:84) ... There wasn't anything wrong with my code so I'd say this definitely isn't proper behavior. I deleted the build and dist directories with no change as well, even though it did regenerate them. Luckily Googling around I found one suggestion to disable the "Deploy on Save" checkbox in my project's Properties/Run screen and that worked. related bugs? 163278, 178597
Yes I would guess this is related to Deploy on Save. Also I am not sure this is correctly assigned to the JSP category, looks like the problem happens even without any JSP pages, with just Java code, right? > related bugs? 163278, 178597 I think the first one is not related, but bug 178597 is probably related.
Yes feel free to move it. I don't know where it should go. I don't see any choice for compiler and such.
moving to serverplugins/infrastructure
Compile on save, not deploy on save....
Created attachment 106559 [details] Deploy on save checkbox in Project Properties It really says Deploy on Save on mine. Attached screenshot.
Do you have a reproducible test case - a simple project with exact steps to reproduce or could you share your project with us?
Also could you please attach content of the NB cache (located located in nb_user_dir/var/cache) or at least the content of the signature file of the affected class (located in nb_user_dir/var/cache/index/s*/java/*/classes)
*** This bug has been marked as a duplicate of bug 182009 ***
verified duplicate - closing