[Dev] Connector Integration Test - Error

2014-09-10 Thread Naasheera Ali
Hi All,

 When we do connector integration test I got this error.
(I got the same error when I was implementing methods then I included
content type (application/vnd.vimeo.group+json)  in axis2.xml file )


[2014-09-11 12:12:27,993]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-11 12:12:27,992] ERROR - RelayUtils Error while building
Passthrough stream
[2014-09-11 12:12:27,993]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[1,1]
[2014-09-11 12:12:27,993]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 Message: Content is not allowed in prolog.
[2014-09-11 12:12:27,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
[2014-09-11 12:12:27,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:109)
[2014-09-11 12:12:27,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:570)
[2014-09-11 12:12:27,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:566)
[2014-09-11 12:12:27,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:129)
[2014-09-11 12:12:27,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
[2014-09-11 12:12:27,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
[2014-09-11 12:12:27,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:154)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:245)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
[2014-09-11 12:12:27,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[2014-09-11 12:12:27,997]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -   at
java.lang.Thread.run(Thread.java:722)
[2014-09-11 12:12:27,998]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[1,1]
[2014-09-11 12:12:27,998]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 Message: Content is not allowed in prolog.
[2014-09-

[Dev] [DSS]"ORA-00604", "ORA-01000" when Generating Using a Given Database Structure

2014-09-10 Thread stevegyc
Hi:

I tried to generate data service using a given database structure(ORACLE 
DB), 
The table structure is somewhat complicated, it include 136 fields, the 
generation action failed with the following message.

TID: [0] [DSS] [2014-09-11 09:11:40,345]  WARN 
{org.wso2.carbon.dataservices.core.script.DSGenerator} -  update operation not 
created {org.wso2.carbon.dataservices.core.script.DSGenerator}
java.sql.SQLException: ORA-00604: 递归 SQL 级别 1 出现错误
ORA-01000: 超出打开游标的最大数
ORA-01000: 超出打开游标的最大数

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at 
oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:799)
at 
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
at 
oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:839)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)
at 
oracle.jdbc.driver.OracleDatabaseMetaData.getColumns(OracleDatabaseMetaData.java:262)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getColumnNames(DSGenerator.java:408)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:744)
..

Before DSS generate data service, the used cursor count is 34.
After DSS generate data service, the used cursor count is 369.
It seems that DSS missed to release cursors of oracle DB in some cases when 
it generate data service?




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


[Dev] [Entitlement Mediator] Concurrent Access Issue

2014-09-10 Thread Malaka Silva
Hi IS Team,

Can someone from IS team check [1]. Patch is already added by Lasantha.

[1] https://wso2.org/jira/browse/ESBJAVA-3231

Thank you.

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/


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


Re: [Dev] [G-Reg 5.0.0]Impact analysis feature

2014-09-10 Thread Sameera Kannangara
Hi all,

We had a G-Reg feature progress review meeting on 09-09-2014, and following
decisions were made regarding the Impact analysis feature's todos.

participants - Subash, Eranda, Pulasthi, SameeraP, Danesh, Denuwanthi,
Heshani, SameeraK

TODO
>
> 1. authentication process
>
Decided to discuss with the ES team about the approach we should use to
secure Impact analysis jaggery app.

>
> 2. there is no direct way to access the jaggery app yet (other than going
> directly to URL or accessing it via list jaggery apps menu)
>
In each table generated in Metadata -> list view, link to the impact
analysis app regarding the resource listed in that row will be added.

>
> 3. search functionality for searching and selecting the resource subject
> to impact analysis
>
Rather than using a text box to enter the criteria and search, A drop down
box which get populated as user enters data, was decided to be used to
implement this functionality.

>
> 4. Functionality to configure relationship (“depends”,“usedBy”, etc.) used
> to generate the graph
>
A drop down box which has existing association types and with the
capability to get user's custom inputs should be included in the app to
cater this.

>
> 5. coloring mechanism needed for life cycle states of the resources in the
> graph (Color spectrum for a particular life cycle)
>
This will be considered for later implementations.

>
> 6. need a way to identify resource state (stable, unstable, problematic,
> published, etc.)
> this could be done by adding a property to problematic resources and
> adding additional styling to representation image to convey the meaning of
> the resource status.
>
Decided to use a property to specify the resource state.

>
> 7. code quality needs to be improved.
>
>
Also following functionality was suggested.

8. Providing a mechanism to access the resources shown in the impact
analysis graph.
This will be done by providing a hyper link to view the selected resource
with registry resource browser, in the right hand side panel where details
about the selected resource are displayed.

Thank you,
SameeraK.

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull requests for CARBON-14871 and IDENTITY-2663

2014-09-10 Thread Gayashan Amarasinghe
Hi Asela/IS team,

Can you send pull request for [1] for carbon4-kernel. It would require
applying fix for [2] as well. If some API changes were avoided when
applying this to turing branch, they can be properly fixed now for 4.3.0
release.

[1] https://wso2.org/jira/browse/CARBON-14871
[2] https://wso2.org/jira/browse/IDENTITY-2663

Thanks.
/Gayashan

-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enable domain based throttling for API Manager

2014-09-10 Thread Vijayaratha Vijayasingam
Lahiru;

I checked the code, looks we check for Domain too..
You can simply define a throttle policy for domain and check.. To test
this, if you face difficulty on how to set domain param, you can write
simple axishandler and keep that @inflow and set REMOTE_HOST parameter with
the configured domain value..
If that works, we will update doc too..:)

Thanks.


On 10 September 2014 17:54, Lahiru Sandaruwan  wrote:

> Hi,
>
> [1] explains how we can manage throttling policy for IP based throttling
> using a WS-Policy. Same manner, we should be able to support domain based
> throttling for APIs. As per [2], we can using domain attribute as follows.
>
>  *.wso2.org
>
> Is it just missing in the docs or are we depending on a API Manager
> component on this?
>
> Thanks.
>
> [1]
> https://docs.wso2.com/display/AM170/Managing+Throttling+Tiers#ManagingThrottlingTiers-HowtowriteathrottlingpolicyandengageittoAPIs
> [2] http://wso2.com/library/articles/wso2-throttling/
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


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


[Dev] WSO2 ESB 4.8.1 HTTP Patch support

2014-09-10 Thread Tharik Kanaka
Hi all,

I got request POST on wire situation when i am trying call a  PATCH
operation to codeplex API from my esb connector. Then I came to know that
4.8.1 does not support for http patch and there is a patch for that from
following mail thread [1].

[1]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-HTTP-Patch-support-by-ESB-4-8-1-td95288.html

So i applied following mentioned patches to current ESB 4.8.1 but still it
sends POST instead of PATCH. Is there any more work around for that i
should follow?

synapse-core_2.1.2.wso2v4
synapse-nhttp-transport_2.1.2.wso2v4
synapse-extensions_2.1.2.wso2v4
org.wso2.carbon.mediation.library_4.2.0

-- 

*Tharik Kanaka* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Mobile: +94 77 1616060   | Work: +94 112145345

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the status of OC?

2014-09-10 Thread Afkham Azeez
$subject

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

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] BAM git repo build failure - wso2-dev/product-bam

2014-09-10 Thread Dimuthu De Lanerolle
Hi,

Encountered the following build failure in clean repo . Any help?

Downloading:
http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.reporting.feature/4.3.0-SNAPSHOT/org.wso2.carbon.reporting.feature-4.3.0-SNAPSHOT.zip
[ERROR] Error occured when processing the Feature Artifact:
org.wso2.carbon:org.wso2.carbon.reporting.feature:4.3.0-SNAPSHOT
org.apache.maven.plugin.MojoExecutionException: Error occured when
processing the Feature Artifact:
org.wso2.carbon:org.wso2.carbon.reporting.feature:4.3.0-SNAPSHOT
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:
Could not find artifact
org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT in
wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)

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.reporting.feature -Dversion=4.3.0-SNAPSHOT
-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.reporting.feature -Dversion=4.3.0-SNAPSHOT
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT

from the specified remote repositories:
  wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
  wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/,
releases=true, snapshots=true),
  wso2.snapshots (
http://maven.wso2.org/nexus/content/repositories/snapshots/,
releases=false, snapshots=true),
  central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
at
org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
... 24 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
Could not find artifact
org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT in
wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.j

[Dev] Best approach for writing integration tests for ESB connectors

2014-09-10 Thread Pumudu Ruhunage
Hi All,

I'm working on writing integration tests for ESB Codeplex connector and I
went through available connector examples. All the tests were written in
single class(ConnectorIntegrationTest) so far. All mandatory parameter
tests, optional parameter tests and faulty parameter tests were written in
single class.
Due to this integration test class getting too lengthy and not readable.

