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 230840 - java.lang.NoClassDefFoundError: junit/framework/TestListener
Summary: java.lang.NoClassDefFoundError: junit/framework/TestListener
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2013-06-06 10:03 UTC by Martin Entlicher
Modified: 2013-06-26 06:50 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Build failure (12.00 KB, text/plain)
2013-06-06 10:03 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2013-06-06 10:03:14 UTC
Created attachment 135433 [details]
Build failure

Recently, there are many build failures caused by java.lang.NoClassDefFoundError: junit/framework/TestListener
Comment 1 Milos Kleint 2013-06-06 10:45:01 UTC
not project support not ant support related. is nb.org build related..

this is likely the place to start looking..
/hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/build.xml:1785: The following error occurred while executing this line:
/hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/templates/common.xml:671: The following error occurred while executing this line:
/hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/templates/common.xml:664: The following error occurred while executing this line:
/hudson/workdir/jobs/NB-Core-Build/workspace/nbbuild/templates/common.xml:698: The following error occurred while executing this line:

reassigning to www/builds, not sure if that's the right component.
Comment 2 pgebauer 2013-06-06 15:21:12 UTC
It seems to be fixed by somebody. The build #10305 is OK already.
http://deadlock.netbeans.org/hudson/job/NB-Core-Build/10305/
Comment 3 Martin Entlicher 2013-06-06 15:27:00 UTC
This defect is random.
I will reopen as soon as the issue reappears.
Comment 5 Jiri Skrivanek 2013-06-11 10:54:02 UTC
For me it is reproducible with steps:

- open web.struts project in IDE
- open "Functional Test Packages|org.netbeans.modules.web.struts|EndToEndTest.java"
- run test (Ctrl+F6)

Product Version: NetBeans IDE Dev (Build 201306102301)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b14
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 6 pgebauer 2013-06-12 15:18:17 UTC
This is not a stopper.
Comment 7 Jiri Skrivanek 2013-06-12 15:26:00 UTC
It might be related to very long classpath which exceeds command line limits. For me workaround is to comment out

<pathelement path="${module.run.classpath}"/>

in <path id="test.@{test.type}.run.cp"> definition in common.xml (line 511). I think that module.run.classpath is there only for historical backward compatibility as expressed in associated comment. We should remove it and fix test dependencies in project.xml where it is not already done.
I am cc-ing Jesse if he is willing to comment.
Comment 8 Antonin Nebuzelsky 2013-06-12 16:00:57 UTC
Isn't this also somewhat related to the recent upgrade to Ant 1.9?
Comment 11 Martin Entlicher 2013-06-20 07:37:27 UTC
The last three failures are in core.output2.-do-junit. This does not seem to be a coincidence.
It fails in Testsuite: org.netbeans.core.output2.IOExtensionsTest

When I run:
$ export PATH=.../apache-ant-1.9.1/bin:${PATH}
$ cd core-main/core.output2
$ ant test

I get timeout error in
Testcase: org.netbeans.core.output2.IOExtensionsTest:testWrappedScroll

This is a different failure that occurs in the hudson build, but it shows that there is really some problem in this test when run with ant-1.9.1.
The test pass fine with ant-1.8.1 for me.
Comment 12 Jaroslav Havlin 2013-06-20 15:21:54 UTC
> It fails in Testsuite: org.netbeans.core.output2.IOExtensionsTest
http://hg.netbeans.org/core-main/rev/ba9107e729d3
This could help, hopefully. We'll see.
Comment 13 Quality Engineering 2013-06-22 02:05:21 UTC
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ba9107e729d3
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #230840: Fix livelock in WrappedTextView
Comment 14 Jaroslav Havlin 2013-06-26 06:49:44 UTC
It seems to work fine now. Closing. Please reopen if IOExtensionsTest fails again. Thank you.