Hi all,

I am trying to build AF components using jdk 1.7 but unit tests are getting
failed.

Following are some of the errors I got different builds,

(1)
Tests in error:
  
testForkApplicationVersion(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Adding repository failed for versionID -1 with Referential integrity
constraint violation: "CONSTRAINT_7: PUBLIC.AF_REPOSITORY FOREIGN
KEY(VERSION_ID) REFERENCES PUBLIC.AF_VERSION(ID)"; SQL statement:(..)

testApplicationResource(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Error while adding resource : db0 of resource type : DATABASE of
application : app0 in : Development

testDeleteApplicationWithMultipleVersions(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Deleting application app0 failed of tenant carbon.super

(2)
Tests in error:
  
testApplicationVersionDeployStatus(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Error while updating deployed build id for version 1.0.0 application app0
of tenant carbon.super

testForkApplicationVersion(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Adding repository failed for versionID -1 with Referential integrity
constraint violation: "CONSTRAINT_7: PUBLIC.AF_REPOSITORY FOREIGN
KEY(VERSION_ID) REFERENCES PUBLIC.AF_VERSION(ID)"; SQL statement:(..)

testApplicationResource(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Error while adding resource : db0 of resource type : DATABASE of
application : app0 in : Development

testDeleteApplicationWithMultipleVersions(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Deleting application app0 failed of tenant carbon.super

(3)
Tests in error:
  
testForkApplicationVersion(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Adding repository failed for versionID -1 with Referential integrity
constraint violation: "CONSTRAINT_7: PUBLIC.AF_REPOSITORY FOREIGN
KEY(VERSION_ID) REFERENCES PUBLIC.AF_VERSION(ID)"; SQL statement:(..)

testApplicationResource(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Error while adding resource : db0 of resource type : DATABASE of
application : app0 in : Development

testDeleteApplicationWithMultipleVersions(org.wso2.carbon.appfactory.core.dao.JDBCApplicationDAOTest):
Deleting application app0 failed of tenant carbon.super


These are from 3 separate builds. It seems when asserting in unit tests,
some db queries fails randomly. But it works perfectly fine for jdk 1.6.

Any clue why is this happen ?


Thanks,
Kasun


*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : [email protected]
mobile : +94 77 794 4260
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to