Have anyone tried using parameterized test approach (
http://www.tutorialspoint.com/testng/testng_parameterized_test.htm) as a
workaround to this problem?

If we can introduce this approach for connector integration testing, we
only need one method per proxy. By changing parameters we can develop "n"
number of test cases for same proxy.

-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Patches need to be committed (State in Highest 4.3.0)

2014-09-10 Thread Aruna Karunarathna
Hi Sameera,

Please find the ticket list for $subject.

Review and commit needed.

https://wso2.org/jira/browse/CARBON-14941
https://wso2.org/jira/browse/CARBON-14909
https://wso2.org/jira/browse/CARBON-14904
https://wso2.org/jira/browse/CARBON-14756
https://wso2.org/jira/browse/CARBON-14713
https://wso2.org/jira/browse/CARBON-14631
https://wso2.org/jira/browse/CARBON-14558
https://wso2.org/jira/browse/CARBON-14476
https://wso2.org/jira/browse/CARBON-14475


Regards,
Aruna

-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Need to know about Stratos Rest Service Unsubscription

2014-09-10 Thread Mahesh Chinthaka
Hi All,
We are in the process of implementing tenant deletion on cloud.

We need to unsubscribe all the Stratos subscriptions for a given tenant in
a given stage(dev/prod/test). ATM *StratosRestService *class has a method
called *unsubscribe(**String alias**) .* I need to clarify few things.

1. What does it mean by 'alias'  in the input parameter of unsubscribe
method ?
2. What is the relationship between alias and a tenant.
3. If i call this unsubscribe method , will it take care of unsubscribing
all Stratos services for that tenant in that stage ?

-- 
Mahesh Chinthaka
Software Engineer , WSO2.

Phone : (+94) 71 63 63 083
Email : mahe...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change of a component name in EMM develop

2014-09-10 Thread Harshan Liyanage
Hi Chan,

We had a code review on these components last week. We all agreed that the
name of utils component should be changed. I already updated all other
references & tested the pack before committing. But missed the jaggery
code. I'll do that ASAP.

Thanks,

Best Regards,

Lakshitha Harshan
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

On Thu, Sep 11, 2014 at 9:51 AM, Chan  wrote:

> Hi Harshan,
> The component - utils in master [2] has been changed to core in develop
> [1]. Is there a reason for this? Also if you change the component name -
> other places that depend on the component need to be changed too. For
> example /modules/apps/publisher/mobileupload.jag has to be changed
> -otherwise the app uploading functionality will be broken.
>
> Cheers~
>
> [1] -
> https://github.com/wso2-dev/product-emm/tree/develop/modules/components
> [2] -
> https://github.com/wso2-dev/product-emm/tree/master/modules/components
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem creating an API call with an array

2014-09-10 Thread Dinithi De Silva
Yes I tried. They are expecting it in the post body.

Thank you
Dinithi De Silva
Associate Software Engineer

Mob: +94 716 667 655

On Thu, Sep 11, 2014 at 9:28 AM, Malaka Silva  wrote:

> Hi Dinithi,
>
> Did you try to invoke this directly using a client.
>
> Are they expecting the values to be in url or in post body?
>
> http://api.toodledo.com/3/tasks/index.php#adding
>
> Best Regards,
> Malaka
>
> On Wed, Sep 10, 2014 at 11:33 PM, Dinithi De Silva 
> wrote:
>
>> I am trying to develop an ESB connector for ToodleDo API v3. In that API,
>> I need to add an array of tasks with various parameters. The number of
>> parameters in one element of the array, can be different from other
>> elements.
>> The API call looks as below.
>>
>> http://api.toodledo.com/3/tasks/add.php
>>  access_token=yourtoken
>>  tasks=[{"title"%3A"My 
>> Task"}%2C{"title"%3A"Another"%2C"star"%3A"1"%2C"ref"%3A"98765"}%2C{"title"%3A""%2C"ref"%3A"1234"}]
>>  fields=folder,star
>>
>>
>> Tasks are added by creating a JSON object and submitting a POST to the
>> API.
>> Also I need to encode the data before transferring via the URL.
>>
>> I tried this operation by using javascript. I just tried with two
>> parameters in the array (Mandatory -title and optional - star). My code is
>> as below.
>>
>> 
>> 
>>
>>
>> And I have wrritten the payload factory as below.
>>
>> 
>> 
>> 
>> $1
>> $2
>> $3
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>>
>> But it gives me an error as below.
>>
>> [2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error
>> evaluating JSON Path <$.access_token>. Returning empty result. Error>>>
>> Unexpected character ({) at position 96.
>> [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
>> evaluating JSON Path <$.tasks>. Returning empty result. Error>>> Unexpected
>> character ({) at position 96.
>> [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
>> evaluating JSON Path <$.fields>. Returning empty result. Error>>>
>> Unexpected character ({) at position 96.
>> [2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON
>> payload from the input stream. Error>>>
>> com.google.gson.stream.MalformedJsonException: Expected name at line 1
>> column 101
>>
>>
>> What am I missing?
>> How can I modify this to work with all the optional parameters?
>>
>> Thank you
>> Dinithi De Silva
>> Associate Software Engineer
>>
>> Mob: +94 716 667 655
>>
>> ___
>> 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/
> 
>
> 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


[Dev] Change of a component name in EMM develop

2014-09-10 Thread Chan
Hi Harshan,
The component - utils in master [2] has been changed to core in develop
[1]. Is there a reason for this? Also if you change the component name -
other places that depend on the component need to be changed too. For
example /modules/apps/publisher/mobileupload.jag has to be changed
-otherwise the app uploading functionality will be broken.

Cheers~

[1] -
https://github.com/wso2-dev/product-emm/tree/develop/modules/components
[2] - https://github.com/wso2-dev/product-emm/tree/master/modules/components

-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem creating an API call with an array

2014-09-10 Thread Malaka Silva
Hi Dinithi,

Did you try to invoke this directly using a client.

Are they expecting the values to be in url or in post body?

http://api.toodledo.com/3/tasks/index.php#adding

Best Regards,
Malaka

On Wed, Sep 10, 2014 at 11:33 PM, Dinithi De Silva 
wrote:

> I am trying to develop an ESB connector for ToodleDo API v3. In that API,
> I need to add an array of tasks with various parameters. The number of
> parameters in one element of the array, can be different from other
> elements.
> The API call looks as below.
>
> http://api.toodledo.com/3/tasks/add.php
>   access_token=yourtoken
>   tasks=[{"title"%3A"My 
> Task"}%2C{"title"%3A"Another"%2C"star"%3A"1"%2C"ref"%3A"98765"}%2C{"title"%3A""%2C"ref"%3A"1234"}]
>   fields=folder,star
>
>
> Tasks are added by creating a JSON object and submitting a POST to the
> API.
> Also I need to encode the data before transferring via the URL.
>
> I tried this operation by using javascript. I just tried with two
> parameters in the array (Mandatory -title and optional - star). My code is
> as below.
>
> 
> 
>
>
> And I have wrritten the payload factory as below.
>
> 
> 
> 
> $1
> $2
> $3
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
> But it gives me an error as below.
>
> [2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error
> evaluating JSON Path <$.access_token>. Returning empty result. Error>>>
> Unexpected character ({) at position 96.
> [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
> evaluating JSON Path <$.tasks>. Returning empty result. Error>>> Unexpected
> character ({) at position 96.
> [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
> evaluating JSON Path <$.fields>. Returning empty result. Error>>>
> Unexpected character ({) at position 96.
> [2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON
> payload from the input stream. Error>>>
> com.google.gson.stream.MalformedJsonException: Expected name at line 1
> column 101
>
>
> What am I missing?
> How can I modify this to work with all the optional parameters?
>
> Thank you
> Dinithi De Silva
> Associate Software Engineer
>
> Mob: +94 716 667 655
>
> ___
> 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/


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


Re: [Dev] BPMN Theme

2014-09-10 Thread Amal Gunatilake
Hi,

Changes have been updated. The jira id: https://wso2.org/jira/browse/BPS-563

Following are screenshots of updates.

[image: Inline image 1]

Favicon for web browser tab.

[image: Inline image 2]



Thank you  & Best regards,

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

On Wed, Sep 10, 2014 at 5:53 PM, Amal Gunatilake  wrote:

> Hi Chanaka,
>
> Thank you for the feedback. I'll check on the library you gave as well and
> do the necessary updates. :)
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> On Wed, Sep 10, 2014 at 4:08 PM, Chanaka Jayasena 
> wrote:
>
>> They seem well designed and professional.
>>
>> How ever current web designing trend is to use vector icons. They give
>> you freedom to scale, color, combine and animate within css file. One
>> popular library we use is FontAwsome. It is not required to use this
>> library, but it will be super easy to add icons to your application in the
>> feature.
>>
>> http://fortawesome.github.io/Font-Awesome/
>>
>> thanks,
>> Chanaka
>>
>> On Wed, Sep 10, 2014 at 3:11 PM, Amal Gunatilake  wrote:
>>
>>> Hi Chanaka,
>>>
>>> I created some icons to apply for BPMN Explorer. Please review them and
>>> let me know your feedback. Your feedback is much appreciated.
>>>
>>> Below is the screenshot after applying the icons.
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> Thank you  & Best regards,
>>>
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Chanaka Jayasena
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> email: chan...@wso2.com; cell: +94 77 785 5565
>> blog: http://chanaka3d.blogspot.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invitation: Code Review - API Manager self signup for tenant's API s... @ Tue Sep 9, 2014 12pm - 1pm (Vijayaratha Vijayasingam)

2014-09-10 Thread Chamila Adhikarinayake
sorry for that. attached the new one to the jira

On Wed, Sep 10, 2014 at 6:42 PM, Nuwan Dias  wrote:

> Hi Chamila,
>
> Seems like the UserRegistrationConfigDTO class is missing in the patch.
> You need to 'svn add' that file and create the diff. Can you add it and
> re-attach the patch? Also get the latest from sources before you create the
> new diff.
>
> Thanks,
> NuwanD.
>
> On Wed, Sep 10, 2014 at 1:32 PM, Chamila Adhikarinayake  > wrote:
>
>> Hi Nuwan,
>> I attached the code for this feature to the jira. Please find it in [1]
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-2785
>> Thanks.
>> Chamila
>>
>> On Tue, Sep 9, 2014 at 1:27 PM, Vijayaratha Vijayasingam > > wrote:
>>
>>>
>>> Code review notes;
>>>
>>> 1)In self-signup configuration password  is stored in plain text in
>>> registry( @ selfsignup.xml, )
>>> we need to add support for encryption. Same thing we need to do for
>>> workflow admin configuration file too.
>>>
>>> Jira: https://wso2.org/jira/browse/APIMANAGER-2824
>>>
>>>
>>> 2) Provide UI support to edit self-sgnup configuration? (@ userstore
>>> UI/admin dashboard)
>>> Jira: https://wso2.org/jira/browse/APIMANAGER-2825
>>>
>>> 3)self-signup observer class name to be corrected. Move this to
>>> tenantServiceCreator observer
>>>
>>> 4) Change log.info's to debug level, with more info.
>>>
>>> 5)Move AM related config files to config-registry. Currently it is
>>> stored under governance space.
>>>
>>> Jira: https://wso2.org/jira/browse/APIMANAGER-2826
>>>
>>> Thanks.
>>>
>>> On 9 September 2014 09:52, Chamila Adhikarinayake 
>>> wrote:
>>>
 more details »
 
 Code Review - API Manager self signup for tenant's API store
 *When*
 Tue Sep 9, 2014 12pm – 1pm Colombo
 *Where*
 LK 3rd Floor Meeting Room - Kernel (map
 
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/chamilaa
 
 *Calendar*
 Vijayaratha Vijayasingam
 *Who*
 •
 Chamila Adhikarinayake - organizer
 •
 Jenananthan Yogendran
 •
 dev@wso2.org
 •
 Lalaji Sureshika
 •
 Sumedha Rubasinghe
 •
 Vijayaratha Vijayasingam
 •
 Roshan Wijesena
 •
 Nuwan Dias
 •
 Amila De Silva
 •
 Shariq Muhammed

 Going?   *Yes
 
 - Maybe
 
 - No
 *
 more options »
 

 Invitation from Google Calendar 

 You are receiving this email at the account rat...@wso2.com because
 you are subscribed for invitations on calendar Vijayaratha Vijayasingam.

 To stop receiving these notifications, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.

>>>
>>>
>>>
>>> --
>>> -Ratha
>>>
>>
>>
>>
>> --
>> Regards,
>> Chamila Adhikarinayake
>> Software Engineer
>> WSO2, Inc.
>> Mobile - +94712346437
>> Email  - chami...@wso2.com
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Regards,
Chamila Adhikarinayake
Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stopping RXT attributes from being added as resource properties

2014-09-10 Thread Subash Chaturanga
Hi Senaka,
Sure will do and update you. Btw I am not the one who add it ;-).

On Thu, Sep 11, 2014 at 2:50 AM, Senaka Fernando  wrote:

> Hi all,
>
> This has nothing to do with API-M actually.
>
> Subash, this was added for JCR support (IINM, by you, :)..). And, I'm most
> certain that the JCR-based repository-browsers only reads what's listed as
> properties. Can you'll have a look into that? Or we'll endup breaking that
> without knowing its broken.
>
> Thanks,
> Senaka.
>
> On Wed, Sep 10, 2014 at 10:02 AM, Nuwan Dias  wrote:
>
>> +1 for removing these. APIM doesn't deal with properties in RXTs but with
>> the RXT attributes directly. So APIM won't have any effects by this change.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun 
>> wrote:
>>
>>> Hi All,
>>>
>>> Currently with RXT's all the attributes of the RXT are being added as
>>> properties in the resource. The process of adding them as properties
>>> executes a significant amount of DB calls which is big performance hit.
>>> AFAIK there is no use of these properties hence we should be able to stop
>>> this and reduce a large amount of DB calls in the process.
>>>
>>> @Nuwan
>>> As for the the offline discussion we had a while back regarding this i
>>> assume that these properties are not been used in the APIM side ( Not
>>> properties in general just the properties that are created for RXT
>>> attributes ).
>>>
>>> Since we do not have any real use for this properties shall we remove
>>> these, WDYT?
>>>
>>>
>>> Regards,
>>> Pulasthi
>>>
>>>
>>> --
>>> --
>>> Pulasthi Supun
>>> Software Engineer; WSO2 Inc.; http://wso2.com,
>>> Email: pulas...@wso2.com
>>> Mobile: +94 (71) 9258281
>>> Blog : http://pulasthisupun.blogspot.com/
>>> Git hub profile: https://github.com/pulasthi
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
>
>
> *[image: http://wso2.com] Senaka Fernando*
> Software Architect; WSO2 Inc.; http://wso2.com
>
>
>
> *Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P: +1
> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>



-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer & Lead WSO2 Governance Registry
Platform TG; WSO2 Inc. http://wso2.com
Contact:
email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stopping RXT attributes from being added as resource properties

2014-09-10 Thread Senaka Fernando
Hi all,

This has nothing to do with API-M actually.

Subash, this was added for JCR support (IINM, by you, :)..). And, I'm most
certain that the JCR-based repository-browsers only reads what's listed as
properties. Can you'll have a look into that? Or we'll endup breaking that
without knowing its broken.

Thanks,
Senaka.

On Wed, Sep 10, 2014 at 10:02 AM, Nuwan Dias  wrote:

> +1 for removing these. APIM doesn't deal with properties in RXTs but with
> the RXT attributes directly. So APIM won't have any effects by this change.
>
> Thanks,
> NuwanD.
>
> On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun  wrote:
>
>> Hi All,
>>
>> Currently with RXT's all the attributes of the RXT are being added as
>> properties in the resource. The process of adding them as properties
>> executes a significant amount of DB calls which is big performance hit.
>> AFAIK there is no use of these properties hence we should be able to stop
>> this and reduce a large amount of DB calls in the process.
>>
>> @Nuwan
>> As for the the offline discussion we had a while back regarding this i
>> assume that these properties are not been used in the APIM side ( Not
>> properties in general just the properties that are created for RXT
>> attributes ).
>>
>> Since we do not have any real use for this properties shall we remove
>> these, WDYT?
>>
>>
>> Regards,
>> Pulasthi
>>
>>
>> --
>> --
>> Pulasthi Supun
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: pulas...@wso2.com
>> Mobile: +94 (71) 9258281
>> Blog : http://pulasthisupun.blogspot.com/
>> Git hub profile: https://github.com/pulasthi
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 


*[image: http://wso2.com] Senaka Fernando*
Software Architect; WSO2 Inc.; http://wso2.com



*Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388 <%2B1%20408%20754%207388>; ext: 51736*;


*M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ID Token for Implicit grant type

2014-09-10 Thread Johann Nallathamby
Moved this to a sub task of [1].

[1] https://wso2.org/jira/browse/IDENTITY-2573


On Thu, Sep 11, 2014 at 1:05 AM, Gayan Gunawardana  wrote:

> Thanks Suresh and Johann.
>
> Jira has been created [1].
>
> [1] https://wso2.org/jira/browse/IDENTITY-2713
>
> Thanks,
> Gayan
>
> On Thu, Sep 11, 2014 at 12:50 AM, Johann Nallathamby 
> wrote:
>
>> +1. I think there is room for many improvements in the OIDC core spec
>> that we can do. Let's take those up as part of next major release (one
>> after 5.1.0). For 5.1.0 lets focus on the minimum to be spec compliant.
>>
>> Thanks,
>> Johann.
>>
>>
>> On Thu, Sep 11, 2014 at 12:37 AM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> According to openid connect spec [1], Implicit grant type also should
>>> return ID token if scope is set to openid. up to IS 5.0 Implicit grant type
>>> does not return ID token even scope is set to openid. Limitation will be
>>> constructing ID token happens only for token request not for authorization
>>> request. Since Implicit grant type has only single authorization request
>>> there is no way to build an ID token. I think this limitation should be
>>> resolved in next Identity Server release.
>>>
>>> WDYT ?
>>>
>>>
>>> [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>> Integration Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ID Token for Implicit grant type

2014-09-10 Thread Gayan Gunawardana
Thanks Suresh and Johann.

Jira has been created [1].

[1] https://wso2.org/jira/browse/IDENTITY-2713

Thanks,
Gayan

On Thu, Sep 11, 2014 at 12:50 AM, Johann Nallathamby 
wrote:

> +1. I think there is room for many improvements in the OIDC core spec that
> we can do. Let's take those up as part of next major release (one after
> 5.1.0). For 5.1.0 lets focus on the minimum to be spec compliant.
>
> Thanks,
> Johann.
>
>
> On Thu, Sep 11, 2014 at 12:37 AM, Gayan Gunawardana 
> wrote:
>
>> Hi All,
>>
>> According to openid connect spec [1], Implicit grant type also should
>> return ID token if scope is set to openid. up to IS 5.0 Implicit grant type
>> does not return ID token even scope is set to openid. Limitation will be
>> constructing ID token happens only for token request not for authorization
>> request. Since Implicit grant type has only single authorization request
>> there is no way to build an ID token. I think this limitation should be
>> resolved in next Identity Server release.
>>
>> WDYT ?
>>
>>
>> [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



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


Re: [Dev] ID Token for Implicit grant type

2014-09-10 Thread Johann Nallathamby
+1. I think there is room for many improvements in the OIDC core spec that
we can do. Let's take those up as part of next major release (one after
5.1.0). For 5.1.0 lets focus on the minimum to be spec compliant.

Thanks,
Johann.


On Thu, Sep 11, 2014 at 12:37 AM, Gayan Gunawardana  wrote:

> Hi All,
>
> According to openid connect spec [1], Implicit grant type also should
> return ID token if scope is set to openid. up to IS 5.0 Implicit grant type
> does not return ID token even scope is set to openid. Limitation will be
> constructing ID token happens only for token request not for authorization
> request. Since Implicit grant type has only single authorization request
> there is no way to build an ID token. I think this limitation should be
> resolved in next Identity Server release.
>
> WDYT ?
>
>
> [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ID Token for Implicit grant type

2014-09-10 Thread Suresh Attanayaka
Hi Gayan,

In the provisos releases we returned the IDToken only from the token
endpoint. +1 to implement this from the completeness perspective.

Thanks,
-Suresh

On Wed, Sep 10, 2014 at 12:07 PM, Gayan Gunawardana  wrote:

> Hi All,
>
> According to openid connect spec [1], Implicit grant type also should
> return ID token if scope is set to openid. up to IS 5.0 Implicit grant type
> does not return ID token even scope is set to openid. Limitation will be
> constructing ID token happens only for token request not for authorization
> request. Since Implicit grant type has only single authorization request
> there is no way to build an ID token. I think this limitation should be
> resolved in next Identity Server release.
>
> WDYT ?
>
>
> [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ID Token for Implicit grant type

2014-09-10 Thread Gayan Gunawardana
Hi All,

According to openid connect spec [1], Implicit grant type also should
return ID token if scope is set to openid. up to IS 5.0 Implicit grant type
does not return ID token even scope is set to openid. Limitation will be
constructing ID token happens only for token request not for authorization
request. Since Implicit grant type has only single authorization request
there is no way to build an ID token. I think this limitation should be
resolved in next Identity Server release.

WDYT ?


[1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Our documentation on changing the default keystore is not enough

2014-09-10 Thread Amila Maha Arachchi
Hi all,

$Subject. I couldn't find a proper document. I only found this
https://docs.wso2.com/display/MB220/Changing+Default+Keystores

If there is a proper doc, please point me. Otherwise, this needs to be in
the admin tasks of each product.

I can provide the necessary instructions if needed.

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

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


[Dev] Problem creating an API call with an array

2014-09-10 Thread Dinithi De Silva
I am trying to develop an ESB connector for ToodleDo API v3. In that API, I
need to add an array of tasks with various parameters. The number of
parameters in one element of the array, can be different from other
elements.
The API call looks as below.

http://api.toodledo.com/3/tasks/add.php
access_token=yourtoken
tasks=[{"title"%3A"My
Task"}%2C{"title"%3A"Another"%2C"star"%3A"1"%2C"ref"%3A"98765"}%2C{"title"%3A""%2C"ref"%3A"1234"}]
fields=folder,star


Tasks are added by creating a JSON object and submitting a POST to the API.
Also I need to encode the data before transferring via the URL.

I tried this operation by using javascript. I just tried with two
parameters in the array (Mandatory -title and optional - star). My code is
as below.





And I have wrritten the payload factory as below.




$1
$2
$3











But it gives me an error as below.

[2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error
evaluating JSON Path <$.access_token>. Returning empty result. Error>>>
Unexpected character ({) at position 96.
[2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
evaluating JSON Path <$.tasks>. Returning empty result. Error>>> Unexpected
character ({) at position 96.
[2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error
evaluating JSON Path <$.fields>. Returning empty result. Error>>>
Unexpected character ({) at position 96.
[2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON
payload from the input stream. Error>>>
com.google.gson.stream.MalformedJsonException: Expected name at line 1
column 101


What am I missing?
How can I modify this to work with all the optional parameters?

Thank you
Dinithi De Silva
Associate Software Engineer

Mob: +94 716 667 655
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-10 Thread Sanjeewa Malalgoda
Hi Waruna,
In UI we first call host object isContextExist method and then validate it
before add API. That is why you dont get this error in UI. AFAIR there is
no rest API to check context existence. Its API developers responsibility
to check this first. But still we need to have same check in add API method
as well. So we might need to add this check in add API method(to work rest
call properly).

Thanks,
sanjeewa.

On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera  wrote:

> Hi,
>
> Issue logged in JIRA related to automation test case.
>
> [1] https://wso2.org/jira/browse/APIMANAGER-2835
>
> On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera  wrote:
>
>> Hi Sanjeewa,
>>
>> Noted. I will update the thread as we move forward about the API calls
>> which we will think of useful to have.
>>
>> Thanks
>>
>>
>> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda 
>> wrote:
>>
>>> Hi Waruna,
>>>
>>>
>>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera  wrote:
>>>
 Hi,

 Amalka and me started doing above $subject by following[1]. When
 following some of the test cases available we found that API calls in
 publisher[2] and store are limited. The search API functions are covered by
 calling host objects. I have few questions regarding that.

 Do we have a plan to provide other API calls in publisher and store?

>>> I assume here you are talking about rest APIs that we documented. For
>>> the moment most of required operations are exposed as rest APIs. But still
>>> there are missing parts. In such cases  we can deploy simple jag file in
>>> the server and call to host object. If you looked at HostObjectTestCase,
>>> you will see how we tested host object operations that did not exposed as
>>> rest APIs. Please refer java test cases available in product.
>>>
>>> Do we need uniformity with test cases? (some via API calls and others
 with direct host object calls)

>>> IMO there is no such requirement. We cant test all scenarios in the same
>>> way. Important thing is cover use cases as much as possible.
>>>
>>> Thanks,
>>> sanjeewa.
>>>

 [1]
 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp

 [2] https://docs.wso2.com/display/AM170/Publisher+APIs

 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>>  blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> 
>>>
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

 blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] Pull requests for the following issues

2014-09-10 Thread Thilini Shanika
Hi,

The pull request for[1] is attached herewith[2].

Thanks!

[1] - https://wso2.org/jira/browse/CARBON-14880
[2] - https://github.com/wso2/orbit/pull/21

On Wed, Sep 10, 2014 at 6:17 PM, Aruna Karunarathna  wrote:

> Hi all,
>
> Please send the pull requests for the following issues.
>
> https://wso2.org/jira/browse/CARBON-14891
> https://wso2.org/jira/browse/CARBON-14880
> https://wso2.org/jira/browse/CARBON-14850
> https://wso2.org/jira/browse/CARBON-14718
> https://wso2.org/jira/browse/CARBON-14894
>
> Regards,
> Aruna
>
> --
>
> *Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Thilini Shanika
Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Afkham Azeez
Ok, then the best bet is to compare the OSGi headers in the 2 files. Most
probably this is an OSGi issue.

On Wed, Sep 10, 2014 at 8:26 PM, Kasun Gajasinghe  wrote:

>
>
> On Wed, Sep 10, 2014 at 4:33 PM, Afkham Azeez  wrote:
>
>> Both have the same Hz version right?
>>
>>
> Yes, 3.2.3.
>
>
>> On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi Azeez,
>>>
>>> I can join via a call if time permits. Based on Malaka's findings, the
>>> issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz
>>> 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works.
>>>
>>> Thanks,
>>> KasunG
>>>
>>> On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez  wrote:
>>>
 Can we meet tomorrow to take a look at this?

 On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:

> Can you check the same with a product such as AppServer as well?
>
> On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:
>
>> Issue is reported in [1]
>>
>> [1] https://wso2.org/jira/browse/CARBON-14940
>>
>> On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva 
>> wrote:
>>
>>> Tested with [1] and it has worked.
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>>
>>> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
>>> wrote:
>>>


 On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
 wrote:

>
> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
> verify whether it works with that?
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>
>
 Malaka, can you try the above? Then we can verify whether something
 is wrong with the Hz 3.2.3.wso2v1 orbit bundle.


> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva 
> wrote:
>
>> Hi KasunG,
>>
>> Can confirm this is not a configuration issue, unless
>> configuration has changed?
>>
>> Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
>> manually, and it start working.
>>
>> Best Regards,
>> Malaka
>>
>> On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe > > wrote:
>>
>>>
>>> Ok.. this might be a configuration issue. But we did not test
>>> this properly on Carbon 4.3.0 as well. Can you share you 
>>> configuration
>>> files of all the nodes? Any useful logs?
>>>
>>> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
>>> wrote:
>>>
 Hi KasunG,

 Initially I have used 127.0.0.1.

 Then I have changed it to IP. However same issue exists.

 On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe <
 kas...@wso2.com> wrote:

> Hi Malaka,
>
> What are the values you have used for localMemberHost? In Hz
> 3.2.3, you should not use 127.0.0.1 or localhost but the IP of 
> the machine.
>
> Regards,
> KasunG
>
> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
> wrote:
>
>>
>> KasunG,
>> Can you verify this?
>>
>
>
>
> --
>
> *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
>
>
>



 --

 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/
 

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

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>

Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Kasun Gajasinghe
On Wed, Sep 10, 2014 at 4:33 PM, Afkham Azeez  wrote:

> Both have the same Hz version right?
>
>
Yes, 3.2.3.


> On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe  wrote:
>
>> Hi Azeez,
>>
>> I can join via a call if time permits. Based on Malaka's findings, the
>> issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz
>> 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works.
>>
>> Thanks,
>> KasunG
>>
>> On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez  wrote:
>>
>>> Can we meet tomorrow to take a look at this?
>>>
>>> On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:
>>>
 Can you check the same with a product such as AppServer as well?

 On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:

> Issue is reported in [1]
>
> [1] https://wso2.org/jira/browse/CARBON-14940
>
> On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:
>
>> Tested with [1] and it has worked.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>
>> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>>
>>> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
 verify whether it works with that?

 [1]
 https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1


>>> Malaka, can you try the above? Then we can verify whether something
>>> is wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>>>
>>>
 On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva 
 wrote:

> Hi KasunG,
>
> Can confirm this is not a configuration issue, unless
> configuration has changed?
>
> Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
> manually, and it start working.
>
> Best Regards,
> Malaka
>
> On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
> wrote:
>
>>
>> Ok.. this might be a configuration issue. But we did not test
>> this properly on Carbon 4.3.0 as well. Can you share you 
>> configuration
>> files of all the nodes? Any useful logs?
>>
>> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
>> wrote:
>>
>>> Hi KasunG,
>>>
>>> Initially I have used 127.0.0.1.
>>>
>>> Then I have changed it to IP. However same issue exists.
>>>
>>> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe <
>>> kas...@wso2.com> wrote:
>>>
 Hi Malaka,

 What are the values you have used for localMemberHost? In Hz
 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the 
 machine.

 Regards,
 KasunG

 On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
 wrote:

>
> KasunG,
> Can you verify this?
>



 --

 *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



>>>
>>>
>>>
>>> --
>>>
>>> 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/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future.
>>> Print this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>>
>> *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
>>
>>
>>
>
>
>
> --
>
> 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

Re: [Dev] API Manager latest pack integration issue with BAM 2.3.0.

2014-09-10 Thread Chalitha Waldeniyage
I thought it needs to be tested with one of the older version as well.Sorry
for the inconvenience

On Wed, Sep 10, 2014 at 5:13 PM, Nuwan Dias  wrote:

> What use case are we trying to cover by testing with BAM which is two
> versions older than the current one (2.4.1)?
>
> On Wed, Sep 10, 2014 at 5:06 PM, Chalitha Waldeniyage 
> wrote:
>
>> Hi
>>
>> When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0
>> and invoking the API through Jmeter, following error message has prompted
>> in API Manager side. Please provide directives in proceeding.
>>
>>
>>  ERROR - AsyncDataPublisher Stream definition already exist
>> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
>> Same stream id with different definition already defined before sending
>> this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712
>> at
>> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
>> at
>> org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
>> at
>> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 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.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
>> Thrift Different Stream Definition Already Defined
>> at
>> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
>> at
>> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
>> ... 7 more
>> Caused by:
>> ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
>> event stream for
>> StreamDefinition{
>> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
>> name='org.wso2.apimgt.statistics.fault',
>> version='1.0.0',
>> nickName='API Manager Fault Data',
>> description='Fault Data',
>> tags=null,
>> metaData=[Attribute{name='clientType', type=STRING}],
>> correlationData=null,
>> payloadData=[Attribute{name='consumerKey', type=STRING},
>> Attribute{name='context', type=STRING}, Attribute{name='api_version',
>> type=STRING}, Attribute{name='api', type=STRING},
>> Attribute{name='resourcePath', type=STRING}, Attribute{name='method',
>> type=STRING}, Attribute{name='version', type=STRING},
>> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
>> type=STRING}, Attribute{name='requestTime', type=STRING},
>> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
>> type=STRING}, Attribute{name='hostName', type=STRING},
>> Attribute{name='apiPublisher', type=STRING},
>> Attribute{name='applicationName', type=STRING},
>> Attribute{name='applicationId', type=STRING}],
>> }
>>  with the same name and version already exist:
>> StreamDefinition{
>> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
>> name='org.wso2.apimgt.statistics.fault',
>> version='1.0.0',
>> nickName='API Manager Fault Data',
>> description='Fault Data',
>> tags=null,
>> metaData=[Attribute{name='clientType', type=STRING}],
>> correlationData=null,
>> payloadData=[Attribute{name='consumerKey', type=STRING},
>> Attribute{name='context', type=STRING}, Attribute{name='api_version',
>> type=STRING}, Attribute{name='api', type=STRING},
>> Attribute{name='resource', type=STRING}, Attribute{name='method',
>> type=STRING}, Attribute{name='version', type=STRING},
>> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
>> type=STRING}, Attribute{name='requestTime', type=STRING},
>> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
>> type=STRING}, Attribute{name='hostName', type=STRING},
>> Attribute{name='apiPublisher', type=STRING},
>> Attribute{name='applicationName', type=STRING},
>> Attribute{name='applicationId', type=STRING}],
>> }
>> )
>> at
>> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441)
>> at
>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>> at
>> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
>> at
>> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.def

Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Afkham Azeez
Both have the same Hz version right?

On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe  wrote:

> Hi Azeez,
>
> I can join via a call if time permits. Based on Malaka's findings, the
> issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz
> 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works.
>
> Thanks,
> KasunG
>
> On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez  wrote:
>
>> Can we meet tomorrow to take a look at this?
>>
>> On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:
>>
>>> Can you check the same with a product such as AppServer as well?
>>>
>>> On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:
>>>
 Issue is reported in [1]

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

 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:

> Tested with [1] and it has worked.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>
> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
> wrote:
>
>>
>>
>> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
>>> verify whether it works with that?
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>>
>>>
>> Malaka, can you try the above? Then we can verify whether something
>> is wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>>
>>
>>> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva 
>>> wrote:
>>>
 Hi KasunG,

 Can confirm this is not a configuration issue, unless configuration
 has changed?

 Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
 manually, and it start working.

 Best Regards,
 Malaka

 On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
 wrote:

>
> Ok.. this might be a configuration issue. But we did not test this
> properly on Carbon 4.3.0 as well. Can you share you configuration 
> files of
> all the nodes? Any useful logs?
>
> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
> wrote:
>
>> Hi KasunG,
>>
>> Initially I have used 127.0.0.1.
>>
>> Then I have changed it to IP. However same issue exists.
>>
>> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe > > wrote:
>>
>>> Hi Malaka,
>>>
>>> What are the values you have used for localMemberHost? In Hz
>>> 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the 
>>> machine.
>>>
>>> Regards,
>>> KasunG
>>>
>>> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
>>> wrote:
>>>

 KasunG,
 Can you verify this?

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> 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/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future.
>> Print this email only if it is absolutely necessary.
>>
>
>
>
> --
>
> *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
>
>
>



 --

 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/
 
>>>

Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Kasun Gajasinghe
Hi Azeez,

I can join via a call if time permits. Based on Malaka's findings, the
issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz
3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works.

Thanks,
KasunG

On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez  wrote:

> Can we meet tomorrow to take a look at this?
>
> On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:
>
>> Can you check the same with a product such as AppServer as well?
>>
>> On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:
>>
>>> Issue is reported in [1]
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-14940
>>>
>>> On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:
>>>
 Tested with [1] and it has worked.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1

 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
 wrote:

>
>
> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
> wrote:
>
>>
>> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
>> verify whether it works with that?
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>
>>
> Malaka, can you try the above? Then we can verify whether something is
> wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>
>
>> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva  wrote:
>>
>>> Hi KasunG,
>>>
>>> Can confirm this is not a configuration issue, unless configuration
>>> has changed?
>>>
>>> Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
>>> manually, and it start working.
>>>
>>> Best Regards,
>>> Malaka
>>>
>>> On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Ok.. this might be a configuration issue. But we did not test this
 properly on Carbon 4.3.0 as well. Can you share you configuration 
 files of
 all the nodes? Any useful logs?

 On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
 wrote:

> Hi KasunG,
>
> Initially I have used 127.0.0.1.
>
> Then I have changed it to IP. However same issue exists.
>
> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe 
> wrote:
>
>> Hi Malaka,
>>
>> What are the values you have used for localMemberHost? In Hz
>> 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the 
>> machine.
>>
>> Regards,
>> KasunG
>>
>> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
>> wrote:
>>
>>>
>>> KasunG,
>>> Can you verify this?
>>>
>>
>>
>>
>> --
>>
>> *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
>>
>>
>>
>
>
>
> --
>
> 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/
> 
>
> Save a tree -Conserve nature & Save the world for your future.
> Print this email only if it is absolutely necessary.
>



 --

 *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



>>>
>>>
>>>
>>> --
>>>
>>> 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/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.

Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Kasun Gajasinghe
On Wed, Sep 10, 2014 at 4:15 PM, Afkham Azeez  wrote:

>
>
> On Wed, Sep 10, 2014 at 6:48 PM, Kasun Gajasinghe  wrote:
>
>>
>> Given the bandwidth involved, cleaning up the repos in intervals of 7
>> days is good? @Azeez/Sagara, any thoughts?
>>
>
> How long does it take to fill up the disk? If it takes 3 weeks, for
> example, on average, we should cleanup every 2 weeks.
>
>

M2 repo clean-up useful to figure out issues in builds as well. Sometimes
the clean repo builds show issues in products which are not visible if we
use an existing m2 repo.


>
>> Also, see if we can normalize the cleanup across the week such that all
>> the repos won't get cleaned up at the same time. Otherwise, it would add a
>> lot of strain on the nexus server.
>>
>
> +1 for staggering the cleanup, rather than cleaning up everything at the
> same time.
>
>
>>
>> Thanks,
>> KasunG
>>
>> On Wed, Sep 10, 2014 at 3:10 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kasun
>>>
>>> Deleted all the directories in the repository. (
>>> -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository)
>>>
>>> Maven repo cleaner plugin have been already installed globally. However,
>>> I think you need to add "#" or cron to schedule it.
>>>
>>>
>>> [1]
>>> https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin
>>>
>>> On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi,

 On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Kasun,
>
> Yes, the workspace does include .m2.
>
> Sample .m2 repo sizes;
>
> product-greg : 13GB
> product-as:  17GB
> product-esb  :  16GB
> prodcut-ss:  14GB
> product-dss  :  16GB
> product-is :  5.4GB
> product-cep  :  9.2GB
>
>
 That's like 90GBs!! If we count the m2 repo sizes in carbon component
 repos the number will go much higher. So, we need to get the maven repo
 cleaner working ASAP. In the meanwhile, please delete the contents under
 .m2/repository/ for product-as. It will solve our immediate problems with
 build breaks. (Please don't delete anything else, just .m2/repo/).

 Thanks,
 KasunG


>
> On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe 
> wrote:
>
>> Hi Maheshika,
>>
>> Can you check the size of the m2 repos inside these workspaces? We
>> maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
>> delete the old snapshots from its local m2 repo.
>>
>> So, for 15 different products with builds that's been running 100
>> times: 15 x 100 x 250MB = 37GB of space. With figures like this, the 
>> total
>> size of m2 repos could be close to 100GBs.
>>
>> So, I think that these m2 repos might be one of the culprit.
>> @Maheshika, Check the size of the m2 repos, and let us know so we can be
>> sure.
>>
>> Jenkins do have a "Maven repository cleaner" which is configured for
>> our Jenkins instance as well. May be it's not working properly!
>>
>> Thanks,
>> KasunG
>>
>>
>> On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kasun
>>>
>>> The workspace directory is where Jenkins builds the projects. It
>>> contains the source code checkout and any files generated from the 
>>> builds.
>>> The current size of the directory is 210GB. Jenkins creates a workspace
>>> directory for each build plan. Therefore, the total workspace directory
>>> size will increase.
>>>
>>> The build plans have been configured to discard old builds.
>>> Therefore, assume there could be any old builds left.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Why does workspace takes too much space? Is it because of the
 archived old builds?

 On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Azeez
>
> Yes, the build has been configured to Discard old builds and
> artifacts.
>
> According to the Disk Usage report, workspace uses majority of the
> disk space. Therefore, we would have to remove workspace for each 
> build
> plan periodically.
>
> This can be done manually or enable "Workspace clean up plugin" to
> clean daily.
>
>
> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez 
> wrote:
>
>> Are the build logs, artifacts etc. cleaned from time to time, if
>> not, we will run into issues.
>>
>> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Harsha & Prabath
>>>
>>> We are in the process of 

Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Afkham Azeez
On Wed, Sep 10, 2014 at 6:48 PM, Kasun Gajasinghe  wrote:

>
> Given the bandwidth involved, cleaning up the repos in intervals of 7 days
> is good? @Azeez/Sagara, any thoughts?
>

How long does it take to fill up the disk? If it takes 3 weeks, for
example, on average, we should cleanup every 2 weeks.


>
> Also, see if we can normalize the cleanup across the week such that all
> the repos won't get cleaned up at the same time. Otherwise, it would add a
> lot of strain on the nexus server.
>

+1 for staggering the cleanup, rather than cleaning up everything at the
same time.


>
> Thanks,
> KasunG
>
> On Wed, Sep 10, 2014 at 3:10 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kasun
>>
>> Deleted all the directories in the repository. (
>> -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository)
>>
>> Maven repo cleaner plugin have been already installed globally. However,
>> I think you need to add "#" or cron to schedule it.
>>
>>
>> [1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin
>>
>> On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Kasun,

 Yes, the workspace does include .m2.

 Sample .m2 repo sizes;

 product-greg : 13GB
 product-as:  17GB
 product-esb  :  16GB
 prodcut-ss:  14GB
 product-dss  :  16GB
 product-is :  5.4GB
 product-cep  :  9.2GB


>>> That's like 90GBs!! If we count the m2 repo sizes in carbon component
>>> repos the number will go much higher. So, we need to get the maven repo
>>> cleaner working ASAP. In the meanwhile, please delete the contents under
>>> .m2/repository/ for product-as. It will solve our immediate problems with
>>> build breaks. (Please don't delete anything else, just .m2/repo/).
>>>
>>> Thanks,
>>> KasunG
>>>
>>>

 On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe 
 wrote:

> Hi Maheshika,
>
> Can you check the size of the m2 repos inside these workspaces? We
> maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
> delete the old snapshots from its local m2 repo.
>
> So, for 15 different products with builds that's been running 100
> times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total
> size of m2 repos could be close to 100GBs.
>
> So, I think that these m2 repos might be one of the culprit.
> @Maheshika, Check the size of the m2 repos, and let us know so we can be
> sure.
>
> Jenkins do have a "Maven repository cleaner" which is configured for
> our Jenkins instance as well. May be it's not working properly!
>
> Thanks,
> KasunG
>
>
> On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kasun
>>
>> The workspace directory is where Jenkins builds the projects. It
>> contains the source code checkout and any files generated from the 
>> builds.
>> The current size of the directory is 210GB. Jenkins creates a workspace
>> directory for each build plan. Therefore, the total workspace directory
>> size will increase.
>>
>> The build plans have been configured to discard old builds.
>> Therefore, assume there could be any old builds left.
>>
>>
>> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>> Why does workspace takes too much space? Is it because of the
>>> archived old builds?
>>>
>>> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Azeez

 Yes, the build has been configured to Discard old builds and
 artifacts.

 According to the Disk Usage report, workspace uses majority of the
 disk space. Therefore, we would have to remove workspace for each build
 plan periodically.

 This can be done manually or enable "Workspace clean up plugin" to
 clean daily.


 On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez 
 wrote:

> Are the build logs, artifacts etc. cleaned from time to time, if
> not, we will run into issues.
>
> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Harsha & Prabath
>>
>> We are in the process of increasing the disk space.
>>
>> Hi Rumesh
>>
>> Most Jenkins builds have failed due to inadequate disk space.
>>
>> Therefore, please increase the Jenkins disk space.
>>
>>
>> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara > > wrote:
>>
>>> Hi Maheshika,
>>> This is occurs time to time. It says no space

Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Afkham Azeez
Can we meet tomorrow to take a look at this?

On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez  wrote:

> Can you check the same with a product such as AppServer as well?
>
> On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:
>
>> Issue is reported in [1]
>>
>> [1] https://wso2.org/jira/browse/CARBON-14940
>>
>> On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:
>>
>>> Tested with [1] and it has worked.
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>>
>>> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
>>> wrote:
>>>


 On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
 wrote:

>
> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and
> verify whether it works with that?
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>
>
 Malaka, can you try the above? Then we can verify whether something is
 wrong with the Hz 3.2.3.wso2v1 orbit bundle.


> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva  wrote:
>
>> Hi KasunG,
>>
>> Can confirm this is not a configuration issue, unless configuration
>> has changed?
>>
>> Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
>> manually, and it start working.
>>
>> Best Regards,
>> Malaka
>>
>> On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>> Ok.. this might be a configuration issue. But we did not test this
>>> properly on Carbon 4.3.0 as well. Can you share you configuration files 
>>> of
>>> all the nodes? Any useful logs?
>>>
>>> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva 
>>> wrote:
>>>
 Hi KasunG,

 Initially I have used 127.0.0.1.

 Then I have changed it to IP. However same issue exists.

 On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe 
 wrote:

> Hi Malaka,
>
> What are the values you have used for localMemberHost? In Hz
> 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the 
> machine.
>
> Regards,
> KasunG
>
> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
> wrote:
>
>>
>> KasunG,
>> Can you verify this?
>>
>
>
>
> --
>
> *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
>
>
>



 --

 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/
 

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

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> 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/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print
>> this email only if it is absolutely necessary.
>>
>
>
>
> --
>
> *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



>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94

Re: [Dev] [BRS]How to modify date formats in drools.

2014-09-10 Thread Waruna Jayaweera
Hi Stevegyc,

You can add following line to wso2server.sh file in /bin
to change the system property.

-Ddrools.dateformat="dd-MMM- HH:mm" \

You will find similar kind of system property settings at end of the
wso2server.sh file.Add above line in same manner.

Thanks,
Waruna

On Wed, Sep 10, 2014 at 5:59 PM, stevegyc  wrote:

>  Hi Waruna:
>
> Thank you for your reply.
> I understand that it need to set an alternative date format to
> drools.dateformat,
> but I do not know to set it, Do I need to modify the code of BRS?
>
> --
> stevegyc
>
>  *From:* Waruna Jayaweera 
> *Date:* 2014-09-10 18:39
> *To:* stevegyc 
> *CC:* dev 
> *Subject:* Re: [Dev] [BRS]How to modify date formats in drools.
>   Hi Stevegyc,
> According to drools document,
> The date format dd-mmm- is supported by default. You can customize
> this by providing an alternative date format mask as the System property
> named drools.dateformat. If more control is required, use a restriction.
>
> So you can set custom value to System property drools.dateformat to modify
> the data format.
>
> According to that below restriction should also work.
>
> rule "Date-restricted rule"
> date-effective "10.9.2014 8:00"  # 8 AM
> date-expires   "10.9.2014 17:00" # 5 PM
> when
> then
> end
>
> Thanks,
> Waruna
>
>
> On Wed, Sep 10, 2014 at 8:42 AM, stevegyc  wrote:
>
>>   Hi:
>>
>> The default date format in drools is 'dd-MMM-',
>>
>> but in the definition of rule attribute date-effective, it says it contain a 
>> date and time definition.
>> It need to use the date format as 'dd-MMM- HH:mm'.
>>
>> Any one know how to modify the date format to 'dd-MMM- HH:mm'?
>>
>> --
>>  stevegyc
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>  Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>



-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] Profiling AF page loading

2014-09-10 Thread Danushka Fernando
Hi All
Currently I am working on $subject. So I want to measure time to load
jaggery pages (In AF we are using block model). So I tried the solution
mentioned by Ramith and Anuruddha [1]. There its measuring time inside
*reqiur* function in *jagg.jag*. But this only captures the time for module
level calls. But what I really want is time to load a page. So thought
about putting some logs in *template* function in *jagg.jag*. But still our
rest apis where we call using ajax from templates. I couldn't find such
place. So what I thought was to log time in each ajax call before the call
and after returning from the call.
WDYT about this approach?


[1] Performance improvements

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge pull request for EMM tests-ui-integration module

2014-09-10 Thread Chan
Hi Dimuthu,
Will check it out and merge.

Cheers~

On Wed, Sep 10, 2014 at 5:05 PM, Dimuthu De Lanerolle 
wrote:

>
> Hi EMM Team,
>
> Please merge the pull request
> https://github.com/wso2-dev/product-emm/pull/2 , which includes addition
> of several essential modules required to run UI tests for EMM together with
> the tests-ui-integration module which contains UI tests of EMM.
>
> Regards
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Kasun Gajasinghe
Given the bandwidth involved, cleaning up the repos in intervals of 7 days
is good? @Azeez/Sagara, any thoughts?

Also, see if we can normalize the cleanup across the week such that all the
repos won't get cleaned up at the same time. Otherwise, it would add a lot
of strain on the nexus server.

Thanks,
KasunG

On Wed, Sep 10, 2014 at 3:10 PM, Maheshika Goonetilleke 
wrote:

> Hi Kasun
>
> Deleted all the directories in the repository. (
> -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository)
>
> Maven repo cleaner plugin have been already installed globally. However, I
> think you need to add "#" or cron to schedule it.
>
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin
>
> On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe  wrote:
>
>> Hi,
>>
>> On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kasun,
>>>
>>> Yes, the workspace does include .m2.
>>>
>>> Sample .m2 repo sizes;
>>>
>>> product-greg : 13GB
>>> product-as:  17GB
>>> product-esb  :  16GB
>>> prodcut-ss:  14GB
>>> product-dss  :  16GB
>>> product-is :  5.4GB
>>> product-cep  :  9.2GB
>>>
>>>
>> That's like 90GBs!! If we count the m2 repo sizes in carbon component
>> repos the number will go much higher. So, we need to get the maven repo
>> cleaner working ASAP. In the meanwhile, please delete the contents under
>> .m2/repository/ for product-as. It will solve our immediate problems with
>> build breaks. (Please don't delete anything else, just .m2/repo/).
>>
>> Thanks,
>> KasunG
>>
>>
>>>
>>> On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi Maheshika,

 Can you check the size of the m2 repos inside these workspaces? We
 maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
 delete the old snapshots from its local m2 repo.

 So, for 15 different products with builds that's been running 100
 times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total
 size of m2 repos could be close to 100GBs.

 So, I think that these m2 repos might be one of the culprit.
 @Maheshika, Check the size of the m2 repos, and let us know so we can be
 sure.

 Jenkins do have a "Maven repository cleaner" which is configured for
 our Jenkins instance as well. May be it's not working properly!

 Thanks,
 KasunG


 On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Kasun
>
> The workspace directory is where Jenkins builds the projects. It
> contains the source code checkout and any files generated from the builds.
> The current size of the directory is 210GB. Jenkins creates a workspace
> directory for each build plan. Therefore, the total workspace directory
> size will increase.
>
> The build plans have been configured to discard old builds. Therefore,
> assume there could be any old builds left.
>
>
> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
> wrote:
>
>>
>> Why does workspace takes too much space? Is it because of the
>> archived old builds?
>>
>> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Azeez
>>>
>>> Yes, the build has been configured to Discard old builds and
>>> artifacts.
>>>
>>> According to the Disk Usage report, workspace uses majority of the
>>> disk space. Therefore, we would have to remove workspace for each build
>>> plan periodically.
>>>
>>> This can be done manually or enable "Workspace clean up plugin" to
>>> clean daily.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez 
>>> wrote:
>>>
 Are the build logs, artifacts etc. cleaned from time to time, if
 not, we will run into issues.

 On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Harsha & Prabath
>
> We are in the process of increasing the disk space.
>
> Hi Rumesh
>
> Most Jenkins builds have failed due to inadequate disk space.
>
> Therefore, please increase the Jenkins disk space.
>
>
> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
> wrote:
>
>> Hi Maheshika,
>> This is occurs time to time. It says no space left on the device.
>> This is the reason for the previous build failure too. As I remember 
>> day
>> before yesterday, build was successful.
>> Thanks,
>> Harsha
>>
>> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Maheshika,
>>>
>>> It looks like we're still running into this issue in the builder
>>> machin

Re: [Dev] Invitation: Code Review - API Manager self signup for tenant's API s... @ Tue Sep 9, 2014 12pm - 1pm (Vijayaratha Vijayasingam)

2014-09-10 Thread Nuwan Dias
Hi Chamila,

Seems like the UserRegistrationConfigDTO class is missing in the patch. You
need to 'svn add' that file and create the diff. Can you add it and
re-attach the patch? Also get the latest from sources before you create the
new diff.

Thanks,
NuwanD.

On Wed, Sep 10, 2014 at 1:32 PM, Chamila Adhikarinayake 
wrote:

> Hi Nuwan,
> I attached the code for this feature to the jira. Please find it in [1]
>
> [1] https://wso2.org/jira/browse/APIMANAGER-2785
> Thanks.
> Chamila
>
> On Tue, Sep 9, 2014 at 1:27 PM, Vijayaratha Vijayasingam 
> wrote:
>
>>
>> Code review notes;
>>
>> 1)In self-signup configuration password  is stored in plain text in
>> registry( @ selfsignup.xml, )
>> we need to add support for encryption. Same thing we need to do for
>> workflow admin configuration file too.
>>
>> Jira: https://wso2.org/jira/browse/APIMANAGER-2824
>>
>>
>> 2) Provide UI support to edit self-sgnup configuration? (@ userstore
>> UI/admin dashboard)
>> Jira: https://wso2.org/jira/browse/APIMANAGER-2825
>>
>> 3)self-signup observer class name to be corrected. Move this to
>> tenantServiceCreator observer
>>
>> 4) Change log.info's to debug level, with more info.
>>
>> 5)Move AM related config files to config-registry. Currently it is stored
>> under governance space.
>>
>> Jira: https://wso2.org/jira/browse/APIMANAGER-2826
>>
>> Thanks.
>>
>> On 9 September 2014 09:52, Chamila Adhikarinayake 
>> wrote:
>>
>>> more details »
>>> 
>>> Code Review - API Manager self signup for tenant's API store
>>> *When*
>>> Tue Sep 9, 2014 12pm – 1pm Colombo
>>> *Where*
>>> LK 3rd Floor Meeting Room - Kernel (map
>>> 
>>> )
>>> *Video call*
>>> https://plus.google.com/hangouts/_/wso2.com/chamilaa
>>> 
>>> *Calendar*
>>> Vijayaratha Vijayasingam
>>> *Who*
>>> •
>>> Chamila Adhikarinayake - organizer
>>> •
>>> Jenananthan Yogendran
>>> •
>>> dev@wso2.org
>>> •
>>> Lalaji Sureshika
>>> •
>>> Sumedha Rubasinghe
>>> •
>>> Vijayaratha Vijayasingam
>>> •
>>> Roshan Wijesena
>>> •
>>> Nuwan Dias
>>> •
>>> Amila De Silva
>>> •
>>> Shariq Muhammed
>>>
>>> Going?   *Yes
>>> 
>>> - Maybe
>>> 
>>> - No
>>> *
>>> more options »
>>> 
>>>
>>> Invitation from Google Calendar 
>>>
>>> You are receiving this email at the account rat...@wso2.com because you
>>> are subscribed for invitations on calendar Vijayaratha Vijayasingam.
>>>
>>> To stop receiving these notifications, please log in to
>>> https://www.google.com/calendar/ and change your notification settings
>>> for this calendar.
>>>
>>
>>
>>
>> --
>> -Ratha
>>
>
>
>
> --
> Regards,
> Chamila Adhikarinayake
> Software Engineer
> WSO2, Inc.
> Mobile - +94712346437
> Email  - chami...@wso2.com
>



-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Maheshika Goonetilleke
Hi Kasun

Deleted all the directories in the repository. (
-Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository)

Maven repo cleaner plugin have been already installed globally. However, I
think you need to add "#" or cron to schedule it.


[1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin

On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe  wrote:

> Hi,
>
> On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kasun,
>>
>> Yes, the workspace does include .m2.
>>
>> Sample .m2 repo sizes;
>>
>> product-greg : 13GB
>> product-as:  17GB
>> product-esb  :  16GB
>> prodcut-ss:  14GB
>> product-dss  :  16GB
>> product-is :  5.4GB
>> product-cep  :  9.2GB
>>
>>
> That's like 90GBs!! If we count the m2 repo sizes in carbon component
> repos the number will go much higher. So, we need to get the maven repo
> cleaner working ASAP. In the meanwhile, please delete the contents under
> .m2/repository/ for product-as. It will solve our immediate problems with
> build breaks. (Please don't delete anything else, just .m2/repo/).
>
> Thanks,
> KasunG
>
>
>>
>> On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi Maheshika,
>>>
>>> Can you check the size of the m2 repos inside these workspaces? We
>>> maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
>>> delete the old snapshots from its local m2 repo.
>>>
>>> So, for 15 different products with builds that's been running 100 times:
>>> 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of
>>> m2 repos could be close to 100GBs.
>>>
>>> So, I think that these m2 repos might be one of the culprit. @Maheshika,
>>> Check the size of the m2 repos, and let us know so we can be sure.
>>>
>>> Jenkins do have a "Maven repository cleaner" which is configured for our
>>> Jenkins instance as well. May be it's not working properly!
>>>
>>> Thanks,
>>> KasunG
>>>
>>>
>>> On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Kasun

 The workspace directory is where Jenkins builds the projects. It
 contains the source code checkout and any files generated from the builds.
 The current size of the directory is 210GB. Jenkins creates a workspace
 directory for each build plan. Therefore, the total workspace directory
 size will increase.

 The build plans have been configured to discard old builds. Therefore,
 assume there could be any old builds left.


 On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
 wrote:

>
> Why does workspace takes too much space? Is it because of the archived
> old builds?
>
> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Azeez
>>
>> Yes, the build has been configured to Discard old builds and
>> artifacts.
>>
>> According to the Disk Usage report, workspace uses majority of the
>> disk space. Therefore, we would have to remove workspace for each build
>> plan periodically.
>>
>> This can be done manually or enable "Workspace clean up plugin" to
>> clean daily.
>>
>>
>> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez 
>> wrote:
>>
>>> Are the build logs, artifacts etc. cleaned from time to time, if
>>> not, we will run into issues.
>>>
>>> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Harsha & Prabath

 We are in the process of increasing the disk space.

 Hi Rumesh

 Most Jenkins builds have failed due to inadequate disk space.

 Therefore, please increase the Jenkins disk space.


 On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
 wrote:

> Hi Maheshika,
> This is occurs time to time. It says no space left on the device.
> This is the reason for the previous build failure too. As I remember 
> day
> before yesterday, build was successful.
> Thanks,
> Harsha
>
> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera <
> praba...@wso2.com> wrote:
>
>> Hi Maheshika,
>>
>> It looks like we're still running into this issue in the builder
>> machine. Would you be able to have a look?
>>
>> Cheers,
>> Prabath
>>
>> On Wed, Sep 10, 2014 at 3:16 AM,  wrote:
>>
>>> See 
>>>
>>> --
>>> [...truncated 729 lines...]
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 Storage Server - Aggregator Module ...
>>> SUCCESS [0.384s]
>>> [INFO] WSO2 Storage Server - Styles P

Re: [Dev] Pull request for https://wso2.org/jira/browse/CARBON-14931

2014-09-10 Thread Aruna Karunarathna
Thanks SameeraK.

Regards,
Aruna

On Wed, Sep 10, 2014 at 5:59 PM, Sameera Kannangara 
wrote:

> Hi Aruna,
>
> Please find pull request at [1].
>
> Thank you,
> SameeraK.
>
> [1] https://github.com/wso2-dev/carbon4-kernel/pull/94
>
> On Wed, Sep 10, 2014 at 3:43 PM, Aruna Karunarathna 
> wrote:
>
>> Hi SameeraK,
>>
>> Can you send a pull request for the above mentioned ticket?.
>>
>> Regards,
>> Aruna
>>
>> --
>>
>> *Aruna Sujith Karunarathna* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> *Sameera Kannangara*
> Software Engineer
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> phone: +94719541577
> Lean . Enterprise . Middleware
>



-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Testing API Manager Statistics with Cassandra Data Purging

2014-09-10 Thread Inosh Goonewardena
Jira created. https://wso2.org/jira/browse/APIMANAGER-2836

On Wed, Sep 10, 2014 at 5:59 PM, Nuwan Dias  wrote:

> Can do, please create a JiRA to track this. We'll test this and see (with
> BAM 2.4.1). If we see no issues we'll release this.
>
> Thanks,
> NuwanD.
>
> On Wed, Sep 10, 2014 at 5:57 PM, Inosh Goonewardena 
> wrote:
>
>> Hi Nuwan,
>>
>> We have recently implemented cassandra data purging support through BAM
>> toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM
>> use case but it requires a few modifications to the current API-M toolbox.
>> Herewith, I have have attached the modified API-Manager toobox and the diff
>> file. Changes are backward compatible so attached toolbox can be applied to
>> released BAM versions as well. However, data deletion can't be scheduled by
>> toolboxes with the older BAM releases but still you can use the existing
>> BAM data archival feature [2] which basically does the same thing for
>> testing purposes. Would it possible to release API-M 1.7.1 with this
>> toolbox so once BAM 2.5.0 is released we can get the data deletion
>> functionality to work.
>>
>> [1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes
>> [2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data
>>
>> --
>> Regards,
>>
>> Inosh Goonewardena
>> Associate Technical Lead- WSO2 Inc.
>> Mobile: +94779966317
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull requests for the following issues

2014-09-10 Thread Aruna Karunarathna
Hi all,

Please send the pull requests for the following issues.

https://wso2.org/jira/browse/CARBON-14891
https://wso2.org/jira/browse/CARBON-14880
https://wso2.org/jira/browse/CARBON-14850
https://wso2.org/jira/browse/CARBON-14718
https://wso2.org/jira/browse/CARBON-14894

Regards,
Aruna

-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Testing API Manager Statistics with Cassandra Data Purging

2014-09-10 Thread Nuwan Dias
Can do, please create a JiRA to track this. We'll test this and see (with
BAM 2.4.1). If we see no issues we'll release this.

Thanks,
NuwanD.

On Wed, Sep 10, 2014 at 5:57 PM, Inosh Goonewardena  wrote:

> Hi Nuwan,
>
> We have recently implemented cassandra data purging support through BAM
> toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM
> use case but it requires a few modifications to the current API-M toolbox.
> Herewith, I have have attached the modified API-Manager toobox and the diff
> file. Changes are backward compatible so attached toolbox can be applied to
> released BAM versions as well. However, data deletion can't be scheduled by
> toolboxes with the older BAM releases but still you can use the existing
> BAM data archival feature [2] which basically does the same thing for
> testing purposes. Would it possible to release API-M 1.7.1 with this
> toolbox so once BAM 2.5.0 is released we can get the data deletion
> functionality to work.
>
> [1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes
> [2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data
>
> --
> Regards,
>
> Inosh Goonewardena
> Associate Technical Lead- WSO2 Inc.
> Mobile: +94779966317
>



-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BRS]How to modify date formats in drools.

2014-09-10 Thread stevegyc
Hi Waruna:

Thank you for your reply.
I understand that it need to set an alternative date format to 
drools.dateformat, 
but I do not know to set it, Do I need to modify the code of BRS?




stevegyc

From: Waruna Jayaweera
Date: 2014-09-10 18:39
To: stevegyc
CC: dev
Subject: Re: [Dev] [BRS]How to modify date formats in drools.
Hi Stevegyc,
According to drools document,
The date format dd-mmm- is supported by default. You can customize this by 
providing an alternative date format mask as the System property named 
drools.dateformat. If more control is required, use a restriction.


So you can set custom value to System property drools.dateformat to modify the 
data format.


According to that below restriction should also work.


rule "Date-restricted rule"
date-effective "10.9.2014 8:00"  # 8 AM
date-expires   "10.9.2014 17:00" # 5 PM
when
then
end


Thanks,
Waruna



On Wed, Sep 10, 2014 at 8:42 AM, stevegyc  wrote:

Hi:

The default date format in drools is 'dd-MMM-', 
but in the definition of rule attribute date-effective, it says it contain 
a date and time definition.
It need to use the date format as 'dd-MMM- HH:mm'.

Any one know how to modify the date format to 'dd-MMM- HH:mm'?




stevegyc

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







-- 

Regards,


Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for https://wso2.org/jira/browse/CARBON-14931

2014-09-10 Thread Sameera Kannangara
Hi Aruna,

Please find pull request at [1].

Thank you,
SameeraK.

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

On Wed, Sep 10, 2014 at 3:43 PM, Aruna Karunarathna  wrote:

> Hi SameeraK,
>
> Can you send a pull request for the above mentioned ticket?.
>
> Regards,
> Aruna
>
> --
>
> *Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Testing API Manager Statistics with Cassandra Data Purging

2014-09-10 Thread Inosh Goonewardena
Hi Nuwan,

We have recently implemented cassandra data purging support through BAM
toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM
use case but it requires a few modifications to the current API-M toolbox.
Herewith, I have have attached the modified API-Manager toobox and the diff
file. Changes are backward compatible so attached toolbox can be applied to
released BAM versions as well. However, data deletion can't be scheduled by
toolboxes with the older BAM releases but still you can use the existing
BAM data archival feature [2] which basically does the same thing for
testing purposes. Would it possible to release API-M 1.7.1 with this
toolbox so once BAM 2.5.0 is released we can get the data deletion
functionality to work.

[1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes
[2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data

-- 
Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
Index: API_Manager_Analytics/analytics/am_stats_analyzer
===
--- API_Manager_Analytics/analytics/am_stats_analyzer   (revision 25959)
+++ API_Manager_Analytics/analytics/am_stats_analyzer   (working copy)
@@ -15,7 +15,7 @@
'hive.jdbc.table.create.query' = 'CREATE TABLE API_REQUEST_SUMMARY ( 
api VARCHAR(100), api_version VARCHAR(100), version VARCHAR(100),
apiPublisher VARCHAR(100),consumerKey VARCHAR(100),userId VARCHAR(100), 
context VARCHAR(100),max_request_time BIGINT, total_request_count INT, hostName 
VARCHAR(100), year SMALLINT, month SMALLINT, day SMALLINT, time 
VARCHAR(30),PRIMARY 
KEY(api,api_version,apiPublisher,consumerKey,userId,context,hostName,time))' );
 
-insert overwrite table APIRequestSummaryData select api, api_version,version, 
apiPublisher, COALESCE(consumerKey,''),userId,context,max(requestTime) as 
max_request_time,sum(request) as total_request_count,hostName,  
year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)) as year, month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd 
HH:mm:ss.SSS' )) as month,day(from_unixtime(cast(requestTime/1000 as 
BIGINT),'-MM-dd HH:mm:ss.SSS' )) as 
day,concat(substring(from_unixtime(cast(requestTime/1000 as BIGINT), 
'-MM-dd HH:mm:ss'),0,16),':00') as time from APIRequestData group by 
api,api_version,version,apiPublisher,consumerKey,userId,context,hostName,year(from_unixtime(cast(requestTime/1000
 as BIGINT),'-MM-dd HH:mm:ss.SSS' )), 
month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),hour(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd 
HH:mm:ss.SSS' )),minute(from_unixtime(cast(requestTime/1000 as 
BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd 
HH:mm:ss'),0,16);
+insert overwrite table APIRequestSummaryData select api, api_version,version, 
apiPublisher, COALESCE(consumerKey,''),userId,context,max(requestTime) as 
max_request_time,sum(request) as total_request_count,hostName,  
year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)) as year, month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd 
HH:mm:ss.SSS' )) as month,day(from_unixtime(cast(requestTime/1000 as 
BIGINT),'-MM-dd HH:mm:ss.SSS' )) as 
day,concat(substring(from_unixtime(cast(requestTime/1000 as BIGINT), 
'-MM-dd HH:mm:ss'),0,16),':00') as time from APIRequestData where context 
is not NULL group by 
api,api_version,version,apiPublisher,consumerKey,userId,context,hostName,year(from_unixtime(cast(requestTime/1000
 as BIGINT),'-MM-dd HH:mm:ss.SSS' )), 
month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),hour(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd 
HH:mm:ss.SSS' )),minute(from_unixtime(cast(requestTime/1000 as 
BIGINT),'-MM-dd HH:mm:ss.SSS' 
)),substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd 
HH:mm:ss'),0,16);
 
 
 CREATE EXTERNAL TABLE IF NOT EXISTS APIVersionUsageSummaryData ( api STRING, 
version STRING, apiPublisher STRING,context STRING,total_request_count INT, 
hostName STRING,year SMALLINT,month SMALLINT,day SMALLINT, time STRING) STORED 
BY   'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler' 
TBLPROPERTIES ( 'wso2.carbon.datasource.name'='WSO2AM_STATS_DB',
@@ -25,7 +25,7 @@
total_request_count INT,hostName VARCHAR(100), year SMALLINT, month 
SMALLINT, day SMALLINT, time VARCHAR(30), PRIMARY 
KEY(api,version,apiPublisher,context,hostName,time))' );


-insert overwrite table APIVersionUsageSummaryData select 
api,version,apiPublisher,context,sum(request) as total_request_count,hostName,  
year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:

Re: [Dev] Carbon component deployment halts due to third party libraries used.

2014-09-10 Thread Supun Sethunga
Hi Pubudu,

Its working now. Thanks a lot for looking in to it.

Regards,
Supun

On Wed, Sep 10, 2014 at 3:13 PM, Supun Sethunga  wrote:

> Hi Pubudu,
>
> Attached is the pom file.
>
> Thanks,
>
> On Wed, Sep 10, 2014 at 2:26 PM, Pubudu Dissanayake 
> wrote:
>
>> Hi Supun,
>>
>> Please make sure that third party jar is in 'resolve' state. Be aware
>> that importing a package doesn't import its sub-packages and there is no
>> relationship among nested packages. You have to specifically mention " 
>> Import-Package:
>> org.apache.commons.math3.stat.descriptive; version="[3.3.0,4.0.0)" "
>>
>> Please attach your pom file as well.
>>
>> Thanks
>> -Pubudu
>>
>>
>>
>> On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga  wrote:
>>
>>> Correction :  */repository/components/lib folder*
>>>
>>> On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga  wrote:
>>>
 Hi,

 The imported library *org.apache.commons.math3 *is being not
 identified. (gets the following output in the osgi console)

 *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]*
> *  Direct constraints which are unresolved:*
> *Missing imported package
> org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)*
>

  Tried putting the relevant third-party jar file to the
 /repository/components/plugins folder, and deploy. But still
 not resolved.

 Thanks,
 Supun

 On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando >>> > wrote:

> I think best way to figure out this is to start the server with osgi
> console and find out the unsatisfied items.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga 
> wrote:
>
>> Hi Sameera / Carbon team,
>>
>> Im trying to expose some Machine Learning services as a carbon
>> component. The component I wrote builds successfully. But when I try to
>> deploy this component (tried deploying in both BAM and ESB), the 
>> deployment
>> process halts, saying the following.
>>
>>
>>
>> *[2014-09-10 10:32:04,915]  INFO
>> {org.apache.cassandra.thrift.ThriftServer} -  Listening for thrift
>> clients...[2014-09-10 10:33:05,754]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
>> is
>> delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755]
>> WARN {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>> required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0*
>>
>> Found out that the reason for this was the logger log4j (when I
>> replace log4j with commons-logger, the component got deployed) and a 
>> class
>> in a third party library
>> "org.apache.commons.math3.stat.descriptive.DescriptiveStatistics".
>>
>> Any idea what causes this issue?
>>
>> 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
>>
>>
>


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

>>>
>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> *Pubudu Dissanayake*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Mob: + 94 775 503 304
>>
>> Blog: http://geekdetected.wordpress.com/
>> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>> 
>> Flickr : https://www.flickr.com/photos/pubudufx/
>> Twitter: https://twitter.com/GeekInAction
>>
>>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 
*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] [DSS]Generating Using a Given Database Structure failed

2014-09-10 Thread stevegyc
Hi Chanika:

I see!




stevegyc

From: Chanika Geeganage
Date: 2014-09-10 18:08
To: stevegyc
CC: Dakshika Jayathilaka; dev
Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
The tentative date for the DSS 3.2.2 release is Sep 26th. You can find DSS 
release dates from [1]

[1] 
https://wso2.org/jira/browse/DS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel


On Wed, Sep 10, 2014 at 2:59 PM, stevegyc  wrote:

Hi Chanika:

Thank you very much!
By the way, do you know when DSS 3.2.2 will be released?




stevegyc

From: Chanika Geeganage
Date: 2014-09-10 17:24
To: stevegyc
CC: Dakshika Jayathilaka; dev
Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi,


I was able to reproduce this error. From the corresponding resultSet (for 
TIMESTAMP type), when we try to get the SQL Type using 
resultSet.getInt("DATA_TYPE") it gives  which is mapped to SQL Type 'OTHER' 
[1]. It is an issue in the Oracle ResultSet Implementation, anyway we will 
handle this in the DSS 3.2.2 by converting that to a STRING value. I have 
created a JIRA to track this issue. 

[1] 
http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE

[2] https://wso2.org/jira/browse/DS-959


Thanks



On Wed, Sep 10, 2014 at 1:17 PM, stevegyc  wrote:

Hi Dakshika:

Thank you for your reply.
But it is difficult for me to change the format of "TIMESTAMP".
Can you tell me the location of the related code approximately?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 14:41
To: stevegyc
CC: dev
Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
AFAIK it should -MM-DD HH24:MI:SS.FF --> 1997-01-31 09:26:50.12


Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 3:06 AM, stevegyc  wrote:

Hi Dakshika

The format of TIMESTAMP value is like "05-2月 -12 11.17.41.000 下午 ", 
what is the format that DSS support?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 10:25
To: stevegyc
CC: dev
Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi, 


What is the format of TIMESTAMP value ? If your sending incorrect format that 
will cause some issues.






Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 2:16 AM, stevegyc  wrote:

Hi:

When I generated dss server by using a given database structure, it failed and 
following error log displayed.

TID: [0] [DSS] [2014-09-09 14:50:42,957]  WARN 
{org.wso2.carbon.dataservices.core.script.DSGenerator} -  Insert operation not 
created {org.wso2.carbon.dataservices.core.script.DSGenerator}
DS Code: UNKNOWN_ERROR
Nested Exception:-
DS Fault Message: Invalid query param sqlType: 'null'.
DS Code: UNKNOWN_ERROR
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123)
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.(QueryParam.java:76)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.(DSGenerator.java:108)
at 
org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447)

My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE 
and TIMESTAMP, such as following:
create table INFO
(
  object_id  NUMBER(18) not null,
  oc_name  VARCHAR2(50),
  last_time  DATE,
  insert_time   TIMESTAMP(3) default SYSDATE,
)

It seems DSS does not support the datatype of "TIMESTAMP", When I delete the 
datatype of "TIMESTAMP", it can generate dss server successfully.
I do not know why DSS do not support datatype of "TIMESTAMP" and how to solve 
it.




stevegyc

___
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





-- 

Best Regards..


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





-- 

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] Enable domain based throttling for API Manager

2014-09-10 Thread Lahiru Sandaruwan
Hi,

[1] explains how we can manage throttling policy for IP based throttling
using a WS-Policy. Same manner, we should be able to support domain based
throttling for APIs. As per [2], we can using domain attribute as follows.

 *.wso2.org

Is it just missing in the docs or are we depending on a API Manager
component on this?

Thanks.

[1]
https://docs.wso2.com/display/AM170/Managing+Throttling+Tiers#ManagingThrottlingTiers-HowtowriteathrottlingpolicyandengageittoAPIs
[2] http://wso2.com/library/articles/wso2-throttling/

-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Kasun Gajasinghe
Hi,

On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke 
wrote:

> Hi Kasun,
>
> Yes, the workspace does include .m2.
>
> Sample .m2 repo sizes;
>
> product-greg : 13GB
> product-as:  17GB
> product-esb  :  16GB
> prodcut-ss:  14GB
> product-dss  :  16GB
> product-is :  5.4GB
> product-cep  :  9.2GB
>
>
That's like 90GBs!! If we count the m2 repo sizes in carbon component repos
the number will go much higher. So, we need to get the maven repo cleaner
working ASAP. In the meanwhile, please delete the contents under
.m2/repository/ for product-as. It will solve our immediate problems with
build breaks. (Please don't delete anything else, just .m2/repo/).

Thanks,
KasunG


>
> On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe  wrote:
>
>> Hi Maheshika,
>>
>> Can you check the size of the m2 repos inside these workspaces? We
>> maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
>> delete the old snapshots from its local m2 repo.
>>
>> So, for 15 different products with builds that's been running 100 times:
>> 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of
>> m2 repos could be close to 100GBs.
>>
>> So, I think that these m2 repos might be one of the culprit. @Maheshika,
>> Check the size of the m2 repos, and let us know so we can be sure.
>>
>> Jenkins do have a "Maven repository cleaner" which is configured for our
>> Jenkins instance as well. May be it's not working properly!
>>
>> Thanks,
>> KasunG
>>
>>
>> On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Kasun
>>>
>>> The workspace directory is where Jenkins builds the projects. It
>>> contains the source code checkout and any files generated from the builds.
>>> The current size of the directory is 210GB. Jenkins creates a workspace
>>> directory for each build plan. Therefore, the total workspace directory
>>> size will increase.
>>>
>>> The build plans have been configured to discard old builds. Therefore,
>>> assume there could be any old builds left.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Why does workspace takes too much space? Is it because of the archived
 old builds?

 On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Azeez
>
> Yes, the build has been configured to Discard old builds and artifacts.
>
> According to the Disk Usage report, workspace uses majority of the
> disk space. Therefore, we would have to remove workspace for each build
> plan periodically.
>
> This can be done manually or enable "Workspace clean up plugin" to
> clean daily.
>
>
> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:
>
>> Are the build logs, artifacts etc. cleaned from time to time, if not,
>> we will run into issues.
>>
>> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Harsha & Prabath
>>>
>>> We are in the process of increasing the disk space.
>>>
>>> Hi Rumesh
>>>
>>> Most Jenkins builds have failed due to inadequate disk space.
>>>
>>> Therefore, please increase the Jenkins disk space.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
>>> wrote:
>>>
 Hi Maheshika,
 This is occurs time to time. It says no space left on the device.
 This is the reason for the previous build failure too. As I remember 
 day
 before yesterday, build was successful.
 Thanks,
 Harsha

 On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera <
 praba...@wso2.com> wrote:

> Hi Maheshika,
>
> It looks like we're still running into this issue in the builder
> machine. Would you be able to have a look?
>
> Cheers,
> Prabath
>
> On Wed, Sep 10, 2014 at 3:16 AM,  wrote:
>
>> See 
>>
>> --
>> [...truncated 729 lines...]
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 Storage Server - Aggregator Module ...
>> SUCCESS [0.384s]
>> [INFO] WSO2 Storage Server - Styles Parent ...
>> SUCCESS [0.025s]
>> [INFO] WSO2 Storage Server UI styles .
>> SUCCESS [50.917s]
>> [INFO] WSO2 Storage Server - Features Parent .
>> SUCCESS [0.023s]
>> [INFO] WSO2 Storage Server - Features Aggregator Module ..
>> SUCCESS [0.035s]
>> [INFO] WSO2 Storage Server - Styles Features .
>> SUCCESS [0.625s]
>> [INFO] WSO2 Storage Server - P2 Profile Generation ...
>> SUCCESS [1:45.002s]
>> [INFO] WSO2 Storage Server - 

Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Maheshika Goonetilleke
Hi Kasun,

Yes, the workspace does include .m2.

Sample .m2 repo sizes;

product-greg : 13GB
product-as:  17GB
product-esb  :  16GB
prodcut-ss:  14GB
product-dss  :  16GB
product-is :  5.4GB
product-cep  :  9.2GB


On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe  wrote:

> Hi Maheshika,
>
> Can you check the size of the m2 repos inside these workspaces? We
> maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not
> delete the old snapshots from its local m2 repo.
>
> So, for 15 different products with builds that's been running 100 times:
> 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of
> m2 repos could be close to 100GBs.
>
> So, I think that these m2 repos might be one of the culprit. @Maheshika,
> Check the size of the m2 repos, and let us know so we can be sure.
>
> Jenkins do have a "Maven repository cleaner" which is configured for our
> Jenkins instance as well. May be it's not working properly!
>
> Thanks,
> KasunG
>
>
> On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kasun
>>
>> The workspace directory is where Jenkins builds the projects. It contains
>> the source code checkout and any files generated from the builds. The
>> current size of the directory is 210GB. Jenkins creates a workspace
>> directory for each build plan. Therefore, the total workspace directory
>> size will increase.
>>
>> The build plans have been configured to discard old builds. Therefore,
>> assume there could be any old builds left.
>>
>>
>> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>> Why does workspace takes too much space? Is it because of the archived
>>> old builds?
>>>
>>> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Azeez

 Yes, the build has been configured to Discard old builds and artifacts.

 According to the Disk Usage report, workspace uses majority of the disk
 space. Therefore, we would have to remove workspace for each build plan
 periodically.

 This can be done manually or enable "Workspace clean up plugin" to
 clean daily.


 On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:

> Are the build logs, artifacts etc. cleaned from time to time, if not,
> we will run into issues.
>
> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Harsha & Prabath
>>
>> We are in the process of increasing the disk space.
>>
>> Hi Rumesh
>>
>> Most Jenkins builds have failed due to inadequate disk space.
>>
>> Therefore, please increase the Jenkins disk space.
>>
>>
>> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
>> wrote:
>>
>>> Hi Maheshika,
>>> This is occurs time to time. It says no space left on the device.
>>> This is the reason for the previous build failure too. As I remember day
>>> before yesterday, build was successful.
>>> Thanks,
>>> Harsha
>>>
>>> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera <
>>> praba...@wso2.com> wrote:
>>>
 Hi Maheshika,

 It looks like we're still running into this issue in the builder
 machine. Would you be able to have a look?

 Cheers,
 Prabath

 On Wed, Sep 10, 2014 at 3:16 AM,  wrote:

> See 
>
> --
> [...truncated 729 lines...]
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS
> [0.384s]
> [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS
> [0.025s]
> [INFO] WSO2 Storage Server UI styles . SUCCESS
> [50.917s]
> [INFO] WSO2 Storage Server - Features Parent . SUCCESS
> [0.023s]
> [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS
> [0.035s]
> [INFO] WSO2 Storage Server - Styles Features . SUCCESS
> [0.625s]
> [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS
> [1:45.002s]
> [INFO] WSO2 Storage Server - Distribution  FAILURE
> [10.339s]
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:53.874s
> [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014
> [INFO] Final Memory: 32M/476M
> [INFO]
> 
> ERROR: Asynchronous execution failure
> java.util.concurren

Re: [Dev] Graceful Restart is not working

2014-09-10 Thread Lasantha Fernando
On 10 September 2014 16:55, Nipuni Perera  wrote:

> Hi Lasantha,
>
> I have compared AS 5.2.1 and AS 5.3.0-SNAPSHOT versions with osgi console
> enabled. I could see that the following 2 bundles are in unsatisfied state
> in 5.2.1 server while they are in active state in 5.3.0-SNAPSHOT. (AS does
> not use indexing feature hence does not has indexingConfiguration entry in
> registry.xml. )
>
> Unsatisfiedorg.wso2.carbon.registry.indexing
> org.wso2.carbon.registry.indexing(bid=340)
> Unsatisfiedregistry.search.dscomponent
> org.wso2.carbon.registry.search(bid=347)
>
> When server is shutting down, services list in
> waitForServerTaskCompletion() in ServerManagement.java [1]  (line 110)
> contains 2 services in 5.3.0-SNAPSHOT (RegistryCoreServiceComponent and
> IndexingServiceComponent) and in 5.2.1 pack list only one
> (RegistryCoreServiceComponent). The NPE occurs when shutting down the
> service "IndexingServiceComponent" in 5.3.0-SNAPSHOT. It seems that the
> unsatisfied bundles in earlier version is fixed in later version.
>

Oh OK... I thought the swallowed NPE was somehow getting logged during a
graceful restart, which is why I referenced the earlier thread. Seems the
JIRA raised by you is for a different issue.

As I debug I could see that in the normal startup this NPE is thrown but
> swallowed in 5.2.1. Will debug further and update the thread with the
> findings.
>

Thanks for looking into this!


>
> [1]
> https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerManagement.java
>
> Thanks,
> Nipuni
>
>
> On Wed, Sep 10, 2014 at 2:43 PM, Lasantha Fernando 
> wrote:
>
>> Hi Nipuni,
>>
>> Can you also verify if this code segment affects a normal startup as well
>> (other than a graceful restart)?
>>
>> i.e. if u start with OSGi console, you can verify if
>> registry.search.dscomponent service is satisfied or not. Then if you drill
>> down the unsatisfied component, you will probably be able to find the NPE
>> in the reasons listed for OSGi service being unsatisfied. I think that this
>> NPE is thrown at normal startup as well, but somehow swallowed up when the
>> bundle loading happens. I mean that was the case in the issue mentioned in
>> the earlier thread.
>>
>> Thanks,
>> Lasantha
>>
>> On 10 September 2014 14:26, Ajith Vitharana  wrote:
>>
>>> Hi Nipuni,
>>>
>>> You need to do two things here,
>>>
>>> 1. If you are not using the registry search feature , then need to find
>>> the place that bundle going to include to the product.
>>> 2. You can do a null check and proceed in code.[ @Subash this is bug in
>>> registry code please fix.]
>>>
>>> -Ajith.
>>>
>>>
>>>
>>> On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera  wrote:
>>>
 Hi,

 Adding null check can avoid the NPE exception but may not solve the
 issue properly.

 @Lasantha,

 I will check with GREG team and see if this can be solved with
 touchpoints.

 @Firzhan.

 I have gone through the discussion "[AS] Error in shutting down the
 server : Cannot put transports into maintenance mode : NPE from
 RegistryConfigLoader." earlier and your findings, will check with GREG
 team.

 Thanks,
 Nipuni


 On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash 
 wrote:

> Hi All,
>
> We have already discussed this issue in the mail thread [Dev] [AS]
> Error in shutting down the server : Cannot put transports into maintenance
> mode : NPE from RegistryConfigLoader.
>
> Rather than checking the null point, I feel like we have to
> investigate why the registry's search feature bundle getting included to
> the products which are not using registry search feature ( BPS ).
>
> @Ajith:- You thoughts on this
>
> Regards,
> Firzhan
>
> On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando  > wrote:
>
>> Hi,
>>
>>
>> On 10 September 2014 10:19, Nipuni Perera  wrote:
>>
>>> Hi,
>>>
>>> Yes. I can add a null check to indexingConfig element and continue
>>> only if the value is available (But it will add the whole method 
>>> execution
>>> inside constructor RegistryConfigLoader() to an if block - line 75 to 
>>> 150
>>> of [1]). Is this preferable?
>>>
>>> public RegistryConfigLoader() {
>>> try {
>>> FileInputStream fileInputStream = new
>>> FileInputStream(getConfigFile());
>>> StAXOMBuilder builder = new StAXOMBuilder(
>>>
>>> CarbonUtils.replaceSystemVariablesInXml(fileInputStream));
>>> OMElement configElement = builder.getDocumentElement();
>>> OMElement indexingConfig =
>>> configElement.getFirstChildWithName(
>>> new QName("indexingConfiguration"));
>>> if (indexingConfig != null)
>>> {  

[Dev] Please merge Greg Integration test commit#29 - UI Integration Test Module

2014-09-10 Thread Nuwan Wimalasekara
Hi Greg Team,
Please merge the pull request
https://github.com/wso2-dev/product-greg/pull/29.
This will add the UI integration test module for Greg

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] API Manager latest pack integration issue with BAM 2.3.0.

2014-09-10 Thread Nuwan Dias
What use case are we trying to cover by testing with BAM which is two
versions older than the current one (2.4.1)?

On Wed, Sep 10, 2014 at 5:06 PM, Chalitha Waldeniyage 
wrote:

> Hi
>
> When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0
> and invoking the API through Jmeter, following error message has prompted
> in API Manager side. Please provide directives in proceeding.
>
>
>  ERROR - AsyncDataPublisher Stream definition already exist
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Same stream id with different definition already defined before sending
> this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 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.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Thrift Different Stream Definition Already Defined
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
> ... 7 more
> Caused by:
> ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
> event stream for
> StreamDefinition{
> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
> name='org.wso2.apimgt.statistics.fault',
> version='1.0.0',
> nickName='API Manager Fault Data',
> description='Fault Data',
> tags=null,
> metaData=[Attribute{name='clientType', type=STRING}],
> correlationData=null,
> payloadData=[Attribute{name='consumerKey', type=STRING},
> Attribute{name='context', type=STRING}, Attribute{name='api_version',
> type=STRING}, Attribute{name='api', type=STRING},
> Attribute{name='resourcePath', type=STRING}, Attribute{name='method',
> type=STRING}, Attribute{name='version', type=STRING},
> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
> type=STRING}, Attribute{name='requestTime', type=STRING},
> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
> type=STRING}, Attribute{name='hostName', type=STRING},
> Attribute{name='apiPublisher', type=STRING},
> Attribute{name='applicationName', type=STRING},
> Attribute{name='applicationId', type=STRING}],
> }
>  with the same name and version already exist:
> StreamDefinition{
> streamId='org.wso2.apimgt.statistics.fault:1.0.0',
> name='org.wso2.apimgt.statistics.fault',
> version='1.0.0',
> nickName='API Manager Fault Data',
> description='Fault Data',
> tags=null,
> metaData=[Attribute{name='clientType', type=STRING}],
> correlationData=null,
> payloadData=[Attribute{name='consumerKey', type=STRING},
> Attribute{name='context', type=STRING}, Attribute{name='api_version',
> type=STRING}, Attribute{name='api', type=STRING},
> Attribute{name='resource', type=STRING}, Attribute{name='method',
> type=STRING}, Attribute{name='version', type=STRING},
> Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
> type=STRING}, Attribute{name='requestTime', type=STRING},
> Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
> type=STRING}, Attribute{name='hostName', type=STRING},
> Attribute{name='apiPublisher', type=STRING},
> Attribute{name='applicationName', type=STRING},
> Attribute{name='applicationId', type=STRING}],
> }
> )
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441)
> at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
> at
> org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109)
> ... 8 more
>
>
> --
> *Chalitha Maheshwari*
> Software E

