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 86730 - "Project view/XTest/Run unit tests" tasklist/usertasks fails with strange NoClassDefFoundError exceptions although "Project/Run Unit Tests" succeeds
Summary: "Project view/XTest/Run unit tests" tasklist/usertasks fails with strange NoC...
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-07 13:08 UTC by Tim Lebedkov
Modified: 2006-11-08 08:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2006-10-07 13:08:02 UTC
java.lang.NoClassDefFoundError:
org/netbeans/modules/tasklist/usertasks/model/Duration
	at
org.netbeans.modules.tasklist.usertasks.model.UserTaskTest.testSplitDuration(UserTaskTest.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:173)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:124)
	at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:60)
Comment 1 pzajac 2006-10-09 09:06:31 UTC
Do you have correctly set xtest configuration for module? 
test/cfg-unit.xml
test/build-unit.xml
Comment 2 Tim Lebedkov 2006-10-09 11:34:37 UTC
I think yes. Just look in tasklist/usertasks/tests!
Comment 3 Jiri Skrivanek 2006-10-09 11:57:24 UTC
I guess something has changed in build 200610051800. Probably something in
parsing of project.xml but I am not sure yet. Now a module jar is not on
classpath for any module which uses default executor from xtest-unit.xml. I will
try to fix it.
Comment 4 Jiri Skrivanek 2006-10-10 14:23:06 UTC
Fixed in trunk. Path didn't includes module jar. Now if property
test.unit.run.cp not defined in test.properties, set it from test.unit.run.cp
path id.

/cvs/nbbuild/templates/xtest-unit.xml,v  <--  xtest-unit.xml
new revision: 1.22; previous revision: 1.21
Comment 5 Tim Lebedkov 2006-11-08 08:36:25 UTC
ok