You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org> on 2009/11/17 12:58:39 UTC

[jira] Created: (TUSCANY-3376) POJO_10009 testcase needs more clarification

POJO_10009 testcase needs more clarification
--------------------------------------------

                 Key: TUSCANY-3376
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3376
             Project: Tuscany
          Issue Type: Bug
          Components: OASIS Compliance - OASIS
    Affects Versions: Java-SCA-2.0
            Reporter: Ramkumar Ramalingam
             Fix For: Java-SCA-2.0


The POJO_10009_TestCase.java expects an output "POJO_10009 request service1 operation1 invoked thread context classloader is correct".

The TEST_POJO_10009Component1 in the Test_POJO_10009.composite file uses "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" as its implementation class.

If the class "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" is sucessfully loaded, then it returns " thread context classloader not correct".

So, I believe the POJO_10009_TestCase.java should expect an output as "POJO_10009 request service1 operation1 invoked thread context classloader not correct".

Otherwise, there should an alternate class file, from a different  contribution which should return " is correct". I would request for more clarification on this testcase to proceed further.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TUSCANY-3376) POJO_10009 testcase needs more clarification

Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramkumar Ramalingam closed TUSCANY-3376.
----------------------------------------

    Resolution: Invalid

That's was my misunderstanding. Thanks for the clarification Mike. 

> POJO_10009 testcase needs more clarification
> --------------------------------------------
>
>                 Key: TUSCANY-3376
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3376
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - OASIS
>    Affects Versions: Java-SCA-2.0
>            Reporter: Ramkumar Ramalingam
>             Fix For: Java-SCA-2.0
>
>
> The POJO_10009_TestCase.java expects an output "POJO_10009 request service1 operation1 invoked thread context classloader is correct".
> The TEST_POJO_10009Component1 in the Test_POJO_10009.composite file uses "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" as its implementation class.
> If the class "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" is sucessfully loaded, then it returns " thread context classloader not correct".
> So, I believe the POJO_10009_TestCase.java should expect an output as "POJO_10009 request service1 operation1 invoked thread context classloader not correct".
> Otherwise, there should an alternate class file, from a different  contribution which should return " is correct". I would request for more clarification on this testcase to proceed further.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3376) POJO_10009 testcase needs more clarification

Posted by "Mike Edwards (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779370#action_12779370 ] 

Mike Edwards commented on TUSCANY-3376:
---------------------------------------

Ram,

I don't follow your logic here.

The code within service1ClassLoaderCheckImpl has this:

		String result = " thread context classloader is correct";
		if( loader != tccl ) result = " thread context classloader not correct";

In other words, it only returns " thread context classloader not correct" if the thread context class loader isn't the same as the class loader used to load the service1ClassLoaderCheckImpl class itself.

To me it looks correct.  Did I miss something.

I note that Tuscany fails this test today, which means that the TCCL is not being set up correctly as required by the spec.
At the moment, when I debug this testcase, TCCL is the App classloader while the class classloader is a ClassLoaderModelResolver object.

> POJO_10009 testcase needs more clarification
> --------------------------------------------
>
>                 Key: TUSCANY-3376
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3376
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - OASIS
>    Affects Versions: Java-SCA-2.0
>            Reporter: Ramkumar Ramalingam
>             Fix For: Java-SCA-2.0
>
>
> The POJO_10009_TestCase.java expects an output "POJO_10009 request service1 operation1 invoked thread context classloader is correct".
> The TEST_POJO_10009Component1 in the Test_POJO_10009.composite file uses "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" as its implementation class.
> If the class "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" is sucessfully loaded, then it returns " thread context classloader not correct".
> So, I believe the POJO_10009_TestCase.java should expect an output as "POJO_10009 request service1 operation1 invoked thread context classloader not correct".
> Otherwise, there should an alternate class file, from a different  contribution which should return " is correct". I would request for more clarification on this testcase to proceed further.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TUSCANY-3376) POJO_10009 testcase needs more clarification

Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramkumar Ramalingam reassigned TUSCANY-3376:
--------------------------------------------

    Assignee: Ramkumar Ramalingam

> POJO_10009 testcase needs more clarification
> --------------------------------------------
>
>                 Key: TUSCANY-3376
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3376
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - OASIS
>    Affects Versions: Java-SCA-2.0
>            Reporter: Ramkumar Ramalingam
>            Assignee: Ramkumar Ramalingam
>             Fix For: Java-SCA-2.0
>
>
> The POJO_10009_TestCase.java expects an output "POJO_10009 request service1 operation1 invoked thread context classloader is correct".
> The TEST_POJO_10009Component1 in the Test_POJO_10009.composite file uses "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" as its implementation class.
> If the class "org.oasisopen.sca.test.service1ClassLoaderCheckImpl" is sucessfully loaded, then it returns " thread context classloader not correct".
> So, I believe the POJO_10009_TestCase.java should expect an output as "POJO_10009 request service1 operation1 invoked thread context classloader not correct".
> Otherwise, there should an alternate class file, from a different  contribution which should return " is correct". I would request for more clarification on this testcase to proceed further.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.