Re: [Dev] [DEV] [ESB] Can we increase height size of source view

2014-06-15 Thread Dushan Abeyruwan
Hi
Please create a public jira, we will consider this but IMO this not a
showstopper, as most of the time user experience relying on the DevS

Cheers,
Dushan


On Fri, Jun 13, 2014 at 10:39 AM, Seshika Fernando sesh...@wso2.com wrote:

 Hi,

 Can we increase the height of the source view to improve user
 friendliness? Currently only half of the screen is used for source view and
 user needs to keep scrolling. See attachment.

 Eventhough the full screen option is available, its still better if we
 better use the available space to enhance user experience.

 Seshika



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




-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Foursquare connector error

2014-06-15 Thread Amaaniy Muhammad
Hi All,

I am in the process of developing an ESB connector for Foursquare(REST). I
took the Jira Connector as a sample and made changes to build the
Foursquare connector to study the process of designing connectors.

I did the maven clean install and add the connector.zip to the ESB
management console. But when I uploaded the connector.zip I found the
following error..


[2014-06-15 13:47:01,662]  WARN - LibDeployerUtils Could not build lib
artifact for path :
/home/amaaniy/wso2esb-4.8.1/tmp/libs/1402820221644jira-connector-1.0.0.zip/jira_user
Synapse Library :{org.wso2.carbon.connectors}jira. Continue searching for
other lib artifacts
[2014-06-15 13:47:01,662] ERROR - LibraryArtifactDeployer Deployment of
synapse artifact failed for synapse libray at :
/home/amaaniy/wso2esb-4.8.1/repository/deployment/server/synapse-libs/jira-connector-1.0.0.zip
: Error when resolving Dependencies for lib :
{org.wso2.carbon.connectors}jira
org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error when
resolving Dependencies for lib : {org.wso2.carbon.connectors}jira
at
org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
at
org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
at
org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)




I couldn't find what does it mean? Because I am new to synapse
configuration.
please advice me to solve it.



regards,

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


Re: [Dev] Foursquare connector error

2014-06-15 Thread Ramindu Deshapriya
Hi Amaaniy,

It seems the jira_user subcomponent is missing some files. Before you build
the connector, check the component.xml file within the
/resources/jira_user. Check whether the configuration files listed there
are actually available within the folder.

Thanks.


On Sun, Jun 15, 2014 at 2:05 PM, Amaaniy Muhammad [via WSO2 Oxygen Tank] 
ml-node+s10903n98189...@n7.nabble.com wrote:

 Hi All,

 I am in the process of developing an ESB connector for Foursquare(REST). I
 took the Jira Connector as a sample and made changes to build the
 Foursquare connector to study the process of designing connectors.

 I did the maven clean install and add the connector.zip to the ESB
 management console. But when I uploaded the connector.zip I found the
 following error..


 [2014-06-15 13:47:01,662]  WARN - LibDeployerUtils Could not build lib
 artifact for path :
 /home/amaaniy/wso2esb-4.8.1/tmp/libs/1402820221644jira-connector-1.0.0.zip/jira_user
 Synapse Library :{org.wso2.carbon.connectors}jira. Continue searching for
 other lib artifacts
 [2014-06-15 13:47:01,662] ERROR - LibraryArtifactDeployer Deployment of
 synapse artifact failed for synapse libray at :
 /home/amaaniy/wso2esb-4.8.1/repository/deployment/server/synapse-libs/jira-connector-1.0.0.zip
 : Error when resolving Dependencies for lib :
 {org.wso2.carbon.connectors}jira
 org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error
 when resolving Dependencies for lib : {org.wso2.carbon.connectors}jira
 at
 org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
 at
 org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
 at
 org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)




 I couldn't find what does it mean? Because I am new to synapse
 configuration.
 please advice me to solve it.



 regards,

 Amaaniy.

 ___
 Dev mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=98189i=0
 http://wso2.org/cgi-bin/mailman/listinfo/dev


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Foursquare-connector-error-tp98189.html
  To start a new topic under WSO2 Development, email
 ml-node+s10903n3...@n7.nabble.com
 To unsubscribe from WSO2 Development, click here
 http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3code=cmFzYWRlODhAZ21haWwuY29tfDN8LTEwNDAzODU2MTk=
 .
 NAML
 http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
Au revoir!
Ramindu Deshapriya.

Member - Sahana Software Foundation http://sahanafoundation.org
http://rdeshapriya.com

http://www.facebook.com/rdeshapriya   http://twitter.com/#%21/rami_desh
https://plus.google.com/113801459480978566130
http://www.linkedin.com/profile/view?id=84017607trk=tab_pro
http://rdeshapriya.com   

Re: [Dev] Foursquare connector error

2014-06-15 Thread Amaaniy Muhammad
Hi Ranindu,

As you said, I missed to check the component.xml in the
/resources/jira_user. Now  I solved it.


Thanks  regards,

Amaaniy


On Sun, Jun 15, 2014 at 2:16 PM, Ramindu Deshapriya rasad...@gmail.com
wrote:

 Hi Amaaniy,

 It seems the jira_user subcomponent is missing some files. Before you
 build the connector, check the component.xml file within the
 /resources/jira_user. Check whether the configuration files listed there
 are actually available within the folder.

 Thanks.


 On Sun, Jun 15, 2014 at 2:05 PM, Amaaniy Muhammad [via WSO2 Oxygen Tank] 
 [hidden
 email] http://user/SendEmail.jtp?type=nodenode=98190i=0 wrote:

 Hi All,

 I am in the process of developing an ESB connector for Foursquare(REST).
 I took the Jira Connector as a sample and made changes to build the
 Foursquare connector to study the process of designing connectors.

 I did the maven clean install and add the connector.zip to the ESB
 management console. But when I uploaded the connector.zip I found the
 following error..


 [2014-06-15 13:47:01,662]  WARN - LibDeployerUtils Could not build lib
 artifact for path :
 /home/amaaniy/wso2esb-4.8.1/tmp/libs/1402820221644jira-connector-1.0.0.zip/jira_user
 Synapse Library :{org.wso2.carbon.connectors}jira. Continue searching for
 other lib artifacts
 [2014-06-15 13:47:01,662] ERROR - LibraryArtifactDeployer Deployment of
 synapse artifact failed for synapse libray at :
 /home/amaaniy/wso2esb-4.8.1/repository/deployment/server/synapse-libs/jira-connector-1.0.0.zip
 : Error when resolving Dependencies for lib :
 {org.wso2.carbon.connectors}jira
 org.apache.synapse.deployers.SynapseArtifactDeploymentException: Error
 when resolving Dependencies for lib : {org.wso2.carbon.connectors}jira
 at
 org.apache.synapse.libraries.util.LibDeployerUtils.searchAndResolveDependencies(LibDeployerUtils.java:244)
 at
 org.apache.synapse.libraries.util.LibDeployerUtils.createSynapseLibrary(LibDeployerUtils.java:80)
 at
 org.apache.synapse.deployers.LibraryArtifactDeployer.deploy(LibraryArtifactDeployer.java:60)
 at
 org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
 at
 org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
 at
 org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
 at
 org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
 at
 org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
 at
 org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
 at
 org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)




 I couldn't find what does it mean? Because I am new to synapse
 configuration.
 please advice me to solve it.



 regards,

 Amaaniy.

 ___
 Dev mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=98189i=0
 http://wso2.org/cgi-bin/mailman/listinfo/dev


 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Foursquare-connector-error-tp98189.html
  To start a new topic under WSO2 Development, email [hidden email]
 http://user/SendEmail.jtp?type=nodenode=98190i=1
 To unsubscribe from WSO2 Development, click here.
 NAML
 http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




 --
 Au revoir!
 Ramindu Deshapriya.

 Member - Sahana Software Foundation http://sahanafoundation.org
 http://rdeshapriya.com

 http://www.facebook.com/rdeshapriya
 http://twitter.com/#%21/rami_desh
 

[Dev] How to import a specific version of a library from OSGI

2014-06-15 Thread Pulasthi Mahawithana
Hi,

I want to use BouncyCastle v 1.45 with Identity Server. In my pom.xml for
the service component I have used the following configuration to import the
BouncyCastle classes,

Import-Packageorg.apache.axis2.*,
org.wso2.carbon.core.utils.*,
org.wso2.carbon.core.*,
org.wso2.carbon.registry.core.*,
org.wso2.carbon.utils.*,
org.apache.commons.logging.*; version=1.0.4,
org.osgi.framework,
javax.servlet,
javax.servlet.http,
org.bouncycastle.*; version=1.45.0.wso2v1,
org.wso2.carbon.security.*,
*;resolution:=optional
/Import-Package

also, I have added the dependency as,

dependency
groupIdorg.bouncycastle.wso2/groupId
artifactIdbcprov-jdk16/artifactId
version1.45.wso2v1/version
/dependency

This compiles without any errors. But, with this configuration, I get a
java.lang.NoSuchFieldError at runtime. When I debugged using the OSGI
console, I noticed that my service component Imports a previous version
(1.32) of bouncycastle from wss4j, although I have requested it to import
1.45. And the field I'm using was not available in ver. 1.32.

Following is the partial output of osgib 229, where 229 is the bundle id
of my service component.

  Imported packages
.
org.bouncycastle.asn1; version=132.0.0wss4j_1.5.11.wso2v6 [418]
org.bouncycastle.asn1.pkcs; version=132.0.0wss4j_1.5.11.wso2v6 [418]
org.bouncycastle.asn1.x509; version=132.0.0wss4j_1.5.11.wso2v6 [418]
org.bouncycastle.jce; version=132.0.0wss4j_1.5.11.wso2v6 [418]
org.bouncycastle.jce.provider; version=132.0.0wss4j_1.5.11.wso2v6
[418]


Bouncycastle 1.45 is not included in IS. Therefore I copied it to the
dropins folder, and confirmed that it is loaded from osgi console. Still It
has chosen to load bouncycastle classes from wss4j.

osgiss

22 ACTIVE  bcprov-jdk16_1.45.0.wso2v1
..


osgib 22

Exported packages
org.bouncycastle; version=1.45.0.wso2v1[exported]
org.bouncycastle.asn1; version=1.45.0.wso2v1[exported]
org.bouncycastle.asn1.bc; version=1.45.0.wso2v1[exported]



How can I fix this issue to load the correct version?

-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: http://blog.pulasthi.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to import a specific version of a library from OSGI

2014-06-15 Thread Dilshan Edirisuriya
Hi Pulasthi,

I too faced the same issue when working with bouncycastle. Anyway I have
created bouncycastle orbit bundles in carbon 4.2.0. You can use them. So in
your imports you can add the versions as below. FYI bouncycastle in orbit
version are 1.49 so you could use the same.

Import-Package

org.bouncycastle.asn1.x500.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1),

org.bouncycastle.cert.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1),
org.bouncycastle.cms.*;version=[1.40.0.wso2v1,
1.50.0.wso2v1),

org.bouncycastle.jce.provider.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1),

org.bouncycastle.operator.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1),

org.bouncycastle.pkcs.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1),

org.bouncycastle.util.*;version=[1.40.0.wso2v1, 1.50.0.wso2v1)

/Import-Package

Regards,

Dilshan


On Sun, Jun 15, 2014 at 4:50 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,

 I want to use BouncyCastle v 1.45 with Identity Server. In my pom.xml for
 the service component I have used the following configuration to import the
 BouncyCastle classes,

 Import-Packageorg.apache.axis2.*,
 org.wso2.carbon.core.utils.*,
 org.wso2.carbon.core.*,
 org.wso2.carbon.registry.core.*,
 org.wso2.carbon.utils.*,
 org.apache.commons.logging.*; version=1.0.4,
 org.osgi.framework,
 javax.servlet,
 javax.servlet.http,
 org.bouncycastle.*; version=1.45.0.wso2v1,
 org.wso2.carbon.security.*,
 *;resolution:=optional
 /Import-Package

 also, I have added the dependency as,

 dependency
 groupIdorg.bouncycastle.wso2/groupId
 artifactIdbcprov-jdk16/artifactId
 version1.45.wso2v1/version
 /dependency

 This compiles without any errors. But, with this configuration, I get a
 java.lang.NoSuchFieldError at runtime. When I debugged using the OSGI
 console, I noticed that my service component Imports a previous version
 (1.32) of bouncycastle from wss4j, although I have requested it to import
 1.45. And the field I'm using was not available in ver. 1.32.

 Following is the partial output of osgib 229, where 229 is the bundle
 id of my service component.

   Imported packages
 .
 org.bouncycastle.asn1; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.asn1.pkcs; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.asn1.x509; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.jce; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.jce.provider; version=132.0.0wss4j_1.5.11.wso2v6
 [418]


 Bouncycastle 1.45 is not included in IS. Therefore I copied it to the
 dropins folder, and confirmed that it is loaded from osgi console. Still It
 has chosen to load bouncycastle classes from wss4j.

 osgiss
 
 22 ACTIVE  bcprov-jdk16_1.45.0.wso2v1
 ..


 osgib 22
 
 Exported packages
 org.bouncycastle; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1.bc; version=1.45.0.wso2v1[exported]
 


 How can I fix this issue to load the correct version?

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to import a specific version of a library from OSGI

2014-06-15 Thread Manoj Kumara
Hi,

Seems like the package was resolved with highest version which is 132.0.0.
As Dilshan mentioned by providing import version range should resolve this.

ex: org.bouncycastle.*; version:=[1.45.0.wso2v1, 1.5.0)

Thanks,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188


On Sun, Jun 15, 2014 at 4:50 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,

 I want to use BouncyCastle v 1.45 with Identity Server. In my pom.xml for
 the service component I have used the following configuration to import the
 BouncyCastle classes,

 Import-Packageorg.apache.axis2.*,
 org.wso2.carbon.core.utils.*,
 org.wso2.carbon.core.*,
 org.wso2.carbon.registry.core.*,
 org.wso2.carbon.utils.*,
 org.apache.commons.logging.*; version=1.0.4,
 org.osgi.framework,
 javax.servlet,
 javax.servlet.http,
 org.bouncycastle.*; version=1.45.0.wso2v1,
 org.wso2.carbon.security.*,
 *;resolution:=optional
 /Import-Package

 also, I have added the dependency as,

 dependency
 groupIdorg.bouncycastle.wso2/groupId
 artifactIdbcprov-jdk16/artifactId
 version1.45.wso2v1/version
 /dependency

 This compiles without any errors. But, with this configuration, I get a
 java.lang.NoSuchFieldError at runtime. When I debugged using the OSGI
 console, I noticed that my service component Imports a previous version
 (1.32) of bouncycastle from wss4j, although I have requested it to import
 1.45. And the field I'm using was not available in ver. 1.32.

 Following is the partial output of osgib 229, where 229 is the bundle
 id of my service component.

   Imported packages
 .
 org.bouncycastle.asn1; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.asn1.pkcs; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.asn1.x509; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.jce; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.jce.provider; version=132.0.0wss4j_1.5.11.wso2v6
 [418]


 Bouncycastle 1.45 is not included in IS. Therefore I copied it to the
 dropins folder, and confirmed that it is loaded from osgi console. Still It
 has chosen to load bouncycastle classes from wss4j.

 osgiss
 
 22 ACTIVE  bcprov-jdk16_1.45.0.wso2v1
 ..


 osgib 22
 
 Exported packages
 org.bouncycastle; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1.bc; version=1.45.0.wso2v1[exported]
 


 How can I fix this issue to load the correct version?

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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


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


Re: [Dev] [API-M] Token expiration time is set 300s less than the given value when generating tokens using the UI

2014-06-15 Thread Sanjeewa Malalgoda
Yes that is the reason. Theoretically time stamp skew  cache duration 
token validity period.
Otherwise it will mess up token generation logic

Thanks,
sanjeewa.


On Sat, Jun 14, 2014 at 4:50 PM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 Noticed this API cloud. I have mentioned the steps in JIRA [1]. Can this
 be due to the default value of TimestampSkew300/TimestampSkew in
 identity.xml ??


 regards,
 Nirodha

 [1] https://wso2.org/jira/browse/CLOUD-166

 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078

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




-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] How to import a specific version of a library from OSGI

2014-06-15 Thread Pulasthi Mahawithana
Thanks Manoj, Dilshan,

I got the correct version loaded by specifying the version range.

However, It made one of the webapps not working, failing to load classes
from this bundle. I double checked the reason by reverting the changes I
made, and the webapp works as expected (It loads the classes from the
bundle) without BC version range at the bundle.

Any suggestions on getting that fixed?


On Sun, Jun 15, 2014 at 7:43 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi,

 Seems like the package was resolved with highest version which is 132.0.0.
 As Dilshan mentioned by providing import version range should resolve this.

 ex: org.bouncycastle.*; version:=[1.45.0.wso2v1, 1.5.0)

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Sun, Jun 15, 2014 at 4:50 PM, Pulasthi Mahawithana pulast...@wso2.com
 wrote:

 Hi,

 I want to use BouncyCastle v 1.45 with Identity Server. In my pom.xml for
 the service component I have used the following configuration to import the
 BouncyCastle classes,

 Import-Packageorg.apache.axis2.*,
 org.wso2.carbon.core.utils.*,
 org.wso2.carbon.core.*,
 org.wso2.carbon.registry.core.*,
 org.wso2.carbon.utils.*,
 org.apache.commons.logging.*; version=1.0.4,
 org.osgi.framework,
 javax.servlet,
 javax.servlet.http,
 org.bouncycastle.*; version=1.45.0.wso2v1,
 org.wso2.carbon.security.*,
 *;resolution:=optional
 /Import-Package

 also, I have added the dependency as,

 dependency
 groupIdorg.bouncycastle.wso2/groupId
 artifactIdbcprov-jdk16/artifactId
 version1.45.wso2v1/version
 /dependency

 This compiles without any errors. But, with this configuration, I get a
 java.lang.NoSuchFieldError at runtime. When I debugged using the OSGI
 console, I noticed that my service component Imports a previous version
 (1.32) of bouncycastle from wss4j, although I have requested it to import
 1.45. And the field I'm using was not available in ver. 1.32.

 Following is the partial output of osgib 229, where 229 is the bundle
 id of my service component.

   Imported packages
 .
 org.bouncycastle.asn1; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.asn1.pkcs; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.asn1.x509; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.jce; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.jce.provider; version=132.0.0wss4j_1.5.11.wso2v6
 [418]


 Bouncycastle 1.45 is not included in IS. Therefore I copied it to the
 dropins folder, and confirmed that it is loaded from osgi console. Still It
 has chosen to load bouncycastle classes from wss4j.

 osgiss
 
 22 ACTIVE  bcprov-jdk16_1.45.0.wso2v1
 ..


 osgib 22
 
 Exported packages
 org.bouncycastle; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1.bc; version=1.45.0.wso2v1[exported]
 


 How can I fix this issue to load the correct version?

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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



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




-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: http://blog.pulasthi.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to import a specific version of a library from OSGI

2014-06-15 Thread Dilshan Edirisuriya
Hi Pulasthi,

I assume you are using multiple bouncycastle components such as bcprov,
bcpkix etc. When there are dependencies to each other those bundles also
tries to load the classes where it fails to find the newest version. These
things have been already resolved in our orbit bundles. You better compile
them and add them in your dropins folder for now in order to proceed.

Regards,

Dilshan


On Sun, Jun 15, 2014 at 8:09 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Thanks Manoj, Dilshan,

 I got the correct version loaded by specifying the version range.

 However, It made one of the webapps not working, failing to load classes
 from this bundle. I double checked the reason by reverting the changes I
 made, and the webapp works as expected (It loads the classes from the
 bundle) without BC version range at the bundle.

 Any suggestions on getting that fixed?


 On Sun, Jun 15, 2014 at 7:43 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi,

 Seems like the package was resolved with highest version which is 132.0.0.
 As Dilshan mentioned by providing import version range should resolve this.

 ex: org.bouncycastle.*; version:=[1.45.0.wso2v1, 1.5.0)

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Sun, Jun 15, 2014 at 4:50 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Hi,

 I want to use BouncyCastle v 1.45 with Identity Server. In my pom.xml
 for the service component I have used the following configuration to import
 the BouncyCastle classes,

 Import-Packageorg.apache.axis2.*,
 org.wso2.carbon.core.utils.*,
 org.wso2.carbon.core.*,
 org.wso2.carbon.registry.core.*,
 org.wso2.carbon.utils.*,
 org.apache.commons.logging.*;
 version=1.0.4,
 org.osgi.framework,
 javax.servlet,
 javax.servlet.http,
 org.bouncycastle.*; version=1.45.0.wso2v1,
 org.wso2.carbon.security.*,
 *;resolution:=optional
 /Import-Package

 also, I have added the dependency as,

 dependency
 groupIdorg.bouncycastle.wso2/groupId
 artifactIdbcprov-jdk16/artifactId
 version1.45.wso2v1/version
 /dependency

 This compiles without any errors. But, with this configuration, I get a
 java.lang.NoSuchFieldError at runtime. When I debugged using the OSGI
 console, I noticed that my service component Imports a previous version
 (1.32) of bouncycastle from wss4j, although I have requested it to import
 1.45. And the field I'm using was not available in ver. 1.32.

 Following is the partial output of osgib 229, where 229 is the bundle
 id of my service component.

   Imported packages
 .
 org.bouncycastle.asn1; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.asn1.pkcs; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.asn1.x509; version=132.0.0wss4j_1.5.11.wso2v6
 [418]
 org.bouncycastle.jce; version=132.0.0wss4j_1.5.11.wso2v6 [418]
 org.bouncycastle.jce.provider; version=132.0.0wss4j_1.5.11.wso2v6
 [418]


 Bouncycastle 1.45 is not included in IS. Therefore I copied it to the
 dropins folder, and confirmed that it is loaded from osgi console. Still It
 has chosen to load bouncycastle classes from wss4j.

 osgiss
 
 22 ACTIVE  bcprov-jdk16_1.45.0.wso2v1
 ..


 osgib 22
 
 Exported packages
 org.bouncycastle; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1; version=1.45.0.wso2v1[exported]
 org.bouncycastle.asn1.bc; version=1.45.0.wso2v1[exported]
 


 How can I fix this issue to load the correct version?

 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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



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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Connector-Store] ES 1.1.0 M3 when try to add new assert

2014-06-15 Thread Dushan Abeyruwan
anoter blocker , https://wso2.org/jira/browse/STORE-438


On Sat, Jun 14, 2014 at 7:11 PM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi Sameera and ES Team,
   Created jira please regard this as high priority blocker,
 https://wso2.org/jira/browse/STORE-436


 Cheers,
 Dushan


 On Fri, Jun 13, 2014 at 8:50 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi Dushan,

 This error is not due to the configurations in the user-mgt.xml.
 The RXT used in the ES  has configured to use the username in storage
 path.

 The special character are not allowed in resource path, so you need to
 clear this with ES team.

 Thanks.
 Ajith.




 On Fri, Jun 13, 2014 at 8:26 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Have done changes to user-mgt.xml, instead of *uid*, changes to *mail*
 address, getting exception how to avoid ?

   --
 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager
 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property
 Property name=ReadOnlytrue/Property
 Property name=Disabledfalse/Property
 Property name=MaxUserNameListLength100/Property
 Property name=ConnectionURL/Property
 Property name=ConnectionName*uid=connectorstoreuse*
 r,/Property
 Property name=ConnectionPasswordx/Property
 Property name=passwordHashMethodMD5/Property
 Property name=UserSearchBaseou=user,/Property
 Property
 name=UserNameListFilter(objectClass=inetOrgPerson)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=inetOrgPerson)*(mail=?)*
 )/Property
 Property name=UserNameAttribute*mail*/Property
 Property name=ReadGroupstrue/Property
 Property name=GroupSearchBasexx/Property
 Property
 name=GroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=groupOfNames)(cn=?))/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups/Property
 Property
 name=SharedGroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=SharedTenantNameListFilter(objectClass=organizationalUnit)/Property
 Property nam


  artifact id: 789b9249-1605-4d70-ba6d-cda88dce4bd2. The path
 '/_system/governance/esbconnectors/dus...@wso2.com/Test123/1.0.0'
 contains one or more illegal characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:216)
 at
 org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:170)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 ... 97 more
 Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException:
 The path '/_system/governance/esbconnectors/
 dus...@wso2.com/Test123/1.0.0' contains one or more illegal characters
 (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:194)
 ... 103 more

 Cheers,
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Dushan Abeyruwan | Associate Tech Lead
  Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Scratch area for App Factory developments

2014-06-15 Thread Shamika Ariyawansa
HI,

$subject is created on following location

https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0

Please use product-releases/chunk-af for the builds and update this as an
when you are adding new components, features etc.

Regards,

-- 
Shamika Ariyawansa
Senior Software Engineer
WSO2, Inc.; http://wso2.com

LK -  +94 7639629 Ext 5999
US - +1 408 754 7388 Ext 51732
Mob:+ 94 772929486

*twitter: **https://twitter.com/Amila_Shamika*
https://twitter.com/Amila_Shamika
*linked-in: *http://www.linkedin.com/pub/dir/Shamika/Ariyawansa

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


Re: [Dev] [Connector-Store] ES 1.1.0 M3 when try to add new assert

2014-06-15 Thread Ayesha Dissanayaka
Hi Dushan,

Same blocker mentioned in https://wso2.org/jira/browse/STORE-438 has
occurred to me, when there were mismatches between asset-type.rxt and
relevant asset-type.json. I was able to resolve it by configuring
asset-type.json file.




On Mon, Jun 16, 2014 at 7:44 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 anoter blocker , https://wso2.org/jira/browse/STORE-438


 On Sat, Jun 14, 2014 at 7:11 PM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi Sameera and ES Team,
   Created jira please regard this as high priority blocker,
 https://wso2.org/jira/browse/STORE-436


 Cheers,
 Dushan


 On Fri, Jun 13, 2014 at 8:50 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi Dushan,

 This error is not due to the configurations in the user-mgt.xml.
 The RXT used in the ES  has configured to use the username in storage
 path.

 The special character are not allowed in resource path, so you need to
 clear this with ES team.

 Thanks.
 Ajith.




 On Fri, Jun 13, 2014 at 8:26 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Have done changes to user-mgt.xml, instead of *uid*, changes to *mail*
 address, getting exception how to avoid ?

   --
 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager
 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property
 Property name=ReadOnlytrue/Property
 Property name=Disabledfalse/Property
 Property name=MaxUserNameListLength100/Property
 Property name=ConnectionURL/Property
 Property name=ConnectionName*uid=connectorstoreuse*
 r,/Property
 Property name=ConnectionPasswordx/Property
 Property name=passwordHashMethodMD5/Property
 Property name=UserSearchBaseou=user,/Property
 Property
 name=UserNameListFilter(objectClass=inetOrgPerson)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=inetOrgPerson)*(mail=?)*
 )/Property
 Property name=UserNameAttribute*mail*/Property
 Property name=ReadGroupstrue/Property
 Property name=GroupSearchBasexx/Property
 Property
 name=GroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=groupOfNames)(cn=?))/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups/Property
 Property
 name=SharedGroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=SharedTenantNameListFilter(objectClass=organizationalUnit)/Property
 Property nam


  artifact id: 789b9249-1605-4d70-ba6d-cda88dce4bd2. The path
 '/_system/governance/esbconnectors/dus...@wso2.com/Test123/1.0.0'
 contains one or more illegal characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:216)
 at
 org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:170)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 ... 97 more
 Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException:
 The path '/_system/governance/esbconnectors/
 dus...@wso2.com/Test123/1.0.0' contains one or more illegal characters
 (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:194)
 ... 103 more

 Cheers,
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Dushan Abeyruwan | Associate Tech Lead
  Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042


 

Re: [Dev] [IS] Debug log prints every 2 seconds

2014-06-15 Thread Asela Pathberiya
On Sun, Jun 15, 2014 at 12:06 AM, Nirmal Fernando nir...@wso2.com wrote:

 IS 5.0;

 TID: [0] [IS] [2014-06-14 18:34:57,360] DEBUG
 {org.wso2.carbon.user.core.common.RealmCache} -  created authorization
 cache : org.wso2.carbon.caching.impl.CacheImpl@922bea56
 {org.wso2.carbon.user.core.common.RealmCache}
 TID: [0] [IS] [2014-06-14 18:34:59,444] DEBUG
 {org.wso2.carbon.user.core.common.RealmCache} -  created authorization
 cache : org.wso2.carbon.caching.impl.CacheImpl@922bea56
 {org.wso2.carbon.user.core.common.RealmCache}


I think, debug log is little bit confusing [1]. Cache Manager would return
the same cache instance...

[1]
http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0008/core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/common/RealmCache.java

Thanks,
Asela.



 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 
Thanks  Regards,
Asela

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


Re: [Dev] [Connector-Store] ES 1.1.0 M3 when try to add new assert

2014-06-15 Thread Dushan Abeyruwan
problem was due to some  malformed text data, Sameera knows this well


On Mon, Jun 16, 2014 at 9:24 AM, Ayesha Dissanayaka aye...@wso2.com wrote:

 Hi Dushan,

 Same blocker mentioned in https://wso2.org/jira/browse/STORE-438 has
 occurred to me, when there were mismatches between asset-type.rxt and
 relevant asset-type.json. I was able to resolve it by configuring
 asset-type.json file.




 On Mon, Jun 16, 2014 at 7:44 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 anoter blocker , https://wso2.org/jira/browse/STORE-438


 On Sat, Jun 14, 2014 at 7:11 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi Sameera and ES Team,
   Created jira please regard this as high priority blocker,
 https://wso2.org/jira/browse/STORE-436


 Cheers,
 Dushan


 On Fri, Jun 13, 2014 at 8:50 PM, Ajith Vitharana aji...@wso2.com
 wrote:

 Hi Dushan,

 This error is not due to the configurations in the user-mgt.xml.
 The RXT used in the ES  has configured to use the username in storage
 path.

 The special character are not allowed in resource path, so you need to
 clear this with ES team.

 Thanks.
 Ajith.




 On Fri, Jun 13, 2014 at 8:26 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Have done changes to user-mgt.xml, instead of *uid*, changes to
 *mail* address, getting exception how to avoid ?

   --
 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager
 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property
 Property name=ReadOnlytrue/Property
 Property name=Disabledfalse/Property
 Property name=MaxUserNameListLength100/Property
 Property name=ConnectionURL/Property
 Property name=ConnectionName*uid=connectorstoreuse*
 r,/Property
 Property name=ConnectionPasswordx/Property
 Property name=passwordHashMethodMD5/Property
 Property name=UserSearchBaseou=user,/Property
 Property
 name=UserNameListFilter(objectClass=inetOrgPerson)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=inetOrgPerson)
 *(mail=?)*)/Property
 Property name=UserNameAttribute*mail*/Property
 Property name=ReadGroupstrue/Property
 Property name=GroupSearchBasexx/Property
 Property
 name=GroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=groupOfNames)(cn=?))/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups/Property
 Property
 name=SharedGroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=SharedTenantNameListFilter(objectClass=organizationalUnit)/Property
 Property nam


  artifact id: 789b9249-1605-4d70-ba6d-cda88dce4bd2. The path
 '/_system/governance/esbconnectors/dus...@wso2.com/Test123/1.0.0'
 contains one or more illegal characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:216)
 at
 org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:170)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 ... 97 more
 Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException:
 The path '/_system/governance/esbconnectors/
 dus...@wso2.com/Test123/1.0.0' contains one or more illegal
 characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:194)
 ... 103 more

 Cheers,
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Dushan Abeyruwan | Associate Tech Lead
  Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Dushan Abeyruwan | Associate Tech Lead
 

Re: [Dev] [BAM] Optimizing BAM Mediator Data Publishing Logic

2014-06-15 Thread Gayan Yalpathwala
Hi Imesh,

Considering perf details you have mentioned, having the BAM mediator after
a send mediator would optimize the situation. But it is not the recommended
to add any mediator after a send mediator. If you check in Developer
studio, we have deliberately restricted this behavior.

Thanks,


On Fri, Jun 13, 2014 at 10:20 AM, Imesh Gunaratne im...@wso2.com wrote:

 HI Ayash,

 Yes after doing the optimisations we placed the BAM mediator after the
 send call in the out mediation flow.

 Thanks


 On Fri, Jun 13, 2014 at 2:33 AM, Ayash ayashkan...@wso2.com wrote:

 Hi Imesh,

 While experiencing this problem, do you remember where the BAM Mediators
 were in the mediation flow? Have you kept them after calling send or
 before in the mediation flow?

 Thanks,
 -Ayash


 On Thu, Feb 13, 2014 at 2:18 PM, Imesh Gunaratne im...@wso2.com wrote:

 s/comapred/compared/g
 s/millisecods/milliseconds/g


 On Thu, Feb 13, 2014 at 10:21 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi Sinthuja,

 Thanks for your response. Absolutely the concern is not with the data
 publisher but with the bam mediator logic being executed in the mediation
 flow.

 This is something I experienced during last couple of days while
 configuring several BAM mediators in an ESB flow. When a load test was run
 (with a set of concurrent users) and the ESB mediation latency was
 monitored, the BAM mediators were taking considerable amount of time
 comapred with the ESB latency without having the BAM mediators. It was like
 90 ms with the BAM mediators and 35 ms without them.

 What I wanted to highlight here is that, I could not see any reason for
 executing the above logic in the mediation flow and adding several
 millisecods to the ESB latency.

 Thanks


 On Thu, Feb 13, 2014 at 12:32 AM, Sinthuja Ragendran sinth...@wso2.com
  wrote:

 Hi Imesh,

 Publish() method in data publisher is not a blocking call, it's a
 asynchronous call. Within data publisher the events are put into a queue
 and a separate thread does the real publishing to BAM. Also in BAM
 mediator, the AsyncDataPublisher is being used therefore the connection to
 BAM is also made asynchronous.  Hence IMHO it's not required to spawn a 
 new
 thread externally to publish the events and make it complicated.

 Thanks,
 Sinthuja.


 On Thu, Feb 13, 2014 at 2:15 AM, Imesh Gunaratne im...@wso2.com
 wrote:

 Hi,

 This is regarding the BAM Mediator 4.2.0.
 As it looks like currently the BAM Mediator is executing the data
 publishing logic in the same thread which the current message mediation 
 is
 happening:

 public class BamMediator:

 public boolean mediate(MessageContext messageContext) {
   ...
   try {
 stream.sendEvents(messageContext);
   } catch (BamMediatorException e) {
   return true;
   }

}
 }

 public class Stream {

 ...

 public void sendEvents(MessageContext messageContext) throws 
 BamMediatorException {
 ActivityIDSetter activityIDSetter = new ActivityIDSetter();
 activityIDSetter.setActivityIdInTransportHeader(messageContext);
 try {
 if (!isPublisherCreated) {
 initializeDataPublisher(this);
 isPublisherCreated = true;
 }
 this.publishEvent(messageContext);
 } catch (BamMediatorException e) {
 String errorMsg = Problem occurred while logging events in 
 the BAM Mediator.  + e.getMessage();
 log.error(errorMsg, e);
 throw new BamMediatorException(errorMsg, e);
 }
 }

 ...

 }

 I think if we move this logic to a new thread we could reduce the
 time it takes to execute the data publishing logic from the main message
 flow. WDYT?

 Thanks

 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




 --
 *Sinthuja Rajendran*
 Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




 --
 Ayashkantha Ramasinghe
 Software Engineer WSO2, Inc.
 email: ayashkan...@wso2.com sanj...@wso2.com;
 TP: +94 77 7 487 669




 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


 

Re: [Dev] [Connector-Store] ES 1.1.0 M3 when try to add new assert

2014-06-15 Thread Ayesha Dissanayaka
Ah, oki thanks a lot [?]


On Mon, Jun 16, 2014 at 9:47 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 problem was due to some  malformed text data, Sameera knows this well


 On Mon, Jun 16, 2014 at 9:24 AM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi Dushan,

 Same blocker mentioned in https://wso2.org/jira/browse/STORE-438 has
 occurred to me, when there were mismatches between asset-type.rxt and
 relevant asset-type.json. I was able to resolve it by configuring
 asset-type.json file.




 On Mon, Jun 16, 2014 at 7:44 AM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 anoter blocker , https://wso2.org/jira/browse/STORE-438


 On Sat, Jun 14, 2014 at 7:11 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi Sameera and ES Team,
   Created jira please regard this as high priority blocker,
 https://wso2.org/jira/browse/STORE-436


 Cheers,
 Dushan


 On Fri, Jun 13, 2014 at 8:50 PM, Ajith Vitharana aji...@wso2.com
 wrote:

 Hi Dushan,

 This error is not due to the configurations in the user-mgt.xml.
 The RXT used in the ES  has configured to use the username in storage
 path.

 The special character are not allowed in resource path, so you need to
 clear this with ES team.

 Thanks.
 Ajith.




 On Fri, Jun 13, 2014 at 8:26 PM, Dushan Abeyruwan dus...@wso2.com
 wrote:

 Hi
  Have done changes to user-mgt.xml, instead of *uid*, changes to
 *mail* address, getting exception how to avoid ?

   --
 UserStoreManager
 class=org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager
 Property
 name=TenantManagerorg.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager/Property
 Property name=ReadOnlytrue/Property
 Property name=Disabledfalse/Property
 Property name=MaxUserNameListLength100/Property
 Property name=ConnectionURL/Property
 Property name=ConnectionName*uid=connectorstoreuse*
 r,/Property
 Property name=ConnectionPasswordx/Property
 Property name=passwordHashMethodMD5/Property
 Property name=UserSearchBaseou=user,/Property
 Property
 name=UserNameListFilter(objectClass=inetOrgPerson)/Property
 Property
 name=UserNameSearchFilter(amp;(objectClass=inetOrgPerson)
 *(mail=?)*)/Property
 Property name=UserNameAttribute*mail*/Property
 Property name=ReadGroupstrue/Property
 Property name=GroupSearchBasexx/Property
 Property
 name=GroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=GroupNameSearchFilter(amp;(objectClass=groupOfNames)(cn=?))/Property
 Property name=GroupNameAttributecn/Property
 Property name=SharedGroupNameAttributecn/Property
 Property
 name=SharedGroupSearchBaseou=SharedGroups/Property
 Property
 name=SharedGroupNameListFilter(objectClass=groupOfNames)/Property
 Property
 name=SharedTenantNameListFilter(objectClass=organizationalUnit)/Property
 Property nam


  artifact id: 789b9249-1605-4d70-ba6d-cda88dce4bd2. The path
 '/_system/governance/esbconnectors/dus...@wso2.com/Test123/1.0.0'
 contains one or more illegal characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:216)
 at
 org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:170)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 ... 97 more
 Caused by:
 org.wso2.carbon.registry.core.exceptions.RegistryException: The path
 '/_system/governance/esbconnectors/dus...@wso2.com/Test123/1.0.0'
 contains one or more illegal characters (~!@#;%^*()+={}|\',)
  at
 org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
  at
 org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:194)
 ... 103 more

 Cheers,
 Dushan Abeyruwan | Associate Tech Lead
 Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 Blog:http://dushansview.blogspot.com/
 Mobile:(0094)713942042




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Dushan Abeyruwan | Associate Tech Lead
  Integration Technologies Team
 PMC Member Apache Synpase
 WSO2 Inc. http://wso2.com/
 

[Dev] how to access evet table parameters to pass to a custom siddhi function

2014-06-15 Thread Awanthika Senarath
Hi,

I want to pass parameters from an event table to a custom siddhi extension.
The following query [1] doesn's work. Can someone explain whether it is
possible and if so what Im doing wrong here?


[1]









*define table inMemoryTable (myid int, lastDateTime double, lattitude
double, longitude double);from FilteredStreamselect id, time, lat,
longitudeinsert into inMemoryTable;from FilteredStream[(time ==
inMemoryTable.lastDateTime and not(id == inMemoryTable.myid)) in
inMemoryTable]#window.time( 5 second ) select id, time, longitude, lat,
speed, false as speedFlag, false as withinFlag,null as withinPoint, false
as withinTime ,geo:geoproximity(2.0,lat,longitude,lat,longitude)as
proximity,*
*inMemoryTable.myid as closeIDinsert into proximityOutStream;*

[2] geo: geoproximity is a custom function that returns a string
thanks regards
-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please apply this patch to kernel 4.2.0 patch to patch0009.

2014-06-15 Thread Pulasthi Supun
Hi manoj,

Please apply the patch for [1] to the 4.2.0 branch patch0009.

[1] https://wso2.org/jira/browse/CARBON-14831

Regards,
Pulasthi


-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev