Hi Governance team,
I am experiencing a classloader issue with governance 4.5.1 (carbon 4.4.0)
The conflicting bundles are,

wadl-core:1.1.3.wso2v2
jaxb_2.2.5.wso2v1

They both export the package "com.sun.xml.bind".

"jaxb_2.2.5.wso2v1" provided by carbon core.common feature.

The "wadl" is imported
by 
"org.wso2.carbon.governance:org.wso2.carbon.registry.extensions.server.feature"

<importBundleDef>org.wso2.wadl.core.wso2:wadl-core:1.1.3.wso2v2</importBundleDef>

Is there anyway I can prevent the class loading issue die to duplicate
export "com.sun.xml.bind" ?

Cheers,
Ruwan

On Wed, Jul 8, 2015 at 6:46 PM, Kishanthan Thangarajah <[email protected]>
wrote:

> We have to debug and find the root cause for this Ruwan.
>
> On Wed, Jul 8, 2015 at 11:35 AM, Ruwan Abeykoon <[email protected]> wrote:
>
>> Hi Kishanthan,
>>
>> Adding  "org.wso2.carbon.governance.metadata.server.feature" did not
>> resolve the issue. Still I get the above error on around 50% of restarts.
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jul 6, 2015 at 3:09 PM, Ruwan Abeykoon <[email protected]> wrote:
>>
>>> Hi Kishanthan,
>>> I agree your point about CNF error.
>>>
>>> I have added "org.wso2.carbon.governance.metadata.server.feature", which
>>> seems to export a bundle having the above package, to my p2-profile-gen.  I
>>> did not encounter the issue (at least for few restarts) since then. Not
>>> sure this is of any significance.
>>>
>>> I will post an update if this is a permanent fix.
>>>
>>> However I do not understand why it used to work intermittently without
>>> adding the "org.wso2.carbon.governance.metadata.server.feature".
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Mon, Jul 6, 2015 at 2:54 PM, Kishanthan Thangarajah <
>>> [email protected]> wrote:
>>>
>>>> If its CNF related, then there should at-least be a log at the
>>>> back-end. Can you check the carbon log file? Sometimes, errors may be
>>>> logged at file only instead of console. If nothing is there, then we need
>>>> to debug and see. The root cause may not be directly related to "
>>>> org.wso2.carbon.governance.api.generic" package.
>>>>
>>>> On Mon, Jul 6, 2015 at 2:02 PM, Ruwan Abeykoon <[email protected]> wrote:
>>>>
>>>>> Hi Kishanthan,
>>>>> There is no error printed on the backend console. The http handler
>>>>> silently failed at the above point on the jag file. (The HTTP socket get
>>>>> closed)
>>>>>
>>>>> I suspect the class not found/class initialization error as there is
>>>>> no other possible cause I could think of.
>>>>> Also something like the following in place of offending line works
>>>>> without any issue on every restart.
>>>>>
>>>>> new java.lang.Runnable({});
>>>>>
>>>>> Thats why i suspect it s a classloader issue as Runnable is from java
>>>>> runtime whereas GenericArtifactFilter is loaded via OSGI.
>>>>>
>>>>> Cheers,
>>>>> Ruwan
>>>>>
>>>>> On Mon, Jul 6, 2015 at 1:44 PM, Kishanthan Thangarajah <
>>>>> [email protected]> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>> While upgrading AppManager to use Carbon 4.4.0, I encountered a
>>>>>>> roadblock in classloading.
>>>>>>>
>>>>>>> I have a jag file with the following method, (which is simplified
>>>>>>> version of actual function). At some times the line works correctly and
>>>>>>> sometimes it fails silently.
>>>>>>>
>>>>>>
>>>>>> What is the error at the back end? CNF?
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> var genericArtifactFilter = new
>>>>>>> org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
>>>>>>> {});
>>>>>>>
>>>>>>> This seems like a classloader issue in OSGI, most probably duplicate
>>>>>>> or incorrect exports by some bundle. However I could not figure out 
>>>>>>> what is
>>>>>>> the exact cause.
>>>>>>>
>>>>>>>
>>>>>>> Can anyone shed some light please.
>>>>>>>
>>>>>>> Carbon 4.4.0
>>>>>>> Governance 4.5.1
>>>>>>> Registry 4.4.3
>>>>>>> Jaggery 0.10.1
>>>>>>>
>>>>>>> OSGI console prints the correct bundle without any apparent error.
>>>>>>>
>>>>>>> osgi> p org.wso2.carbon.governance.api.generic
>>>>>>> org.wso2.carbon.governance.api.generic;
>>>>>>> version="4.5.1"<org.wso2.carbon.governance.api_4.5.1 [217]>
>>>>>>>   js_1.7.0.R4wso2v1 [63] imports
>>>>>>>   org.jaggeryjs.scriptengine_0.10.0 [152] imports
>>>>>>>   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
>>>>>>>   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
>>>>>>>   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
>>>>>>>   org.wso2.carbon.governance.generic_4.5.1 [224] imports
>>>>>>>   org.wso2.carbon.governance.list_4.5.1 [230] imports
>>>>>>>   org.wso2.carbon.registry.core_4.4.0 [379] imports
>>>>>>>   tomcat_7.0.59.wso2v1 [500] imports
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Ruwan
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Ruwan Abeykoon*
>>>>>>> *Architect,*
>>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>>>> *lean.enterprise.middleware.*
>>>>>>>
>>>>>>> email: [email protected]
>>>>>>> phone:(+94) 777739736
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> [email protected]
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Kishanthan Thangarajah*
>>>>>> Associate Technical Lead,
>>>>>> Platform Technologies Team,
>>>>>> WSO2, Inc.
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> Mobile - +94773426635
>>>>>> Blog - *http://kishanthan.wordpress.com
>>>>>> <http://kishanthan.wordpress.com>*
>>>>>> Twitter - *http://twitter.com/kishanthan
>>>>>> <http://twitter.com/kishanthan>*
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Ruwan Abeykoon*
>>>>> *Architect,*
>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>> *lean.enterprise.middleware.*
>>>>>
>>>>> email: [email protected]
>>>>> phone:(+94) 777739736
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>> *lean.enterprise.middleware.*
>>>
>>> email: [email protected]
>>> phone:(+94) 777739736
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>> *lean.enterprise.middleware.*
>>
>> email: [email protected]
>> phone:(+94) 777739736
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com <http://wso2.com/> *
*lean.enterprise.middleware.*

email: [email protected]
phone:(+94) 777739736
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to