Community
Participate
Working Groups
Build ID: tptp45 i6 Steps To Reproduce: 1.Set up Juint test enviroment which followed guide in Eclipse help content . Guide link : http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.hyades.test.doc.user/samples/saccessdp.htm 2.Import shoppingCartDatapool.datapool into MyShoppingCartTest.java 3.set up related Deployment ,location , artifact 4.run Junit test using above setting 5.Test failed ,report below error : org.eclipse.hyades.execution.runtime.datapool.DatapoolException: IWAT3056E Datapool could not be loaded from file c:\work\develop\TPTP_EncryptedDatapool\m6\workspace\datapoolExample\src\shoppingCartDatapool.datapool at org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.loadForEdit(Common_DatapoolFactoryImpl.java:308) at org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.load(Common_DatapoolFactoryImpl.java:435) at MyShoppingCartTest.setUp(MyShoppingCartTest.java:57) at junit.framework.TestCase.runBare(TestCase.java:128) 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 org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172) at junit.framework.TestSuite.runTest(TestSuite.java:230) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338) at org.eclipse.hyades.test.common.junit.HyadesTestRunner.run(HyadesTestRunner.java:504) at org.eclipse.hyades.test.java.runner.HyadesJUnitRunner.main(HyadesJUnitRunner.java:117) More information:
This problem is caused by a 'java.lang.NoClassDefFoundError: org.eclipse.hyades.models.hierarchy.util.HierarchyURIConverterImpl' exception being thrown in org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.loadForEdit(File, boolean) when the resource is retrieved from the resource: Resource res = resourceSet.getResource(URI.createFileURI(dpAbsolutePath), true);
The root cause of the exception is a missing dependency. When the TPTP Models plug-in was split into two plug-ins under https://bugs.eclipse.org/bugs/show_bug.cgi?id=208719 (split curent Models plugin into LTA model, Hierarchy and Models), the old org.eclipse.tptp.platform.models plug-in dependent on the new org.eclipse.tptp.platform.models.hierarchy plug-in. However, this new org.eclipse.tptp.platform.models.hierarchy plug-in was not packaged or configured with the Agent Controller and more importantly, not configured in the HyadesTestingSession, provided by the Agent Controller configuration in the org.eclipse.hyades.test.tools.core plug-in.
Adding Joanna since the fix will include changes to Platform components.
Joel, we need to package the org.eclipse.tptp.platform.models.hierarchy plug-in with the Agent Controller. Can you attach a patch for this change so we can request PMC for all of the changes under the same defect? Thanks.
The fix is to: 1) Package the org.eclipse.tptp.platform.models.hierarchy plug-in with the Agent Controller. 2) Configure the org.eclipse.tptp.platform.models.hierarchy plug-in in the Agent Controller's serviceconfig.xml as a variable named CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS_HIERARCHY in the AgentControllerEnvironment. 3) Add the CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS_HIERARCHY variable to the classpath of the the HyadesTestingSession application in the Agent Controller configuration in the org.eclipse.hyades.test.tools.core plug-in.
Created attachment 94353 [details] Patch for #3.
Joanna, is /org.eclipse.hyades.execution/iac-runtime/extensions/org.eclipse.hyades.test.tools.core/config/pluginconfig.xml still required for the IAC? The contents seems dated and appear to be for the old IAC configuration since they are no longer packaged with the plug-in (see build.properties).
Created attachment 94357 [details] Patch for #2.
Duwayne, can you please review the patch for #3?
Jonathan, can you please review the patch for #2?
Updating hours worked for creating and testing the patches.
Reviewed patch for #3. +1
(In reply to comment #7) > Joanna, is > /org.eclipse.hyades.execution/iac-runtime/extensions/org.eclipse.hyades.test.tools.core/config/pluginconfig.xml > still required for the IAC? The contents seems dated and appear to be for the > old IAC configuration since they are no longer packaged with the plug-in (see > build.properties). > The same question applies to /org.eclipse.tptp.platform.iac.administrator/src/org/eclipse/tptp/platform/iac/administrator/internal/test/AdminUtilTest.java? Unlike the above file, this class is still packaged and shipped. That is, do we need to apply the same fixes to one or both of these files or are they no longer required.
(In reply to comment #13) > (In reply to comment #7) > > Joanna, is > > /org.eclipse.hyades.execution/iac-runtime/extensions/org.eclipse.hyades.test.tools.core/config/pluginconfig.xml > > still required for the IAC? The contents seems dated and appear to be for the > > old IAC configuration since they are no longer packaged with the plug-in (see > > build.properties). > > > > The same question applies to > /org.eclipse.tptp.platform.iac.administrator/src/org/eclipse/tptp/platform/iac/administrator/internal/test/AdminUtilTest.java? > Unlike the above file, this class is still packaged and shipped. > > That is, do we need to apply the same fixes to one or both of these files or > are they no longer required. > IAC should be depending on the other plugins and not have redundant content. This is basically a packaging issue and question unless you think the dependancy should not exist in the IAC configuration, and as hte Test project owner you would be the best to determine that ;-) We need to start thinking about the standalone AC as an extract of the IAC and dependancies, plus additional remote use case support, rather than the remote AC stuffed inside the Workbench (as the hsitory shows and the name implies)
(In reply to comment #4) > Joel, we need to package the org.eclipse.tptp.platform.models.hierarchy plug-in > with the Agent Controller. Can you attach a patch for this change so we can > request PMC for all of the changes under the same defect? Thanks. Hi Kiryl, Can you please include the component org.eclipse.tptp.platform.models.hierarchy contained in the tptp.runtime-*.zip as part of the Agent Controller packaging for this defect? Thanks
(In reply to comment #15) > (In reply to comment #4) > > Joel, we need to package the org.eclipse.tptp.platform.models.hierarchy plug-in > > with the Agent Controller. Can you attach a patch for this change so we can > > request PMC for all of the changes under the same defect? Thanks. > > Hi Kiryl, > > Can you please include the component org.eclipse.tptp.platform.models.hierarchy > contained in the tptp.runtime-*.zip as part of the Agent Controller packaging > for this defect? > > Thanks > BTW, this fix also means the packaging of the standalone AC components of the LTA will need to be checked for redundancies given this is now part of the base AC.
Created attachment 94364 [details] Patch for #15 (In reply to comment #15) > ... > Hi Kiryl, > > Can you please include the component org.eclipse.tptp.platform.models.hierarchy > contained in the tptp.runtime-*.zip as part of the Agent Controller packaging > for this defect? > > Thanks Hi Joel, Attached is the required patch. Thanks, Kiryl
(In reply to comment #10) > Jonathan, can you please review the patch for #2? Patch #2 is good.
Joel, can you please review the patch for #1 (or #15)?
(In reply to comment #16) > BTW, this fix also means the packaging of the standalone AC components of the > LTA will need to be checked for redundancies given this is now part of the base > AC. Excellent point! Alex: Can you check the LTA packages for redundancies?
(In reply to comment #14) > IAC should be depending on the other plugins and not have redundant content. > This is basically a packaging issue and question unless you think the > dependancy should not exist in the IAC configuration, and as hte Test project > owner you would be the best to determine that ;-) Harm, this was the motivation for the question. The new dependency needs to exist in both the IAC and Agent Controller configurations. The org.eclipse.hyades.test.tools.core plug-in has been modified to include this new dependency. We need confirmation if these two additional files (/org.eclipse.hyades.execution/iac-runtime/extensions/org.eclipse.hyades.test.tools.core/config/pluginconfig.xml and /org.eclipse.tptp.platform.iac.administrator/src/org/eclipse/tptp/platform/iac/administrator/internal/test/AdminUtilTest.java) that make reference to org.eclipse.tptp.platform.models plug-in in context of the IAC configuration need to be updated or if they are no longer required.
Created attachment 94393 [details] Patch for commnet #7.
(In reply to comment #22) > Created an attachment (id=94393) [details] > Patch for commnet #7. > Jonathan, can you please review?
> (In reply to comment #22) > > Created an attachment (id=94393) [details] [details] > > Patch for commnet #7. > > > > Jonathan, can you please review? > Patch is good.
Patches reviewed, approved, and checked-in to CVS (HEAD).
I verified this defect using below build in my local enviroment : a) agntctrl.win_ia32.sdk-TPTP-4.5.0-200804031156C b) eclipse-SDK-3.4M6-win32 c) tptp.sdk-TPTP-4.5.0-200804031156C.zip d)emf-runtime-2.4.0M6 e)xsd-runtime-2.4.0M6 But still met the same error : org.eclipse.hyades.execution.runtime.datapool.DatapoolException: IWAT3056E Datapool could not be loaded from file C:\work\develop\TPTP_EncryptedDatapool\TPTP4.5.0\04087\wrokspace\datapoolExample\shoppingCartDatapool.datapool at org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.loadForEdit(Common_DatapoolFactoryImpl.java:308) at org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.load(Common_DatapoolFactoryImpl.java:435) at MyShoppingCartTest.setUp(MyShoppingCartTest.java:57) at junit.framework.TestCase.runBare(TestCase.java:128) 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 org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172) at junit.framework.TestSuite.runTest(TestSuite.java:230) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338) at org.eclipse.hyades.test.common.junit.HyadesTestRunner.run(HyadesTestRunner.java:504) at org.eclipse.hyades.test.java.runner.HyadesJUnitRunner.main(HyadesJUnitRunner.java:117)
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=202695#c58.
(In reply to comment #26) We will fix this problem under defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=227770.
org.eclipse.hyades.execution.runtime.datapool.DatapoolException: IWAT3056E Datapool could not be loaded from file C:\WINDOWS\TEMP\deployment_root\tarman\D6FDA5781F1662D021A2D8F00CB411DD\D6FDA5781F1662D03A8C69300CB411DD.datapool org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.loadForEdit(Common_DatapoolFactoryImpl.java:308) org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.load(Common_DatapoolFactoryImpl.java:435)
*** Bug 227770 has been marked as a duplicate of this bug. ***
(In reply to comment #26) > I verified this defect using below build in my local enviroment : > > a) agntctrl.win_ia32.sdk-TPTP-4.5.0-200804031156C > > b) eclipse-SDK-3.4M6-win32 > > c) tptp.sdk-TPTP-4.5.0-200804031156C.zip > > d)emf-runtime-2.4.0M6 > > e)xsd-runtime-2.4.0M6 > > But still met the same error : > > org.eclipse.hyades.execution.runtime.datapool.DatapoolException: IWAT3056E > Datapool could not be loaded from file > C:\work\develop\TPTP_EncryptedDatapool\TPTP4.5.0\04087\wrokspace\datapoolExample\shoppingCartDatapool.datapool > at > org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.loadForEdit(Common_DatapoolFactoryImpl.java:308) > at > org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl.load(Common_DatapoolFactoryImpl.java:435) > at MyShoppingCartTest.setUp(MyShoppingCartTest.java:57) > at junit.framework.TestCase.runBare(TestCase.java:128) > 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 > org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172) > at junit.framework.TestSuite.runTest(TestSuite.java:230) > at > org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457) > at junit.framework.TestSuite.run(TestSuite.java:225) > at > org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425) > at > org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338) > at > org.eclipse.hyades.test.common.junit.HyadesTestRunner.run(HyadesTestRunner.java:504) > at > org.eclipse.hyades.test.java.runner.HyadesJUnitRunner.main(HyadesJUnitRunner.java:117) > Xin, the symptoms for this defect cannot be reproduced using the 4.5 M6 driver (http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.5.0M6-200804031156) for both the JUnit and URL test types (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=227770#c5).
This defect is closed .