Re: [Dev] Please Commit to Kernel User Core

2014-05-18 Thread Shameera Rathnayaka
Hi Pushpalanka/Prabath

committed patch to kernel patch0008 with revision 203085. @Pushpalanka
please provide a pull request for 4.3.0 git repo too.

Thanks,
Shameera.


On Sun, May 18, 2014 at 5:34 AM, Prabath Siriwardena wrote:

>
> On Sat, May 17, 2014 at 10:51 PM, Pushpalanka Jayawardhana  > wrote:
>
>> Hi,
>>
>> The patch attached at the issue [1].
>>
>> [1] - https://wso2.org/jira/browse/IDENTITY-2016
>>
>> Thanks,
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT apache.org
*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ConcurrentModificationException at server startup (https://wso2.org/jira/browse/APIMANAGER-2241)

2014-05-18 Thread Sanjeewa Malalgoda
Hi,
I have created mediation initializer server and aggregate features and
added required things to chunk 11 components and feature poms.  I think we
need to update ELB p2 pom as well.

Thanks,
sanjeewa.


On Sat, May 17, 2014 at 11:41 PM, Manoj Kumara  wrote:

> Hi Sanjeewa,
>
> The fix relevant to this was added to patch0007 
> org.wso2.carbon.application.deployer
> module with r200859 and to org.wso2.carbon.mediation.initializer/4.2.2 with
> r202047 as mentioned on the jira.
> I have committed to 4.2.2 version since it was in APIM 1.7.0 product. But
> seems this was released under chunk-07 [1]. seems like I missed that at
> that point.
>
> I have reverted this change under r203033 and created the new version
> 4.2.3 for this under [2] please use this in the product. Sorry about the
> trouble.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-07/components/pom.xml
> [2]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/mediation-initializer/org.wso2.carbon.mediation.initializer/4.2.3/
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Sat, May 17, 2014 at 11:13 AM, Sanjeewa Malalgoda wrote:
>
>> Hi Manoj,
>> AFAIK you fixed this issue[1] in patch0007. But it seems this issue is
>> still there in latest packs. Do you have any idea what went wrong? This is
>> urgent issue that we should fix before release. So really appreciate if
>>  you can have a quick look at.
>>
>> [1]https://wso2.org/jira/browse/APIMANAGER-2241
>>
>> Thanks,
>> sanjeewa
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>>
>>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

 blog
:http://sanjeewamalalgoda.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Global cache invalidation meeting notes

2014-05-18 Thread Amal Gunatilake
Hi Shazni,

I just recalled a modification I did on friday when testing. When I
installed the clustering bundle in the osgi console, I noticed the the
bundle is not getting started due to some import error. So for testing
purposes I modified the clustering pom locally by removing the import
bundles and left the ** empty to let it
import the dependant packages dynamically at run-time. I hope doing the
same should solve your current issue.

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


On Sun, May 18, 2014 at 10:25 AM, Amal Gunatilake  wrote:

> Hi Shazni,
>
> Yes, the bundle started without a problem when I tried it out. This
> behavior happens when the osgi service couldn't resolve any dynamic import.
> Please check whether you have loaded all dependent jars. The javax.cache
> (CacheInvalidator interface) and clustering jar (CoordinatedActivity
> interface) should be there to resolve the interface dependencies. Please
> cross check with the component pom.xml
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Sat, May 17, 2014 at 10:19 PM, Shazni Nazeer  wrote:
>
>> Hi Amal,
>>
>> I built the carbon5 and and built the cache invalidation and registry. It
>> seems now the bundle is not getting activated. I debugged the code and
>> found the bundle restarting again and again at the following while creating
>> the subscriber.
>>
>> subscriber = new CacheInvalidationSubscriber();
>>
>> Note the clustering jar is now placed in the
>> repository/components/dropins directory.
>>
>> Was the bundle starting successfully when you tested?
>>
>>
>> Shazni Nazeer
>>
>> Senior Software Engineer
>>
>> Mob : +94 715 440 607
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>>
>> On Sat, May 17, 2014 at 7:33 AM, Amal Gunatilake  wrote:
>>
>>> Hi All,
>>>
>>> I have implemented the notification based mechanism. Using the
>>> org.wso2.carbon.clustering.api.CoordinatedActivity interface in Carbon
>>> 5.0.0 [1]
>>> The updates are @ [2]
>>>
>>> Hi Shazni,
>>> Please take the updates and run the tests.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-kernel/tree/development/modules/clustering/src/main/java/org/wso2/carbon/clustering/api
>>> [2]
>>> https://github.com/amalhub/carbon4-kernel/commit/268cce34583242ab969f21a5c394057c8705b995
>>>
>>>
>>>
>>> Thank you  & Best regards,
>>>
>>> Amal Gunatilake
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> On Thu, May 15, 2014 at 11:06 AM, Shazni Nazeer  wrote:
>>> >
>>> > Yeah. Notification based method would be ideal for this. The method
>>> which checks whether "I'm the coordinator" would work, but since the check
>>> happens between a specified interval, there is also a chance that an update
>>> would go unnoticed if that happens when the coordinator goes down and
>>> before the next coordinator is being detected.
>>> >
>>> > +1 for notification based mechanism.
>>> >
>>> > Shazni Nazeer
>>> >
>>> > Senior Software Engineer
>>> >
>>> > Mob : +94 715 440 607
>>> > LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> > Blog : http://shazninazeer.blogspot.com
>>> >
>>> > On Wed, May 14, 2014 at 11:05 AM, Amal Gunatilake 
>>> wrote:
>>> >>
>>> >> Hi Shazni,
>>> >>
>>> >> Let's go with the notification based mechanism as Azeez suggested.
>>> >>
>>> >> Hi Azeez,
>>> >>
>>> >> Please let me know where is the interface located and which
>>> dataholder holds the osgi service.
>>> >>
>>> >> Thank you  & Best regards,
>>> >>
>>> >> Amal Gunatilake
>>> >> Software Engineer
>>> >> WSO2 Inc.; http://wso2.com
>>> >> lean.enterprise.middleware
>>> >>
>>> >> On Tue, May 13, 2014 at 6:07 PM, Shazni Nazeer 
>>> wrote:
>>> >>>
>>> >>> Hi Amal,
>>> >>>
>>> >>> Messages are not getting received after this modification. I noticed
>>> very less number of messages getting published too. No modification on
>>> registry kernel side is made.
>>> >>>
>>> >>> Shazni Nazeer
>>> >>>
>>> >>> Senior Software Engineer
>>> >>>
>>> >>> Mob : +94 715 440 607
>>> >>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> >>> Blog : http://shazninazeer.blogspot.com
>>> >>>
>>> >>> On Tue, May 13, 2014 at 6:04 PM, Afkham Azeez 
>>> wrote:
>>> 
>>> 
>>> 
>>>  On Tue, May 13, 2014 at 4:30 PM, Amal Gunatilake 
>>> wrote:
>>> >
>>> > Hi All,
>>> >
>>> > Following updates has been discussed on $subject.
>>> >
>>> > 1) The isCoordinator check is not necessary for publishing the
>>> cache invalidation message.
>>> > 2) Separate the implementation of publisher and subscriber into 2
>>> classes.
>>> > 3) Alter the implementation to support, when the isCoordinator
>>> node goes down; the next coordinator node should get auto subscribe to the
>>> topic.
>>> >
>>> > The 3rd point was discussed to implement as follows:
>>> >