[Dev] [APIM] getExternalAPIStores method no longer available in publisher host object

2014-09-10 Thread Waruna Perera
Hi,

When I ran the APIM test cases , some methods in APIProviderHostObject.java
are changed and
jsFunction_getExternalAPIStores method is commented out in 1.2.2 code path
hence there are test failures. Can i Know the reason for commenting out
above method?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIProviderHostObject.java
-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Manager latest pack integration issue with BAM 2.3.0.

2014-09-10 Thread Chalitha Waldeniyage
Hi

When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0
and invoking the API through Jmeter, following error message has prompted
in API Manager side. Please provide directives in proceeding.


 ERROR - AsyncDataPublisher Stream definition already exist
org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Same stream id with different definition already defined before sending
this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
at
org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
at
org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Thrift Different Stream Definition Already Defined
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
... 7 more
Caused by:
ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
event stream for
StreamDefinition{
streamId='org.wso2.apimgt.statistics.fault:1.0.0',
name='org.wso2.apimgt.statistics.fault',
version='1.0.0',
nickName='API Manager Fault Data',
description='Fault Data',
tags=null,
metaData=[Attribute{name='clientType', type=STRING}],
correlationData=null,
payloadData=[Attribute{name='consumerKey', type=STRING},
Attribute{name='context', type=STRING}, Attribute{name='api_version',
type=STRING}, Attribute{name='api', type=STRING},
Attribute{name='resourcePath', type=STRING}, Attribute{name='method',
type=STRING}, Attribute{name='version', type=STRING},
Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
type=STRING}, Attribute{name='requestTime', type=STRING},
Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
type=STRING}, Attribute{name='hostName', type=STRING},
Attribute{name='apiPublisher', type=STRING},
Attribute{name='applicationName', type=STRING},
Attribute{name='applicationId', type=STRING}],
}
 with the same name and version already exist:
StreamDefinition{
streamId='org.wso2.apimgt.statistics.fault:1.0.0',
name='org.wso2.apimgt.statistics.fault',
version='1.0.0',
nickName='API Manager Fault Data',
description='Fault Data',
tags=null,
metaData=[Attribute{name='clientType', type=STRING}],
correlationData=null,
payloadData=[Attribute{name='consumerKey', type=STRING},
Attribute{name='context', type=STRING}, Attribute{name='api_version',
type=STRING}, Attribute{name='api', type=STRING},
Attribute{name='resource', type=STRING}, Attribute{name='method',
type=STRING}, Attribute{name='version', type=STRING},
Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
type=STRING}, Attribute{name='requestTime', type=STRING},
Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
type=STRING}, Attribute{name='hostName', type=STRING},
Attribute{name='apiPublisher', type=STRING},
Attribute{name='applicationName', type=STRING},
Attribute{name='applicationId', type=STRING}],
}
)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109)
... 8 more


-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge pull request for EMM tests-ui-integration module

2014-09-10 Thread Dimuthu De Lanerolle
Hi EMM Team,

Please merge the pull request https://github.com/wso2-dev/product-emm/pull/2
, which includes addition of several essential modules required to run UI
tests for EMM together with the tests-ui-integration module which contains
UI tests of EMM.

Regards

-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] (no subject)

2014-09-10 Thread Chalitha Waldeniyage
Hi

When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0
and invoking the API through Jmeter, following error message has prompted
in API Manager side. Please provide directives in proceeding.


 ERROR - AsyncDataPublisher Stream definition already exist
org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Same stream id with different definition already defined before sending
this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
at
org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
at
org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Thrift Different Stream Definition Already Defined
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
... 7 more
Caused by:
ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
event stream for
StreamDefinition{
streamId='org.wso2.apimgt.statistics.fault:1.0.0',
name='org.wso2.apimgt.statistics.fault',
version='1.0.0',
nickName='API Manager Fault Data',
description='Fault Data',
tags=null,
metaData=[Attribute{name='clientType', type=STRING}],
correlationData=null,
payloadData=[Attribute{name='consumerKey', type=STRING},
Attribute{name='context', type=STRING}, Attribute{name='api_version',
type=STRING}, Attribute{name='api', type=STRING},
Attribute{name='resourcePath', type=STRING}, Attribute{name='method',
type=STRING}, Attribute{name='version', type=STRING},
Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
type=STRING}, Attribute{name='requestTime', type=STRING},
Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
type=STRING}, Attribute{name='hostName', type=STRING},
Attribute{name='apiPublisher', type=STRING},
Attribute{name='applicationName', type=STRING},
Attribute{name='applicationId', type=STRING}],
}
 with the same name and version already exist:
StreamDefinition{
streamId='org.wso2.apimgt.statistics.fault:1.0.0',
name='org.wso2.apimgt.statistics.fault',
version='1.0.0',
nickName='API Manager Fault Data',
description='Fault Data',
tags=null,
metaData=[Attribute{name='clientType', type=STRING}],
correlationData=null,
payloadData=[Attribute{name='consumerKey', type=STRING},
Attribute{name='context', type=STRING}, Attribute{name='api_version',
type=STRING}, Attribute{name='api', type=STRING},
Attribute{name='resource', type=STRING}, Attribute{name='method',
type=STRING}, Attribute{name='version', type=STRING},
Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage',
type=STRING}, Attribute{name='requestTime', type=STRING},
Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain',
type=STRING}, Attribute{name='hostName', type=STRING},
Attribute{name='apiPublisher', type=STRING},
Attribute{name='applicationName', type=STRING},
Attribute{name='applicationId', type=STRING}],
}
)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109)
... 8 more


-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 AS Cluster issue

2014-09-10 Thread Godwin Amila Shrimal
Hi Kasun,

I made the change u proposed but still not working, BTW I'll look @ Cluster
4.2.0 guide.


Thanks
Godwin


On Wed, Sep 10, 2014 at 2:44 PM, Kasun Gajasinghe  wrote:

> Hi,
>
>
> On Wed, Sep 10, 2014 at 10:49 AM, Danushka Fernando 
> wrote:
>
>> Goodwin
>> This error means you haven't configured the setup correctly. When you
>> start up the server (AS) do you see any logs saying that AS joined to the
>> cluster? I guess there should be some error there.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal 
>> wrote:
>>
>>> Hi,
>>>
>>> I am configuring AS cluster with WSO2 ELB. Once completed the
>>> configuration and send an request to management node it gives a error as  
>>> TenantAwareLoadBalanceEndpoint
>>> No application members available in ELB.
>>>
>>> What can be the issue for this ? I saw few jira also there for this and
>>> couldn't find the solution.
>>>
>>>
>>> This is the sample I am following,
>>>
>>> http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html
>>>
>>>
> This doesn't look correct. The group_mgt_port in ELB should be different
> from its localMemberPort value. Try changing the localMemberPort of ELB to
> something other than 4000, say, 4100.
>
> And, why are you not following the Cluster 4.2.0 guide??
>
> KasunG
>
>
>>
>>> Godwin
>>> Thanks
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
>
> *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
>
>
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Graceful Restart is not working

2014-09-10 Thread Nipuni Perera
Hi Lasantha,

I have compared AS 5.2.1 and AS 5.3.0-SNAPSHOT versions with osgi console
enabled. I could see that the following 2 bundles are in unsatisfied state
in 5.2.1 server while they are in active state in 5.3.0-SNAPSHOT. (AS does
not use indexing feature hence does not has indexingConfiguration entry in
registry.xml. )

Unsatisfiedorg.wso2.carbon.registry.indexing
org.wso2.carbon.registry.indexing(bid=340)
Unsatisfiedregistry.search.dscomponent
org.wso2.carbon.registry.search(bid=347)

When server is shutting down, services list in
waitForServerTaskCompletion() in ServerManagement.java [1]  (line 110)
contains 2 services in 5.3.0-SNAPSHOT (RegistryCoreServiceComponent and
IndexingServiceComponent) and in 5.2.1 pack list only one
(RegistryCoreServiceComponent). The NPE occurs when shutting down the
service "IndexingServiceComponent" in 5.3.0-SNAPSHOT. It seems that the
unsatisfied bundles in earlier version is fixed in later version.
As I debug I could see that in the normal startup this NPE is thrown but
swallowed in 5.2.1. Will debug further and update the thread with the
findings.

[1]
https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerManagement.java

Thanks,
Nipuni


On Wed, Sep 10, 2014 at 2:43 PM, Lasantha Fernando 
wrote:

> Hi Nipuni,
>
> Can you also verify if this code segment affects a normal startup as well
> (other than a graceful restart)?
>
> i.e. if u start with OSGi console, you can verify if
> registry.search.dscomponent service is satisfied or not. Then if you drill
> down the unsatisfied component, you will probably be able to find the NPE
> in the reasons listed for OSGi service being unsatisfied. I think that this
> NPE is thrown at normal startup as well, but somehow swallowed up when the
> bundle loading happens. I mean that was the case in the issue mentioned in
> the earlier thread.
>
> Thanks,
> Lasantha
>
> On 10 September 2014 14:26, Ajith Vitharana  wrote:
>
>> Hi Nipuni,
>>
>> You need to do two things here,
>>
>> 1. If you are not using the registry search feature , then need to find
>> the place that bundle going to include to the product.
>> 2. You can do a null check and proceed in code.[ @Subash this is bug in
>> registry code please fix.]
>>
>> -Ajith.
>>
>>
>>
>> On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera  wrote:
>>
>>> Hi,
>>>
>>> Adding null check can avoid the NPE exception but may not solve the
>>> issue properly.
>>>
>>> @Lasantha,
>>>
>>> I will check with GREG team and see if this can be solved with
>>> touchpoints.
>>>
>>> @Firzhan.
>>>
>>> I have gone through the discussion "[AS] Error in shutting down the
>>> server : Cannot put transports into maintenance mode : NPE from
>>> RegistryConfigLoader." earlier and your findings, will check with GREG
>>> team.
>>>
>>> Thanks,
>>> Nipuni
>>>
>>>
>>> On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash 
>>> wrote:
>>>
 Hi All,

 We have already discussed this issue in the mail thread [Dev] [AS]
 Error in shutting down the server : Cannot put transports into maintenance
 mode : NPE from RegistryConfigLoader.

 Rather than checking the null point, I feel like we have to investigate
 why the registry's search feature bundle getting included to the products
 which are not using registry search feature ( BPS ).

 @Ajith:- You thoughts on this

 Regards,
 Firzhan

 On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando 
 wrote:

> Hi,
>
>
> On 10 September 2014 10:19, Nipuni Perera  wrote:
>
>> Hi,
>>
>> Yes. I can add a null check to indexingConfig element and continue
>> only if the value is available (But it will add the whole method 
>> execution
>> inside constructor RegistryConfigLoader() to an if block - line 75 to 150
>> of [1]). Is this preferable?
>>
>> public RegistryConfigLoader() {
>> try {
>> FileInputStream fileInputStream = new
>> FileInputStream(getConfigFile());
>> StAXOMBuilder builder = new StAXOMBuilder(
>>
>> CarbonUtils.replaceSystemVariablesInXml(fileInputStream));
>> OMElement configElement = builder.getDocumentElement();
>> OMElement indexingConfig =
>> configElement.getFirstChildWithName(
>> new QName("indexingConfiguration"));
>> if (indexingConfig != null)
>> {  
>> //newly
>> added if block
>>
>> ...
>>  ...
>>}
>>}
>>} catch (FileNotFoundException e) {
>> // This virtually cannot happen as registry.xml is
>> necessary to start up the registry
>> log.error("registry.xml has not been found", e);
>> } catch (RegistryException e) {
>>   

[Dev] Please merge pull request #24 for SS UI integration module

2014-09-10 Thread Krishantha Samaraweera
Hi SS Team,

This pull request will add new UI integration test module to Storage Server.

https://github.com/wso2-dev/product-ss/pull/24

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


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Afkham Azeez
It is a problem in the distribution. Somehow the Hazelcast version & kernel
version are incompatible.

On Wed, Sep 10, 2014 at 4:29 PM, Thayalan  wrote:

> Set-up the cluster using the build [1] below. There were no other patches
> applied to the build. Java version detail is in [2].
>
> 1.
> https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip
>
> 2. Java Version details
> java version "1.7.0_65"
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
>
>
>
>
> On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez  wrote:
>
>> Looks like a jar incompatibility. What patches have you put? Is the
>> Hazelcast upgrade patch there? Also, is the corresponding kernel patch
>> there?
>>
>> Azeez
>>
>> On Wed, Sep 10, 2014 at 4:13 PM, Thayalan  wrote:
>>
>>> Hi All,
>>>
>>> While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the
>>> below error during server start-up. Any idea for this exception.
>>>
>>> ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
>>> thread Thread[Cluster [wso2.carbon.domain] coordinator elector
>>> thread,5,main]
>>> java.lang.NoSuchMethodError:
>>> com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
>>> at
>>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)
>>>
>>> --
>>> Regards,
>>> Thayalan Sivapaleswararajah
>>> Associate Technical Lead - QA
>>> Mob: +94(0)777872485
>>> Tel : +94(0)(11)2145345
>>> Fax : +94(0)(11)2145300
>>> Email: thaya...@wso2.com
>>>
>>>
>>> *Disclaimer*: *This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, retransmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.*
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> *Disclaimer*: *This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.*
>
>


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

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Nuwan Silva
small mistake please disregard my reply. similar issue but not the same.

On Wed, Sep 10, 2014 at 4:24 PM, Nuwan Silva  wrote:

> I faced the same issue when switching from the older svn repo QA used to
> the new version in the QA cloud. Think was due to svn repo missmatch
>
> What I did was;
> 1. backup all artifacts
> 2. removes everything in $CARBON_HOME/repository/deployment/server/
> (including .svn hidden files)
> 3. restart the server and add the artifacts
>
> Regards,
> NuwanS.
>
> On Wed, Sep 10, 2014 at 4:13 PM, Thayalan  wrote:
>
>> Hi All,
>>
>> While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below
>> error during server start-up. Any idea for this exception.
>>
>> ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
>> thread Thread[Cluster [wso2.carbon.domain] coordinator elector
>> thread,5,main]
>> java.lang.NoSuchMethodError:
>> com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
>> at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)
>>
>> --
>> Regards,
>> Thayalan Sivapaleswararajah
>> Associate Technical Lead - QA
>> Mob: +94(0)777872485
>> Tel : +94(0)(11)2145345
>> Fax : +94(0)(11)2145300
>> Email: thaya...@wso2.com
>>
>>
>> *Disclaimer*: *This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Nuwan Silva*
> *Senior Software Engineer - QA*
> Mobile: +94779804543
>
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://www.wso2.com
>



-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +94779804543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Thayalan
Set-up the cluster using the build [1] below. There were no other patches
applied to the build. Java version detail is in [2].

1.
https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip

2. Java Version details
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)




On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez  wrote:

> Looks like a jar incompatibility. What patches have you put? Is the
> Hazelcast upgrade patch there? Also, is the corresponding kernel patch
> there?
>
> Azeez
>
> On Wed, Sep 10, 2014 at 4:13 PM, Thayalan  wrote:
>
>> Hi All,
>>
>> While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below
>> error during server start-up. Any idea for this exception.
>>
>> ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
>> thread Thread[Cluster [wso2.carbon.domain] coordinator elector
>> thread,5,main]
>> java.lang.NoSuchMethodError:
>> com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
>> at
>> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)
>>
>> --
>> Regards,
>> Thayalan Sivapaleswararajah
>> Associate Technical Lead - QA
>> Mob: +94(0)777872485
>> Tel : +94(0)(11)2145345
>> Fax : +94(0)(11)2145300
>> Email: thaya...@wso2.com
>>
>>
>> *Disclaimer*: *This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.*
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Regards,
Thayalan Sivapaleswararajah
Associate Technical Lead - QA
Mob: +94(0)777872485
Tel : +94(0)(11)2145345
Fax : +94(0)(11)2145300
Email: thaya...@wso2.com


*Disclaimer*: *This communication may contain privileged or other
confidential information and is intended exclusively for the addressee/s.
If you are not the intended recipient/s, or believe that you may have
received this communication in error, please reply to the sender indicating
that fact and delete the copy you received and in addition, you should not
print, copy, retransmit, disseminate, or otherwise use the information
contained in this communication. Internet communications cannot be
guaranteed to be timely, secure, error or virus-free. The sender does not
accept liability for any errors or omissions.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Nuwan Silva
I faced the same issue when switching from the older svn repo QA used to
the new version in the QA cloud. Think was due to svn repo missmatch

What I did was;
1. backup all artifacts
2. removes everything in $CARBON_HOME/repository/deployment/server/
(including .svn hidden files)
3. restart the server and add the artifacts

Regards,
NuwanS.

On Wed, Sep 10, 2014 at 4:13 PM, Thayalan  wrote:

> Hi All,
>
> While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below
> error during server start-up. Any idea for this exception.
>
> ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
> thread Thread[Cluster [wso2.carbon.domain] coordinator elector
> thread,5,main]
> java.lang.NoSuchMethodError:
> com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> *Disclaimer*: *This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +94779804543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Afkham Azeez
Looks like a jar incompatibility. What patches have you put? Is the
Hazelcast upgrade patch there? Also, is the corresponding kernel patch
there?

Azeez

On Wed, Sep 10, 2014 at 4:13 PM, Thayalan  wrote:

> Hi All,
>
> While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below
> error during server start-up. Any idea for this exception.
>
> ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
> thread Thread[Cluster [wso2.carbon.domain] coordinator elector
> thread,5,main]
> java.lang.NoSuchMethodError:
> com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> *Disclaimer*: *This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.*
>
>


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

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


[Dev] Hazlecast Error in Centos 6.5

2014-09-10 Thread Thayalan
Hi All,

While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below
error during server start-up. Any idea for this exception.

ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in thread
Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main]
java.lang.NoSuchMethodError:
com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
at
org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)

-- 
Regards,
Thayalan Sivapaleswararajah
Associate Technical Lead - QA
Mob: +94(0)777872485
Tel : +94(0)(11)2145345
Fax : +94(0)(11)2145300
Email: thaya...@wso2.com


*Disclaimer*: *This communication may contain privileged or other
confidential information and is intended exclusively for the addressee/s.
If you are not the intended recipient/s, or believe that you may have
received this communication in error, please reply to the sender indicating
that fact and delete the copy you received and in addition, you should not
print, copy, retransmit, disseminate, or otherwise use the information
contained in this communication. Internet communications cannot be
guaranteed to be timely, secure, error or virus-free. The sender does not
accept liability for any errors or omissions.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Problem in Creating Jaggery App with IntelliJ Idea

2014-09-10 Thread Vimalanathan Rajeevan
Hi,

I was trying with creating a Jaggery App using IntelliJ Idea after adding
"JaggeryEditor" plugin downloaded from [1].
I'm following the steps mentioned in [2] and getting following error when
try to create a .jag file.

[1] http://plugins.jetbrains.com/plugin?pr=idea&pluginId=7108
[2] http://jaggeryjs.org/editor.jag

Error Log :

Assertion failed: TEMPLATE_HTML_TEXT
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:141)
at
com.intellij.psi.impl.source.PsiFileImpl.setContentElementType(PsiFileImpl.java:96)
at
org.wso2.fileType.JaggeryFileViewProvider.createFile(JaggeryFileViewProvider.java:251)
at
com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.getPsiInner(MultiplePsiFilesPerDocumentFileViewProvider.java:85)
at
com.intellij.psi.SingleRootFileViewProvider.getPsi(SingleRootFileViewProvider.java:147)
at
com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.getAllFiles(MultiplePsiFilesPerDocumentFileViewProvider.java:58)
at
com.intellij.codeInsight.preview.ImageOrColorPreviewManager.a(ImageOrColorPreviewManager.java:128)
at
com.intellij.codeInsight.preview.ImageOrColorPreviewManager.a(ImageOrColorPreviewManager.java:102)
at
com.intellij.codeInsight.preview.ImageOrColorPreviewManager.access$000(ImageOrColorPreviewManager.java:52)
at
com.intellij.codeInsight.preview.ImageOrColorPreviewManager$1.editorCreated(ImageOrColorPreviewManager.java:71)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:90)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:67)
at com.sun.proxy.$Proxy30.editorCreated(Unknown Source)
at
com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:193)
at
com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:166)
at
com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.b(TextEditorComponent.java:162)
at
com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.(TextEditorComponent.java:111)
at
com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.(PsiAwareTextEditorImpl.java:67)
at
com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.(PsiAwareTextEditorImpl.java:60)
at
com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.createEditorComponent(PsiAwareTextEditorImpl.java:44)
at
com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.(TextEditorImpl.java:46)
at
com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.(PsiAwareTextEditorImpl.java:38)
at
com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.createEditor(PsiAwareTextEditorProvider.java:53)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:797)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:738)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$8.run(FileEditorManagerImpl.java:718)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:715)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:652)
at
com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:139)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$14.run(FileEditorManagerImpl.java:1046)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:1042)
at com.intellij.ide.util.EditorHelper.openInEditor(EditorHelper.java:56)
at
com.intellij.ide.projectView.impl.ProjectViewImpl$MyIdeView.selectElement(ProjectViewImpl.java:1263)
at
com.intellij.ide.actions.CreateElementActionBase.actionPerformed(CreateElementActionBase.java:80)
at
com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:266)
at
com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:926)
at
com.in

Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Kasun Gajasinghe
Hi Maheshika,

Can you check the size of the m2 repos inside these workspaces? We maintain
m2 repo per job. And, because of SNAPSHOT versions, maven do not delete the
old snapshots from its local m2 repo.

So, for 15 different products with builds that's been running 100 times: 15
x 100 x 250MB = 37GB of space. With figures like this, the total size of m2
repos could be close to 100GBs.

So, I think that these m2 repos might be one of the culprit. @Maheshika,
Check the size of the m2 repos, and let us know so we can be sure.

Jenkins do have a "Maven repository cleaner" which is configured for our
Jenkins instance as well. May be it's not working properly!

Thanks,
KasunG


On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke  wrote:

> Hi Kasun
>
> The workspace directory is where Jenkins builds the projects. It contains
> the source code checkout and any files generated from the builds. The
> current size of the directory is 210GB. Jenkins creates a workspace
> directory for each build plan. Therefore, the total workspace directory
> size will increase.
>
> The build plans have been configured to discard old builds. Therefore,
> assume there could be any old builds left.
>
>
> On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe  wrote:
>
>>
>> Why does workspace takes too much space? Is it because of the archived
>> old builds?
>>
>> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Azeez
>>>
>>> Yes, the build has been configured to Discard old builds and artifacts.
>>>
>>> According to the Disk Usage report, workspace uses majority of the disk
>>> space. Therefore, we would have to remove workspace for each build plan
>>> periodically.
>>>
>>> This can be done manually or enable "Workspace clean up plugin" to clean
>>> daily.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:
>>>
 Are the build logs, artifacts etc. cleaned from time to time, if not,
 we will run into issues.

 On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
 mahesh...@wso2.com> wrote:

> Hi Harsha & Prabath
>
> We are in the process of increasing the disk space.
>
> Hi Rumesh
>
> Most Jenkins builds have failed due to inadequate disk space.
>
> Therefore, please increase the Jenkins disk space.
>
>
> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
> wrote:
>
>> Hi Maheshika,
>> This is occurs time to time. It says no space left on the device.
>> This is the reason for the previous build failure too. As I remember day
>> before yesterday, build was successful.
>> Thanks,
>> Harsha
>>
>> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Maheshika,
>>>
>>> It looks like we're still running into this issue in the builder
>>> machine. Would you be able to have a look?
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Wed, Sep 10, 2014 at 3:16 AM,  wrote:
>>>
 See 

 --
 [...truncated 729 lines...]
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS
 [0.384s]
 [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS
 [0.025s]
 [INFO] WSO2 Storage Server UI styles . SUCCESS
 [50.917s]
 [INFO] WSO2 Storage Server - Features Parent . SUCCESS
 [0.023s]
 [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS
 [0.035s]
 [INFO] WSO2 Storage Server - Styles Features . SUCCESS
 [0.625s]
 [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS
 [1:45.002s]
 [INFO] WSO2 Storage Server - Distribution  FAILURE
 [10.339s]
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 2:53.874s
 [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014
 [INFO] Final Memory: 32M/476M
 [INFO]
 
 ERROR: Asynchronous execution failure
 java.util.concurrent.ExecutionException: java.io.IOException: No
 space left on device
 at hudson.remoting.Channel$3.adapt(Channel.java:772)
 at hudson.remoting.Channel$3.adapt(Channel.java:767)
 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
 at
 hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185)
 at hudson.maven.Maven3B

Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Maheshika Goonetilleke
Hi Kasun

The workspace directory is where Jenkins builds the projects. It contains
the source code checkout and any files generated from the builds. The
current size of the directory is 210GB. Jenkins creates a workspace
directory for each build plan. Therefore, the total workspace directory
size will increase.

The build plans have been configured to discard old builds. Therefore,
assume there could be any old builds left.


On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe  wrote:

>
> Why does workspace takes too much space? Is it because of the archived old
> builds?
>
> On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Azeez
>>
>> Yes, the build has been configured to Discard old builds and artifacts.
>>
>> According to the Disk Usage report, workspace uses majority of the disk
>> space. Therefore, we would have to remove workspace for each build plan
>> periodically.
>>
>> This can be done manually or enable "Workspace clean up plugin" to clean
>> daily.
>>
>>
>> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:
>>
>>> Are the build logs, artifacts etc. cleaned from time to time, if not, we
>>> will run into issues.
>>>
>>> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Harsha & Prabath

 We are in the process of increasing the disk space.

 Hi Rumesh

 Most Jenkins builds have failed due to inadequate disk space.

 Therefore, please increase the Jenkins disk space.


 On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
 wrote:

> Hi Maheshika,
> This is occurs time to time. It says no space left on the device. This
> is the reason for the previous build failure too. As I remember day before
> yesterday, build was successful.
> Thanks,
> Harsha
>
> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera  > wrote:
>
>> Hi Maheshika,
>>
>> It looks like we're still running into this issue in the builder
>> machine. Would you be able to have a look?
>>
>> Cheers,
>> Prabath
>>
>> On Wed, Sep 10, 2014 at 3:16 AM,  wrote:
>>
>>> See 
>>>
>>> --
>>> [...truncated 729 lines...]
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS
>>> [0.384s]
>>> [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS
>>> [0.025s]
>>> [INFO] WSO2 Storage Server UI styles . SUCCESS
>>> [50.917s]
>>> [INFO] WSO2 Storage Server - Features Parent . SUCCESS
>>> [0.023s]
>>> [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS
>>> [0.035s]
>>> [INFO] WSO2 Storage Server - Styles Features . SUCCESS
>>> [0.625s]
>>> [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS
>>> [1:45.002s]
>>> [INFO] WSO2 Storage Server - Distribution  FAILURE
>>> [10.339s]
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 2:53.874s
>>> [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014
>>> [INFO] Final Memory: 32M/476M
>>> [INFO]
>>> 
>>> ERROR: Asynchronous execution failure
>>> java.util.concurrent.ExecutionException: java.io.IOException: No
>>> space left on device
>>> at hudson.remoting.Channel$3.adapt(Channel.java:772)
>>> at hudson.remoting.Channel$3.adapt(Channel.java:767)
>>> at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
>>> at
>>> hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185)
>>> at hudson.maven.Maven3Builder.call(Maven3Builder.java:141)
>>> at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
>>> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>>> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>> at hudson.remoting.Request$2.run(Request.java:328)
>>> at
>>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>> at
>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414)
>>> at
>>> hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542)
>>> at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown
>>> Source)
>>> at
>>>

[Dev] Pull request for https://wso2.org/jira/browse/CARBON-14931

2014-09-10 Thread Aruna Karunarathna
Hi SameeraK,

Can you send a pull request for the above mentioned ticket?.

Regards,
Aruna

-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BRS]How to modify date formats in drools.

2014-09-10 Thread Waruna Jayaweera
Hi Stevegyc,
According to drools document,
The date format dd-mmm- is supported by default. You can customize this
by providing an alternative date format mask as the System property named
drools.dateformat. If more control is required, use a restriction.

So you can set custom value to System property drools.dateformat to modify
the data format.

According to that below restriction should also work.

rule "Date-restricted rule"
date-effective "10.9.2014 8:00"  # 8 AM
date-expires   "10.9.2014 17:00" # 5 PM
when
then
end

Thanks,
Waruna


On Wed, Sep 10, 2014 at 8:42 AM, stevegyc  wrote:

>   Hi:
>
> The default date format in drools is 'dd-MMM-',
>
> but in the definition of rule attribute date-effective, it says it contain a 
> date and time definition.
> It need to use the date format as 'dd-MMM- HH:mm'.
>
> Any one know how to modify the date format to 'dd-MMM- HH:mm'?
>
> --
> stevegyc
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon component deployment halts due to third party libraries used.

2014-09-10 Thread Supun Sethunga
Hi Pubudu,

Attached is the pom file.

Thanks,

On Wed, Sep 10, 2014 at 2:26 PM, Pubudu Dissanayake 
wrote:

> Hi Supun,
>
> Please make sure that third party jar is in 'resolve' state. Be aware that
> importing a package doesn't import its sub-packages and there is no
> relationship among nested packages. You have to specifically mention " 
> Import-Package:
> org.apache.commons.math3.stat.descriptive; version="[3.3.0,4.0.0)" "
>
> Please attach your pom file as well.
>
> Thanks
> -Pubudu
>
>
>
> On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga  wrote:
>
>> Correction :  */repository/components/lib folder*
>>
>> On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga  wrote:
>>
>>> Hi,
>>>
>>> The imported library *org.apache.commons.math3 *is being not
>>> identified. (gets the following output in the osgi console)
>>>
>>> *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]*
 *  Direct constraints which are unresolved:*
 *Missing imported package
 org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)*

>>>
>>>  Tried putting the relevant third-party jar file to the
>>> /repository/components/plugins folder, and deploy. But still
>>> not resolved.
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando 
>>> wrote:
>>>
 I think best way to figure out this is to start the server with osgi
 console and find out the unsatisfied items.

 Thanks & Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729


 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga 
 wrote:

> Hi Sameera / Carbon team,
>
> Im trying to expose some Machine Learning services as a carbon
> component. The component I wrote builds successfully. But when I try to
> deploy this component (tried deploying in both BAM and ESB), the 
> deployment
> process halts, saying the following.
>
>
>
> *[2014-09-10 10:32:04,915]  INFO
> {org.apache.cassandra.thrift.ThriftServer} -  Listening for thrift
> clients...[2014-09-10 10:33:05,754]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
> is
> delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755]
> WARN {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
> required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0*
>
> Found out that the reason for this was the logger log4j (when I
> replace log4j with commons-logger, the component got deployed) and a class
> in a third party library
> "org.apache.commons.math3.stat.descriptive.DescriptiveStatistics".
>
> Any idea what causes this issue?
>
> 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
>
>

>>>
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> 
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>


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

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

ml-components
org.wso2.carbon
0.1.0

4.0.0

org.wso2.carbon.ml.dataset
bundle
WSO2 Carbon - Machine Learner Dataset Component


wso2-Nexus
WSO2 Repository
http://dist.wso2.org/maven2/



	
	  org.apache.hadoop
	  hadoop-core
	  1.2.1
	  compile
	
	
	  org.apache.mahout
	  mahout-core
	  0.9
	  compile
	
	
	  org.apache.mahout
	  mahout-math
	  0.9
	  compile
	

commons-logging
commons-logging
1.1.1

  
		org.apache.commons
		commons-math3
		3.3
	
	




org.apache.felix
maven-bundle-

[Dev] Updated Invitation: Code Review - WSO2 EAM Testcases @ Thu Sep 11, 2014 1:30pm - 2:30pm (Kasun Dissanayake)

2014-09-10 Thread kas...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140911T08Z
DTEND:20140911T09Z
DTSTAMP:20140910T094032Z
ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com
UID:4ugfmn2hv9ijhu64g30tn8c...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dharshana Warusavitharana;X-NUM-GUESTS=0:mailto:dharsha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Wimalasekara;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
CREATED:20140910T050511Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEW&eid=NHVnZm1uMmh2OWlqaHU2NGczMHRuOGMzZTggZGV2QHdzbzIub3Jn&tok=MTUja2Fz
 dW51QHdzbzIuY29tOWIzNWJjMGY3MWVlZDU0ZGY0MjhjZmE0ZjY2YmYxNTNiZWVlMDhhYg&ctz=
 Asia/Colombo&hl=en.
LAST-MODIFIED:20140910T094031Z
LOCATION:WSO2 Inc.\, LK 3rd Floor Meeting Room
SEQUENCE:2
STATUS:CONFIRMED
SUMMARY:Code Review - WSO2 EAM Testcases
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR


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


Re: [Dev] [DSS]Generating Using a Given Database Structure failed

2014-09-10 Thread Chanika Geeganage
The tentative date for the DSS 3.2.2 release is Sep 26th. You can find DSS
release dates from [1]

[1]
https://wso2.org/jira/browse/DS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel

On Wed, Sep 10, 2014 at 2:59 PM, stevegyc  wrote:

>   Hi Chanika:
>
> Thank you very much!
> By the way, do you know when DSS 3.2.2 will be released?
>
> --
> stevegyc
>
>  *From:* Chanika Geeganage 
> *Date:* 2014-09-10 17:24
> *To:* stevegyc 
> *CC:* Dakshika Jayathilaka ; dev 
> *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure
> failed
>   Hi,
>
> I was able to reproduce this error. From the corresponding resultSet (for
> TIMESTAMP type), when we try to get the SQL Type using
> resultSet.getInt("DATA_TYPE") it gives  which is mapped to SQL Type
> 'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway
> we will handle this in the DSS 3.2.2 by converting that to a STRING value.
> I have created a JIRA to track this issue.
>
> [1]
> http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE
> [2] https://wso2.org/jira/browse/DS-959
>
> Thanks
>
> On Wed, Sep 10, 2014 at 1:17 PM, stevegyc  wrote:
>
>>  Hi Dakshika:
>>
>> Thank you for your reply.
>> But it is difficult for me to change the format of "TIMESTAMP".
>> Can you tell me the location of the related code approximately?
>>
>> --
>> stevegyc
>>
>>  *From:* Dakshika Jayathilaka 
>> *Date:* 2014-09-10 14:41
>> *To:* stevegyc 
>> *CC:* dev 
>> *Subject:* Re: Re: [Dev] [DSS]Generating Using a Given Database
>> Structure failed
>>   AFAIK it should -MM-DD HH24:MI:SS.FF --> 1997-01-31 09:26:50.12
>>
>>  *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Wed, Sep 10, 2014 at 3:06 AM, stevegyc  wrote:
>>
>>>  Hi Dakshika
>>>
>>> The format of TIMESTAMP value is like "05-2月 -12 11.17.41.000 下午 ",
>>> what is the format that DSS support?
>>>
>>> --
>>> stevegyc
>>>
>>>  *From:* Dakshika Jayathilaka 
>>> *Date:* 2014-09-10 10:25
>>> *To:* stevegyc 
>>> *CC:* dev 
>>> *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure
>>> failed
>>>   Hi,
>>>
>>> What is the format of TIMESTAMP value ? If your sending incorrect format
>>> that will cause some issues.
>>>
>>>
>>>
>>>  *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Wed, Sep 10, 2014 at 2:16 AM, stevegyc  wrote:
>>>
   Hi:


 When I generated dss server by using a given database structure, it failed 
 and following error log displayed.


 TID: [0] [DSS] [2014-09-09 14:50:42,957]  WARN 
 {org.wso2.carbon.dataservices.core.script.DSGenerator} -  Insert operation 
 not created {org.wso2.carbon.dataservices.core.script.DSGenerator}
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 DS Fault Message: Invalid query param sqlType: 'null'.
 DS Code: UNKNOWN_ERROR

 at 
 org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123)

 at 
 org.wso2.carbon.dataservices.core.engine.QueryParam.(QueryParam.java:76)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160)

 at 
 org.wso2.carbon.dataservices.core.script.DSGenerator.(DSGenerator.java:108)

 at 
 org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447)


 My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, 
 DATE and TIMESTAMP, such as following:
 create table INFO
 (
   object_id  NUMBER(18) not null,
   oc_name  VARCHAR2(50),
   last_time  DATE,
   insert_time   TIMESTAMP(3) default SYSDATE,
 )


 It seems DSS does not support the datatype of "TIMESTAMP", When I delete 
 the datatype of "TIMESTAMP", it can generate dss server successfully.

 I do not know why DSS do not support datatype of "TIMESTAMP" and how to 
 solve it.

 --
  stevegyc

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


>>>
>>
>> ___

Re: [Dev] [DSS]Generating Using a Given Database Structure failed

2014-09-10 Thread stevegyc
Hi Chanika:

Thank you very much!
By the way, do you know when DSS 3.2.2 will be released?




stevegyc

From: Chanika Geeganage
Date: 2014-09-10 17:24
To: stevegyc
CC: Dakshika Jayathilaka; dev
Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi,


I was able to reproduce this error. From the corresponding resultSet (for 
TIMESTAMP type), when we try to get the SQL Type using 
resultSet.getInt("DATA_TYPE") it gives  which is mapped to SQL Type 'OTHER' 
[1]. It is an issue in the Oracle ResultSet Implementation, anyway we will 
handle this in the DSS 3.2.2 by converting that to a STRING value. I have 
created a JIRA to track this issue. 

[1] 
http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE

[2] https://wso2.org/jira/browse/DS-959


Thanks



On Wed, Sep 10, 2014 at 1:17 PM, stevegyc  wrote:

Hi Dakshika:

Thank you for your reply.
But it is difficult for me to change the format of "TIMESTAMP".
Can you tell me the location of the related code approximately?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 14:41
To: stevegyc
CC: dev
Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
AFAIK it should -MM-DD HH24:MI:SS.FF --> 1997-01-31 09:26:50.12


Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 3:06 AM, stevegyc  wrote:

Hi Dakshika

The format of TIMESTAMP value is like "05-2月 -12 11.17.41.000 下午 ", 
what is the format that DSS support?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 10:25
To: stevegyc
CC: dev
Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi, 


What is the format of TIMESTAMP value ? If your sending incorrect format that 
will cause some issues.






Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 2:16 AM, stevegyc  wrote:

Hi:

When I generated dss server by using a given database structure, it failed and 
following error log displayed.

TID: [0] [DSS] [2014-09-09 14:50:42,957]  WARN 
{org.wso2.carbon.dataservices.core.script.DSGenerator} -  Insert operation not 
created {org.wso2.carbon.dataservices.core.script.DSGenerator}
DS Code: UNKNOWN_ERROR
Nested Exception:-
DS Fault Message: Invalid query param sqlType: 'null'.
DS Code: UNKNOWN_ERROR
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123)
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.(QueryParam.java:76)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.(DSGenerator.java:108)
at 
org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447)

My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE 
and TIMESTAMP, such as following:
create table INFO
(
  object_id  NUMBER(18) not null,
  oc_name  VARCHAR2(50),
  last_time  DATE,
  insert_time   TIMESTAMP(3) default SYSDATE,
)

It seems DSS does not support the datatype of "TIMESTAMP", When I delete the 
datatype of "TIMESTAMP", it can generate dss server successfully.
I do not know why DSS do not support datatype of "TIMESTAMP" and how to solve 
it.




stevegyc

___
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





-- 

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] WSO2 AppFactory 2.1.0 Milestone 5 Released!

2014-09-10 Thread Samith Dassanayake
WSO2 AppFactory 2.1.0 Milestone 5 Released!

WSO2 AppFactory team is pleased to announce the release of version 2.1.0 M5
of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.




The key features of this release are BAM integration for user activity and
moving run-time data from registry to database.


The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Puppet manifests for App Factory can be found at [3].


We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA
.

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-M5/packs/wso2appfactory-2.0.1.zip
[2] 
*https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.0.1-M5%22%20ORDER%20BY%20updated%20DESC%2C%20priority%20DESC%2C%20created%20ASC
*
[3]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-M5/appfactory_2.0.0/products/appfactory/2.0.1/modules/puppet-manifests/

-- 
Best Regards

Samith Dassanayake
Software Engineer, WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 AS Cluster issue

2014-09-10 Thread Godwin Amila Shrimal
Hi Dhanusha,

I checked the logs and there is no errors. I can see logs which are related
to cluster as follows.

TID: [0] [AS] [2014-09-10 14:41:47,493]  INFO
{org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
  : 9765 {org.wso2.carbon.core.transports.http.HttpTransportListener}

TID: [0] [AS] [2014-09-10 14:41:47,500]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
Cluster domain: wso2.as.domain
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}

TID: [0] [AS] [2014-09-10 14:41:47,500]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
Using wka based membership management scheme
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}

TID: [0] [AS] [2014-09-10 14:41:47,501]  INFO
{org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -  Added
member: Host:127.0.0.1, Remote Host:null, Port: 4000, HTTP:-1, HTTPS:-1,
Domain: null, Sub-domain:null, Active:true
{org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils}

TID: [0] [AS] [2014-09-10 14:41:48,718]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
Hazelcast initialized in 1214ms
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}

TID: [0] [AS] [2014-09-10 14:41:48,768]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
Local member: [ef9e66b4-8f73-47ce-9828-a04ee59375be] - Host:127.0.0.1,
Remote Host:null, Port: 4251, HTTP:9765, HTTPS:9445, Domain:
wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}

TID: [0] [AS] [2014-09-10 14:41:48,775]  INFO
{org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -  Added
member: Host:127.0.0.1, Remote Host:null, Port: 4251, HTTP:9765,
HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker, Active:true
{org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils}

TID: [0] [AS] [2014-09-10 14:41:48,867]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent} -
Cluster initialization completed
{org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent}

TID: [0] [AS] [2014-09-10 14:41:48,869]  INFO
{org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
servlet write/read {org.apache.tomcat.util.net.NioSelectorPool}

TID: [0] [AS] [2014-09-10 14:41:48,986]  INFO
{org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
servlet write/read {org.apache.tomcat.util.net.NioSelectorPool}

TID: [0] [AS] [2014-09-10 14:41:49,034]  INFO
{org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} -  Task service
starting in CLUSTERED mode...
{org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl}

TID: [0] [AS] [2014-09-10 14:41:49,099]  INFO
{org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
service:jmx:rmi://localhost:3/jndi/rmi://localhost:10001/jmxrmi
{org.wso2.carbon.core.init.JMXServerManager}

TID: [0] [AS] [2014-09-10 14:41:49,100]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
  :  Application Server-5.2.1
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent}

TID: [0] [AS] [2014-09-10 14:41:49,100]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
Carbon started in 19 sec
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent}

TID: [0] [AS] [2014-09-10 14:41:49,255]  INFO
{org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
: https://10.100.5.170:9445/carbon/
{org.wso2.carbon.ui.internal.CarbonUIServiceComponent}

On Wed, Sep 10, 2014 at 2:19 PM, Danushka Fernando 
wrote:

> Goodwin
> This error means you haven't configured the setup correctly. When you
> start up the server (AS) do you see any logs saying that AS joined to the
> cluster? I guess there should be some error there.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi,
>>
>> I am configuring AS cluster with WSO2 ELB. Once completed the
>> configuration and send an request to management node it gives a error as  
>> TenantAwareLoadBalanceEndpoint
>> No application members available in ELB.
>>
>> What can be the issue for this ? I saw few jira also there for this and
>> couldn't find the solution.
>>
>>
>> This is the sample I am following,
>>
>> http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html
>>
>>
>> Godwin
>> Thanks
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Godwin A

Re: [Dev] WSO2 AS Cluster issue

2014-09-10 Thread Kasun Gajasinghe
Hi,


On Wed, Sep 10, 2014 at 10:49 AM, Danushka Fernando 
wrote:

> Goodwin
> This error means you haven't configured the setup correctly. When you
> start up the server (AS) do you see any logs saying that AS joined to the
> cluster? I guess there should be some error there.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal 
> wrote:
>
>> Hi,
>>
>> I am configuring AS cluster with WSO2 ELB. Once completed the
>> configuration and send an request to management node it gives a error as  
>> TenantAwareLoadBalanceEndpoint
>> No application members available in ELB.
>>
>> What can be the issue for this ? I saw few jira also there for this and
>> couldn't find the solution.
>>
>>
>> This is the sample I am following,
>>
>> http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html
>>
>>
This doesn't look correct. The group_mgt_port in ELB should be different
from its localMemberPort value. Try changing the localMemberPort of ELB to
something other than 4000, say, 4100.

And, why are you not following the Cluster 4.2.0 guide??

KasunG


>
>> Godwin
>> Thanks
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> 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
>
>


-- 

*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] Graceful Restart is not working

2014-09-10 Thread Lasantha Fernando
Hi Nipuni,

Can you also verify if this code segment affects a normal startup as well
(other than a graceful restart)?

i.e. if u start with OSGi console, you can verify if
registry.search.dscomponent service is satisfied or not. Then if you drill
down the unsatisfied component, you will probably be able to find the NPE
in the reasons listed for OSGi service being unsatisfied. I think that this
NPE is thrown at normal startup as well, but somehow swallowed up when the
bundle loading happens. I mean that was the case in the issue mentioned in
the earlier thread.

Thanks,
Lasantha

On 10 September 2014 14:26, Ajith Vitharana  wrote:

> Hi Nipuni,
>
> You need to do two things here,
>
> 1. If you are not using the registry search feature , then need to find
> the place that bundle going to include to the product.
> 2. You can do a null check and proceed in code.[ @Subash this is bug in
> registry code please fix.]
>
> -Ajith.
>
>
>
> On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera  wrote:
>
>> Hi,
>>
>> Adding null check can avoid the NPE exception but may not solve the issue
>> properly.
>>
>> @Lasantha,
>>
>> I will check with GREG team and see if this can be solved with
>> touchpoints.
>>
>> @Firzhan.
>>
>> I have gone through the discussion "[AS] Error in shutting down the
>> server : Cannot put transports into maintenance mode : NPE from
>> RegistryConfigLoader." earlier and your findings, will check with GREG
>> team.
>>
>> Thanks,
>> Nipuni
>>
>>
>> On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash 
>> wrote:
>>
>>> Hi All,
>>>
>>> We have already discussed this issue in the mail thread [Dev] [AS] Error
>>> in shutting down the server : Cannot put transports into maintenance mode :
>>> NPE from RegistryConfigLoader.
>>>
>>> Rather than checking the null point, I feel like we have to investigate
>>> why the registry's search feature bundle getting included to the products
>>> which are not using registry search feature ( BPS ).
>>>
>>> @Ajith:- You thoughts on this
>>>
>>> Regards,
>>> Firzhan
>>>
>>> On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando 
>>> wrote:
>>>
 Hi,


 On 10 September 2014 10:19, Nipuni Perera  wrote:

> Hi,
>
> Yes. I can add a null check to indexingConfig element and continue
> only if the value is available (But it will add the whole method execution
> inside constructor RegistryConfigLoader() to an if block - line 75 to 150
> of [1]). Is this preferable?
>
> public RegistryConfigLoader() {
> try {
> FileInputStream fileInputStream = new
> FileInputStream(getConfigFile());
> StAXOMBuilder builder = new StAXOMBuilder(
>
> CarbonUtils.replaceSystemVariablesInXml(fileInputStream));
> OMElement configElement = builder.getDocumentElement();
> OMElement indexingConfig =
> configElement.getFirstChildWithName(
> new QName("indexingConfiguration"));
> if (indexingConfig != null)
> {  //newly
> added if block
>
> ...
>  ...
>}
>}
>} catch (FileNotFoundException e) {
> // This virtually cannot happen as registry.xml is
> necessary to start up the registry
> log.error("registry.xml has not been found", e);
> } catch (RegistryException e) {
> log.error(e.getMessage(),e);
> } catch (XMLStreamException e) {
> String msg = "error building registry.xml, check for badly
> formed xml";
> log.error(msg, e);
> } catch (CarbonException e) {
> log.error("An error occurred during system variable
> replacement", e);
> }
> }
>
> It seems if the indexingConfig is null, no need to call this
> constructor. RegistryConfigLoader() is called inside IndexingManager()
> constructor.
>
> private IndexingManager() {
> try {
> registry =
> Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME);
> registryConfig = new RegistryConfigLoader();
> // call to constructor RegistryConfigLoader()
> indexer = new AsyncIndexer();
> } catch (RegistryException e) {
> log.error("Could not initialize registry for indexing", e);
> }
> }
> Can't we check indexingConfig value before calling
> RegistryConfigLoader()  ?
>

 +1 to add a null check and deal with this. As to not calling
 RegistryConfigLoader if indexingConfig is not present, isn't
 RegistryConfigLoader there to read the whole registry.xml file and
  indexingConfig is only a part of that? If so, I guess we do need to call
 RegistryConfigLoader() regardless of whether indexingConfig is p

Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-10 Thread Waruna Perera
Hi,

Issue logged in JIRA related to automation test case.

[1] https://wso2.org/jira/browse/APIMANAGER-2835

On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera  wrote:

> Hi Sanjeewa,
>
> Noted. I will update the thread as we move forward about the API calls
> which we will think of useful to have.
>
> Thanks
>
>
> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Waruna,
>>
>>
>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> Amalka and me started doing above $subject by following[1]. When
>>> following some of the test cases available we found that API calls in
>>> publisher[2] and store are limited. The search API functions are covered by
>>> calling host objects. I have few questions regarding that.
>>>
>>> Do we have a plan to provide other API calls in publisher and store?
>>>
>> I assume here you are talking about rest APIs that we documented. For the
>> moment most of required operations are exposed as rest APIs. But still
>> there are missing parts. In such cases  we can deploy simple jag file in
>> the server and call to host object. If you looked at HostObjectTestCase,
>> you will see how we tested host object operations that did not exposed as
>> rest APIs. Please refer java test cases available in product.
>>
>> Do we need uniformity with test cases? (some via API calls and others
>>> with direct host object calls)
>>>
>> IMO there is no such requirement. We cant test all scenarios in the same
>> way. Important thing is cover use cases as much as possible.
>>
>> Thanks,
>> sanjeewa.
>>
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>>
>>> [2] https://docs.wso2.com/display/AM170/Publisher+APIs
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pull request for https://wso2.org/jira/browse/CARBON-14905

2014-09-10 Thread Sameera Jayasoma
Hi Asela,

Can you send a PR for the above mentioned issue?

Thanks,
Sameera.

-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] Stopping RXT attributes from being added as resource properties

2014-09-10 Thread Nuwan Dias
+1 for removing these. APIM doesn't deal with properties in RXTs but with
the RXT attributes directly. So APIM won't have any effects by this change.

Thanks,
NuwanD.

On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun  wrote:

> Hi All,
>
> Currently with RXT's all the attributes of the RXT are being added as
> properties in the resource. The process of adding them as properties
> executes a significant amount of DB calls which is big performance hit.
> AFAIK there is no use of these properties hence we should be able to stop
> this and reduce a large amount of DB calls in the process.
>
> @Nuwan
> As for the the offline discussion we had a while back regarding this i
> assume that these properties are not been used in the APIM side ( Not
> properties in general just the properties that are created for RXT
> attributes ).
>
> Since we do not have any real use for this properties shall we remove
> these, WDYT?
>
>
> Regards,
> Pulasthi
>
>
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: pulas...@wso2.com
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>



-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Graceful Restart is not working

2014-09-10 Thread Ajith Vitharana
Hi Nipuni,

You need to do two things here,

1. If you are not using the registry search feature , then need to find the
place that bundle going to include to the product.
2. You can do a null check and proceed in code.[ @Subash this is bug in
registry code please fix.]

-Ajith.



On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera  wrote:

> Hi,
>
> Adding null check can avoid the NPE exception but may not solve the issue
> properly.
>
> @Lasantha,
>
> I will check with GREG team and see if this can be solved with touchpoints.
>
> @Firzhan.
>
> I have gone through the discussion "[AS] Error in shutting down the server
> : Cannot put transports into maintenance mode : NPE from
> RegistryConfigLoader." earlier and your findings, will check with GREG
> team.
>
> Thanks,
> Nipuni
>
>
> On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash  wrote:
>
>> Hi All,
>>
>> We have already discussed this issue in the mail thread [Dev] [AS] Error
>> in shutting down the server : Cannot put transports into maintenance mode :
>> NPE from RegistryConfigLoader.
>>
>> Rather than checking the null point, I feel like we have to investigate
>> why the registry's search feature bundle getting included to the products
>> which are not using registry search feature ( BPS ).
>>
>> @Ajith:- You thoughts on this
>>
>> Regards,
>> Firzhan
>>
>> On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando 
>> wrote:
>>
>>> Hi,
>>>
>>>
>>> On 10 September 2014 10:19, Nipuni Perera  wrote:
>>>
 Hi,

 Yes. I can add a null check to indexingConfig element and continue only
 if the value is available (But it will add the whole method execution
 inside constructor RegistryConfigLoader() to an if block - line 75 to 150
 of [1]). Is this preferable?

 public RegistryConfigLoader() {
 try {
 FileInputStream fileInputStream = new
 FileInputStream(getConfigFile());
 StAXOMBuilder builder = new StAXOMBuilder(

 CarbonUtils.replaceSystemVariablesInXml(fileInputStream));
 OMElement configElement = builder.getDocumentElement();
 OMElement indexingConfig =
 configElement.getFirstChildWithName(
 new QName("indexingConfiguration"));
 if (indexingConfig != null)
 {  //newly
 added if block

 ...
  ...
}
}
} catch (FileNotFoundException e) {
 // This virtually cannot happen as registry.xml is
 necessary to start up the registry
 log.error("registry.xml has not been found", e);
 } catch (RegistryException e) {
 log.error(e.getMessage(),e);
 } catch (XMLStreamException e) {
 String msg = "error building registry.xml, check for badly
 formed xml";
 log.error(msg, e);
 } catch (CarbonException e) {
 log.error("An error occurred during system variable
 replacement", e);
 }
 }

 It seems if the indexingConfig is null, no need to call this
 constructor. RegistryConfigLoader() is called inside IndexingManager()
 constructor.

 private IndexingManager() {
 try {
 registry =
 Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME);
 registryConfig = new RegistryConfigLoader();
 // call to constructor RegistryConfigLoader()
 indexer = new AsyncIndexer();
 } catch (RegistryException e) {
 log.error("Could not initialize registry for indexing", e);
 }
 }
 Can't we check indexingConfig value before calling
 RegistryConfigLoader()  ?

>>>
>>> +1 to add a null check and deal with this. As to not calling
>>> RegistryConfigLoader if indexingConfig is not present, isn't
>>> RegistryConfigLoader there to read the whole registry.xml file and
>>>  indexingConfig is only a part of that? If so, I guess we do need to call
>>> RegistryConfigLoader() regardless of whether indexingConfig is present or
>>> not. Maybe the GREG team can give better input on this.
>>>
>>> Also, this exact same code segment was discussed before in thread "[Dev]
>>> Missing configuration in registry.xml causes OSGi services to be
>>> unsatisfied" [1], but guess I forgot to raise a JIRA under that... :-).
>>> Can you look into that thread as well and if it is possible to add a
>>> touchpoint as well as suggested in that thread?
>>>
>>> [1] http://mail.wso2.org/mailarchive/dev/2014-April/029358.html
>>>
>>> Thanks,
>>> Lasantha
>>>

 [1]
 https://github.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java

 Thanks,
 Nipuni


 On Wed, 

Re: [Dev] Carbon component deployment halts due to third party libraries used.

2014-09-10 Thread Pubudu Dissanayake
Hi Supun,

Please make sure that third party jar is in 'resolve' state. Be aware that
importing a package doesn't import its sub-packages and there is no
relationship among nested packages. You have to specifically mention "
Import-Package:
org.apache.commons.math3.stat.descriptive; version="[3.3.0,4.0.0)" "

Please attach your pom file as well.

Thanks
-Pubudu



On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga  wrote:

> Correction :  */repository/components/lib folder*
>
> On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga  wrote:
>
>> Hi,
>>
>> The imported library *org.apache.commons.math3 *is being not identified.
>> (gets the following output in the osgi console)
>>
>> *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]*
>>> *  Direct constraints which are unresolved:*
>>> *Missing imported package
>>> org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)*
>>>
>>
>>  Tried putting the relevant third-party jar file to the
>> /repository/components/plugins folder, and deploy. But still
>> not resolved.
>>
>> Thanks,
>> Supun
>>
>> On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando 
>> wrote:
>>
>>> I think best way to figure out this is to start the server with osgi
>>> console and find out the unsatisfied items.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>>
>>> On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga 
>>> wrote:
>>>
 Hi Sameera / Carbon team,

 Im trying to expose some Machine Learning services as a carbon
 component. The component I wrote builds successfully. But when I try to
 deploy this component (tried deploying in both BAM and ESB), the deployment
 process halts, saying the following.



 *[2014-09-10 10:32:04,915]  INFO
 {org.apache.cassandra.thrift.ThriftServer} -  Listening for thrift
 clients...[2014-09-10 10:33:05,754]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755]
 WARN {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
 required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0*

 Found out that the reason for this was the logger log4j (when I replace
 log4j with commons-logger, the component got deployed) and a class in a
 third party library
 "org.apache.commons.math3.stat.descriptive.DescriptiveStatistics".

 Any idea what causes this issue?

 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


>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> *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
>
>


-- 
*Pubudu Dissanayake*
 Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mob: + 94 775 503 304

Blog: http://geekdetected.wordpress.com/
Linkedin: *http://lk.linkedin.com/in/pubududissanayake*

Flickr : https://www.flickr.com/photos/pubudufx/
Twitter: https://twitter.com/GeekInAction
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS]Generating Using a Given Database Structure failed

2014-09-10 Thread Chanika Geeganage
Hi,

I was able to reproduce this error. From the corresponding resultSet (for
TIMESTAMP type), when we try to get the SQL Type using
resultSet.getInt("DATA_TYPE") it gives  which is mapped to SQL Type
'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway
we will handle this in the DSS 3.2.2 by converting that to a STRING value.
I have created a JIRA to track this issue.

[1]
http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE
[2] https://wso2.org/jira/browse/DS-959

Thanks

On Wed, Sep 10, 2014 at 1:17 PM, stevegyc  wrote:

>  Hi Dakshika:
>
> Thank you for your reply.
> But it is difficult for me to change the format of "TIMESTAMP".
> Can you tell me the location of the related code approximately?
>
> --
> stevegyc
>
>  *From:* Dakshika Jayathilaka 
> *Date:* 2014-09-10 14:41
> *To:* stevegyc 
> *CC:* dev 
> *Subject:* Re: Re: [Dev] [DSS]Generating Using a Given Database Structure
> failed
>  AFAIK it should -MM-DD HH24:MI:SS.FF --> 1997-01-31 09:26:50.12
>
>  *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Wed, Sep 10, 2014 at 3:06 AM, stevegyc  wrote:
>
>>  Hi Dakshika
>>
>> The format of TIMESTAMP value is like "05-2月 -12 11.17.41.000 下午 ",
>> what is the format that DSS support?
>>
>> --
>> stevegyc
>>
>>  *From:* Dakshika Jayathilaka 
>> *Date:* 2014-09-10 10:25
>> *To:* stevegyc 
>> *CC:* dev 
>> *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure
>> failed
>>   Hi,
>>
>> What is the format of TIMESTAMP value ? If your sending incorrect format
>> that will cause some issues.
>>
>>
>>
>>  *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Wed, Sep 10, 2014 at 2:16 AM, stevegyc  wrote:
>>
>>>   Hi:
>>>
>>>
>>> When I generated dss server by using a given database structure, it failed 
>>> and following error log displayed.
>>>
>>>
>>> TID: [0] [DSS] [2014-09-09 14:50:42,957]  WARN 
>>> {org.wso2.carbon.dataservices.core.script.DSGenerator} -  Insert operation 
>>> not created {org.wso2.carbon.dataservices.core.script.DSGenerator}
>>> DS Code: UNKNOWN_ERROR
>>> Nested Exception:-
>>> DS Fault Message: Invalid query param sqlType: 'null'.
>>> DS Code: UNKNOWN_ERROR
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.engine.QueryParam.(QueryParam.java:76)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.script.DSGenerator.(DSGenerator.java:108)
>>>
>>> at 
>>> org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447)
>>>
>>>
>>> My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, 
>>> DATE and TIMESTAMP, such as following:
>>> create table INFO
>>> (
>>>   object_id  NUMBER(18) not null,
>>>   oc_name  VARCHAR2(50),
>>>   last_time  DATE,
>>>   insert_time   TIMESTAMP(3) default SYSDATE,
>>> )
>>>
>>>
>>> It seems DSS does not support the datatype of "TIMESTAMP", When I delete 
>>> the datatype of "TIMESTAMP", it can generate dss server successfully.
>>>
>>> I do not know why DSS do not support datatype of "TIMESTAMP" and how to 
>>> solve it.
>>>
>>> --
>>>  stevegyc
>>>
>>> ___
>>> 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
>
>


-- 
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


Re: [Dev] WSO2 AS Cluster issue

2014-09-10 Thread Danushka Fernando
Goodwin
This error means you haven't configured the setup correctly. When you start
up the server (AS) do you see any logs saying that AS joined to the
cluster? I guess there should be some error there.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal 
wrote:

> Hi,
>
> I am configuring AS cluster with WSO2 ELB. Once completed the
> configuration and send an request to management node it gives a error as  
> TenantAwareLoadBalanceEndpoint
> No application members available in ELB.
>
> What can be the issue for this ? I saw few jira also there for this and
> couldn't find the solution.
>
>
> This is the sample I am following,
>
> http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html
>
>
> Godwin
> Thanks
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> 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] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Kasun Gajasinghe
Why does workspace takes too much space? Is it because of the archived old
builds?

On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke  wrote:

> Hi Azeez
>
> Yes, the build has been configured to Discard old builds and artifacts.
>
> According to the Disk Usage report, workspace uses majority of the disk
> space. Therefore, we would have to remove workspace for each build plan
> periodically.
>
> This can be done manually or enable "Workspace clean up plugin" to clean
> daily.
>
>
> On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:
>
>> Are the build logs, artifacts etc. cleaned from time to time, if not, we
>> will run into issues.
>>
>> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Harsha & Prabath
>>>
>>> We are in the process of increasing the disk space.
>>>
>>> Hi Rumesh
>>>
>>> Most Jenkins builds have failed due to inadequate disk space.
>>>
>>> Therefore, please increase the Jenkins disk space.
>>>
>>>
>>> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara 
>>> wrote:
>>>
 Hi Maheshika,
 This is occurs time to time. It says no space left on the device. This
 is the reason for the previous build failure too. As I remember day before
 yesterday, build was successful.
 Thanks,
 Harsha

 On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera 
 wrote:

> Hi Maheshika,
>
> It looks like we're still running into this issue in the builder
> machine. Would you be able to have a look?
>
> Cheers,
> Prabath
>
> On Wed, Sep 10, 2014 at 3:16 AM,  wrote:
>
>> See 
>>
>> --
>> [...truncated 729 lines...]
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS
>> [0.384s]
>> [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS
>> [0.025s]
>> [INFO] WSO2 Storage Server UI styles . SUCCESS
>> [50.917s]
>> [INFO] WSO2 Storage Server - Features Parent . SUCCESS
>> [0.023s]
>> [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS
>> [0.035s]
>> [INFO] WSO2 Storage Server - Styles Features . SUCCESS
>> [0.625s]
>> [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS
>> [1:45.002s]
>> [INFO] WSO2 Storage Server - Distribution  FAILURE
>> [10.339s]
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 2:53.874s
>> [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014
>> [INFO] Final Memory: 32M/476M
>> [INFO]
>> 
>> ERROR: Asynchronous execution failure
>> java.util.concurrent.ExecutionException: java.io.IOException: No
>> space left on device
>> at hudson.remoting.Channel$3.adapt(Channel.java:772)
>> at hudson.remoting.Channel$3.adapt(Channel.java:767)
>> at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
>> at
>> hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185)
>> at hudson.maven.Maven3Builder.call(Maven3Builder.java:141)
>> at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>> at hudson.remoting.Request$2.run(Request.java:328)
>> at
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414)
>> at
>> hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542)
>> at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown
>> Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at hudson.model.Executor$1.call(Executor.java:559)
>> at
>> hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
>> at com.sun.proxy.$Proxy78.execute(Unknown Source)
>> at
>> hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>> at hudson.remoting.UserRequest.perform(UserRequest.java:48

[Dev] WSO2 AS Cluster issue

2014-09-10 Thread Godwin Amila Shrimal
Hi,

I am configuring AS cluster with WSO2 ELB. Once completed the configuration
and send an request to management node it gives a error as
TenantAwareLoadBalanceEndpoint
No application members available in ELB.

What can be the issue for this ? I saw few jira also there for this and
couldn't find the solution.


This is the sample I am following,
http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html


Godwin
Thanks

-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: product-ss #74

2014-09-10 Thread Maheshika Goonetilleke
Hi Azeez

Yes, the build has been configured to Discard old builds and artifacts.

According to the Disk Usage report, workspace uses majority of the disk
space. Therefore, we would have to remove workspace for each build plan
periodically.

This can be done manually or enable "Workspace clean up plugin" to clean
daily.


On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez  wrote:

> Are the build logs, artifacts etc. cleaned from time to time, if not, we
> will run into issues.
>
> On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Harsha & Prabath
>>
>> We are in the process of increasing the disk space.
>>
>> Hi Rumesh
>>
>> Most Jenkins builds have failed due to inadequate disk space.
>>
>> Therefore, please increase the Jenkins disk space.
>>
>>
>> On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara  wrote:
>>
>>> Hi Maheshika,
>>> This is occurs time to time. It says no space left on the device. This
>>> is the reason for the previous build failure too. As I remember day before
>>> yesterday, build was successful.
>>> Thanks,
>>> Harsha
>>>
>>> On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera 
>>> wrote:
>>>
 Hi Maheshika,

 It looks like we're still running into this issue in the builder
 machine. Would you be able to have a look?

 Cheers,
 Prabath

 On Wed, Sep 10, 2014 at 3:16 AM,  wrote:

> See 
>
> --
> [...truncated 729 lines...]
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS
> [0.384s]
> [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS
> [0.025s]
> [INFO] WSO2 Storage Server UI styles . SUCCESS
> [50.917s]
> [INFO] WSO2 Storage Server - Features Parent . SUCCESS
> [0.023s]
> [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS
> [0.035s]
> [INFO] WSO2 Storage Server - Styles Features . SUCCESS
> [0.625s]
> [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS
> [1:45.002s]
> [INFO] WSO2 Storage Server - Distribution  FAILURE
> [10.339s]
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2:53.874s
> [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014
> [INFO] Final Memory: 32M/476M
> [INFO]
> 
> ERROR: Asynchronous execution failure
> java.util.concurrent.ExecutionException: java.io.IOException: No space
> left on device
> at hudson.remoting.Channel$3.adapt(Channel.java:772)
> at hudson.remoting.Channel$3.adapt(Channel.java:767)
> at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
> at
> hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185)
> at hudson.maven.Maven3Builder.call(Maven3Builder.java:141)
> at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> at hudson.remoting.Request$2.run(Request.java:328)
> at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>  at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414)
> at
> hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542)
> at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown
> Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at hudson.model.Executor$1.call(Executor.java:559)
> at
> hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
> at com.sun.proxy.$Proxy78.execute(Unknown Source)
> at
> hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293)
> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> at hudson.remoting.Request$2.run(Request.java:328)
> at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> at
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorServic

[Dev] Stopping RXT attributes from being added as resource properties

2014-09-10 Thread Pulasthi Supun
Hi All,

Currently with RXT's all the attributes of the RXT are being added as
properties in the resource. The process of adding them as properties
executes a significant amount of DB calls which is big performance hit.
AFAIK there is no use of these properties hence we should be able to stop
this and reduce a large amount of DB calls in the process.

@Nuwan
As for the the offline discussion we had a while back regarding this i
assume that these properties are not been used in the APIM side ( Not
properties in general just the properties that are created for RXT
attributes ).

Since we do not have any real use for this properties shall we remove
these, WDYT?


Regards,
Pulasthi


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


Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Afkham Azeez
Can you check the same with a product such as AppServer as well?

On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva  wrote:

> Issue is reported in [1]
>
> [1] https://wso2.org/jira/browse/CARBON-14940
>
> On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:
>
>> Tested with [1] and it has worked.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>
>> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe 
>> wrote:
>>
>>>
>>>
>>> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe 
>>> wrote:
>>>

 Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify
 whether it works with that?

 [1]
 https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1


>>> Malaka, can you try the above? Then we can verify whether something is
>>> wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>>>
>>>
 On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva  wrote:

> Hi KasunG,
>
> Can confirm this is not a configuration issue, unless configuration
> has changed?
>
> Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
> manually, and it start working.
>
> Best Regards,
> Malaka
>
> On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
> wrote:
>
>>
>> Ok.. this might be a configuration issue. But we did not test this
>> properly on Carbon 4.3.0 as well. Can you share you configuration files 
>> of
>> all the nodes? Any useful logs?
>>
>> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva  wrote:
>>
>>> Hi KasunG,
>>>
>>> Initially I have used 127.0.0.1.
>>>
>>> Then I have changed it to IP. However same issue exists.
>>>
>>> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi Malaka,

 What are the values you have used for localMemberHost? In Hz 3.2.3,
 you should not use 127.0.0.1 or localhost but the IP of the machine.

 Regards,
 KasunG

 On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez 
 wrote:

>
> KasunG,
> Can you verify this?
>



 --

 *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



>>>
>>>
>>>
>>> --
>>>
>>> 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/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>>
>> *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
>>
>>
>>
>
>
>
> --
>
> 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/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print
> this email only if it is absolutely necessary.
>



 --

 *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
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> 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/
>> 

Re: [Dev] Hazelcast issue with ESB 4.9.0 M3

2014-09-10 Thread Malaka Silva
Issue is reported in [1]

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

On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva  wrote:

> Tested with [1] and it has worked.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>
> On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe  wrote:
>
>>
>>
>> On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe  wrote:
>>
>>>
>>> Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify
>>> whether it works with that?
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1
>>>
>>>
>> Malaka, can you try the above? Then we can verify whether something is
>> wrong with the Hz 3.2.3.wso2v1 orbit bundle.
>>
>>
>>> On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva  wrote:
>>>
 Hi KasunG,

 Can confirm this is not a configuration issue, unless configuration has
 changed?

 Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1
 manually, and it start working.

 Best Regards,
 Malaka

 On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe 
 wrote:

>
> Ok.. this might be a configuration issue. But we did not test this
> properly on Carbon 4.3.0 as well. Can you share you configuration files of
> all the nodes? Any useful logs?
>
> On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva  wrote:
>
>> Hi KasunG,
>>
>> Initially I have used 127.0.0.1.
>>
>> Then I have changed it to IP. However same issue exists.
>>
>> On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi Malaka,
>>>
>>> What are the values you have used for localMemberHost? In Hz 3.2.3,
>>> you should not use 127.0.0.1 or localhost but the IP of the machine.
>>>
>>> Regards,
>>> KasunG
>>>
>>> On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez  wrote:
>>>

 KasunG,
 Can you verify this?

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> 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/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print
>> this email only if it is absolutely necessary.
>>
>
>
>
> --
>
> *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
>
>
>



 --

 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/
 

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

>>>
>>>
>>>
>>> --
>>>
>>> *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
>>
>>
>>
>
>
>
> --
>
> 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/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

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-s

Re: [Dev] Invitation: Code Review - API Manager self signup for tenant's API s... @ Tue Sep 9, 2014 12pm - 1pm (Vijayaratha Vijayasingam)

2014-09-10 Thread Chamila Adhikarinayake
Hi Nuwan,
I attached the code for this feature to the jira. Please find it in [1]

[1] https://wso2.org/jira/browse/APIMANAGER-2785
Thanks.
Chamila

On Tue, Sep 9, 2014 at 1:27 PM, Vijayaratha Vijayasingam 
wrote:

>
> Code review notes;
>
> 1)In self-signup configuration password  is stored in plain text in
> registry( @ selfsignup.xml, )
> we need to add support for encryption. Same thing we need to do for
> workflow admin configuration file too.
>
> Jira: https://wso2.org/jira/browse/APIMANAGER-2824
>
>
> 2) Provide UI support to edit self-sgnup configuration? (@ userstore
> UI/admin dashboard)
> Jira: https://wso2.org/jira/browse/APIMANAGER-2825
>
> 3)self-signup observer class name to be corrected. Move this to
> tenantServiceCreator observer
>
> 4) Change log.info's to debug level, with more info.
>
> 5)Move AM related config files to config-registry. Currently it is stored
> under governance space.
>
> Jira: https://wso2.org/jira/browse/APIMANAGER-2826
>
> Thanks.
>
> On 9 September 2014 09:52, Chamila Adhikarinayake 
> wrote:
>
>> more details »
>> 
>> Code Review - API Manager self signup for tenant's API store
>> *When*
>> Tue Sep 9, 2014 12pm – 1pm Colombo
>> *Where*
>> LK 3rd Floor Meeting Room - Kernel (map
>> )
>> *Video call*
>> https://plus.google.com/hangouts/_/wso2.com/chamilaa
>> 
>> *Calendar*
>> Vijayaratha Vijayasingam
>> *Who*
>> •
>> Chamila Adhikarinayake - organizer
>> •
>> Jenananthan Yogendran
>> •
>> dev@wso2.org
>> •
>> Lalaji Sureshika
>> •
>> Sumedha Rubasinghe
>> •
>> Vijayaratha Vijayasingam
>> •
>> Roshan Wijesena
>> •
>> Nuwan Dias
>> •
>> Amila De Silva
>> •
>> Shariq Muhammed
>>
>> Going?   *Yes
>> 
>> - Maybe
>> 
>> - No
>> *
>> more options »
>> 
>>
>> Invitation from Google Calendar 
>>
>> You are receiving this email at the account rat...@wso2.com because you
>> are subscribed for invitations on calendar Vijayaratha Vijayasingam.
>>
>> To stop receiving these notifications, please log in to
>> https://www.google.com/calendar/ and change your notification settings
>> for this calendar.
>>
>
>
>
> --
> -Ratha
>



-- 
Regards,
Chamila Adhikarinayake
Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EAM nightly build pack - 09-09-2014

2014-09-10 Thread Dinusha Senanayaka
Please find the latest pack in
http://builder1.us1.wso2.org/~appm/10-09-2014/

Regards,
Dinusha.

On Tue, Sep 9, 2014 at 11:20 PM, Dinusha Senanayaka 
wrote:

> Hi,
>
> Please find the $subject in [1].
>
> [1]. http://builder1.us1.wso2.org/~appm/09-09-2014/
>
> Regards,
> Dinusha.
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS]Generating Using a Given Database Structure failed

2014-09-10 Thread stevegyc
Hi Dakshika:

Thank you for your reply.
But it is difficult for me to change the format of "TIMESTAMP".
Can you tell me the location of the related code approximately?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 14:41
To: stevegyc
CC: dev
Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
AFAIK it should -MM-DD HH24:MI:SS.FF --> 1997-01-31 09:26:50.12


Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 3:06 AM, stevegyc  wrote:

Hi Dakshika

The format of TIMESTAMP value is like "05-2月 -12 11.17.41.000 下午 ", 
what is the format that DSS support?




stevegyc

From: Dakshika Jayathilaka
Date: 2014-09-10 10:25
To: stevegyc
CC: dev
Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi, 


What is the format of TIMESTAMP value ? If your sending incorrect format that 
will cause some issues.






Dakshika Jayathilaka

Software Engineer
WSO2, Inc.

lean.enterprise.middleware
0771100911


On Wed, Sep 10, 2014 at 2:16 AM, stevegyc  wrote:

Hi:

When I generated dss server by using a given database structure, it failed and 
following error log displayed.

TID: [0] [DSS] [2014-09-09 14:50:42,957]  WARN 
{org.wso2.carbon.dataservices.core.script.DSGenerator} -  Insert operation not 
created {org.wso2.carbon.dataservices.core.script.DSGenerator}
DS Code: UNKNOWN_ERROR
Nested Exception:-
DS Fault Message: Invalid query param sqlType: 'null'.
DS Code: UNKNOWN_ERROR
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123)
at 
org.wso2.carbon.dataservices.core.engine.QueryParam.(QueryParam.java:76)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160)
at 
org.wso2.carbon.dataservices.core.script.DSGenerator.(DSGenerator.java:108)
at 
org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447)

My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE 
and TIMESTAMP, such as following:
create table INFO
(
  object_id  NUMBER(18) not null,
  oc_name  VARCHAR2(50),
  last_time  DATE,
  insert_time   TIMESTAMP(3) default SYSDATE,
)

It seems DSS does not support the datatype of "TIMESTAMP", When I delete the 
datatype of "TIMESTAMP", it can generate dss server successfully.
I do not know why DSS do not support datatype of "TIMESTAMP" and how to solve 
it.




stevegyc

___
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


  1   2   >