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 90762 - Failure of J2SEPersistenceProviderTest
Summary: Failure of J2SEPersistenceProviderTest
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2006-12-07 14:43 UTC by Milan Kubec
Modified: 2007-10-04 14:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace and logging (3.17 KB, text/plain)
2006-12-18 07:38 UTC, Milan Kubec
Details
Fail log showing the problem (17.00 KB, text/plain)
2007-10-04 14:47 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2006-12-07 14:43:56 UTC
Windows XP, build 200612041900, JDK 1.5.0_09
J2SEPersistenceProviderTest.testPersistenceScopes test failed.

junit.framework.AssertionFailedError: expected:<2> but was:<1>
...
org.netbeans.modules.java.j2seproject.J2SEPersistenceProviderTest.testPersistenceScopes(J2SEPersistenceProviderTest.java:120)
Comment 1 Andrei Badea 2006-12-09 10:19:47 UTC
Only occured once AFAICT.
Comment 2 Andrei Badea 2006-12-09 12:46:30 UTC
I have no idea what causes this, so just adding some logging (also to the rest
of implementations of PersistenceScopesProvider).

Checking in
j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java;
/cvs/j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java,v
 <--  PersistenceScopesHelper.java
new revision: 1.3; previous revision: 1.2
done
Checking in
java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEPersistenceProviderTest.java;
/cvs/java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEPersistenceProviderTest.java,v
 <--  J2SEPersistenceProviderTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in
web/project/test/unit/src/org/netbeans/modules/web/project/WebPersistenceProviderTest.java;
/cvs/web/project/test/unit/src/org/netbeans/modules/web/project/WebPersistenceProviderTest.java,v
 <--  WebPersistenceProviderTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in
j2ee/ejbjarproject/test/unit/src/org/netbeans/modules/j2ee/ejbjarproject/EjbJarPersistenceProviderTest.java;/cvs/j2ee/ejbjarproject/test/unit/src/org/netbeans/modules/j2ee/ejbjarproject/EjbJarPersistenceProviderTest.java,v
 <--  EjbJarPersistenceProviderTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in
j2ee/clientproject/test/unit/src/org/netbeans/modules/j2ee/clientproject/AppClientPersistenceProviderTest.java;
/cvs/j2ee/clientproject/test/unit/src/org/netbeans/modules/j2ee/clientproject/AppClientPersistenceProviderTest.java,v
 <--  AppClientPersistenceProviderTest.java
new revision: 1.3; previous revision: 1.2
done
Comment 3 Andrei Badea 2006-12-09 12:47:51 UTC
After checking that the logging messages are present in the next test run I will
close this issue in order to be notified of the next fail.
Comment 4 Andrei Badea 2006-12-13 08:39:38 UTC
Logging is there, so closing.
Comment 5 Milan Kubec 2006-12-18 07:38:13 UTC
Reopening as the failure appeared again. Will attach log messages.
Comment 6 Milan Kubec 2006-12-18 07:38:55 UTC
Created attachment 36722 [details]
exc stack trace and logging
Comment 7 Jiri Prox 2007-09-17 20:35:09 UTC
Obsolete milestone, please reevaluate
Comment 8 Andrei Badea 2007-09-27 15:00:09 UTC
Still no clue, so just added more logging.

Checking in src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java;
/cvs/j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java,v  <-- 
PersistenceScopesHelper.java
new revision: 1.4; previous revision: 1.3
done
Comment 9 Andrei Badea 2007-10-04 14:47:53 UTC
Created attachment 50184 [details]
Fail log showing the problem
Comment 10 Andrei Badea 2007-10-04 14:54:48 UTC
Fixed. I hope.

Checking in j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java;
/cvs/j2ee/persistenceapi/src/org/netbeans/modules/j2ee/persistence/spi/support/PersistenceScopesHelper.java,v  <-- 
PersistenceScopesHelper.java
new revision: 1.6; previous revision: 1.5
done
Checking in java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEPersistenceProviderTest.java;
/cvs/java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEPersistenceProviderTest.java,v  <-- 
J2SEPersistenceProviderTest.java
new revision: 1.7; previous revision: 1.6
done