Re: [Dev] ConcurrentModificationException at server startup (https://wso2.org/jira/browse/APIMANAGER-2241)

2014-05-18 Thread Isuru Udana
On Sun, May 18, 2014 at 12:52 PM, Sanjeewa Malalgoda wrote:

> Hi,
> I have created mediation initializer server and aggregate features and
> added required things to chunk 11 components and feature poms.  I think we
> need to update ELB p2 pom as well.
>
Done. Thanks for informing.

>
> Thanks,
> sanjeewa.
>
>
> On Sat, May 17, 2014 at 11:41 PM, Manoj Kumara  wrote:
>
>> Hi Sanjeewa,
>>
>> The fix relevant to this was added to patch0007 
>> org.wso2.carbon.application.deployer
>> module with r200859 and to org.wso2.carbon.mediation.initializer/4.2.2 with
>> r202047 as mentioned on the jira.
>> I have committed to 4.2.2 version since it was in APIM 1.7.0 product. But
>> seems this was released under chunk-07 [1]. seems like I missed that at
>> that point.
>>
>> I have reverted this change under r203033 and created the new version
>> 4.2.3 for this under [2] please use this in the product. Sorry about the
>> trouble.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-07/components/pom.xml
>> [2]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/mediation-initializer/org.wso2.carbon.mediation.initializer/4.2.3/
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Sat, May 17, 2014 at 11:13 AM, Sanjeewa Malalgoda 
>> wrote:
>>
>>> Hi Manoj,
>>> AFAIK you fixed this issue[1] in patch0007. But it seems this issue is
>>> still there in latest packs. Do you have any idea what went wrong? This is
>>> urgent issue that we should fix before release. So really appreciate if
>>>  you can have a quick look at.
>>>
>>> [1]https://wso2.org/jira/browse/APIMANAGER-2241
>>>
>>> Thanks,
>>> sanjeewa
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>>  blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>>
>>>
>>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>


-- 
*Isuru Udana*
Senior
* Software Engineer*
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AS-TomEE Integration Problem creating single OSGI Bundle with all the dependencies.

2014-05-18 Thread Chamil Jeewantha
I have created a single jar file using all the dependencies of openejb &
tomee. Then I have copied it to dropins folder of AS and started AS.

The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
console complaints about hundreds of "Missing imported package".

Problem is. almost all the complaining packages are included in the bundle
itself and they are in the Export-Packages of the same bundle.

The pom.xml is attached.

example:

Missing imported package javax.annotation.processing_0.0.0.

but the bundle has javax/annotation/processing/.class

Please help.

-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892

http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>

j2ee
org.wso2.carbon
1.0.0

4.0.0

org.wso2.tomee
bundle
WSO2 TomEE
http://wso2.org


4.6.0.1
2.1.13
1.6.0.1
1.2.1




org.apache.felix
maven-bundle-plugin




${project.artifactId}
${project.artifactId}
*;-split-package:=merge-first

*








org.apache.openejb
tomee-webapp
1.6.0.1



___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS-TomEE Integration Problem creating single OSGI Bundle with all the dependencies.

2014-05-18 Thread Kasun Gajasinghe
Hi Chamil,

I have built the bundle with your pom. (I had to remove the parent
reference though). But the built jar did not contain the classes from the
said java package. Can you attach your bundle if possible?

I think it would be better if you explicitly specify the Export-Packages of
your bundle instead of exporting everything using '*'. That would be easier
to comprehend, and actually reduce some complexities. As I see, most of the
missing import packages of your bundle should be optional imports. Some
examples
are org.apache.catalina.tribes, org.apache.activemq.broker, org.postgresql
etc.

You might also want to verify the Export-Package versions.

Regards,
KasunG


On Sun, May 18, 2014 at 1:30 PM, Chamil Jeewantha  wrote:

> I have created a single jar file using all the dependencies of openejb &
> tomee. Then I have copied it to dropins folder of AS and started AS.
>
> The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
> console complaints about hundreds of "Missing imported package".
>
> Problem is. almost all the complaining packages are included in the bundle
> itself and they are in the Export-Packages of the same bundle.
>
> The pom.xml is attached.
>
> example:
>
> Missing imported package javax.annotation.processing_0.0.0.
>
> but the bundle has javax/annotation/processing/.class
>
> Please help.
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> Mobile: +94716813892
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enabling Cassandra system logs with MB Cassandra profile

2014-05-18 Thread Tania Mahanama
Noted.

Thanks,
Tania


On Fri, May 16, 2014 at 4:24 PM, Hasitha Hiranya  wrote:

> Hi Ishara/Tania,
>
> Please note that we need to update our docs on this, if it is specific to
> MB.
>
> Thanks
>
>
> On Fri, May 16, 2014 at 11:03 AM, Ishara Premadasa wrote:
>
>> Hi,
>>
>> As from WSO2 MB 2.2.0 onwards, we will be supporting a Cassandra profile
>> with MB where it will be used as the external Cassandra server. Therefore
>> it is required to enable Cassandra specific system logs with this profile
>> as these logs are heavily needed when analyzing any cassandra node issue
>> specially in a cluster.
>>
>> To address this we have added a new log4jappender for cassandra profile
>> as below from MB 2.2.0 onwards.  By default this log file will be located
>> in /repository/logs/cassandra_system.log file.
>>
>> #cassandra specific
>>
>> log4j.logger.org.apache.cassandra=INFO, CASSANDRA_PROFILE
>> log4j.additivity.org.apache.cassandra=false
>>
>> log4j.appender.CASSANDRA_PROFILE=org.apache.log4j.RollingFileAppender
>> log4j.appender.CASSANDRA_PROFILE.maxFileSize=20MB
>> log4j.appender.CASSANDRA_PROFILE.Threshold=INFO
>> log4j.appender.CASSANDRA_PROFILE.layout=org.apache.log4j.PatternLayout
>> log4j.appender.CASSANDRA_PROFILE.layout.ConversionPattern=%c %5p [%t]
>> %d{ISO8601} %F (line %L) %m%n
>> # Edit the next line to point to your cassandra system logs directory
>>
>> log4j.appender.CASSANDRA_PROFILE.File=${carbon.home}/repository/logs/cassandra_system.log
>>
>> Thanks!
>> Ishara
>>
>> --
>> Ishara Premasada
>> Software Engineer,
>> WSO2 Inc. http://wso2.com/
>>
>>
>> *Blog   :  http://isharapremadasa.blogspot.com/
>>  Twitter   :
>> https://twitter.com/ishadil Mobile   : +94
>> 714445832 <%2B94%20714445832>*
>>
>>
>>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB generating a PayloadFactory using JSON array

2014-05-18 Thread Dimuthu Upeksha
Hi all,

I'm sending a JSON like following to ESB
{
attributes:[attr1,attr2,attr2]
}

At my proxy service I need to create a payload factory like following using
above given input.




attr1
attr2
attr3/attribute>
 
 
 
 

But I couldn't figure out a way to iterate over that array and generate
above PayloadFactory mediator. Can someone please suggest me a way to do
this?

Thanks
Dimuthu
-- 
Dimuthu Upeksha
Engineering Intern
WSO2 inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS-TomEE Integration Problem creating single OSGI Bundle with all the dependencies.

2014-05-18 Thread Kasun Gajasinghe
The bundle you just provided do have Import-Package defined. :) The
MANIFEST.MF is pretty long, so it's easy get lost the lengthy lines!

The said java package is set in the Import-Package. Hence, OSGi environment
tries to resolve this constraint.

When you copy a jar to repo/comp/lib, it generates a new MANIFEST.MF for
you. The manifest entries could very well be different from the original
MANIFEST including the exported/imported packages and its versions. Why are
you trying to generate a orbit bundle, when you already have one? :)

Regards,
KasunG




On Sun, May 18, 2014 at 5:05 PM, Chamil Jeewantha  wrote:

> Thanks Kasun,
>
> I have built it using a clean repo. The only change I've made is
> uncommenting  Sorry that I cannot
> attach the jar because its almost 20MB. So I deleted all the .class files
> (keeping the directory structure) to attach.
>
> The generated MANFEST doesn't have any Import-Package s defined. So Why
> OSGI complaints missing import package?
>
> I have copied this jar file to repository/component/lib. then it created a
> new dropin and it worked.
>
>
> On Sun, May 18, 2014 at 2:33 PM, Kasun Gajasinghe  wrote:
>
>> Hi Chamil,
>>
>> I have built the bundle with your pom. (I had to remove the parent
>> reference though). But the built jar did not contain the classes from the
>> said java package. Can you attach your bundle if possible?
>>
>> I think it would be better if you explicitly specify the Export-Packages
>> of your bundle instead of exporting everything using '*'. That would be
>> easier to comprehend, and actually reduce some complexities. As I see, most
>> of the missing import packages of your bundle should be optional imports.
>> Some examples
>> are org.apache.catalina.tribes, org.apache.activemq.broker, org.postgresql
>> etc.
>>
>> You might also want to verify the Export-Package versions.
>>
>> Regards,
>> KasunG
>>
>>
>> On Sun, May 18, 2014 at 1:30 PM, Chamil Jeewantha wrote:
>>
>>> I have created a single jar file using all the dependencies of openejb &
>>> tomee. Then I have copied it to dropins folder of AS and started AS.
>>>
>>> The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
>>> console complaints about hundreds of "Missing imported package".
>>>
>>> Problem is. almost all the complaining packages are included in the
>>> bundle itself and they are in the Export-Packages of the same bundle.
>>>
>>> The pom.xml is attached.
>>>
>>> example:
>>>
>>> Missing imported package javax.annotation.processing_0.0.0.
>>>
>>> but the bundle has javax/annotation/processing/.class
>>>
>>> Please help.
>>>
>>> --
>>> K.D. Chamil Jeewantha
>>> Associate Technical Lead
>>> WSO2, Inc.;  http://wso2.com
>>> Mobile: +94716813892
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> Mobile: +94716813892
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
Appreciate a lot any clue on this...?

https://wso2.org/jira/browse/IDENTITY-2454

- Error occurred while running CacheCleanupTask
com.hazelcast.nio.serialization.HazelcastSerializationException:
java.lang.ClassNotFoundException:
org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
at
com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

-- 
Thanks & Regards,
Prabath

-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
The class,

org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

properly exported ? i know its a dumb question. just checking... :)




On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
A key of type ProvisioningEntityCacheKey has been added to the cache
somehow, but that class cannot be seen by Hazelcast, most probably because
the bundle that provides that class is not installed or resolved, perhaps.


On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*
*twitter: **http://twitter.com/afkham_azeez*
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
That could be one reason, and another way this can happen is this cache
entry getting replicated on to another node that cannot see this class, and
the first time it tries to access the entry is when it tries to do a
cleanup, and at that point, tries to load the class, and then this failure
happens.


On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando  wrote:

> The class,
>
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>
> properly exported ? i know its a dumb question. just checking... :)
>
>
>
>
> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena wrote:
>
>> Appreciate a lot any clue on this...?
>>
>> https://wso2.org/jira/browse/IDENTITY-2454
>>
>> - Error occurred while running CacheCleanupTask
>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>> at
>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*
*twitter: **http://twitter.com/afkham_azeez*
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
Thanks Azeez/Pradeep for the reply..

The package exported fine from the bundle - and the bundle is active too..

Thanks & regards,
-Prabath


On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando  wrote:

> The class,
>
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>
> properly exported ? i know its a dumb question. just checking... :)
>
>
>
>
> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena wrote:
>
>> Appreciate a lot any clue on this...?
>>
>> https://wso2.org/jira/browse/IDENTITY-2454
>>
>> - Error occurred while running CacheCleanupTask
>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>> at
>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>



-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
Another question; from where is this ProvisioningEntityCacheKey class
coming into the system? Is it via an OSGi bundle or some other mechanism
such as a webapp?


On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:

> That could be one reason, and another way this can happen is this cache
> entry getting replicated on to another node that cannot see this class, and
> the first time it tries to access the entry is when it tries to do a
> cleanup, and at that point, tries to load the class, and then this failure
> happens.
>
>
> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:
>
>> The class,
>>
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>
>> properly exported ? i know its a dumb question. just checking... :)
>>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena 
>> wrote:
>>
>>> Appreciate a lot any clue on this...?
>>>
>>> https://wso2.org/jira/browse/IDENTITY-2454
>>>
>>> - Error occurred while running CacheCleanupTask
>>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>> at
>>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>>> at
>>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*
*twitter: **http://twitter.com/afkham_azeez*
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
Its from an OSGi bundle..

 
!org.wso2.carbon.identity.provisioning.internal,
 org.wso2.carbon.identity.provisioning.*
 


Thanks & regards,
-Prabath

On Mon, May 19, 2014 at 1:00 AM, Afkham Azeez  wrote:
> Another question; from where is this ProvisioningEntityCacheKey class coming
> into the system? Is it via an OSGi bundle or some other mechanism such as a
> webapp?
>
>
> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>>
>> That could be one reason, and another way this can happen is this cache
>> entry getting replicated on to another node that cannot see this class, and
>> the first time it tries to access the entry is when it tries to do a
>> cleanup, and at that point, tries to load the class, and then this failure
>> happens.
>>
>>
>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando 
>> wrote:
>>>
>>> The class,
>>>
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>>
>>> properly exported ? i know its a dumb question. just checking... :)
>>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena 
>>> wrote:

 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks & Regards,
 Prabath

 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org
>>>
>>>
>>>
>>>
>>> --
>>> Pradeep Fernando
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>
>>
>>
>>
>> --
>> Afkham Azeez
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>>
>> email: az...@wso2.com cell: +94 77 3320919
>> blog: http://blog.afkham.org
>> twitter: http://twitter.com/afkham_azeez
>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>
>> Lean . Enterprise . Middleware
>
>
>
>
> --
> Afkham Azeez
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
>
> email: az...@wso2.com cell: +94 77 3320919
> blog: http://blog.afkham.org
> twitter: http://twitter.com/afkham_azeez
> linked-in: http://lk.linkedin.com/in/afkhamazeez
>
> Lean . Enterprise . Middleware



-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:

> That could be one reason, and another way this can happen is this cache
> entry getting replicated on to another node that cannot see this class, and
> the first time it tries to access the entry is when it tries to do a
> cleanup, and at that point, tries to load the class, and then this failure
> happens.
>

If this is the case.. do we have a solution for it..?


>
>
> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:
>
>> The class,
>>
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>
>> properly exported ? i know its a dumb question. just checking... :)
>>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena 
>> wrote:
>>
>>> Appreciate a lot any clue on this...?
>>>
>>> https://wso2.org/jira/browse/IDENTITY-2454
>>>
>>> - Error occurred while running CacheCleanupTask
>>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>> at
>>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>>> at
>>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena wrote:

>
>
>
> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>
>> That could be one reason, and another way this can happen is this cache
>> entry getting replicated on to another node that cannot see this class, and
>> the first time it tries to access the entry is when it tries to do a
>> cleanup, and at that point, tries to load the class, and then this failure
>> happens.
>>
>
> If this is the case.. do we have a solution for it..?
>

All nodes in a single cluster should be homogenous; which means, all nodes
should see the same bundles/classes. Then this error will never happen.


>
>
>>
>>
>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:
>>
>>> The class,
>>>
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>>
>>> properly exported ? i know its a dumb question. just checking... :)
>>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena 
>>> wrote:
>>>
 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks & Regards,
 Prabath

 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org

>>>
>>>
>>>
>>> --
>>> *Pradeep Fernando*
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919 blog: **http://blog.afkham.org*
*twitter: **http://twitter.com/afkham_azeez*
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Shameera Rathnayaka
Hi Prabath,

This can be a version issue, give it a try after set the version of
exported package. and change the hezalcast osgi bundle too such that it
import correct version.

Thanks,
Shameera.


On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:

>
>
>
> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>>
>>> That could be one reason, and another way this can happen is this cache
>>> entry getting replicated on to another node that cannot see this class, and
>>> the first time it tries to access the entry is when it tries to do a
>>> cleanup, and at that point, tries to load the class, and then this failure
>>> happens.
>>>
>>
>> If this is the case.. do we have a solution for it..?
>>
>
> All nodes in a single cluster should be homogenous; which means, all nodes
> should see the same bundles/classes. Then this error will never happen.
>
>
>>
>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:
>>>
 The class,

 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena >>> > wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT apache.org
*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identity Server 5.0.0 nightly build - 18-05-2014

2014-05-18 Thread Dulanja Liyanage
Hi All,

Please find the subject at [1]

Built from: SVN r203205.

[1]
https://svn.wso2.org/repos/wso2/scratch/IS-5.0.0/18-05-2014/nightly-build/wso2is-5.0.0.zip

Thanks & Regards,
Dulanja
-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
I think this is a homogeneous cluster... if not, then it is the root cause.
I remember sometime ago, chamath and kishanthan working on a similar kind
of issue.


On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:

>
>
>
> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>>
>>> That could be one reason, and another way this can happen is this cache
>>> entry getting replicated on to another node that cannot see this class, and
>>> the first time it tries to access the entry is when it tries to do a
>>> cleanup, and at that point, tries to load the class, and then this failure
>>> happens.
>>>
>>
>> If this is the case.. do we have a solution for it..?
>>
>
> All nodes in a single cluster should be homogenous; which means, all nodes
> should see the same bundles/classes. Then this error will never happen.
>
>
>>
>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:
>>>
 The class,

 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena >>> > wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
Yes its a homogeneous cluster.. Asela is looking into the issue...

Thanks & regards,
-Prabath


On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando  wrote:

> I think this is a homogeneous cluster... if not, then it is the root
> cause. I remember sometime ago, chamath and kishanthan working on a similar
> kind of issue.
>
>
> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>>>
 That could be one reason, and another way this can happen is this cache
 entry getting replicated on to another node that cannot see this class, and
 the first time it tries to access the entry is when it tries to do a
 cleanup, and at that point, tries to load the class, and then this failure
 happens.

>>>
>>> If this is the case.. do we have a solution for it..?
>>>
>>
>> All nodes in a single cluster should be homogenous; which means, all
>> nodes should see the same bundles/classes. Then this error will never
>> happen.
>>
>>
>>>
>>>


 On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando wrote:

> The class,
>
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>
> properly exported ? i know its a dumb question. just checking... :)
>
>
>
>
> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
> prab...@wso2.com> wrote:
>
>> Appreciate a lot any clue on this...?
>>
>> https://wso2.org/jira/browse/IDENTITY-2454
>>
>> - Error occurred while running CacheCleanupTask
>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>> at
>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>



 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
 *http://blog.afkham.org* 
 *twitter: 
 **http://twitter.com/afkham_azeez*
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API - Manager : https://wso2.org/jira/browse/IDENTITY-1615

2014-05-18 Thread Prabath Siriwardena
Hi Nirodha,

Can you please validate https://wso2.org/jira/browse/IDENTITY-1615

-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS-TomEE Integration Problem creating single OSGI Bundle with all the dependencies.

2014-05-18 Thread Chamil Jeewantha
YEP. Import-Package was there :( Thanks for pointing it out.

I just created an orbit bundle just to see whats wrong.

BTW, Thanks again.


On Sun, May 18, 2014 at 11:00 PM, Kasun Gajasinghe  wrote:

> The bundle you just provided do have Import-Package defined. :) The
> MANIFEST.MF is pretty long, so it's easy get lost the lengthy lines!
>
> The said java package is set in the Import-Package. Hence, OSGi
> environment tries to resolve this constraint.
>
> When you copy a jar to repo/comp/lib, it generates a new MANIFEST.MF for
> you. The manifest entries could very well be different from the original
> MANIFEST including the exported/imported packages and its versions. Why are
> you trying to generate a orbit bundle, when you already have one? :)
>
> Regards,
> KasunG
>
>
>
>
> On Sun, May 18, 2014 at 5:05 PM, Chamil Jeewantha  wrote:
>
>> Thanks Kasun,
>>
>> I have built it using a clean repo. The only change I've made is
>> uncommenting  Sorry that I cannot
>> attach the jar because its almost 20MB. So I deleted all the .class files
>> (keeping the directory structure) to attach.
>>
>> The generated MANFEST doesn't have any Import-Package s defined. So Why
>> OSGI complaints missing import package?
>>
>> I have copied this jar file to repository/component/lib. then it created
>> a new dropin and it worked.
>>
>>
>> On Sun, May 18, 2014 at 2:33 PM, Kasun Gajasinghe wrote:
>>
>>> Hi Chamil,
>>>
>>> I have built the bundle with your pom. (I had to remove the parent
>>> reference though). But the built jar did not contain the classes from the
>>> said java package. Can you attach your bundle if possible?
>>>
>>> I think it would be better if you explicitly specify the Export-Packages
>>> of your bundle instead of exporting everything using '*'. That would be
>>> easier to comprehend, and actually reduce some complexities. As I see, most
>>> of the missing import packages of your bundle should be optional imports.
>>> Some examples
>>> are org.apache.catalina.tribes, org.apache.activemq.broker, org.postgresql
>>> etc.
>>>
>>> You might also want to verify the Export-Package versions.
>>>
>>> Regards,
>>> KasunG
>>>
>>>
>>> On Sun, May 18, 2014 at 1:30 PM, Chamil Jeewantha wrote:
>>>
 I have created a single jar file using all the dependencies of openejb
 & tomee. Then I have copied it to dropins folder of AS and started AS.

 The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
 console complaints about hundreds of "Missing imported package".

 Problem is. almost all the complaining packages are included in the
 bundle itself and they are in the Export-Packages of the same bundle.

 The pom.xml is attached.

 example:

 Missing imported package javax.annotation.processing_0.0.0.

 but the bundle has javax/annotation/processing/.class

 Please help.

 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892


>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> K.D. Chamil Jeewantha
>> Associate Technical Lead
>> WSO2, Inc.;  http://wso2.com
>> Mobile: +94716813892
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pavithra Madurangi
Yes this was reproduced in a homogeneous cluster. I'll again check this
with today's pack as well.

Regards,
Pavithra


On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena wrote:

> Yes its a homogeneous cluster.. Asela is looking into the issue...
>
> Thanks & regards,
> -Prabath
>
>
>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando wrote:
>
>>  I think this is a homogeneous cluster... if not, then it is the root
>> cause. I remember sometime ago, chamath and kishanthan working on a similar
>> kind of issue.
>>
>>
>> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena 
>>> wrote:
>>>



 On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:

> That could be one reason, and another way this can happen is this
> cache entry getting replicated on to another node that cannot see this
> class, and the first time it tries to access the entry is when it tries to
> do a cleanup, and at that point, tries to load the class, and then this
> failure happens.
>

 If this is the case.. do we have a solution for it..?

>>>
>>> All nodes in a single cluster should be homogenous; which means, all
>>> nodes should see the same bundles/classes. Then this error will never
>>> happen.
>>>
>>>


>
>
> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando 
> wrote:
>
>> The class,
>>
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>
>> properly exported ? i know its a dumb question. just checking... :)
>>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>> Appreciate a lot any clue on this...?
>>>
>>> https://wso2.org/jira/browse/IDENTITY-2454
>>>
>>> - Error occurred while running CacheCleanupTask
>>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>> at
>>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>>> at
>>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: 
> **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Pavithra Madurangi*
Associate Technical Lead - QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94777207357
___

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
So this happens when there is more than one node only, or are you seeing it
with even a single node?


On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi wrote:

> Yes this was reproduced in a homogeneous cluster. I'll again check this
> with today's pack as well.
>
> Regards,
> Pavithra
>
>
> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena wrote:
>
>> Yes its a homogeneous cluster.. Asela is looking into the issue...
>>
>> Thanks & regards,
>> -Prabath
>>
>>
>>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando wrote:
>>
>>>  I think this is a homogeneous cluster... if not, then it is the root
>>> cause. I remember sometime ago, chamath and kishanthan working on a similar
>>> kind of issue.
>>>
>>>
>>> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:
>>>



 On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena 
 wrote:

>
>
>
> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez  wrote:
>
>> That could be one reason, and another way this can happen is this
>> cache entry getting replicated on to another node that cannot see this
>> class, and the first time it tries to access the entry is when it tries 
>> to
>> do a cleanup, and at that point, tries to load the class, and then this
>> failure happens.
>>
>
> If this is the case.. do we have a solution for it..?
>

 All nodes in a single cluster should be homogenous; which means, all
 nodes should see the same bundles/classes. Then this error will never
 happen.


>
>
>>
>>
>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando 
>> wrote:
>>
>>> The class,
>>>
>>>
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>>
>>> properly exported ? i know its a dumb question. just checking... :)
>>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
>>> prab...@wso2.com> wrote:
>>>
 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks & Regards,
 Prabath

 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org

>>>
>>>
>>>
>>> --
>>> *Pradeep Fernando*
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: 
>> **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
 *http://blog.afkham.org* 
 *twitter: 
 **http://twitter.com/afkham_azeez*
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>> *Pradeep Fernando*
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> -

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pavithra Madurangi
No didn't observe this in single node..Anyway most of the testing were done
in cluster.. So I'm not sure whether this is reproducible in single node...

Thanks,
Pavithra


On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:

> So this happens when there is more than one node only, or are you seeing
> it with even a single node?
>
>
> On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi wrote:
>
>> Yes this was reproduced in a homogeneous cluster. I'll again check this
>> with today's pack as well.
>>
>> Regards,
>> Pavithra
>>
>>
>> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena wrote:
>>
>>> Yes its a homogeneous cluster.. Asela is looking into the issue...
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>>
>>>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando wrote:
>>>
  I think this is a homogeneous cluster... if not, then it is the root
 cause. I remember sometime ago, chamath and kishanthan working on a similar
 kind of issue.


 On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:

>
>
>
> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena  > wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez wrote:
>>
>>> That could be one reason, and another way this can happen is this
>>> cache entry getting replicated on to another node that cannot see this
>>> class, and the first time it tries to access the entry is when it tries 
>>> to
>>> do a cleanup, and at that point, tries to load the class, and then this
>>> failure happens.
>>>
>>
>> If this is the case.. do we have a solution for it..?
>>
>
> All nodes in a single cluster should be homogenous; which means, all
> nodes should see the same bundles/classes. Then this error will never
> happen.
>
>
>>
>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando >> > wrote:
>>>
 The class,


 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
 prab...@wso2.com> wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: 
> **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> 

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
So i had a discussion with kishanthan. We saw the same issue sometime back.
The exception was in ELB side.


On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi wrote:

> No didn't observe this in single node..Anyway most of the testing were
> done in cluster.. So I'm not sure whether this is reproducible in single
> node...
>
> Thanks,
> Pavithra
>
>
> On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:
>
>> So this happens when there is more than one node only, or are you seeing
>> it with even a single node?
>>
>>
>> On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi 
>> wrote:
>>
>>> Yes this was reproduced in a homogeneous cluster. I'll again check this
>>> with today's pack as well.
>>>
>>> Regards,
>>> Pavithra
>>>
>>>
>>> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena 
>>> wrote:
>>>
 Yes its a homogeneous cluster.. Asela is looking into the issue...

 Thanks & regards,
 -Prabath


  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando wrote:

>  I think this is a homogeneous cluster... if not, then it is the root
> cause. I remember sometime ago, chamath and kishanthan working on a 
> similar
> kind of issue.
>
>
> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez wrote:
>>>
 That could be one reason, and another way this can happen is this
 cache entry getting replicated on to another node that cannot see this
 class, and the first time it tries to access the entry is when it 
 tries to
 do a cleanup, and at that point, tries to load the class, and then this
 failure happens.

>>>
>>> If this is the case.. do we have a solution for it..?
>>>
>>
>> All nodes in a single cluster should be homogenous; which means, all
>> nodes should see the same bundles/classes. Then this error will never
>> happen.
>>
>>
>>>
>>>


 On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando <
 prad...@wso2.com> wrote:

> The class,
>
>
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>
> properly exported ? i know its a dumb question. just checking... :)
>
>
>
>
> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
> prab...@wso2.com> wrote:
>
>> Appreciate a lot any clue on this...?
>>
>> https://wso2.org/jira/browse/IDENTITY-2454
>>
>> - Error occurred while running CacheCleanupTask
>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>> at
>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Pradeep Fernando*
> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>
> blog: http://pradeepfernando.blogspot.com
> m: +94776603662
>



 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
 *http://blog.afkham.org* 
 *twitter: 
 **http://twitter.com/afkham_azeez*
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Fo

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Kishanthan Thangarajah
Yes, we observed a similar error on ELB, when there was a cache cleanup on
an IS node. Is the issue here is coming from one of the IS node or from ELB?


On Mon, May 19, 2014 at 10:30 AM, Pradeep Fernando  wrote:

> So i had a discussion with kishanthan. We saw the same issue sometime
> back. The exception was in ELB side.
>
>
> On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi wrote:
>
>> No didn't observe this in single node..Anyway most of the testing were
>> done in cluster.. So I'm not sure whether this is reproducible in single
>> node...
>>
>> Thanks,
>> Pavithra
>>
>>
>> On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:
>>
>>> So this happens when there is more than one node only, or are you seeing
>>> it with even a single node?
>>>
>>>
>>> On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi 
>>> wrote:
>>>
 Yes this was reproduced in a homogeneous cluster. I'll again check this
 with today's pack as well.

 Regards,
 Pavithra


 On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena 
 wrote:

> Yes its a homogeneous cluster.. Asela is looking into the issue...
>
> Thanks & regards,
> -Prabath
>
>
>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando 
> wrote:
>
>>  I think this is a homogeneous cluster... if not, then it is the
>> root cause. I remember sometime ago, chamath and kishanthan working on a
>> similar kind of issue.
>>
>>
>> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez  wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena <
>>> prab...@wso2.com> wrote:
>>>



 On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez wrote:

> That could be one reason, and another way this can happen is this
> cache entry getting replicated on to another node that cannot see this
> class, and the first time it tries to access the entry is when it 
> tries to
> do a cleanup, and at that point, tries to load the class, and then 
> this
> failure happens.
>

 If this is the case.. do we have a solution for it..?

>>>
>>> All nodes in a single cluster should be homogenous; which means, all
>>> nodes should see the same bundles/classes. Then this error will never
>>> happen.
>>>
>>>


>
>
> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando <
> prad...@wso2.com> wrote:
>
>> The class,
>>
>>
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>
>> properly exported ? i know its a dumb question. just checking...
>> :)
>>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>> Appreciate a lot any clue on this...?
>>>
>>> https://wso2.org/jira/browse/IDENTITY-2454
>>>
>>> - Error occurred while running CacheCleanupTask
>>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>>> java.lang.ClassNotFoundException:
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>> at
>>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>>> at
>>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Pradeep Fernando*
>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>
>> blog: http://pradeepfernando.blogspot.com
>> m: +94776603662
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: 
> **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



 --
 Thanks & Regard

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pavithra Madurangi
On Mon, May 19, 2014 at 10:32 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Yes, we observed a similar error on ELB, when there was a cache cleanup on
> an IS node. Is the issue here is coming from one of the IS node or from ELB?
>

​Just checked the ELB logs and yes issue is there.. Error occurs in ELB and
one IS node.​

>
>
> On Mon, May 19, 2014 at 10:30 AM, Pradeep Fernando wrote:
>
>> So i had a discussion with kishanthan. We saw the same issue sometime
>> back. The exception was in ELB side.
>>
>>
>> On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi 
>> wrote:
>>
>>> No didn't observe this in single node..Anyway most of the testing were
>>> done in cluster.. So I'm not sure whether this is reproducible in single
>>> node...
>>>
>>> Thanks,
>>> Pavithra
>>>
>>>
>>> On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:
>>>
 So this happens when there is more than one node only, or are you
 seeing it with even a single node?


 On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi >>> > wrote:

> Yes this was reproduced in a homogeneous cluster. I'll again check
> this with today's pack as well.
>
> Regards,
> Pavithra
>
>
> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena  > wrote:
>
>> Yes its a homogeneous cluster.. Asela is looking into the issue...
>>
>> Thanks & regards,
>> -Prabath
>>
>>
>>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando 
>> wrote:
>>
>>>  I think this is a homogeneous cluster... if not, then it is the
>>> root cause. I remember sometime ago, chamath and kishanthan working on a
>>> similar kind of issue.
>>>
>>>
>>> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez wrote:
>>>



 On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena <
 prab...@wso2.com> wrote:

>
>
>
> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez wrote:
>
>> That could be one reason, and another way this can happen is this
>> cache entry getting replicated on to another node that cannot see 
>> this
>> class, and the first time it tries to access the entry is when it 
>> tries to
>> do a cleanup, and at that point, tries to load the class, and then 
>> this
>> failure happens.
>>
>
> If this is the case.. do we have a solution for it..?
>

 All nodes in a single cluster should be homogenous; which means,
 all nodes should see the same bundles/classes. Then this error will 
 never
 happen.


>
>
>>
>>
>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando <
>> prad...@wso2.com> wrote:
>>
>>> The class,
>>>
>>>
>>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>>>
>>> properly exported ? i know its a dumb question. just checking...
>>> :)
>>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
>>> prab...@wso2.com> wrote:
>>>
 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks & Regards,
 Prabath

 --
 Thanks & Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org

>>>
>>>
>>>
>>> --
>>> *Pradeep Fernando*
>>> Associate Technical Lead;WSO2 Inc.; http://wso2.com
>>>
>>> blog: http://pradeepfernando.blogspot.com
>>> m: +94776603662
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* <

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Prabath Siriwardena
Any solution for this...?


On Mon, May 19, 2014 at 10:34 AM, Pavithra Madurangi wrote:

>
>
>
> On Mon, May 19, 2014 at 10:32 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Yes, we observed a similar error on ELB, when there was a cache cleanup
>> on an IS node. Is the issue here is coming from one of the IS node or from
>> ELB?
>>
>
> ​Just checked the ELB logs and yes issue is there.. Error occurs in ELB
> and one IS node.​
>
>>
>>
>> On Mon, May 19, 2014 at 10:30 AM, Pradeep Fernando wrote:
>>
>>> So i had a discussion with kishanthan. We saw the same issue sometime
>>> back. The exception was in ELB side.
>>>
>>>
>>> On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi 
>>> wrote:
>>>
 No didn't observe this in single node..Anyway most of the testing were
 done in cluster.. So I'm not sure whether this is reproducible in single
 node...

 Thanks,
 Pavithra


 On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:

> So this happens when there is more than one node only, or are you
> seeing it with even a single node?
>
>
> On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi <
> pavit...@wso2.com> wrote:
>
>> Yes this was reproduced in a homogeneous cluster. I'll again check
>> this with today's pack as well.
>>
>> Regards,
>> Pavithra
>>
>>
>> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>> Yes its a homogeneous cluster.. Asela is looking into the issue...
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>>
>>>  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando >> > wrote:
>>>
  I think this is a homogeneous cluster... if not, then it is the
 root cause. I remember sometime ago, chamath and kishanthan working on 
 a
 similar kind of issue.


 On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez wrote:

>
>
>
> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena <
> prab...@wso2.com> wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez wrote:
>>
>>> That could be one reason, and another way this can happen is
>>> this cache entry getting replicated on to another node that cannot 
>>> see this
>>> class, and the first time it tries to access the entry is when it 
>>> tries to
>>> do a cleanup, and at that point, tries to load the class, and then 
>>> this
>>> failure happens.
>>>
>>
>> If this is the case.. do we have a solution for it..?
>>
>
> All nodes in a single cluster should be homogenous; which means,
> all nodes should see the same bundles/classes. Then this error will 
> never
> happen.
>
>
>>
>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando <
>>> prad...@wso2.com> wrote:
>>>
 The class,


 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just
 checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
 prab...@wso2.com> wrote:

> Appreciate a lot any clue on this...?
>
> https://wso2.org/jira/browse/IDENTITY-2454
>
> - Error occurred while running CacheCleanupTask
> com.hazelcast.nio.serialization.HazelcastSerializationException:
> java.lang.ClassNotFoundException:
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
> at
> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
> at
> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>
> --
> Thanks & Regards,
> Prabath
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*

Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Afkham Azeez
Ah.. since the ELB is also part of the cluster, cache is getting replicated
to that as well. I'll take a look and see how this can be fixed. Providing
all relevant information would have saved a lot of time. All this while the
discussion was revolving around the issue showing up on the IS node which
was misleading.

Azeez


On Mon, May 19, 2014 at 10:35 AM, Prabath Siriwardena wrote:

> Any solution for this...?
>
>
> On Mon, May 19, 2014 at 10:34 AM, Pavithra Madurangi wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 10:32 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Yes, we observed a similar error on ELB, when there was a cache cleanup
>>> on an IS node. Is the issue here is coming from one of the IS node or from
>>> ELB?
>>>
>>
>> ​Just checked the ELB logs and yes issue is there.. Error occurs in ELB
>> and one IS node.​
>>
>>>
>>>
>>> On Mon, May 19, 2014 at 10:30 AM, Pradeep Fernando wrote:
>>>
 So i had a discussion with kishanthan. We saw the same issue sometime
 back. The exception was in ELB side.


 On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi >>> > wrote:

> No didn't observe this in single node..Anyway most of the testing were
> done in cluster.. So I'm not sure whether this is reproducible in single
> node...
>
> Thanks,
> Pavithra
>
>
> On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez  wrote:
>
>> So this happens when there is more than one node only, or are you
>> seeing it with even a single node?
>>
>>
>> On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi <
>> pavit...@wso2.com> wrote:
>>
>>> Yes this was reproduced in a homogeneous cluster. I'll again check
>>> this with today's pack as well.
>>>
>>> Regards,
>>> Pavithra
>>>
>>>
>>> On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena <
>>> prab...@wso2.com> wrote:
>>>
 Yes its a homogeneous cluster.. Asela is looking into the issue...

 Thanks & regards,
 -Prabath


  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando <
 prad...@wso2.com> wrote:

>  I think this is a homogeneous cluster... if not, then it is the
> root cause. I remember sometime ago, chamath and kishanthan working 
> on a
> similar kind of issue.
>
>
> On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez wrote:
>
>>
>>
>>
>> On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena <
>> prab...@wso2.com> wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez 
>>> wrote:
>>>
 That could be one reason, and another way this can happen is
 this cache entry getting replicated on to another node that cannot 
 see this
 class, and the first time it tries to access the entry is when it 
 tries to
 do a cleanup, and at that point, tries to load the class, and then 
 this
 failure happens.

>>>
>>> If this is the case.. do we have a solution for it..?
>>>
>>
>> All nodes in a single cluster should be homogenous; which means,
>> all nodes should see the same bundles/classes. Then this error will 
>> never
>> happen.
>>
>>
>>>
>>>


 On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando <
 prad...@wso2.com> wrote:

> The class,
>
>
> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>
> properly exported ? i know its a dumb question. just
> checking... :)
>
>
>
>
> On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena <
> prab...@wso2.com> wrote:
>
>> Appreciate a lot any clue on this...?
>>
>> https://wso2.org/jira/browse/IDENTITY-2454
>>
>> - Error occurred while running CacheCleanupTask
>> com.hazelcast.nio.serialization.HazelcastSerializationException:
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
>> at
>> com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
>> at
>> com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath

[Dev] Invalid secretAlias mapping when using Secure Vault

2014-05-18 Thread Dinesh Bandara
Hi,

When using different passwords for JKS and secret key with Secure Vault
following exceptions are thrown in server startup.

ERROR
{org.wso2.carbon.core.deployment.DeploymentInterceptor} - Error while
updating wso2carbon-sts in STSDeploymentInterceptor
{org.wso2.carbon.core.deployment.DeploymentInterceptor}

java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)

ERROR
{org.apache.coyote.AbstractProtocol} - Failed to start end point associated
with ProtocolHandler ["http-nio-9443"] {org.apache.coyote.AbstractProtocol}

java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
Above exceptions are due to invalid secretAlias mapping.

Please apply the patch attached in [1] to the location in [2]

[1] https://wso2.org/jira/browse/IDENTITY-2457
[2]
http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0008

Thanks.
-- 
*Dinesh Bandara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pavithra Madurangi
On Mon, May 19, 2014 at 10:46 AM, Afkham Azeez  wrote:

> Ah.. since the ELB is also part of the cluster, cache is getting
> replicated to that as well. I'll take a look and see how this can be fixed.
> Providing all relevant information would have saved a lot of time. All this
> while the discussion was revolving around the issue showing up on the IS
> node which was misleading.
>

- ​Setup details :

Operating System : Linux 3.11.0-17-generic x86_64 GNU/Linux
Java Version/Java VM : java version "1.7.0_03"/Java HotSpot(TM) 64-Bit
Server VM (build 22.1-b02, mixed mode)
Packs : WSO2 IS 5.0.0 beta 18th May
DBMS/DBMS Driver :Mysql (registry mounted)
Browser : Chrome Version 33.0.1750.117
Setup : Cluster setup (Two IS manager nodes fronted by WSO2 ELB 2.1.1)
User store : Openldap

- Used IS documentation (
https://docs.wso2.org/display/CLUSTER420/Clustering+Identity+Server) to
setup the IS cluster

- IS side error is in https://wso2.org/jira/browse/LB-155

- Error in ELB

TID: [0] [ELB] [2014-05-18 22:27:33,269] ERROR
{com.hazelcast.map.operation.MergeOperation} -  [127.0.0.1]:4100
[wso2.is1.domain] java.lang.ClassNotFoundException:
org.wso2.carbon.identity.provisioning.cache.ProvisioningConnectorCacheKey
{com.hazelcast.map.operation.MergeOperation}
com.hazelcast.nio.serialization.HazelcastSerializationException:
java.lang.ClassNotFoundException:
org.wso2.carbon.identity.provisioning.cache.ProvisioningConnectorCacheKey
 at
com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
 at
com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:192)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:154)
 at com.hazelcast.map.MapService.toObject(MapService.java:644)
