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.

Bug 228138 - java.lang.VerifyError: (class: controller/AdminServlet, method: <init> signature: ()V) Constructor must call super() or this()
Summary: java.lang.VerifyError: (class: controller/AdminServlet, method: <init> signat...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 230497 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-01 20:08 UTC by David Konecny
Modified: 2013-06-02 01:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
glassfish log (4.61 KB, text/plain)
2013-04-01 20:08 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2013-04-01 20:08:28 UTC
Created attachment 133250 [details]
glassfish log

Open Server project from "hg clone https://bitbucket.org/dkonecny/affable-bean" and try to Run it (you will need a GlassFish server, eg. 3.1.2.2). When project is deployed and GlassFish is trying to start it an exception gets thrown:

java.lang.VerifyError: (class: controller/ControllerServlet, method: <init> signature: ()V) Constructor must call super() or this()
	at java.lang.Class.getDeclaredConstructors0(Native Method)

I can say I had run this project hundred times before and I have never seen this problem before. Googling it I found for example http://stackoverflow.com/questions/6560988/method-must-call-super-error-in-netbeans which shows similar type of problem happening in July 2011 in plain J2SE project type (or this one from 2010: http://stackoverflow.com/questions/3019394/java-lang-verifyerror-on-method-that-worked-a-minute-ago). If I switch off Compile on Save the problem goes away.

Product Version: NetBeans IDE Dev (Build 20130402-a06553711686)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.2.0-38-generic running on amd64; UTF-8; en_NZ (nb)
User directory: /home/dev/main/nbbuild/testuserdir
Cache directory: /home/dev/main/nbbuild/testuserdir/var/cache
Comment 1 Jan Lahoda 2013-05-30 12:13:36 UTC
*** Bug 230497 has been marked as a duplicate of this bug. ***
Comment 2 Jan Lahoda 2013-05-30 12:13:59 UTC
See bug#230497 for a simpler testcase.
Comment 4 Quality Engineering 2013-06-02 01:08:45 UTC
Integrated into 'main-golden', will be available in build *201306012301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4ee470edd776
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #221577, #230332, and #228138 fixed.