Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 901160 (JBPAPP6-1270)

Summary: DataSourceOperationsUnitTestCase and DsTestCase fails intermittently when compiled on IBMJDK(IPV4 and IPV6)
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Madhumita Sadhukhan <msadhukh>
Component: JCAAssignee: Jesper Pedersen <jpederse>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: msadhukh, pslavice, vrastsel
Target Milestone: ---   
Target Release: TBD EAP 6   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1270
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-17 09:18:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
DatasourceUnitTestCase_log none

Description Madhumita Sadhukhan 2012-11-05 10:02:38 UTC
project_key: JBPAPP6

These tests fail only when TS is compiled on IBMJDk.However they pass when TS is compiled on Oracle JDk and run on IBMJDk.

Hudson job:

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL6-buildIBMJDK6_testrunIBMJDK16/91/testReport/



From stacktrace it is clear that com.mysql.jdbc.SttringUtils is not found


Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.StringUtils from [Module "deployment.mysql-connector-java-5.1.15.jar:main" from Service Module Loader]
	at java.lang.Throwable.<init>(Throwable.java:80) [vm.jar:1.6.0]
	at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76) [rt.jar:1.6.0]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:171) [jboss-modules.jar:1.1.3.GA-redhat-1]
	................................................................


I am surprised to see that the failing test code has hard coded h2 db details(driver etc) and yet it looks for mysql jar while testing the connection!

<code>
 operation.get("driver-name").set("h2");
        operation.get("pool-name").set("MyNewDs_Pool");

        operation.get("connection-url").set("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1");
        operation.get("user-name").set("sa");
        operation.get("password").set("sa");

        executeOperation(operation);

        final ModelNode operation2 = new ModelNode();
        operation2.get(OP).set("enable");
        operation2.get(OP_ADDR).set(address);

        executeOperation(operation2);

        testConnection("MyNewDs");//fails here

</code>

Comment 1 Madhumita Sadhukhan 2012-11-05 10:07:12 UTC
Assigning to Vladimir as he is one of the authors of this test....

Comment 2 Madhumita Sadhukhan 2012-11-05 10:08:03 UTC
Attachment: Added: DatasourceUnitTestCase_log


Comment 4 Vladimir Rastseluev 2012-11-07 11:29:57 UTC
It looks very strange. Seems like classloader tries to load resource from already undeployed .jar. Weird IBMJDK?

Comment 5 Anne-Louise Tangring 2012-11-13 20:53:12 UTC
Docs QE Status: Removed: NEW 


Comment 6 Madhumita Sadhukhan 2012-12-17 09:17:37 UTC
I have not seen this recur during EAP 6.0.1.4.x cycle for both IBMJDK6 or IBMJDK7 ....closing this will reopen if it recurs in future

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL6-buildJDK6_testrunIBMJDK7/lastCompletedBuild/testReport/