at com.hazelcast.map.operation.MergeOperation.run(MergeOperation.java:47)
 at
com.hazelcast.spi.impl.OperationServiceImpl.doRunOperation(OperationServiceImpl.java:222)
at
com.hazelcast.spi.impl.OperationServiceImpl.access$800(OperationServiceImpl.java:55)
 at
com.hazelcast.spi.impl.OperationServiceImpl$LocalOperationProcessor.run(OperationServiceImpl.java:655)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
 at
com.hazelcast.spi.impl.OperationServiceImpl$OperationThread.run(OperationServiceImpl.java:731)
Caused by: java.lang.ClassNotFoundException:
org.wso2.carbon.identity.provisioning.cache.ProvisioningConnectorCacheKey
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:83)
 at com.hazelcast.nio.IOUtil$1.resolveClass(IOUtil.java:77)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:459)
 at
com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:187)
... 12 more

- I'll attach config files if necessary.

Thanks,
Pavithra

​

>
> Azeez
>
>
> On Mon, May 19, 2014 at 10:35 AM, Prabath Siriwardena wrote:
>
>> Any solution for this...?
>>
>>
>> On Mon, May 19, 2014 at 10:34 AM, Pavithra Madurangi 
>> wrote:
>>
>>>
>>>
>>>
>>> On Mon, May 19, 2014 at 10:32 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Yes, we observed a similar error on ELB, when there was a cache cleanup
 on an IS node. Is the issue here is coming from one of the IS node or from
 ELB?

>>>
>>> ​Just checked the ELB logs and yes issue is there.. Error occurs in ELB
>>> and one IS node.​
>>>


 On Mon, May 19, 2014 at 10:30 AM, Pradeep Fernando wrote:

> So i had a discussion with kishanthan. We saw the same issue sometime
> back. The exception was in ELB side.
>
>
> On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi <
> pavit...@wso2.com> wrote:
>
>> No didn't observe this in single node..Anyway most of the testing
>> were done in cluster.. So I'm not sure whether this is reproducible in
>> single node...
>>
>> Tha

Re: [Dev] Global cache invalidation meeting notes

2014-05-18 Thread Shazni Nazeer
Hi Amal,

As you suggested I did the modification in pom file and the service got
registered successfully and the messages are getting published. But in the
subscription end, no nodes are getting subscribed, hence no messages are
received. I debugged the code and found that execute() method in
CacheInvalidationSubscriber is never getting called. And therefore
subscribe() method is not getting called.

Are we missing some other dependent components for this to work?

Shazni Nazeer

Senior Software Engineer

Mob : +94 715 440 607
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


On Sun, May 18, 2014 at 1:14 PM, Amal Gunatilake  wrote:

> Hi Shazni,
>
> I just recalled a modification I did on friday when testing. When I
> installed the clustering bundle in the osgi console, I noticed the the
> bundle is not getting started due to some import error. So for testing
> purposes I modified the clustering pom locally by removing the import
> bundles and left the ** empty to let it
> import the dependant packages dynamically at run-time. I hope doing the
> same should solve your current issue.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Sun, May 18, 2014 at 10:25 AM, Amal Gunatilake  wrote:
>
>> Hi Shazni,
>>
>> Yes, the bundle started without a problem when I tried it out. This
>> behavior happens when the osgi service couldn't resolve any dynamic import.
>> Please check whether you have loaded all dependent jars. The javax.cache
>> (CacheInvalidator interface) and clustering jar (CoordinatedActivity
>> interface) should be there to resolve the interface dependencies. Please
>> cross check with the component pom.xml
>>
>> Thank you  & Best regards,
>>
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> On Sat, May 17, 2014 at 10:19 PM, Shazni Nazeer  wrote:
>>
>>> Hi Amal,
>>>
>>> I built the carbon5 and and built the cache invalidation and registry.
>>> It seems now the bundle is not getting activated. I debugged the code and
>>> found the bundle restarting again and again at the following while creating
>>> the subscriber.
>>>
>>> subscriber = new CacheInvalidationSubscriber();
>>>
>>> Note the clustering jar is now placed in the
>>> repository/components/dropins directory.
>>>
>>> Was the bundle starting successfully when you tested?
>>>
>>>
>>> Shazni Nazeer
>>>
>>> Senior Software Engineer
>>>
>>> Mob : +94 715 440 607
>>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>>> Blog : http://shazninazeer.blogspot.com
>>>
>>>
>>> On Sat, May 17, 2014 at 7:33 AM, Amal Gunatilake  wrote:
>>>
 Hi All,

 I have implemented the notification based mechanism. Using the
 org.wso2.carbon.clustering.api.CoordinatedActivity interface in Carbon
 5.0.0 [1]
 The updates are @ [2]

 Hi Shazni,
 Please take the updates and run the tests.

 [1]
 https://github.com/wso2/carbon-kernel/tree/development/modules/clustering/src/main/java/org/wso2/carbon/clustering/api
 [2]
 https://github.com/amalhub/carbon4-kernel/commit/268cce34583242ab969f21a5c394057c8705b995



 Thank you  & Best regards,

 Amal Gunatilake
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 On Thu, May 15, 2014 at 11:06 AM, Shazni Nazeer 
 wrote:
 >
 > Yeah. Notification based method would be ideal for this. The method
 which checks whether "I'm the coordinator" would work, but since the check
 happens between a specified interval, there is also a chance that an update
 would go unnoticed if that happens when the coordinator goes down and
 before the next coordinator is being detected.
 >
 > +1 for notification based mechanism.
 >
 > Shazni Nazeer
 >
 > Senior Software Engineer
 >
 > Mob : +94 715 440 607
 > LinkedIn : http://lk.linkedin.com/in/shazninazeer
 > Blog : http://shazninazeer.blogspot.com
 >
 > On Wed, May 14, 2014 at 11:05 AM, Amal Gunatilake 
 wrote:
 >>
 >> Hi Shazni,
 >>
 >> Let's go with the notification based mechanism as Azeez suggested.
 >>
 >> Hi Azeez,
 >>
 >> Please let me know where is the interface located and which
 dataholder holds the osgi service.
 >>
 >> Thank you  & Best regards,
 >>
 >> Amal Gunatilake
 >> Software Engineer
 >> WSO2 Inc.; http://wso2.com
 >> lean.enterprise.middleware
 >>
 >> On Tue, May 13, 2014 at 6:07 PM, Shazni Nazeer 
 wrote:
 >>>
 >>> Hi Amal,
 >>>
 >>> Messages are not getting received after this modification. I
 noticed very less number of messages getting published too. No modification
 on registry kernel side is made.
 >>>
 >>> Shazni Nazeer
 >>>
 >>> Senior Software Engineer
 >>>
 >>> Mob 

Re: [Dev] Global cache invalidation meeting notes

2014-05-18 Thread Amal Gunatilake
Hi Shazni,

Now that we have modified the implementation to notification based
scenario, the execute() method should be triggered via some other external
component at the event of coordinator registration. I think may be this
triggering implementation is on some other component in C5 that we may have
to include in the dropins.

Hi Azeez,
Could you please shed some light on here? Is there any other C5 component
we need to include other than clustering jar to make the triggering
mechanism work?

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


On Mon, May 19, 2014 at 11:01 AM, Shazni Nazeer  wrote:

> Hi Amal,
>
> As you suggested I did the modification in pom file and the service got
> registered successfully and the messages are getting published. But in the
> subscription end, no nodes are getting subscribed, hence no messages are
> received. I debugged the code and found that execute() method in
> CacheInvalidationSubscriber is never getting called. And therefore
> subscribe() method is not getting called.
>
> Are we missing some other dependent components for this to work?
>
> Shazni Nazeer
>
> Senior Software Engineer
>
> Mob : +94 715 440 607
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
>
> On Sun, May 18, 2014 at 1:14 PM, Amal Gunatilake  wrote:
>
>> Hi Shazni,
>>
>> I just recalled a modification I did on friday when testing. When I
>> installed the clustering bundle in the osgi console, I noticed the the
>> bundle is not getting started due to some import error. So for testing
>> purposes I modified the clustering pom locally by removing the import
>> bundles and left the ** empty to let it
>> import the dependant packages dynamically at run-time. I hope doing the
>> same should solve your current issue.
>>
>> Thank you  & Best regards,
>>
>> *Amal Gunatilake*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> On Sun, May 18, 2014 at 10:25 AM, Amal Gunatilake  wrote:
>>
>>> Hi Shazni,
>>>
>>> Yes, the bundle started without a problem when I tried it out. This
>>> behavior happens when the osgi service couldn't resolve any dynamic import.
>>> Please check whether you have loaded all dependent jars. The javax.cache
>>> (CacheInvalidator interface) and clustering jar (CoordinatedActivity
>>> interface) should be there to resolve the interface dependencies. Please
>>> cross check with the component pom.xml
>>>
>>> Thank you  & Best regards,
>>>
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>> On Sat, May 17, 2014 at 10:19 PM, Shazni Nazeer  wrote:
>>>
 Hi Amal,

 I built the carbon5 and and built the cache invalidation and registry.
 It seems now the bundle is not getting activated. I debugged the code and
 found the bundle restarting again and again at the following while creating
 the subscriber.

 subscriber = new CacheInvalidationSubscriber();

 Note the clustering jar is now placed in the
 repository/components/dropins directory.

 Was the bundle starting successfully when you tested?


 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Sat, May 17, 2014 at 7:33 AM, Amal Gunatilake wrote:

> Hi All,
>
> I have implemented the notification based mechanism. Using the
> org.wso2.carbon.clustering.api.CoordinatedActivity interface in Carbon
> 5.0.0 [1]
> The updates are @ [2]
>
> Hi Shazni,
> Please take the updates and run the tests.
>
> [1]
> https://github.com/wso2/carbon-kernel/tree/development/modules/clustering/src/main/java/org/wso2/carbon/clustering/api
> [2]
> https://github.com/amalhub/carbon4-kernel/commit/268cce34583242ab969f21a5c394057c8705b995
>
>
>
> Thank you  & Best regards,
>
> Amal Gunatilake
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> On Thu, May 15, 2014 at 11:06 AM, Shazni Nazeer 
> wrote:
> >
> > Yeah. Notification based method would be ideal for this. The method
> which checks whether "I'm the coordinator" would work, but since the check
> happens between a specified interval, there is also a chance that an 
> update
> would go unnoticed if that happens when the coordinator goes down and
> before the next coordinator is being detected.
> >
> > +1 for notification based mechanism.
> >
> > Shazni Nazeer
> >
> > Senior Software Engineer
> >
> > Mob : +94 715 440 607
> > LinkedIn : http://lk.linkedin.com/in/shazninazeer
> > Blog : http://shazninazeer.blogspot.com
> >
> > On Wed, May 14, 2014 at 11:05 AM, Amal Gunatilake 
>

Re: [Dev] Gateway cache clearing for regenerated and revoked tokens

2014-05-18 Thread Nirdesha Munasinghe
Thanks for reporting. Doc JIRA created:
https://wso2.org/jira/browse/DOCUMENTATION-842.


On Sat, May 17, 2014 at 8:49 PM, Sanjeewa Malalgoda wrote:

> Hi All,
> We found following issues in gateway cache when we regenerate application
> tokens from API store user interface(or calling revoke API).
>
> 01. If we generate new application access token from ui old tokens remain
> as active in gateway cache.
> 02. If we use revoke API deployed in gateway it will clear only super
> tenants cache.
>
> To address these issues recently we introduced new parameter named
> RevokeAPIURL. In distributed deployment we need to configure this parameter
> in API store node. Then it will call API pointed by RevokeAPIURL parameter.
> RevokeAPIURL parameter should be pointed to revoke API deployed API gateway
> nodes. If it is gateway cluster we can point to one node. So from this
> release on wards all revoke requests will route to oauth service through
> revoke API deployed in API manager. When revoke response route through
> revoke API cache clear handler will invoke. Then it will extract relevant
> information form transport headers and clear associated cache entries. In
> distributed deployment we should configure followings.
>
> 01. In key manager node, point gateway API revoke end point as follows.
> 
> https://
> ${carbon.local.ip}:${https.nio.port}/revoke
>
> 02. In API gateway revoke API should be pointed to oauth application
> deployed in key manager node.
>   
>  faultSequence="_token_fault_">
> 
> 
> 
> https://keymgt.wso2.com:9445/oauth2/revoke"/>
> 
> 
> 
> 
> 
> 
> 
> 
>  class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
> 
> 
>
> We need to add this to our product documents as well.
>
>
> Thanks,
> sanjeewa.
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>


-- 

Thanks,

Nirdesha Munasinghe,
WSO2 Inc.
Web:http://wso2.com

Mobile: +94 776321920
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS-TomEE Integration Problem creating single OSGI Bundle with all the dependencies.

2014-05-18 Thread Kishanthan Thangarajah
General things need to follow when creating orbit bundles.

1. Export packages with version.
2. Import packages with a version range. If you are not sure on some
packages will be available at run-time, then use resolution:=optional
directive for those.
3. For any dynamic classes (not known in advance) needs to be imported to
your bundle, only then use DynamicImport-Package header. Otherwise don't
use it.
4. Don't blindly export all the packages. Only export what is required to
OSGi environment.
5. There are some useful bnd instructions that comes handy when needed. For
example  can be used to include resource files from
dependent jars to your target bundle.



On Mon, May 19, 2014 at 9:55 AM, Chamil Jeewantha  wrote:

> YEP. Import-Package was there :( Thanks for pointing it out.
>
> I just created an orbit bundle just to see whats wrong.
>
> BTW, Thanks again.
>
>
> On Sun, May 18, 2014 at 11:00 PM, Kasun Gajasinghe wrote:
>
>> The bundle you just provided do have Import-Package defined. :) The
>> MANIFEST.MF is pretty long, so it's easy get lost the lengthy lines!
>>
>> The said java package is set in the Import-Package. Hence, OSGi
>> environment tries to resolve this constraint.
>>
>> When you copy a jar to repo/comp/lib, it generates a new MANIFEST.MF for
>> you. The manifest entries could very well be different from the original
>> MANIFEST including the exported/imported packages and its versions. Why are
>> you trying to generate a orbit bundle, when you already have one? :)
>>
>> Regards,
>> KasunG
>>
>>
>>
>>
>> On Sun, May 18, 2014 at 5:05 PM, Chamil Jeewantha wrote:
>>
>>> Thanks Kasun,
>>>
>>> I have built it using a clean repo. The only change I've made is
>>> uncommenting  Sorry that I cannot
>>> attach the jar because its almost 20MB. So I deleted all the .class files
>>> (keeping the directory structure) to attach.
>>>
>>> The generated MANFEST doesn't have any Import-Package s defined. So Why
>>> OSGI complaints missing import package?
>>>
>>> I have copied this jar file to repository/component/lib. then it created
>>> a new dropin and it worked.
>>>
>>>
>>> On Sun, May 18, 2014 at 2:33 PM, Kasun Gajasinghe wrote:
>>>
 Hi Chamil,

 I have built the bundle with your pom. (I had to remove the parent
 reference though). But the built jar did not contain the classes from the
 said java package. Can you attach your bundle if possible?

 I think it would be better if you explicitly specify the
 Export-Packages of your bundle instead of exporting everything using '*'.
 That would be easier to comprehend, and actually reduce some complexities.
 As I see, most of the missing import packages of your bundle should be
 optional imports. Some examples
 are org.apache.catalina.tribes, org.apache.activemq.broker, org.postgresql
 etc.

 You might also want to verify the Export-Package versions.

 Regards,
 KasunG


 On Sun, May 18, 2014 at 1:30 PM, Chamil Jeewantha wrote:

> I have created a single jar file using all the dependencies of openejb
> & tomee. Then I have copied it to dropins folder of AS and started AS.
>
> The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
> console complaints about hundreds of "Missing imported package".
>
> Problem is. almost all the complaining packages are included in the
> bundle itself and they are in the Export-Packages of the same bundle.
>
> The pom.xml is attached.
>
> example:
>
> Missing imported package javax.annotation.processing_0.0.0.
>
> but the bundle has javax/annotation/processing/.class
>
> Please help.
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> Mobile: +94716813892
>
>


 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>> K.D. Chamil Jeewantha
>>> Associate Technical Lead
>>> WSO2, Inc.;  http://wso2.com
>>> Mobile: +94716813892
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> Mobile: +94716813892
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev