Re: [Dev] BRS testing

2014-04-22 Thread Shavantha Weerasinghe
Hi Thilini

When the BRS pack starts we dont see any thrift ports. Also noted was that
the config data-bridge-config.xml  was not available within the product
home.

Regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300



On Mon, Apr 21, 2014 at 1:30 PM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 Please take a full checkout of BRS components and features and build from
 the product-releases/chunk-09 dir. That'll resolve your issue.

 Thanks
 Thilini


 On Mon, Apr 21, 2014 at 12:52 PM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi Thilini

 When building from top level the below issue occurs. I have taken an svn
 up prior to building from the root level.

 [INFO] --- maven-dependency-plugin:2.8:unpack (unpack-equinox-executable)
 @ wso2brs-p2-profile ---
 [INFO] Configured Artifact:
 org.eclipse.equinox:org.eclipse.equinox.executable:3.5.0.v20110530-7P7NFUFFLWUl76mart:zip
 [INFO] Unpacking
 /home/shavantha/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.executable/3.5.0.v20110530-7P7NFUFFLWUl76mart/org.eclipse.equinox.executable-3.5.0.v20110530-7P7NFUFFLWUl76mart.zip
 to
 /home/shavantha/projects/brs/platform/2.1.0/modules/p2-profile-gen/target
 with includes  and excludes 
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (3-p2-repo-generation) @
 wso2brs-p2-profile ---
 [ERROR] Error occured when processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 org.apache.maven.plugin.MojoExecutionException: Error occured when
 processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
 at
 org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
 at
 org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
 at
 org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43)
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
 ... 23 more
 Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
 -Dpackaging=zip -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
 there:
 mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


   

Re: [Dev] Global cluster cache invalidation code review Notes

2014-04-22 Thread Subash Chaturanga
Hi Amal,
Please move the code to the aforesaid place and Shazni will be working with
you on moving registry related caching invalidation to new impl. Please
help him to configure on how to, and also we need to document this.

Thanks


On Tue, Apr 22, 2014 at 11:22 AM, Afkham Azeez az...@wso2.com wrote:




 On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we decided
 to make this a generic module that can be reused by the platform.   I
 believe the package name is also
 finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel / core /
 org.wso2.carbon.caching.core  and put this under a new package named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


 I am fine with that as long as the subscription to the topic does not
 automatically happen if that code is there. In most cases, we will not need
 this global cache invalidation, so that code should not get executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time to
 accelerate the process and during the weekend I managed to finish all the
 TODOs. Currently it's not yet in kernal git repo. I have the latest code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I can add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 Let us know once the TODOs done in the code review except the JMS
 alternative discussion.  One of G-Reg RD folk will assign on migrating
 GReg cache invalidation to this pub sub impl.  I hope now your component is
 in the kernel git repo.

 Hi Azeez,Sagara
 Once registry and user permission moved to this impl, it needs quite
 amount of testing  on production aspects. Since this is almost a new
 feature and this leads documentation change in all products
 (mounting/caching) I believe we should not provide this as a patch for a
 customer unless it is really required.








 On Thu, Apr 17, 2014 at 10:37 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Sagara,

 As Azeez mentioned there is an interface at CarbonUtils named as
 CacheInvalidator. My component will implement this interface. We planned 
 to
 have the interface at CarbonUtils because every product will need this
 service.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 6:03 AM, Afkham Azeez az...@wso2.com wrote:




 On Thu, Apr 17, 2014 at 12:33 AM, Sagara Gunathunga 
 sag...@wso2.comwrote:




 On Wed, Apr 16, 2014 at 2:57 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi All,

 Following updates has been discussed on $subject.

 1) Make the subscription auto subscribe once the jar bundle is
 present.
 2) Check on how to resubscribe if the server goes down and comes up
 3) If the sever goes down when a message receives check whether it
 queues the message and receive.
 4) jndi.properties file

- If the file is already present at conf directory then load
the settings but if the expecting parameters not found put error 
 log and
show the user needed parameters.
- If the file is not present then put the file to conf
directory and log a warning message

 5) It was discussed whether we are going to use AMPQ instead JMS.
 This has to be determined which I will open a separate thread for
 discussion.

 6) Generate UUID and do the message comparison to ignore own
 messages.

 7) Let the topic name configurable.

 Hi Amal,

 Have you define a clear API and separate it from JMS implementation
 ? IMO having a clear API is must thing for this feature as we may have 
 to
 include some other implementations in future. I'm thinking about SNS 
 based
 implementation for future where EC2 users have freedom to use native
 supported SNS based implementation effectively instead of bringing  and
 configuring another message broker into the deployment setup.


 There is an interface with a single method, and using JMS is just an
 implementation detail of Amal's component.


 Thanks !


 Please update the thread if there are any further updates.

  Thank you   Best regards,

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

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




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  

Re: [Dev] Please Trigger a build for drools/6.0.1-wso2v1 in github

2014-04-22 Thread Kasun Gajasinghe
Hi Thilini,

We cannot update an already released bundle. This would break lot of
functionality. You will have to increment the version number, and release.

Thanks,
KasunG


On Tue, Apr 22, 2014 at 10:51 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi KasunG,

 Please trigger a build for drools/6.0.1-wso2v1 [1].
 We made an update on that and need the updated artifacts to go into
 wso2-public nexus repo [2].

 [1] https://github.com/wso2/orbit/tree/master/drools/6.0.1-wso2v1
 [2]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/drools/wso2/drools/6.0.1.wso2v1/


 Thanks
 Thilini
 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh




-- 

*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] BRS testing

2014-04-22 Thread Thilini Ishaka
Hi Shavantha,

Please create jira issues. We are working on fixing the reported issues.

Thanks
Thilini


On Tue, Apr 22, 2014 at 11:30 AM, Shavantha Weerasinghe
shavan...@wso2.comwrote:

 Hi Thilini

 When the BRS pack starts we dont see any thrift ports. Also noted was that
 the config data-bridge-config.xml  was not available within the product
 home.

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Mon, Apr 21, 2014 at 1:30 PM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 Please take a full checkout of BRS components and features and build from
 the product-releases/chunk-09 dir. That'll resolve your issue.

 Thanks
  Thilini


 On Mon, Apr 21, 2014 at 12:52 PM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi Thilini

 When building from top level the below issue occurs. I have taken an svn
 up prior to building from the root level.

 [INFO] --- maven-dependency-plugin:2.8:unpack
 (unpack-equinox-executable) @ wso2brs-p2-profile ---
 [INFO] Configured Artifact:
 org.eclipse.equinox:org.eclipse.equinox.executable:3.5.0.v20110530-7P7NFUFFLWUl76mart:zip
 [INFO] Unpacking
 /home/shavantha/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.executable/3.5.0.v20110530-7P7NFUFFLWUl76mart/org.eclipse.equinox.executable-3.5.0.v20110530-7P7NFUFFLWUl76mart.zip
 to
 /home/shavantha/projects/brs/platform/2.1.0/modules/p2-profile-gen/target
 with includes  and excludes 
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (3-p2-repo-generation) @
 wso2brs-p2-profile ---
 [ERROR] Error occured when processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 org.apache.maven.plugin.MojoExecutionException: Error occured when
 processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
 at
 org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
 at
 org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
 at
 org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43)
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
 ... 23 more
 Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
 -Dpackaging=zip -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
 there:
 mvn 

[Dev] Product repo naming in GitHub

2014-04-22 Thread Udara Rathnayake
Hi all,

At the moment we do have our products within GitHub[1][2]. Since we need to
move in to the Git organizational model with repos in both wso2 and
wso2-dev organizations we can,

