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 201021 - NoClassDefFoundError: org/netbeans/modules/web/common/api/LexerUtils
Summary: NoClassDefFoundError: org/netbeans/modules/web/common/api/LexerUtils
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Editing infrastructure (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 200551 201040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-16 21:29 UTC by kaareal
Modified: 2011-12-05 14:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180348


Attachments
stacktrace (4.52 KB, text/plain)
2011-08-16 21:29 UTC, kaareal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaareal 2011-08-16 21:29:01 UTC
This issue was reported manually by kaareal.
It already has 3 duplicates 


Build: NetBeans IDE Dev (Build nbms-and-javadoc-7542-on-20110718)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511
OS: Mac OS X

Stacktrace: 
java.lang.NoClassDefFoundError: org/netbeans/modules/web/common/api/LexerUtils
   at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.indexOfOpenTag(MarkupAbstractIndenter.java:820)
   at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.removeFullyProcessedTags(MarkupAbstractIndenter.java:842)
   at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.getIndentFromState(MarkupAbstractIndenter.java:360)
   at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.getLineIndent(MarkupAbstractIndenter.java:407)
   at org.netbeans.modules.web.indent.api.support.AbstractIndenter.processLanguage(AbstractIndenter.java:1190)
   at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:345)
Comment 1 kaareal 2011-08-16 21:29:04 UTC
Created attachment 110025 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-09-02 13:44:34 UTC
The exception report 524145 has following modules:

	org.netbeans.modules.web.common [1.13 201106200600]
	org.netbeans.modules.web.indent [1.0 nbms-and-javadoc-7601-on-20110728]

$ hg log -r 194058
changeset:   194058:b9d56631184f
parent:      193969:da029cd9e62e
user:        Antonin Nebuzelsky <anebuzelsky@netbeans.org>
date:        Fri May 13 20:40:02 2011 +0200
summary:     Incrementing spec. versions in trunk after 7.0.1.

This revision release version 1.13 of web.common. web.indent module has been introduced after that during work on 7.1. To make it work, you had to add friends:

$ hg diff -r b9d56631184f:default web.common/nbproject/project.xml 
diff -r b9d56631184f -r 02f13927a115 web.common/nbproject/project.xml
--- a/web.common/nbproject/project.xml  Fri May 13 20:40:02 2011 +0200
+++ b/web.common/nbproject/project.xml  Fri Sep 02 12:04:34 2011 +0200
@@ -153,19 +153,21 @@
             <friend-packages>
+                <friend>org.netbeans.modules.web.flyingsaucer</friend>
+                <friend>org.netbeans.modules.web.indent</friend>
+                <friend>org.netbeans.modules.web.jsf</friend>
         
Remember everytime you add new friend, you are changing API of your module and you need to version it properly.
Comment 3 Jaroslav Tulach 2011-09-02 13:53:02 UTC
*** Bug 201040 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2011-09-02 13:53:24 UTC
*** Bug 200551 has been marked as a duplicate of this bug. ***
Comment 5 Marek Fukala 2011-09-20 07:27:19 UTC
fixed.

web-main#6c3360aeb25a - the web.indent part
web-main#d0a1b7017266 - the web.common part

Thanks Jardo for the problem evaluation.
Comment 6 Marek Fukala 2011-09-20 07:36:11 UTC
and the web.flyinsaucer in contrib#bea597dd217e is fixed as well
Comment 7 Quality Engineering 2011-09-21 08:06:28 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/6c3360aeb25a
User: Marek Fukala <mfukala@netbeans.org>
Log: #201021 - NoClassDefFoundError: org/netbeans/modules/web/common/api/LexerUtils