i) Rename existing repos within wso2 into product-{name}
ii) Create new repos and move existing source

By following the 1st approach we can keep our history (but we are going to
work in wso2-dev fresh repo after this move) and GitHub will redirect
existing information to the new name[3]. Anyway we have to create new repos
within wso2-dev organization.

[1] https://github.com/wso2/enterprise-store
[2] https://github.com/wso2/ues
[3] https://help.github.com/articles/renaming-a-repository

Regards,
UdaraR
-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Product repo naming in GitHub

2014-04-22 Thread Udara Rathnayake
On Tue, Apr 22, 2014 at 11:43 AM, Udara Rathnayake uda...@wso2.com wrote:

 Hi all,

 At the moment we do have our products within GitHub[1][2]. Since we need
 to move in to the Git organizational model with repos in both wso2 and
 wso2-dev organizations we can,

 i) Rename existing repos within wso2 into product-{name}
 ii) Create new repos and move existing source

 By following the 1st approach we can keep our history (but we are going to
 work in wso2-dev fresh repo after this move) and GitHub will redirect
 existing information to the new name[3]. Anyway we have to create new repos
 within wso2-dev organization.

we need to have folks not new repos..my mistake


 [1] https://github.com/wso2/enterprise-store
 [2] https://github.com/wso2/ues
 [3] https://help.github.com/articles/renaming-a-repository

 Regards,
 UdaraR
 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com




-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM Interceptor modification]

2014-04-22 Thread Lakmali Baminiwatta
Hi Gayan,


On 22 April 2014 09:04, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 I am working on altering  org.wso2.carbon.apimgt.interceptor component
 to support generic API formats. In the available version it supports only
 one context noun before version therefore we cannot define APIs like
 foo/bar/1.0.0

 What I am doing is make it generic to support any sub context after root
 context like a/b/c/d/1.0.0

 The logic is to compare existing AM_API table records against current
 request including version and pick up context, version from database
 record. The logic works fine and I had to modify
  interceptorOps.doThrottle(request, accessToken) --
 interceptorOps.doThrottle(request, accessToken, context, apiVersion); to
 pass context and version
 now altered doThrottle method like

 public boolean doThrottle(Request request, String accessToken, String
 context, String version) throws APIFaultException {

 String apiName = context;
 String apiVersion = version;
 String apiIdentifier = apiName + - + apiVersion;

 APIThrottleHandler throttleHandler = null;
 ConfigurationContext cc = DataHolder.getServerConfigContext();

  if (cc.getProperty(apiIdentifier) == null) {
 throttleHandler = new APIThrottleHandler();
 /* Add the Throttle handler to ConfigContext against
 API Identifier */
  cc.setProperty(apiIdentifier, throttleHandler);
  } else {
 throttleHandler = (APIThrottleHandler)
 cc.getProperty(apiIdentifier);
  }

   if (throttleHandler.doThrottle(request, apiKeyValidationDTO,
 accessToken)) {
 return true;
   } else {
 throw new
 APIFaultException(APIManagerErrorConstants.API_THROTTLE_OUT,
 You have exceeded your
 quota);
}

 }

 What happen here is ConfigurationContext getting null and throws null
 pointer exception. This can be avoided by doing simple null check but will
 there be any side effects by doing it ?

 If configuration context is null how can I invoke setProperty ?


As found while debugging, interceptor component activation doesn't complete
successfully due to some unsatisfied dependencies with the usage.publisher
component. As a result ConfigurationContext become null. We need to further
debug and find the root cause of this issue. I'll also have a look.

Thanks,
Lakmali


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




-- 
Lakmali Baminiwatta
 Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM Interceptor modification]

2014-04-22 Thread Gayan Gunawardana
Hi,

Thanks for the quick reply. I also try to further have a look.


On Tue, Apr 22, 2014 at 11:47 AM, Lakmali Baminiwatta lakm...@wso2.comwrote:

 Hi Gayan,


 On 22 April 2014 09:04, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 I am working on altering  org.wso2.carbon.apimgt.interceptor component
 to support generic API formats. In the available version it supports only
 one context noun before version therefore we cannot define APIs like
 foo/bar/1.0.0

 What I am doing is make it generic to support any sub context after root
 context like a/b/c/d/1.0.0

 The logic is to compare existing AM_API table records against current
 request including version and pick up context, version from database
 record. The logic works fine and I had to modify
  interceptorOps.doThrottle(request, accessToken) --
 interceptorOps.doThrottle(request, accessToken, context, apiVersion); to
 pass context and version
 now altered doThrottle method like

 public boolean doThrottle(Request request, String accessToken, String
 context, String version) throws APIFaultException {

 String apiName = context;
 String apiVersion = version;
 String apiIdentifier = apiName + - + apiVersion;

 APIThrottleHandler throttleHandler = null;
 ConfigurationContext cc = DataHolder.getServerConfigContext();

  if (cc.getProperty(apiIdentifier) == null) {
 throttleHandler = new APIThrottleHandler();
 /* Add the Throttle handler to ConfigContext against
 API Identifier */
  cc.setProperty(apiIdentifier, throttleHandler);
  } else {
 throttleHandler = (APIThrottleHandler)
 cc.getProperty(apiIdentifier);
  }

   if (throttleHandler.doThrottle(request, apiKeyValidationDTO,
 accessToken)) {
 return true;
   } else {
 throw new
 APIFaultException(APIManagerErrorConstants.API_THROTTLE_OUT,
 You have exceeded your
 quota);
}

 }

 What happen here is ConfigurationContext getting null and throws null
 pointer exception. This can be avoided by doing simple null check but will
 there be any side effects by doing it ?

 If configuration context is null how can I invoke setProperty ?


 As found while debugging, interceptor component activation doesn't
 complete successfully due to some unsatisfied dependencies with the
 usage.publisher component. As a result ConfigurationContext become null. We
 need to further debug and find the root cause of this issue. I'll also have
 a look.

 Thanks,
 Lakmali


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933




 --
 Lakmali Baminiwatta
  Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com




-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
Blog: http://gayanj2ee.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] App Server integration test migration status

2014-04-22 Thread Krishantha Samaraweera
Please find the result for AS integration tests. There are 22 test failures
out of 201 test cases.

SuitePassedFailedSkippedtestng.xml*Total**201**22**14*
as-server-setup-verifier
as-server-setup-verifier/index.html000Linkas-server-setup-verifier/testng.xml.html
APPServer-features-test-suite APPServer-features-test-suite/index.html201
2214Link APPServer-features-test-suite/testng.xml.html

We will start debugging these test cases today. You can find the surefire
report at [1]

[1]
https://svn.wso2.org/repos/wso2/people/krishantha/reports/as-surefire-report

Thanks,
Krishantha.

-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge DSS integration test commit#3 pull request

2014-04-22 Thread Nuwan Wimalasekara
Hi Chanika,
Please apply the pull request - https://github.com/wso2/product-dss/pull/3

This commit contains the improvement which makes test classes in sample
package to run both user and tenant modes at once. Now all the DSS sample
test cases are running as user and tenant as well.

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge DSS integration test commit#3 pull request

2014-04-22 Thread Chanika Geeganage
Hi Nuwan,

I have merged the commit



On Tue, Apr 22, 2014 at 12:06 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi Chanika,
 Please apply the pull request - https://github.com/wso2/product-dss/pull/3

 This commit contains the improvement which makes test classes in sample
 package to run both user and tenant modes at once. Now all the DSS sample
 test cases are running as user and tenant as well.

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Flush the 4.3.0 Kernel PR queue

2014-04-22 Thread Kasun Gajasinghe
Hi Sameera,

Could you please do $subject? There are 15+ commits waiting in the queue.

[1] https://github.com/wso2/carbon4-kernel/pull/4

Thanks,
KasunG

-- 

*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] [ESB][SecureClient][Axis2Fault] Must Understand check failed for header

2014-04-22 Thread Prasad Fernando
Hi,

Any updates on the root cause for the above issue? I am using the dependent
libraries (including rampart) come with the ESB 4.8.1
repository/components/plugins folder for my esb client. Included the bouncy
castle jar which is for jdk 1.5 - 1.7 and both ESB and client are running
on jdk 1.6 u45.

Thanks


On Fri, Apr 18, 2014 at 12:20 PM, Prasad Fernando pras...@wso2.com wrote:

 Hi,

 I have added RampartMessageData.KEY_RAMPART_POLICY with the client policy
 xml to client's options and engaged the rampart module to the client.

 thanks


 On Fri, Apr 18, 2014 at 12:10 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 Your client should build the required security headers. How have you
 configured Apache Rampart to your service client?

 Thanks,
 -Suresh


 On Fri, Apr 18, 2014 at 8:23 AM, Prasad Fernando pras...@wso2.comwrote:

 hi,

 I have secured the proxy service with the attached policy. Also attached
 the source view of my secure proxy service.

 thanks


 On Thu, Apr 17, 2014 at 5:05 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 What is the security scenario/policy you are trying here ? How have you
 secured the service ?

 Thanks,
 -Suresh


 On Thu, Apr 17, 2014 at 4:58 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 I am getting the following error when I connect my secure client to
 the esb secure proxy service.

 *ON ESB*
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
  at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption (KeyId))
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
  at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
  ... 10 more
 [2014-04-17 16:44:34,101] ERROR - ServerWorker Error processing POST
 request for : /services/SecureOrderService
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption (KeyId))
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
  at
 

Re: [Dev] DSS(wso2dss-3.3.0-SNAPSHOT) Integration Test Migration

2014-04-22 Thread Nuwan Wimalasekara
Hi,
All the test classes for DSS samples have been improved to make compatible
with both user and tenant mode test execution at once. Now test classes for
samples are running as the user(supper admin) and as the tenant(
ad...@wso2.com) when executing the integration tests. It will ensure the
same scenario is working for users(super tenant) as well as the tenant.

Test results
SuitePassedFailedSkipped
*Total**239**0**0*
DssTestSuite DssTestSuite/index.html23900

Thanks,
Nuwanw


On Fri, Apr 18, 2014 at 4:27 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Thanks. Will make the test cases to run both user and tenant modes.

 Thanks,
 Nuwanw


 On Fri, Apr 18, 2014 at 4:24 PM, Chanika Geeganage chan...@wso2.comwrote:

 Hi Nuwan,

 I added the tenant mgt features to the DSS product.

 Thanks


 On Thu, Apr 17, 2014 at 2:56 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi
 I have completed the DSS integration test[1](user mode) migration to new
 framework and All the test cases are passed when the tests are running
 as a user.

 Now I am in the middle of the process to make the same test classes run
 both user mode and tenant mode. However, due to the unavailability of
 tenant management feature in the DSS 3.3.0-SNAPSHOT, tenant can not be
 populated for the test cases.

 @DSS Team
 Can you please add the tenant management feature to next DSS build. Then
 I can start running test classes as the tenant  as well


 SuitePassedFailedSkipped
 *Total**202**0* *0*
 DssTestSuite http://DssTestSuite/index.html 20200


 [1]
 https://github.com/wso2/product-dss/tree/master/modules/integration/tests-integration

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com




 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Aggregate operations support for life cycles - Issue

2014-04-22 Thread Maheshakya Wijewardena
Hi,
I have encountered an issue during the implementation. Initial plan was as
follows:

governance.api contains following modules.


   - GovernanceBatchValidate interface: This interface contains the
   validate method.
   - GovernanceAggregateOperations: This uses the OSGi service tracker to
   retrieve the correct validator which is registered as an OSGi service.
   (This registration happens in governance.registry.extenstions, thus
   requires that dependency)

governance.registry.extenstions contains following modules:


   - LifecycleValidateUtil: At the moment, only this is implemented as a
   custom validator. This checks whether lifecycle states are consistent. This
   class implements GovernanceBatchValidate interface mentioned above(So that
   dependency is required here.)
   - BatchValidateServiceComponent: This registers the above implementation
   as an OSGi service. This will be used in GovernanceAggregateOperations
   class mentioned above.


This design as has flaw as there are cyclic references in the
dependencies(governance.api uses governance.registry.extensions and vice
versa). What may the possible solutions for this issue?

Currently we have a thought of moving GovernanceAggregateOperations into
governance.registry.extensions.

Best regards,
-- 
Maheshakya Wijewardena,
Software Engineering Intern.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Exception in regenerating Oauth tokens in APIM]

2014-04-22 Thread Gayan Gunawardana
 Hi,

We are working on Integrating APIM components to EMM for API security. I
have installed APIM features according to 1.6 release and Identity
components according to 5.0 release (next IS release). Following exception
occurs while regenerating tokens. I will revert back identity features
according to APIM 1.6 release.

Error in getting new accessToken
java.lang.reflect.InvocationTargetException
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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at
org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
at

[Dev] Fwd: What is the XML reading method in C5?

2014-04-22 Thread Shazni Nazeer
Shazni Nazeer

Senior Software Engineer

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


-- Forwarded message --
From: Shazni Nazeer sha...@wso2.com
Date: Tue, Apr 22, 2014 at 2:10 PM
Subject: What is the XML reading method in C5?
To: Sameera Jayasoma same...@wso2.com, Kishanthan Thangarajah 
kishant...@wso2.com
Cc: Manoj Kumara ma...@wso2.com, Sameera Perera samee...@wso2.com,
Subash Chaturanga sub...@wso2.com


Hi SameeraJ/Kishanthan,

What is the XML reading method in C5? As you may know I implemented the XML
reading logic in repository core in DOM, replacing AXIOM. As I remember
there was a discussion saying that XML reading should be done in JAXB. We
need to clarify whether we should continue changing our DOM implementation
into JAXB as this require couple of days of effort?

Shazni Nazeer

Senior Software Engineer

Mob : +94 715 440 607
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: What is the XML reading method in C5?

2014-04-22 Thread Manoj Kumara
Hi Shazni,

Currently we decided to use JAXB since its already available in JDK and
ease of use. From C5 onwards we'll use JAXB as the standard.

Thanks,
Manoj


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


On Tue, Apr 22, 2014 at 2:11 PM, Shazni Nazeer sha...@wso2.com wrote:


 Shazni Nazeer

 Senior Software Engineer

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


 -- Forwarded message --
 From: Shazni Nazeer sha...@wso2.com
 Date: Tue, Apr 22, 2014 at 2:10 PM
 Subject: What is the XML reading method in C5?
 To: Sameera Jayasoma same...@wso2.com, Kishanthan Thangarajah 
 kishant...@wso2.com
 Cc: Manoj Kumara ma...@wso2.com, Sameera Perera samee...@wso2.com,
 Subash Chaturanga sub...@wso2.com


 Hi SameeraJ/Kishanthan,

 What is the XML reading method in C5? As you may know I implemented the
 XML reading logic in repository core in DOM, replacing AXIOM. As I remember
 there was a discussion saying that XML reading should be done in JAXB. We
 need to clarify whether we should continue changing our DOM implementation
 into JAXB as this require couple of days of effort?

 Shazni Nazeer

 Senior Software Engineer

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


 ___
 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] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Gayan Yalpathwala
Hi Supun,

As far as I have identified, this can occur when the input does not match
with the expected. I think you might have sent a message wrapped by an
envelope where the method only expects the actual payload. Please refer
comments in [1].

[1] https://issues.apache.org/jira/browse/AXIOM-237

Thanks,


On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 Im trying to create a web-service in Axis2 and access the service from a
 client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not serialize
 OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] rampart-core:jar:1.6.1-wso2v12-SNAPSHOT was not deployed into the online SNAPSHOT repository

2014-04-22 Thread Kasun Gajasinghe
Hi Sagara,

Could you please check whether this has something to do with Nexus? I have
checked Jenkins, and the configuration seems to be identical to other jobs
such as wso2-synapse, wso2-wsdl4j etc. (except job name, github url etc. of
course) So, this might be an issue with the configuration in Nexus. The
issue is that the deployed snapshot artifacts are getting cleaned up after
awhile in nexus.

Thanks,
KasunG


On Tue, Apr 22, 2014 at 10:55 AM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Hi Kasun,

 Rampart dependency is missing in nexus repo again.

 Thanks,
 Krishantha.


 On Mon, Apr 21, 2014 at 4:02 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 I have re-triggered a new build, and rampart is now available -
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart/1.6.1-wso2v12-SNAPSHOT/


 On Mon, Apr 21, 2014 at 3:50 PM, Kasun Gajasinghe kas...@wso2.comwrote:


 This is puzzling since the last rampart build was done about 30 minutes
 ago, and I can see logs in Jenkins showing that it got uploaded to nexus.
 But it's not available in nexus! I'm investigating this issue further.


 On Mon, Apr 21, 2014 at 3:44 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Kasun,

 Rampart core dependency is still missing in nexus repo. Can you please
 have a look.

 Thanks,
 Krishantha.


 On Thu, Apr 10, 2014 at 6:50 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi
 I am still getting the issue when building on clean repo. Shall we
 deploy the jar into SNAPSHOT repo.

 Thanks,
 Nuwanw


 On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 I guess the nexus has cleaned up the rampart snapshots via its
 cleanup period task. We might need to re-visit how the cleanup happens. 
 We
 always need to keep the latest SNAPSHOTs.


 On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara 
 nuw...@wso2.comwrote:

 I am getting below error when building
 the carbon-platform-integration[1] and the rampart-core jar file can
 not be found in the repository[2].

 Please deploy the rampart-core jar into the SNAPSHOT repository.

 [ERROR] Failed to execute goal on project org.wso2.carbon.automation
 .test.utils: Could not resolve dependencies for project org.wso2.
 carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
 Failure to find 
 org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was
 cached in the local repository, resolution will not be reattempted until
 the update interval of wso2-nexus has elapsed or updates are forced-
 

 [1] https://github.com/wso2/carbon-platform-integration
 [2]
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --

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






 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *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






 --

 *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






 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 

*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] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Supun Sethunga
Hi Gayan,

I went through the link, but doesn't seems to be the issue in my case.

Message sent by the client does not contain the SOAP envelop. And the same
method actually works when accessed using sendReceive() function. I think
the issue is with the data type of the element in the wsdl, which is as
below.

xs:element name=viewOrder
   xs:complexType
xs:sequence
  xs:element minOccurs=0 name=element nillable=true
type=xs:*anyType*/
/xs:sequence
   /xs:complexType
/xs:element

It considers the type as anyType, thus the method in the stub is created
with a input parameter of the type java.lang.Object rather than an
OMElement.

Not sure about a solution as yet.

Thanks,
Supun


On Tue, Apr 22, 2014 at 2:55 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Supun,

 As far as I have identified, this can occur when the input does not match
 with the expected. I think you might have sent a message wrapped by an
 envelope where the method only expects the actual payload. Please refer
 comments in [1].

 [1] https://issues.apache.org/jira/browse/AXIOM-237

 Thanks,


 On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 Im trying to create a web-service in Axis2 and access the service from a
 client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not serialize
 OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Gayan Yalpathwala
Hi Supun,


On Tue, Apr 22, 2014 at 3:08 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Gayan,

 I went through the link, but doesn't seems to be the issue in my case.

 Message sent by the client does not contain the SOAP envelop. And the same
 method actually works when accessed using sendReceive() function. I think
 the issue is with the data type of the element in the wsdl, which is as
 below.

 xs:element name=viewOrder
xs:complexType
 xs:sequence
   xs:element minOccurs=0 name=element nillable=true
 type=xs:*anyType*/
 /xs:sequence
/xs:complexType
 /xs:element

 It considers the type as anyType, thus the method in the stub is
 created with a input parameter of the type java.lang.Object rather than
 an OMElement.


I found that there is a known issue here. Stub method is supposed to handle
any generic java object when the type is anyType in wsdl, but throws this
exception only for OMElement. There is a previous discussion subjecting *[Dev]
{Need help/ AXIS2}Unknown type can not serialize Exception* and I can
see two open issues ([1] and [2]) as well. I think Dushan can shed some
light on this.

[1] https://issues.apache.org/jira/browse/AXIS2-3797
[2] https://wso2.org/jira/browse/WSAS-1553


 Not sure about a solution as yet.

 Thanks,
 Supun


 On Tue, Apr 22, 2014 at 2:55 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi Supun,

 As far as I have identified, this can occur when the input does not match
 with the expected. I think you might have sent a message wrapped by an
 envelope where the method only expects the actual payload. Please refer
 comments in [1].

 [1] https://issues.apache.org/jira/browse/AXIOM-237

 Thanks,


 On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.com wrote:

  Hi,

 Im trying to create a web-service in Axis2 and access the service from a
 client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not
 serialize OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Supun Sethunga
Hi Gayan,

Thanks for looking in to it.

So what alternations can I take instead of sending an OMElement? Does
anyType accepts objects of some custom class (manually written), other
than generic type?
Or is it okay to send data using generic types (since it does not sound a
very good practice)?

Thanks and Regards,
Supun


On Tue, Apr 22, 2014 at 4:28 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi Supun,


 On Tue, Apr 22, 2014 at 3:08 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Gayan,

 I went through the link, but doesn't seems to be the issue in my case.

 Message sent by the client does not contain the SOAP envelop. And the
 same method actually works when accessed using sendReceive() function. I
 think the issue is with the data type of the element in the wsdl, which is
 as below.

 xs:element name=viewOrder
xs:complexType
 xs:sequence
   xs:element minOccurs=0 name=element nillable=true
 type=xs:*anyType*/
 /xs:sequence
/xs:complexType
 /xs:element

 It considers the type as anyType, thus the method in the stub is
 created with a input parameter of the type java.lang.Object rather than
 an OMElement.


 I found that there is a known issue here. Stub method is supposed to
 handle any generic java object when the type is anyType in wsdl, but
 throws this exception only for OMElement. There is a previous discussion
 subjecting *[Dev] {Need help/ AXIS2}Unknown type can not serialize
 Exception* and I can see two open issues ([1] and [2]) as well. I think
 Dushan can shed some light on this.

 [1] https://issues.apache.org/jira/browse/AXIS2-3797
 [2] https://wso2.org/jira/browse/WSAS-1553


 Not sure about a solution as yet.

 Thanks,
 Supun


 On Tue, Apr 22, 2014 at 2:55 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi Supun,

 As far as I have identified, this can occur when the input does not
 match with the expected. I think you might have sent a message wrapped by
 an envelope where the method only expects the actual payload. Please refer
 comments in [1].

 [1] https://issues.apache.org/jira/browse/AXIOM-237

 Thanks,


 On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.comwrote:

  Hi,

 Im trying to create a web-service in Axis2 and access the service from
 a client using the stub (which was generated using the wsdl). One of the
 methods takes a OMElement as the input parameter. Thus, when I call that
 method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not
 serialize OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following
 format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324



 Thanks,


 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP Patch support by ESB 4.8.1

2014-04-22 Thread Madhawa Bandara
Hi,
I applied the above patches and the requests with HTTP PATCH method work
well now.
But now I get a new exception for the requests in which a JSON payload is
used (inside the script mediator with language=js):

com.sun.phobos.script.util.ExtendedScriptException:
org.mozilla.javascript.EcmaError: ReferenceError: JSON is not defined.

Note that these methods worked fine *before *applying the patch. Any
suggestions?


On Mon, Apr 21, 2014 at 10:38 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Kasun,

 It's already done.

 https://wso2.org/jira/browse/ESBJAVA-3051
 https://wso2.org/jira/browse/ESBJAVA-3061

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:23 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Have we committed this in to trunk? If not please do so.


 On Mon, Apr 21, 2014 at 10:21 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Mahawa,

 Currently it's not supported. It'll be available with the next release.
 ESB 4.9.0

 But there is a patch for this.

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:13 AM, Madhawa Bandara madh...@wso2.comwrote:

 Hi,
 Does the ESB 4.8.1 support the HTTP patch method?
 When I make a http patch request, it is shown as an HTTP POST on the
 wire.

 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

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




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Regards,

*Madhawa Bandara*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+94777487726*
Blog* - *classdeffound.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-22 Thread Supun Sethunga
Hi Malintha,

Bingo! It worked.

Thanks,
Supun


On Tue, Apr 22, 2014 at 5:19 PM, Malintha Adikari malin...@wso2.com wrote:




 On Tue, Apr 22, 2014 at 5:03 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Gayan,

 Thanks for looking in to it.

 So what alternations can I take instead of sending an OMElement? Does
 anyType accepts objects of some custom class (manually written), other
 than generic type?
 Or is it okay to send data using generic types (since it does not sound a
 very good practice)?

 Thanks and Regards,
 Supun


 On Tue, Apr 22, 2014 at 4:28 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi Supun,


 On Tue, Apr 22, 2014 at 3:08 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Gayan,

 I went through the link, but doesn't seems to be the issue in my case.

 Message sent by the client does not contain the SOAP envelop. And the
 same method actually works when accessed using sendReceive() function. I
 think the issue is with the data type of the element in the wsdl, which is
 as below.

 xs:element name=viewOrder
xs:complexType
 xs:sequence
   xs:element minOccurs=0 name=element nillable=true
 type=xs:*anyType*/
 /xs:sequence
/xs:complexType
 /xs:element


 Try replacing above part in your wsdl with following


 xs:element name=viewOrder
xs:complexType
 xs:sequence

xs:any processContents=skip/

  /xs:sequence
/xs:complexType
 /xs:element

 Then ADB will generate code that represents the content of OriginalMessage
 as an OMElement.


 It considers the type as anyType, thus the method in the stub is
 created with a input parameter of the type java.lang.Object rather than
 an OMElement.


 I found that there is a known issue here. Stub method is supposed to
 handle any generic java object when the type is anyType in wsdl, but
 throws this exception only for OMElement. There is a previous discussion
 subjecting *[Dev] {Need help/ AXIS2}Unknown type can not serialize
 Exception* and I can see two open issues ([1] and [2]) as well. I
 think Dushan can shed some light on this.

 [1] https://issues.apache.org/jira/browse/AXIS2-3797
 [2] https://wso2.org/jira/browse/WSAS-1553


 Not sure about a solution as yet.

 Thanks,
 Supun


 On Tue, Apr 22, 2014 at 2:55 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi Supun,

 As far as I have identified, this can occur when the input does not
 match with the expected. I think you might have sent a message wrapped by
 an envelope where the method only expects the actual payload. Please refer
 comments in [1].

 [1] https://issues.apache.org/jira/browse/AXIOM-237

 Thanks,


 On Tue, Apr 22, 2014 at 10:13 AM, Supun Sethunga sup...@wso2.comwrote:

  Hi,

 Im trying to create a web-service in Axis2 and access the service
 from a client using the stub (which was generated using the wsdl). One of
 the methods takes a OMElement as the input parameter. Thus, when I call
 that method using the stub, I get the following Exception.












 *Exception in thread main java.lang.RuntimeException: Can not
 serialize OM Element Envelopeat
 org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
 at java.lang.String.valueOf(String.java:2854) at
 java.io.PrintStream.println(PrintStream.java:821)at
 client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
 at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)
 Caused by: javax.xml.stream.XMLStreamException: Unknow type can not
 serializeat
 org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
 at
 client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
 at
 org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
 *



 The OMElement which is sent as the parameter, takes the following
 format.



 *ns:viewOrder xmlns:ns=orderprocessorns
 ns:orderId0001/ns:orderId /ns:viewOrder*


 Any idea whats have been done wrong here?
 The other methods in the service stub, which takes data types
 int/string/etc as input parameters, work fine.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324



 Thanks,


 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/


[Dev] [Blocker] [API-M 1.7.0] KeyManager cluster fronted with ELB doesn't function properly

2014-04-22 Thread Nirodha Pramod
Hi,

APIs cannot be invoked when we use clustered keymanger fronted with ELB, in
the distributed setup. This is blocker to continue testing on the
keymanager cluster. Please have a look.

https://wso2.org/jira/browse/APIMANAGER-2192

regards,
Nirodha
-- 

*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


[Dev] Globally defined constants for Data Types

2014-04-22 Thread Sohani Weerasinghe
Hi All,

If I want to use datatypes like text/csv, application/xml etc. Instead
of defining them as shown below, is there a way to use globally defined
constants for those known data types? If so, can someone please state the
way to use those constants?

private final static String CSV_CONTENT_TYPE = text/csv;

Thanks,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][SecureClient][Axis2Fault] Must Understand check failed for header

2014-04-22 Thread Rajith Siriwardena
Hi all,

I too get the same error, but it works when the policy file is taken from
the local repository, as in the sample.

Thanks


On Tue, Apr 22, 2014 at 12:34 PM, Prasad Fernando pras...@wso2.com wrote:

 Hi,

 Any updates on the root cause for the above issue? I am using the
 dependent libraries (including rampart) come with the ESB 4.8.1
 repository/components/plugins folder for my esb client. Included the bouncy
 castle jar which is for jdk 1.5 - 1.7 and both ESB and client are running
 on jdk 1.6 u45.

 Thanks


 On Fri, Apr 18, 2014 at 12:20 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 I have added RampartMessageData.KEY_RAMPART_POLICY with the client policy
 xml to client's options and engaged the rampart module to the client.

 thanks


 On Fri, Apr 18, 2014 at 12:10 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 Your client should build the required security headers. How have you
 configured Apache Rampart to your service client?

 Thanks,
 -Suresh


 On Fri, Apr 18, 2014 at 8:23 AM, Prasad Fernando pras...@wso2.comwrote:

 hi,

 I have secured the proxy service with the attached policy. Also
 attached the source view of my secure proxy service.

 thanks


 On Thu, Apr 17, 2014 at 5:05 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 What is the security scenario/policy you are trying here ? How have
 you secured the service ?

 Thanks,
 -Suresh


 On Thu, Apr 17, 2014 at 4:58 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 I am getting the following error when I connect my secure client to
 the esb secure proxy service.

 *ON ESB*
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
  at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption (KeyId))
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
  at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
  ... 10 more
 [2014-04-17 16:44:34,101] ERROR - ServerWorker Error processing POST
 request for : /services/SecureOrderService
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption (KeyId))
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
  at
 

Re: [Dev] Globally defined constants for Data Types

2014-04-22 Thread Malintha Adikari
Hi Sohani,

AFAIU you want something like this[1]

Here we can use those constants as follows. Most of common types are there.
See the documentation.

* System.out.println(javax.ws.rs.core.MediaType.APPLICATION_XML);*

[1]http://docs.oracle.com/javaee/6/api/javax/ws/rs/core/MediaType.html

Regards,
Malintha Adikari


On Tue, Apr 22, 2014 at 8:15 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 If I want to use datatypes like text/csv, application/xml etc. Instead
 of defining them as shown below, is there a way to use globally defined
 constants for those known data types? If so, can someone please state the
 way to use those constants?

 private final static String CSV_CONTENT_TYPE = text/csv;

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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




-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Globally defined constants for Data Types

2014-04-22 Thread Sohani Weerasinghe
Hi Malintha,

Yes, this is what I exactly wanted. Thanks

Regards,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine


On Tue, Apr 22, 2014 at 9:15 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi Sohani,

 AFAIU you want something like this[1]

 Here we can use those constants as follows. Most of common types are
 there. See the documentation.

 * System.out.println(javax.ws.rs.core.MediaType.APPLICATION_XML);*

 [1]http://docs.oracle.com/javaee/6/api/javax/ws/rs/core/MediaType.html

 Regards,
 Malintha Adikari


 On Tue, Apr 22, 2014 at 8:15 PM, Sohani Weerasinghe soh...@wso2.comwrote:

 Hi All,

 If I want to use datatypes like text/csv, application/xml etc.
 Instead of defining them as shown below, is there a way to use globally
 defined constants for those known data types? If so, can someone please
 state the way to use those constants?

 private final static String CSV_CONTENT_TYPE = text/csv;

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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


[Dev] No usages of org.wso2.carbon.utils.transport.http.GenericHttpsTransportListener

2014-04-22 Thread Eranda Sooriyabandara
Hi All,
I found that there are two HTTP transport listeners
in org.wso2.carbon.utils, which I didn't find any usages.

   1. GenericHttpTransportListener
   2. GenericHttpsTransportListener

What is the usages of these two classes?

thanks
Eranda

-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] No usages of org.wso2.carbon.utils.transport.http.GenericHttpsTransportListener

2014-04-22 Thread Afkham Azeez
These were used sometime back, perhaps they are not used anymore  are
replaced by a different class.


On Tue, Apr 22, 2014 at 11:28 PM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi All,
 I found that there are two HTTP transport listeners
 in org.wso2.carbon.utils, which I didn't find any usages.

1. GenericHttpTransportListener
2. GenericHttpsTransportListener

 What is the usages of these two classes?

 thanks
 Eranda

 --

 *Eranda Sooriyabandara *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* http://www.apache.org/*
*email: **az...@wso2.com* az...@wso2.com
* cell: +94 77 3320919 blog: **http://blog.afkham.org*http://blog.afkham.org
*twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
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] HTTP Patch support by ESB 4.8.1

2014-04-22 Thread Krishantha Dinesh
this is already experienced issue with above patch. hope malaka can help
you on solve this as he is already solve this on other connector

Malaka can you share the solution please


On Tue, Apr 22, 2014 at 5:09 PM, Madhawa Bandara madh...@wso2.com wrote:

 Hi,
 I applied the above patches and the requests with HTTP PATCH method work
 well now.
 But now I get a new exception for the requests in which a JSON payload is
 used (inside the script mediator with language=js):

 com.sun.phobos.script.util.ExtendedScriptException:
 org.mozilla.javascript.EcmaError: ReferenceError: JSON is not defined.

 Note that these methods worked fine *before *applying the patch. Any
 suggestions?


 On Mon, Apr 21, 2014 at 10:38 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Kasun,

 It's already done.

 https://wso2.org/jira/browse/ESBJAVA-3051
 https://wso2.org/jira/browse/ESBJAVA-3061

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:23 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Have we committed this in to trunk? If not please do so.


 On Mon, Apr 21, 2014 at 10:21 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Mahawa,

 Currently it's not supported. It'll be available with the next release.
 ESB 4.9.0

 But there is a patch for this.

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:13 AM, Madhawa Bandara madh...@wso2.comwrote:

 Hi,
 Does the ESB 4.8.1 support the HTTP patch method?
 When I make a http patch request, it is shown as an HTTP POST on the
 wire.

 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

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




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

 ___
 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] IS 5.0.0 - QA status update

2014-04-22 Thread Shani Ranasinghe
Hi,

The beta pack was supposed to be released today right? But seems it won't.
Can we get a date when it will be released?


On Mon, Apr 21, 2014 at 8:13 AM, Pavithra Madurangi pavit...@wso2.comwrote:

 Hi all,

 Following is the QA status update of IS 5.0.0 release as at 18/04/2014.

 New features tested at least for happy path. (Please note some of them are
 partially tested and full path is not covered)
 - Chained Collaborative Federation Pattern (Partially tested)
 - Identity Bridge between - OpenID Connect, SAML 2.0, OAuth 2.0,
 (Partially tested)
 - Facebook Authenticator
 - SAML request / response validator (testing not complete)
 - Multi-option login page (not complete)

 To be tested
 - Google Apps provisioning connector
 - Just-in-time provisioning
 - Multi-step / multi-factor authentication
 - Request path authenticators
 - User portal
 - SCIM to SPML bridge
 - Encrypted SAML assertions
 - NTLM grant type for OAuth
 - Long running test

 Some of the features where not tested because those features were not
 completed on the 18th April pack.

 We were not able to start long running tests on 18th April pack due to
 some L1 issues. Please refer [1] for open jiras.

 The plan for next few days is to start long running tests once blocking
 issues are fixed and to cover the new features.

 [1] https://wso2.org/jira/browse/IDENTITY-2179?filter=11770

 Thanks and regards,
 Pavithra

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




-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exception thrown when close the eclipse after run as eclipse application

2014-04-22 Thread Lali Devamanthri
Hi,
Following exception throw when close the eclipse after run as eclipse
application.

org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
 at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
...

Caused by: java.lang.NullPointerException
 at
dataMapper.diagram.part.DataMapperDiagramEditor.getEditingDomain(DataMapperDiagramEditor.java:144)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor$1.getEditingDomain(DiagramEditor.java:396)
 at
org.eclipse.gmf.runtime.diagram.ui.actions.AbstractDeleteFromAction.getEditingDomain(AbstractDeleteFromAction.java:117)
 at
org.eclipse.gmf.runtime.diagram.ui.actions.AbstractDeleteFromAction.updateTargetRequest(AbstractDeleteFromAction.java:85)
 at
org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.refresh(DiagramAction.java:113)


But DataMapperDiagramEditor class is generated.
/**
 * @generated
 */
public TransactionalEditingDomain getEditingDomain() {
 IDocument document = getEditorInput() != null ?
getDocumentProvider().getDocument(   //line 144
getEditorInput()) : null;
 if (document instanceof IDiagramDocument) {
return ((IDiagramDocument) document).getEditingDomain();
 }
return super.getEditingDomain();
 }

Is this exception occurs due to modified methods of generated class ?


Thanks,
Lali

-- 
*Lali Sudaththa Devamanthri*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 895 4922
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception thrown when close the eclipse after run as eclipse application

2014-04-22 Thread Viraj Rajaguru
Hi Lali,

Can you try following code snippet for getEditingDomain() method ?

/**
 * @generated NOT
 */
public TransactionalEditingDomain getEditingDomain() {
IDocument document = null;
if (getDocumentProvider() != null) {
document = getEditorInput() != null ? getDocumentProvider().getDocument(
getEditorInput()) : null;
} else {
document = getEditorInput() != null ? getDocumentProvider(getEditorInput())
.getDocument(getEditorInput()) : null;
}
if (document instanceof IDiagramDocument) {
return ((IDiagramDocument) document).getEditingDomain();
}
return super.getEditingDomain();
}


Thanks,
Viraj.


On Tue, Apr 22, 2014 at 11:59 PM, Lali Devamanthri l...@wso2.com wrote:

 Hi,
 Following exception throw when close the eclipse after run as eclipse
 application.

 org.eclipse.swt.SWTException: Failed to execute runnable
 (java.lang.NullPointerException)
  at org.eclipse.swt.SWT.error(SWT.java:4397)
 at org.eclipse.swt.SWT.error(SWT.java:4312)
 ...

 Caused by: java.lang.NullPointerException
  at
 dataMapper.diagram.part.DataMapperDiagramEditor.getEditingDomain(DataMapperDiagramEditor.java:144)
 at
 org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor$1.getEditingDomain(DiagramEditor.java:396)
  at
 org.eclipse.gmf.runtime.diagram.ui.actions.AbstractDeleteFromAction.getEditingDomain(AbstractDeleteFromAction.java:117)
  at
 org.eclipse.gmf.runtime.diagram.ui.actions.AbstractDeleteFromAction.updateTargetRequest(AbstractDeleteFromAction.java:85)
  at
 org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.refresh(DiagramAction.java:113)


 But DataMapperDiagramEditor class is generated.
 /**
  * @generated
  */
 public TransactionalEditingDomain getEditingDomain() {
  IDocument document = getEditorInput() != null ?
 getDocumentProvider().getDocument(   //line 144
 getEditorInput()) : null;
  if (document instanceof IDiagramDocument) {
 return ((IDiagramDocument) document).getEditingDomain();
  }
 return super.getEditingDomain();
  }

 Is this exception occurs due to modified methods of generated class ?


 Thanks,
 Lali

 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
 http://www.wso2.com

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




-- 
Viraj Rajaguru
Software Engineer
WSO2 Inc. : http://wso2.com

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


Re: [Dev] HTTP Patch support by ESB 4.8.1

2014-04-22 Thread Miyuru Wanninayaka
I can't imagine a way which fixed done in [1],[2] cause JSON issues in
script mediator, it's a only minor change to http request factory and
nothing to do with script mediator.  It should be a some other fix done
early causing this issue.

[1] https://wso2.org/jira/browse/ESBJAVA-3051
[2] https://wso2.org/jira/browse/ESBJAVA-3061


On Tue, Apr 22, 2014 at 1:14 PM, Krishantha Dinesh kr...@krishantha.comwrote:

 this is already experienced issue with above patch. hope malaka can help
 you on solve this as he is already solve this on other connector

 Malaka can you share the solution please


 On Tue, Apr 22, 2014 at 5:09 PM, Madhawa Bandara madh...@wso2.com wrote:

 Hi,
 I applied the above patches and the requests with HTTP PATCH method work
 well now.
 But now I get a new exception for the requests in which a JSON payload is
 used (inside the script mediator with language=js):

 com.sun.phobos.script.util.ExtendedScriptException:
 org.mozilla.javascript.EcmaError: ReferenceError: JSON is not defined.

 Note that these methods worked fine *before *applying the patch. Any
 suggestions?


 On Mon, Apr 21, 2014 at 10:38 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Kasun,

 It's already done.

 https://wso2.org/jira/browse/ESBJAVA-3051
 https://wso2.org/jira/browse/ESBJAVA-3061

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:23 AM, Kasun Indrasiri ka...@wso2.comwrote:

 Have we committed this in to trunk? If not please do so.


 On Mon, Apr 21, 2014 at 10:21 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Mahawa,

 Currently it's not supported. It'll be available with the next
 release. ESB 4.9.0

 But there is a patch for this.

 Best Regards,
 Malaka


 On Mon, Apr 21, 2014 at 10:13 AM, Madhawa Bandara madh...@wso2.comwrote:

 Hi,
 Does the ESB 4.8.1 support the HTTP patch method?
 When I make a http patch request, it is shown as an HTTP POST on the
 wire.

 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

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




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --
 Regards,

 *Madhawa Bandara*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+94777487726 %2B94777487726*
 Blog* - *classdeffound.blogspot.com

 ___
 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




-- 
Miyuru Wanninayaka
Senior Technical Lead
WSO2 Inc. : http://wso2.com

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


Re: [Dev] [ESB][SecureClient][Axis2Fault] Must Understand check failed for header

2014-04-22 Thread Prasad Fernando
hi,

Let's see. I am currently using the policy file uploaded to ESB registry.
It seems that esb is not getting the policy engaged with this approach.

Thanks


On Tue, Apr 22, 2014 at 8:39 PM, Rajith Siriwardena raj...@wso2.com wrote:

 Hi all,

 I too get the same error, but it works when the policy file is taken from
 the local repository, as in the sample.

 Thanks


 On Tue, Apr 22, 2014 at 12:34 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 Any updates on the root cause for the above issue? I am using the
 dependent libraries (including rampart) come with the ESB 4.8.1
 repository/components/plugins folder for my esb client. Included the bouncy
 castle jar which is for jdk 1.5 - 1.7 and both ESB and client are running
 on jdk 1.6 u45.

 Thanks


 On Fri, Apr 18, 2014 at 12:20 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 I have added RampartMessageData.KEY_RAMPART_POLICY with the client
 policy xml to client's options and engaged the rampart module to the
 client.

 thanks


 On Fri, Apr 18, 2014 at 12:10 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 Your client should build the required security headers. How have you
 configured Apache Rampart to your service client?

 Thanks,
 -Suresh


 On Fri, Apr 18, 2014 at 8:23 AM, Prasad Fernando pras...@wso2.comwrote:

 hi,

 I have secured the proxy service with the attached policy. Also
 attached the source view of my secure proxy service.

 thanks


 On Thu, Apr 17, 2014 at 5:05 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi Prasad,

 What is the security scenario/policy you are trying here ? How have
 you secured the service ?

 Thanks,
 -Suresh


 On Thu, Apr 17, 2014 at 4:58 PM, Prasad Fernando pras...@wso2.comwrote:

 Hi,

 I am getting the following error when I connect my secure client to
 the esb secure proxy service.

 *ON ESB*
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
  at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption (KeyId))
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
  at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
  ... 10 more
 [2014-04-17 16:44:34,101] ERROR - ServerWorker Error processing POST
 request for : /services/SecureOrderService
 org.apache.axis2.AxisFault: General security error (No certificates
 were found for decryption (KeyId))
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  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)
 Caused by: org.apache.ws.security.WSSecurityException: General
 security error (No certificates were found for decryption 

[Dev] Proxy service created on ESB not accepting paramters from SOAP

2014-04-22 Thread Awanthika Senarath
Hi,

I have created a service in wso2esb with 4 methods with add and get tasks.

the getall service, where i don't pass any parameters into the service, is
working fine.
but all other methods which do accept parameters gives an error

I have not done any processing to the soap messages.
I am sending the exact soap message which gives correct results when sent
to the axis server directly through eclipse soap ui.

 Are there any change of soap message needed when passing parameters to the
service via ESB?

pastebin location for the error: http://pastebin.com/cmDq9F4m
Source view of the proxy service is attached herewith


thanks  regards



-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=OrderProcTest
   transports=http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  outSequence
 send/
  /outSequence
  endpoint
 address uri=http://localhost:9000/services/Task2AxisOrderProcessingService/
  /endpoint
   /target
   publishWSDL uri=http://localhost:9000/services/Task2AxisOrderProcessingService?wsdl/
   description/
/proxy
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Flush the 4.3.0 Kernel PR queue

2014-04-22 Thread Ajith Vitharana
On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Sameera,

 Could you please do $subject? There are 15+ commits waiting in the queue.

 [1] https://github.com/wso2/carbon4-kernel/pull/4


Please review and merge immediately, because  some fixes are blockers for
the build stabilization hackathon.

Thanks
-Ajith.



 Thanks,
 KasunG

 --

 *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




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] MB/ESB Integration Flows

2014-04-22 Thread Pamod Sylvester
Hi All,

Just to give a quick update on the scenarios we'll be illustrating to
demonstrate the ESB/MB integration, the following are the flows which will
be illustrated as per our discussion during the review meeting,

*(1)  http to jms (For Both queue and topic subscriptions)*
~ ESB as a producer/consumer
~ Dual Channel JMS, Quad Channel JMS
*(2) message store, processor*
*(3)   cache enable *
*(4)   client ack*

Sewwandi is currently progressing on setting up the http to jms flows, and
i am currently in progress of setting up flows to demonstrate message
stores and processors, we're hoping to merge both the configurations to a
single proxy the, following is the plan we have for a proxy service which
will cover (1) and (2) of the areas above,

There will be mainly 4 proxy services and 1 sequence which will be created

1) first the user will invoke the HTTP_Invocation_Proxy this will place the
message in the JMSMessageStore,

*HTTP_Invocation_Proxy - JMSMessageStore (This will also depict
HTTP-JMS)*

2) Message processor would read from the store and will send the message to
a BE_HTTP_Service_Proxy

*JMSMessageProcessor   BE_HTTP_Service_Proxy (This will depict
JMS-HTTP)*

the response from the  BE_HTTP_Service_Proxy would be directed to the
BE_Response_Receiver_SEQ

3) BE_Response_Receiver_SEQ will send a message to JMS_Worker_Queue having
the *replyTo* flag set to *Worker_Consumer_Queue*

*BE_Response_Receiver_SEQ  --- JMS_Worker_Queue (HTTP - JMS)*

4) JMS_Worker_Queue_Proxy will consume the message from the queue and will
send the message to JMS_Manager_Queue having the reply-to flag set to
*Manager_Consumer_Queue*

*JMS_Worker_Queue_Proxy --- JMS_Manager_Queue*
*(JMS-JMS)*

5) JMS_Manager_Queue_Proxy will consume the message from JMS_Manager_Queue
and will write the result to *Manager_Consumer_Queue*

 JMS_Manager_Queue_Proxy- *Manager_Consumer_Queue **(JMS-JMS)*

6) JMS_Worker_Queue_Proxy will read from *Manager_Consumer_Queue *for the
response

JMS_Worker_Queue_Proxy- *Manager_Consumer_Queue **(JMS-JMS)*

7) JMS_Worker_Queue_Proxy will write the result to the
*Worker_Consumer_Queue*

JMS_Worker_Queue_Proxy --- Worker_Consumer_Queue* (JMS-JMS)*

8) BE_Response_Receiver_SEQ will read the output from *W*
*orker_Consumer_Queue* as response as will log the message

*W**orker_Consumer_Queue  *BE_Response_Receiver_SEQ (JMS-HTTP)

Will also update the thread on the plan to demonstrate the topics behavior,
message selectors, caching and client ack capabilities. Please do let know
if there're amendments to be done in the above plan.

Thanks,
Pamod

-- 
*Pamod Sylvester *
 * Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Data mapper] Wrong placement of new tree elements

2014-04-22 Thread Gayan Yalpathwala
Hi,

I am adding new elements to existing tree nodes of input and output trees
and encounter a wrong placing issue for newly added tree elements. The
following code snippet is used to add a new element to a tree node.

EObject object = ((Node) selectedEP.getModel()).getElement();
// Used to identify the selected resource of the model
TreeNode selectedNode = (TreeNode) object;

// Configure the new element by setting default values
Element elementNew = DataMapperFactory.eINSTANCE.createElement();
elementNew.setName(NEW_FIELD_ID);
elementNew.setLevel(selectedNode.getLevel() + 1);
elementNew.setSchemaDataType(SchemaDataType.STRING);

AddCommand addCmd = new AddCommand(((GraphicalEditPart)
selectedEP).getEditingDomain(),
selectedNode, DataMapperPackage.Literals.TREE_NODE__ELEMENT, elementNew, 0);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack()
.execute(addCmd);
}

This successfully adds the new element as a child of the selected editpart
in the emf model, yet graphically displays above the selected editpart (not
under the selected editpart).

(Here, a NewField is added to NewRecord)

Another thing to note here is that when a new field is added to an imported
tree node like sfRecord, it is correctly added under the exact sfRecord
node. Any thoughts on this?

Thanks,​

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


Re: [Dev] Proxy service created on ESB not accepting paramters from SOAP

2014-04-22 Thread Chanaka Fernando
Hi Awanthika,

What is the SOAP request you are sending?

Thanks,
Chanaka


On Wed, Apr 23, 2014 at 9:05 AM, Awanthika Senarath awanth...@wso2.comwrote:

 Hi,

 I have created a service in wso2esb with 4 methods with add and get tasks.

 the getall service, where i don't pass any parameters into the service, is
 working fine.
 but all other methods which do accept parameters gives an error

 I have not done any processing to the soap messages.
 I am sending the exact soap message which gives correct results when sent
 to the axis server directly through eclipse soap ui.

  Are there any change of soap message needed when passing parameters to
 the service via ESB?

 pastebin location for the error: http://pastebin.com/cmDq9F4m
 Source view of the proxy service is attached herewith


 thanks  regards



 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



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




-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] svn deployment synchronizer issue

2014-04-22 Thread Vijayaratha Vijayasingam
Hi;
In a worker manager setup. when we deploy and undeploy again redeploy gives
svn error..[1]
To overcome, i need to clean the repo and need to get fresh checkout.
How can i avoid this issue?

[1]svn: File or directory 'webapps' is out of date; try updating
svn: resource out of date; try updating
svn: CHECKOUT of '/repos/mydeq/!svn/ver/71/as/-1234/webapps': 409 Conflict
(http
://lnx-mydeq-svn)
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorMana
ger.java:64)
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorMana
ger.java:51)
at
org.tmatesoft.svn.core.wc.SVNCommitClient.doCommit(SVNCommitClient.ja
va:898)
at
org.tmatesoft.svn.core.wc.SVNCommitClient.doCommit(SVNCommitClient.ja
va:827)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.commit(SVNClientImpl.java
:665)


thanks
-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Not enough disk space in Jenkins sever.

2014-04-22 Thread Krishantha Samaraweera
DSS build failed with following error. Please have a look.

Caused by: org.apache.axis2.schema.SchemaCompilationException:
javax.xml.transform.TransformerException: java.io.IOException: No
space left on device
 [java] at
org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:270)
 [java] at
org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1097)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:1005)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:644)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:603)
 [java] at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2063)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1946)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1155)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1091)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:1005)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:644)
 [java] at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:614)
 [java] at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:422)
 [java] at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:291)
 [java] at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:102)
 [java] ... 8 more



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] PostgreSQL configuration failure in API-Manager 1.7.0.

2014-04-22 Thread Asanthi Kulasinghe
Hi,

FYI.

[1]  has been reported for PostgreSQL configuration failure in API-Manager
1.7.0.

[1]  https://wso2.org/jira/browse/APIMANAGER-2203?filter=-2


Regards
*Asanthi Kulasinghe*
Software Engineer - QA
WSO2 Inc; http://www.wso2.com/.
Mobile: +94777355522
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev