[Dev] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Chamila De Alwis
Hi,

I'm trying to query a mongoDb, using the following data service.

data name=testMongoService
   config id=capedev-mongo
  property name=mongoDB_servers172.17.0.4:27017/property
  property name=mongoDB_database*TestDB*/property
  property name=mongoDB_write_concernNONE/property
  property name=mongoDB_read_preferencePRIMARY/property
  property name=mongoDB_autoConnectRetrytrue/property
   /config
   query id=mongo_find useConfig=capedev-mongo
  expression*db.TestCollection.findOne()*/expression
   /query
   operation name=mongo_find
  descriptionmongo find operation/description
  call-query href=mongo_find/
   /operation
   resource method=GET path=test
  call-query href=mongo_find/
   /resource
/data


I can't get data from this service, it fails with the following error
message. However I can execute the same expression on the mongo db browser
I'm using because I've created the TestDB database and the TestCollection
collection.

soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
xmlns:axis2ns38=http://ws.wso2.org/dataservice;
   soapenv:Code
  soapenv:Valueaxis2ns38:UNKNOWN_ERROR/soapenv:Value
   /soapenv:Code
   soapenv:Reason
  soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
result invoke.
DS Code: UNKNOWN_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in
MongoQuery.runQuery: DS Fault Message: *Unknown MongoDB operation
'TestCollection.findOne'*
DS Code: UNKNOWN_ERROR

DS Code: UNKNOWN_ERROR
Source Data Service:-
Name: testMongoService
Location: /testMongoService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: mongo_find
Current Params: {}
Nested Exception:-
DS Fault Message: Unknown MongoDB operation 'TestCollection.findOne'
DS Code: UNKNOWN_ERROR


/soapenv:Text
   /soapenv:Reason
   soapenv:Detail
  axis2ns37:DataServiceFault xmlns:axis2ns37=
http://ws.wso2.org/dataservice;
 axis2ns37:current_params{}/axis2ns37:current_params

 axis2ns37:current_request_namemongo_find/axis2ns37:current_request_name
 axis2ns37:nested_exceptionDS Fault Message: Unknown MongoDB
operation 'TestCollection.findOne'
DS Code: UNKNOWN_ERROR
/axis2ns37:nested_exception
 axis2ns37:source_data_service
axis2ns37:location/testMongoService.dbs/axis2ns37:location
axis2ns37:default_namespacehttp://ws.wso2.org/dataservice
/axis2ns37:default_namespace
axis2ns37:descriptionN/A/axis2ns37:description

axis2ns37:data_service_nametestMongoService/axis2ns37:data_service_name
 /axis2ns37:source_data_service
 axis2ns37:ds_codeUNKNOWN_ERROR/axis2ns37:ds_code
  /axis2ns37:DataServiceFault
   /soapenv:Detail
/soapenv:Fault


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Anjana Fernando
Hi Chamila,

Just use TestCollection.findOne() as the query expression, basically drop
the db part. It should work then.

Cheers,
Anjana.

On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expression*db.TestCollection.findOne()*/expression
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data


 I can't get data from this service, it fails with the following error
 message. However I can execute the same expression on the mongo db browser
 I'm using because I've created the TestDB database and the TestCollection
 collection.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns38=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns38:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: DS Fault Message: *Unknown MongoDB operation
 'TestCollection.findOne'*
 DS Code: UNKNOWN_ERROR

 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 DS Fault Message: Unknown MongoDB operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR


 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns37:DataServiceFault xmlns:axis2ns37=
 http://ws.wso2.org/dataservice;
  axis2ns37:current_params{}/axis2ns37:current_params

  axis2ns37:current_request_namemongo_find/axis2ns37:current_request_name
  axis2ns37:nested_exceptionDS Fault Message: Unknown MongoDB
 operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR
 /axis2ns37:nested_exception
  axis2ns37:source_data_service
 axis2ns37:location/testMongoService.dbs/axis2ns37:location
 axis2ns37:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns37:default_namespace
 axis2ns37:descriptionN/A/axis2ns37:description

 axis2ns37:data_service_nametestMongoService/axis2ns37:data_service_name
  /axis2ns37:source_data_service
  axis2ns37:ds_codeUNKNOWN_ERROR/axis2ns37:ds_code
   /axis2ns37:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



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




-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Chamila De Alwis
Hi Anjana,

I tried that too. :) It resulted in an NPE.

soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
xmlns:axis2ns43=http://ws.wso2.org/dataservice;
   soapenv:Code
  soapenv:Valueaxis2ns43:UNKNOWN_ERROR/soapenv:Value
   /soapenv:Code
   soapenv:Reason
  soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
result invoke.
DS Code: UNKNOWN_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in
MongoQuery.runQuery: null
DS Code: UNKNOWN_ERROR
Source Data Service:-
Name: testMongoService
Location: /testMongoService.dbs
Description: N/A
Default Namespace: http://ws.wso2.org/dataservice
Current Request Name: mongo_find
Current Params: {}
Nested Exception:-
java.lang.NullPointerException

/soapenv:Text
   /soapenv:Reason
   soapenv:Detail
  axis2ns42:DataServiceFault xmlns:axis2ns42=
http://ws.wso2.org/dataservice;
 axis2ns42:current_params{}/axis2ns42:current_params

 axis2ns42:current_request_namemongo_find/axis2ns42:current_request_name

 
axis2ns42:nested_exceptionjava.lang.NullPointerException/axis2ns42:nested_exception
 axis2ns42:source_data_service
axis2ns42:location/testMongoService.dbs/axis2ns42:location
axis2ns42:default_namespacehttp://ws.wso2.org/dataservice
/axis2ns42:default_namespace
axis2ns42:descriptionN/A/axis2ns42:description

axis2ns42:data_service_nametestMongoService/axis2ns42:data_service_name
 /axis2ns42:source_data_service
 axis2ns42:ds_codeUNKNOWN_ERROR/axis2ns42:ds_code
  /axis2ns42:DataServiceFault
   /soapenv:Detail
/soapenv:Fault


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Chamila,

 Just use TestCollection.findOne() as the query expression, basically
 drop the db part. It should work then.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expression*db.TestCollection.findOne()*/expression
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data


 I can't get data from this service, it fails with the following error
 message. However I can execute the same expression on the mongo db browser
 I'm using because I've created the TestDB database and the TestCollection
 collection.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns38=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns38:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: DS Fault Message: *Unknown MongoDB operation
 'TestCollection.findOne'*
 DS Code: UNKNOWN_ERROR

 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 DS Fault Message: Unknown MongoDB operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR


 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns37:DataServiceFault xmlns:axis2ns37=
 http://ws.wso2.org/dataservice;
  axis2ns37:current_params{}/axis2ns37:current_params

  axis2ns37:current_request_namemongo_find/axis2ns37:current_request_name
  axis2ns37:nested_exceptionDS Fault Message: Unknown MongoDB
 operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR
 /axis2ns37:nested_exception
  axis2ns37:source_data_service
 axis2ns37:location/testMongoService.dbs/axis2ns37:location
 axis2ns37:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns37:default_namespace
 axis2ns37:descriptionN/A/axis2ns37:description

 axis2ns37:data_service_nametestMongoService/axis2ns37:data_service_name
  /axis2ns37:source_data_service
  axis2ns37:ds_codeUNKNOWN_ERROR/axis2ns37:ds_code
   /axis2ns37:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 

Re: [Dev] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Anjana Fernando
Oh I see .. if we get an NPE, that's anyways a bug then. Can you please
report this in DSS JIRA [1] (put the log in the console too). Also, do
check the MongDB sample we have in the product. That should work. You can
compare that and the one you have. The sample is at
$SERVER_ROOT/samples/dbs/mongoDB/MongoDBSampleService.dbs.

[1] https://wso2.org/jira/browse/DS

Cheers,
Anjana.

On Mon, Dec 1, 2014 at 1:57 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi Anjana,

 I tried that too. :) It resulted in an NPE.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns43=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns43:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: null
 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 java.lang.NullPointerException

 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns42:DataServiceFault xmlns:axis2ns42=
 http://ws.wso2.org/dataservice;
  axis2ns42:current_params{}/axis2ns42:current_params

  axis2ns42:current_request_namemongo_find/axis2ns42:current_request_name

  
 axis2ns42:nested_exceptionjava.lang.NullPointerException/axis2ns42:nested_exception
  axis2ns42:source_data_service
 axis2ns42:location/testMongoService.dbs/axis2ns42:location
 axis2ns42:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns42:default_namespace
 axis2ns42:descriptionN/A/axis2ns42:description

 axis2ns42:data_service_nametestMongoService/axis2ns42:data_service_name
  /axis2ns42:source_data_service
  axis2ns42:ds_codeUNKNOWN_ERROR/axis2ns42:ds_code
   /axis2ns42:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Chamila,

 Just use TestCollection.findOne() as the query expression, basically
 drop the db part. It should work then.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expression*db.TestCollection.findOne()*/expression
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data


 I can't get data from this service, it fails with the following error
 message. However I can execute the same expression on the mongo db browser
 I'm using because I've created the TestDB database and the TestCollection
 collection.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns38=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns38:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: DS Fault Message: *Unknown MongoDB operation
 'TestCollection.findOne'*
 DS Code: UNKNOWN_ERROR

 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 DS Fault Message: Unknown MongoDB operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR


 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns37:DataServiceFault xmlns:axis2ns37=
 http://ws.wso2.org/dataservice;
  axis2ns37:current_params{}/axis2ns37:current_params

  axis2ns37:current_request_namemongo_find/axis2ns37:current_request_name
  axis2ns37:nested_exceptionDS Fault Message: Unknown MongoDB
 operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR
 /axis2ns37:nested_exception
  axis2ns37:source_data_service

 axis2ns37:location/testMongoService.dbs/axis2ns37:location
 

Re: [Dev] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Chamila De Alwis
Hi Anjana,

I compared the sample with my service, and noticed I haven't defined a
result tag for the query. And it was the cause of the issue. The working
service is as follows. Thanks for the help! :)

data name=testMongoService
   config id=capedev-mongo
  property name=mongoDB_servers172.17.0.4:27017/property
  property name=mongoDB_databaseTestDB/property
  property name=mongoDB_write_concernNONE/property
  property name=mongoDB_read_preferencePRIMARY/property
  property name=mongoDB_autoConnectRetrytrue/property
   /config
   query id=mongo_find useConfig=capedev-mongo
  expressionTestCollection.findOne()/expression
  result element=Documents rowName=Document
 element column=document name=Data xsdType=string/
  /result
   /query
   operation name=mongo_find
  descriptionmongo find operation/description
  call-query href=mongo_find/
   /operation
   resource method=GET path=test
  call-query href=mongo_find/
   /resource
/data

The stack trace for the NPE I got earlier is as follows. Shall I report
this anyway?

Caused by: java.lang.NullPointerException
at
org.wso2.carbon.dataservices.core.description.query.Query.writeResultEntry(Query.java:396)
at
org.wso2.carbon.dataservices.core.description.query.MongoQuery.runQuery(MongoQuery.java:97)




Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Mon, Dec 1, 2014 at 2:02 PM, Anjana Fernando anj...@wso2.com wrote:

 Oh I see .. if we get an NPE, that's anyways a bug then. Can you please
 report this in DSS JIRA [1] (put the log in the console too). Also, do
 check the MongDB sample we have in the product. That should work. You can
 compare that and the one you have. The sample is at
 $SERVER_ROOT/samples/dbs/mongoDB/MongoDBSampleService.dbs.

 [1] https://wso2.org/jira/browse/DS

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:57 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi Anjana,

 I tried that too. :) It resulted in an NPE.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns43=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns43:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: null
 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 java.lang.NullPointerException

 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns42:DataServiceFault xmlns:axis2ns42=
 http://ws.wso2.org/dataservice;
  axis2ns42:current_params{}/axis2ns42:current_params

  axis2ns42:current_request_namemongo_find/axis2ns42:current_request_name

  
 axis2ns42:nested_exceptionjava.lang.NullPointerException/axis2ns42:nested_exception
  axis2ns42:source_data_service
 axis2ns42:location/testMongoService.dbs/axis2ns42:location
 axis2ns42:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns42:default_namespace
 axis2ns42:descriptionN/A/axis2ns42:description

 axis2ns42:data_service_nametestMongoService/axis2ns42:data_service_name
  /axis2ns42:source_data_service
  axis2ns42:ds_codeUNKNOWN_ERROR/axis2ns42:ds_code
   /axis2ns42:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Chamila,

 Just use TestCollection.findOne() as the query expression, basically
 drop the db part. It should work then.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expression*db.TestCollection.findOne()*/expression
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data


 I can't get data from this service, it fails with the following error
 message. However I can execute the same expression on the mongo db browser
 I'm using because I've created the TestDB 

[Dev] CSV - XML transformation using XSLT mediator

2014-12-01 Thread Lasindu Charith
Hi all,

Does anybody know a way(sample) to transform CSV format to XML in ESB,
using some mediator except Smooks? (such as XSLT)

Thanks,
Lasindu

-- 
*Lasindu Charith*
Software Engineer, WSO2 Inc.
Mobile: +94714427192
Web: blog.lasindu.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB Sample 264 failed in ESB 4.9.0-SNAPSHOT.

2014-12-01 Thread Nuwan Wimalasekara
Hi
I am getting below error when executing the ESB Sample 264[1]. It does not
send the expected message to client and JIRA[2] is reported for this
issue.  Please note that,  Automation test is also failed due to this error.

[1]
https://docs.wso2.com/display/ESB481/Sample+264%3A+Sending+Two-Way+Messages+Using+JMS+transport

[2] https://wso2.org/jira/browse/ESBJAVA-3440

[2014-12-01 14:05:14,432]  INFO - TimeoutHandler This engine will expire
all callbacks after : 120 seconds, irrespective of the timeout action,
after the specified or optional timeout

[2014-12-01 14:05:44,801] ERROR - JMSSender Did not receive a JMS response
within 3 ms to destination :
temp-queue://ID:Nuwans-MacBook-Pro.local-50651-1417422914480-1:1:1 with JMS
correlation ID : ID:Nuwans-MacBook-Pro.local-50651-1417422914480-1:1:1:1:1

[2014-12-01 14:05:44,816] ERROR - Axis2Sender Unexpected error during
sending message out

org.apache.axis2.AxisFault: Did not receive a JMS response within 3 ms
to destination :
temp-queue://ID:Nuwans-MacBook-Pro.local-50651-1417422914480-1:1:1 with JMS
correlation ID : ID:Nuwans-MacBook-Pro.local-50651-1417422914480-1:1:1:1:1

at
org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)

at
org.apache.axis2.transport.jms.JMSSender.waitForResponseAndProcess(JMSSender.java:312)

at org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:250)

at org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:157)

at
org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)

at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)

at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)

at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)

at
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:501)

at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:63)

at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)

at
org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)

at
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)

at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:187)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)

at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)

at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

[2014-12-01 14:05:44,819]  WARN - EndpointContext Endpoint :
AnonymousEndpoint will be marked SUSPENDED as it failed

[2014-12-01 14:05:44,819]  WARN - EndpointContext Suspending endpoint :
AnonymousEndpoint - current suspend duration is : 3ms - Next retry
after : Mon Dec 01 14:06:14 IST 2014


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] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Chamila De Alwis
Hi Anjana,

I created an issue on the JIRA. Please find it here[1].

[1] - https://wso2.org/jira/browse/DS-1019


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Mon, Dec 1, 2014 at 2:09 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi Anjana,

 I compared the sample with my service, and noticed I haven't defined a
 result tag for the query. And it was the cause of the issue. The working
 service is as follows. Thanks for the help! :)

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_databaseTestDB/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expressionTestCollection.findOne()/expression
   result element=Documents rowName=Document
  element column=document name=Data xsdType=string/
   /result
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data

 The stack trace for the NPE I got earlier is as follows. Shall I report
 this anyway?

 Caused by: java.lang.NullPointerException
 at
 org.wso2.carbon.dataservices.core.description.query.Query.writeResultEntry(Query.java:396)
 at
 org.wso2.carbon.dataservices.core.description.query.MongoQuery.runQuery(MongoQuery.java:97)




 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 2:02 PM, Anjana Fernando anj...@wso2.com wrote:

 Oh I see .. if we get an NPE, that's anyways a bug then. Can you please
 report this in DSS JIRA [1] (put the log in the console too). Also, do
 check the MongDB sample we have in the product. That should work. You can
 compare that and the one you have. The sample is at
 $SERVER_ROOT/samples/dbs/mongoDB/MongoDBSampleService.dbs.

 [1] https://wso2.org/jira/browse/DS

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:57 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi Anjana,

 I tried that too. :) It resulted in an NPE.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns43=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns43:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: null
 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 java.lang.NullPointerException

 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns42:DataServiceFault xmlns:axis2ns42=
 http://ws.wso2.org/dataservice;
  axis2ns42:current_params{}/axis2ns42:current_params

  axis2ns42:current_request_namemongo_find/axis2ns42:current_request_name

  
 axis2ns42:nested_exceptionjava.lang.NullPointerException/axis2ns42:nested_exception
  axis2ns42:source_data_service

 axis2ns42:location/testMongoService.dbs/axis2ns42:location
 axis2ns42:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns42:default_namespace
 axis2ns42:descriptionN/A/axis2ns42:description

 axis2ns42:data_service_nametestMongoService/axis2ns42:data_service_name
  /axis2ns42:source_data_service
  axis2ns42:ds_codeUNKNOWN_ERROR/axis2ns42:ds_code
   /axis2ns42:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Chamila,

 Just use TestCollection.findOne() as the query expression, basically
 drop the db part. It should work then.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expression*db.TestCollection.findOne()*/expression
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query 

[Dev] IntegrationTest issues in connector

2014-12-01 Thread Elilmatha Sivanesan
Hi All,

I'm writing connector, while i'm writing the test case i got the following
error.

Running TestSuite
[2014-12-01 13:38:37,641]  INFO
{org.wso2.carbon.automation.core.PlatformExecutionManager} -
 ---Test Execution Started --
[2014-12-01 13:38:37,655]  INFO
{org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
/Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
[2014-12-01 13:38:41,197]  INFO
{org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
/Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
= /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
[2014-12-01 13:38:41,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
 Instrumentation of jar files in progress ...
[2014-12-01 13:38:47,973]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
 Instrumented 86 files.
[2014-12-01 13:38:47,973]  INFO
{org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
server.
[2014-12-01 13:38:48,087]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 JAVA_HOME environment variable is set to
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
[2014-12-01 13:38:48,088]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
[2014-12-01 13:38:53,102]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
Carbon...
[2014-12-01 13:38:53,106]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
Mac OS X 10.9.5, x86_64
[2014-12-01 13:38:53,107]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
[2014-12-01 13:38:53,107]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
1.7.0_07
[2014-12-01 13:38:53,107]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
[2014-12-01 13:38:53,108]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
/Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
[2014-12-01 13:38:53,108]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
/Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
[2014-12-01 13:38:53,108]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
elilmatha, en-US, Asia/Colombo
[2014-12-01 13:38:53,185]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
[2014-12-01 13:38:53,211]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:53,211]  INFO - AgentDS Successfully deployed Agent
Client
[2014-12-01 13:38:55,577]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:55,577]  INFO - EmbeddedRegistryService Configured
Registry in 56ms
[2014-12-01 13:38:55,699]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:55,699]  INFO - RegistryCoreServiceComponent Registry
Mode: READ-WRITE
[2014-12-01 13:38:56,100]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:38:56,100]  INFO - UserStoreMgtDSComponent Carbon
UserStoreMgtDSComponent activated successfully.
[2014-12-01 13:39:08,224]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-12-01 13:39:08,223]  INFO - TaglibUriRule TLD skipped. URI:

Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Nuwan Wimalasekara
Hi
Please make sure the wso2esb-4.9.0-SNAPSHOT distribution is working fine by
starting it manually.  As the logs, server has unsatisfied items.

Thanks,
Nuwanw

On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the following
 error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
 [2014-12-01 13:38:53,211]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,211]  INFO - AgentDS Successfully deployed Agent
 Client
 [2014-12-01 13:38:55,577]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:55,577]  INFO - EmbeddedRegistryService Configured
 Registry in 56ms
 [2014-12-01 13:38:55,699]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:55,699]  INFO - RegistryCoreServiceComponent Registry
 Mode: READ-WRITE
 [2014-12-01 13:38:56,100]  INFO
 

Re: [Dev] Scala Devs... what are the recommended resources to follow?

2014-12-01 Thread Maninda Edirisooriya
There is a good MOOC [1] on Scala by the creator, Martin Odersky. First few
lessons covers the basic Scala concepts.

[1] https://www.coursera.org/course/progfun


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda

On Mon, Dec 1, 2014 at 10:27 AM, Niranda Perera nira...@wso2.com wrote:

 Thanks Abimaran.


 On Mon, Dec 1, 2014 at 9:37 AM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Hi Niranda,

 I have used Programming in Scala [1] which is co-written by the
 language's designer, Martin Odersky

 [1] : http://www.artima.com/shop/programming_in_scala_2ed

 On Mon, Dec 1, 2014 at 9:33 AM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Call out for all the Scala devs...

 Do you have any development resources, references, docs etc that you
 would recommend to kick start Scala programming [1]?

 We are adding new features to the upcoming BAM Analytics and considering
 moving into Spark [2] which is based on Scala.

 Your help would be much appreciated!

 Rgds

 [1] http://www.scala-lang.org/
 [2] http://spark.apache.org/docs/latest/index.html

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

 ___
 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] [DEV][DSS] - Querying a MongoDB from DSS

2014-12-01 Thread Anjana Fernando
Great! .. Thanks, and yeah, having the stacktrace is useful, I see you've
already put it.

Cheers,
Anjana.

On Mon, Dec 1, 2014 at 2:32 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi Anjana,

 I created an issue on the JIRA. Please find it here[1].

 [1] - https://wso2.org/jira/browse/DS-1019


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 2:09 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi Anjana,

 I compared the sample with my service, and noticed I haven't defined a
 result tag for the query. And it was the cause of the issue. The working
 service is as follows. Thanks for the help! :)

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_databaseTestDB/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find useConfig=capedev-mongo
   expressionTestCollection.findOne()/expression
   result element=Documents rowName=Document
  element column=document name=Data xsdType=string/
   /result
/query
operation name=mongo_find
   descriptionmongo find operation/description
   call-query href=mongo_find/
/operation
resource method=GET path=test
   call-query href=mongo_find/
/resource
 /data

 The stack trace for the NPE I got earlier is as follows. Shall I report
 this anyway?

 Caused by: java.lang.NullPointerException
 at
 org.wso2.carbon.dataservices.core.description.query.Query.writeResultEntry(Query.java:396)
 at
 org.wso2.carbon.dataservices.core.description.query.MongoQuery.runQuery(MongoQuery.java:97)




 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 2:02 PM, Anjana Fernando anj...@wso2.com wrote:

 Oh I see .. if we get an NPE, that's anyways a bug then. Can you please
 report this in DSS JIRA [1] (put the log in the console too). Also, do
 check the MongDB sample we have in the product. That should work. You can
 compare that and the one you have. The sample is at
 $SERVER_ROOT/samples/dbs/mongoDB/MongoDBSampleService.dbs.

 [1] https://wso2.org/jira/browse/DS

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:57 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi Anjana,

 I tried that too. :) It resulted in an NPE.

 soapenv:Fault xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
 xmlns:axis2ns43=http://ws.wso2.org/dataservice;
soapenv:Code
   soapenv:Valueaxis2ns43:UNKNOWN_ERROR/soapenv:Value
/soapenv:Code
soapenv:Reason
   soapenv:Text xml:lang=en-USDS Fault Message: Error in DS non
 result invoke.
 DS Code: UNKNOWN_ERROR
 Nested Exception:-
 javax.xml.stream.XMLStreamException: DS Fault Message: Error in
 MongoQuery.runQuery: null
 DS Code: UNKNOWN_ERROR
 Source Data Service:-
 Name: testMongoService
 Location: /testMongoService.dbs
 Description: N/A
 Default Namespace: http://ws.wso2.org/dataservice
 Current Request Name: mongo_find
 Current Params: {}
 Nested Exception:-
 java.lang.NullPointerException

 /soapenv:Text
/soapenv:Reason
soapenv:Detail
   axis2ns42:DataServiceFault xmlns:axis2ns42=
 http://ws.wso2.org/dataservice;
  axis2ns42:current_params{}/axis2ns42:current_params

  
 axis2ns42:current_request_namemongo_find/axis2ns42:current_request_name

  
 axis2ns42:nested_exceptionjava.lang.NullPointerException/axis2ns42:nested_exception
  axis2ns42:source_data_service

 axis2ns42:location/testMongoService.dbs/axis2ns42:location
 axis2ns42:default_namespacehttp://ws.wso2.org/dataservice
 /axis2ns42:default_namespace
 axis2ns42:descriptionN/A/axis2ns42:description

 axis2ns42:data_service_nametestMongoService/axis2ns42:data_service_name
  /axis2ns42:source_data_service
  axis2ns42:ds_codeUNKNOWN_ERROR/axis2ns42:ds_code
   /axis2ns42:DataServiceFault
/soapenv:Detail
 /soapenv:Fault


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando anj...@wso2.com
 wrote:

 Hi Chamila,

 Just use TestCollection.findOne() as the query expression, basically
 drop the db part. It should work then.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 1:38 PM, Chamila De Alwis chami...@wso2.com
 wrote:

 Hi,

 I'm trying to query a mongoDb, using the following data service.

 data name=testMongoService
config id=capedev-mongo
   property name=mongoDB_servers172.17.0.4:27017/property
   property name=mongoDB_database*TestDB*/property
   property name=mongoDB_write_concernNONE/property
   property name=mongoDB_read_preferencePRIMARY/property
   property name=mongoDB_autoConnectRetrytrue/property
/config
query id=mongo_find 

[Dev] Managing IS related configuration files in ES

2014-12-01 Thread Sameera Jayaratna
Hi,

I am working on password recovery for ES. According to [1]
*identity­-mgt.properties* file has to be configured by changing default
values. But in ES, we need the new configurations as default.

Also in  *email-­admin-­config.xml *we need to modify the verification url.

What is the best way to handle this?
We can keep the file in ES source and copy it to the relevant place via
bin.xml
Is it the recommended way to handle this?

Thank you,
Sameera

[1] https://docs.wso2.com/display/IS450/Recover+with+Notification

-- 



*Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Irham Iqbal
Hi Elilmatha,

I think you're getting this because you're using jdk 7 use jdk 6 .

Thank you,
Irham Iqbal



On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the following
 error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
 [2014-12-01 13:38:53,211]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,211]  INFO - AgentDS Successfully deployed Agent
 Client
 [2014-12-01 13:38:55,577]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:55,577]  INFO - EmbeddedRegistryService Configured
 Registry in 56ms
 [2014-12-01 13:38:55,699]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:55,699]  INFO - RegistryCoreServiceComponent Registry
 Mode: READ-WRITE
 [2014-12-01 13:38:56,100]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:56,100]  

Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Elilmatha Sivanesan
yes, it is working fine. Is there any issues regarding the ports. i checked
the port 9763 is not used by any applications.

On Mon, Dec 1, 2014 at 2:51 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi
 Please make sure the wso2esb-4.9.0-SNAPSHOT distribution is working fine
 by starting it manually.  As the logs, server has unsatisfied items.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the
 following error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
 [2014-12-01 13:38:53,211]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,211]  INFO - AgentDS Successfully deployed Agent
 Client
 [2014-12-01 13:38:55,577]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:55,577]  INFO - EmbeddedRegistryService Configured
 Registry in 56ms
 [2014-12-01 13:38:55,699]  INFO
 

Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Nuwan Wimalasekara
Port 9763 is the servlet port of HTTP. Framework try to connect this port
to verify that the server is started properly.

On Mon, Dec 1, 2014 at 3:04 PM, Elilmatha Sivanesan elilma...@wso2.com
wrote:

 yes, it is working fine. Is there any issues regarding the ports. i
 checked the port 9763 is not used by any applications.

 On Mon, Dec 1, 2014 at 2:51 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Please make sure the wso2esb-4.9.0-SNAPSHOT distribution is working fine
 by starting it manually.  As the logs, server has unsatisfied items.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the
 following error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
 [2014-12-01 13:38:53,211]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,211]  INFO - AgentDS Successfully deployed Agent
 Client
 [2014-12-01 13:38:55,577]  INFO
 

Re: [Dev] Managing IS related configuration files in ES

2014-12-01 Thread Pulasthi Mahawithana
Hi Sameera,

You can change only those values you required at the distribution/pom.xml.
Refer [1] as an example. (line 139)

[1]
https://github.com/wso2-dev/product-is/blob/master/modules/distribution/pom.xml

On Mon, Dec 1, 2014 at 3:00 PM, Sameera Jayaratna samee...@wso2.com wrote:

 Hi,

 I am working on password recovery for ES. According to [1]
 *identity­-mgt.properties* file has to be configured by changing default
 values. But in ES, we need the new configurations as default.

 Also in  *email-­admin-­config.xml *we need to modify the verification
 url.

 What is the best way to handle this?
 We can keep the file in ES source and copy it to the relevant place via
 bin.xml
 Is it the recommended way to handle this?

 Thank you,
 Sameera

 [1] https://docs.wso2.com/display/IS450/Recover+with+Notification

 --



 *Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

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




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


Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Dimuthu De Lanerolle
Hi Elimatha,

Try using this esb distribution [1].

[1] http://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.9.0/M3/

On Mon, Dec 1, 2014 at 3:08 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Port 9763 is the servlet port of HTTP. Framework try to connect this port
 to verify that the server is started properly.

 On Mon, Dec 1, 2014 at 3:04 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:

 yes, it is working fine. Is there any issues regarding the ports. i
 checked the port 9763 is not used by any applications.

 On Mon, Dec 1, 2014 at 2:51 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Please make sure the wso2esb-4.9.0-SNAPSHOT distribution is working
 fine by starting it manually.  As the logs, server has unsatisfied
 items.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the
 following error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,185]  INFO - AgentHolder Agent created !
 [2014-12-01 13:38:53,211]  INFO
 

[Dev] ESB log4j file gets replaced with DSS log4j file when installing features using p2 repo

2014-12-01 Thread Aparna Karunarathna
Hi Sameera,

In the DSS 3.2.2 testing cycle I have installed the DSS 3.2.2 all features
to the ESB 4.8.1 from latest p2 repo, when I installed, ESB log4j (original
ESB) file gets replaced with DSS log4j file instead of appending the log4j
file.

What is the correct behavior of replacing or appending file of the original
pack when installing features from p2 repo?

Regards,
-- 
*Aparna Karunarathna.*


*Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Couldn't reproduce some reported issues.

2014-12-01 Thread Pirinthapan Mahendran
Hi Dmitry,

I tried to reproduce the issues reported in [1] and [2]. I tried these in
both my local setup and cloud. But I could not reproduce these issues. Were
you able to reproduce these issues continuously?
If so could you please give some additional information regarding that?

1. https://wso2.org/jira/browse/APPFAC-2648
2. https://wso2.org/jira/browse/APPFAC-2649

Thanks.


Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Managing IS related configuration files in ES

2014-12-01 Thread Sameera Jayaratna
Thank you Pulasthi, will follow that.

On Mon, Dec 1, 2014 at 3:15 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi Sameera,

 You can change only those values you required at the distribution/pom.xml.
 Refer [1] as an example. (line 139)

 [1]
 https://github.com/wso2-dev/product-is/blob/master/modules/distribution/pom.xml

 On Mon, Dec 1, 2014 at 3:00 PM, Sameera Jayaratna samee...@wso2.com
 wrote:

 Hi,

 I am working on password recovery for ES. According to [1]
 *identity­-mgt.properties* file has to be configured by changing default
 values. But in ES, we need the new configurations as default.

 Also in  *email-­admin-­config.xml *we need to modify the verification
 url.

 What is the best way to handle this?
 We can keep the file in ES source and copy it to the relevant place via
 bin.xml
 Is it the recommended way to handle this?

 Thank you,
 Sameera

 [1] https://docs.wso2.com/display/IS450/Recover+with+Notification

 --



 *Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

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




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




-- 



*Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Scala Devs... what are the recommended resources to follow?

2014-12-01 Thread Niranda Perera
thanks Maninda! :-)

On Mon, Dec 1, 2014 at 2:59 PM, Maninda Edirisooriya mani...@wso2.com
wrote:

 There is a good MOOC [1] on Scala by the creator, Martin Odersky. First
 few lessons covers the basic Scala concepts.

 [1] https://www.coursera.org/course/progfun


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Mon, Dec 1, 2014 at 10:27 AM, Niranda Perera nira...@wso2.com wrote:

 Thanks Abimaran.


 On Mon, Dec 1, 2014 at 9:37 AM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Hi Niranda,

 I have used Programming in Scala [1] which is co-written by the
 language's designer, Martin Odersky

 [1] : http://www.artima.com/shop/programming_in_scala_2ed

 On Mon, Dec 1, 2014 at 9:33 AM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Call out for all the Scala devs...

 Do you have any development resources, references, docs etc that you
 would recommend to kick start Scala programming [1]?

 We are adding new features to the upcoming BAM Analytics and
 considering moving into Spark [2] which is based on Scala.

 Your help would be much appreciated!

 Rgds

 [1] http://www.scala-lang.org/
 [2] http://spark.apache.org/docs/latest/index.html

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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





-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 https://twitter.com/N1R44
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] (ESBJAVA-3345) [JMS] If a faulty proxy service is deleted, it is not removing from the management UI

2014-12-01 Thread Priyadarssini Kishokumar
Hi,

I've made some changes after the regression test. Please check the PR.

On Sat, Nov 29, 2014 at 12:21 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 I'm trying to merge the PR and have a concern.

 This change would potentially affect other service types as well. Were you
 able to do a regression test with other products which use axis2 services
 ?. For eg: DSS use axis2, and please try with other proxy service types
 other than jms proxy if you haven't already done.

 thanks,

 On Wed, Nov 26, 2014 at 8:06 PM, Priyadarssini Kishokumar (JIRA) 
 j...@wso2.org wrote:

Priyadarssini Kishokumar
 https://wso2.org/secure/ViewProfile.jspa?name=priyadarssini%40wso2.com
 commented on [image: Bug] ESBJAVA-3345
 https://wso2.org/browse/ESBJAVA-3345
  *[JMS] If a faulty proxy service is deleted, it is not removing from
 the management UI* https://wso2.org/browse/ESBJAVA-3345

 https://github.com/wso2-dev/carbon-deployment/pull/50
 This message is automatically generated by JIRA.
 If you think it was sent incorrectly, please contact your JIRA
 administrators
 For more information on JIRA, see: http://www.atlassian.com/software/jira

 ___
 Carbon-jira mailing list
 carbon-j...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Priya Kishok
Software Engineer
WSO2, Inc : http://wso2.com
Mob : +94774457404
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while adding value to XML element added using enrich mediator

2014-12-01 Thread Malintha Adikari
Hi,

I want to add following XML element as a child to the payload body

deleveryStatusabc123/deleveryStatus

This abc123 value is taken from a property.

I used enrich mediator to add the element as follows

property name=deliverystatus scope=default
deleveryStatus/deleveryStatus
 /property

 enrich
source type=property clone=true
property=deliverystatus/source
target type=body action=child/target
 /enrich

and it sets the element as expected to the body (with default namespace)

(deleveryStatus xmlns=http://ws.apache.org/ns/synapse;/deleveryStatus)

Then I tired to set value in to this element (taking from another property)

 enrich
source type=property clone=true
property=message1/source
target xpath=//deliverystatus xmlns=
http://ws.apache.org/ns/synapse;/target
  /enrich

and it gives me following error

 *ERROR - EnrichMediator Invalid Target object to be enrich.*

But I could add values to elements which were already there in the payload
body (value can't be added only to the newly added one). What could be the
reason for this issue? Is there any other way to do this task ?

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

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


Re: [Dev] CSV - XML transformation using XSLT mediator

2014-12-01 Thread Senduran Balasubramaniyam
Hi Lasindu,

Could you please let us know a sample input format and desired output
format

Thanks
Senduran

On Mon, Dec 1, 2014 at 2:11 PM, Lasindu Charith lasi...@wso2.com wrote:

 Hi all,

 Does anybody know a way(sample) to transform CSV format to XML in ESB,
 using some mediator except Smooks? (such as XSLT)

 Thanks,
 Lasindu

 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Chunk 13 Release

2014-12-01 Thread Chanika Geeganage
Hi Aparna,

The new pack and the p2-repo can be found from
https://svn.wso2.org/repos/wso2/scratch/chunk13-release/01-12-2014

Thanks

On Mon, Dec 1, 2014 at 12:10 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Aparna,

 I hope other aspects of DSS has been tested, so yeah, we can wait for the
 HZ fixes to test this specific scenario.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 10:27 AM, Aparna Karunarathna apa...@wso2.com
 wrote:

 Hi Anjana  Chanika,

 Due to the hazelcast issues [1]  [2], Is it OK to stop testing and will
 wait for new pack?  So far we have verified the fixes that has been
 identified in the last build(15/11/2014).

 [1] https://wso2.org/jira/browse/CARBON-15096
 [2] https://wso2.org/jira/browse/CARBON-15097


 Regards,
 Aparna.


 On Fri, Nov 28, 2014 at 5:51 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 The new pack can be found from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/28-11-2014/

 On Fri, Nov 28, 2014 at 5:28 AM, Chanika Geeganage chan...@wso2.com
 wrote:

 p2-repo is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/p2-repo/

 On Thu, Nov 27, 2014 at 10:39 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 The latest pack can be downloaded from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/wso2dss-3.2.2.zip

 Thanks

 On Sat, Nov 15, 2014 at 1:08 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 Hi,

 The new DSS 3.2.2 pack is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/15-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Fri, Nov 14, 2014 at 3:25 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 Hi Aparna,

 Building the p2-repo is halted as some of the released artifacts are
 not deployed to nexus. See Nested categories released in chunk-11 are 
 not
 deployed in nexus. Once this issue is sorted out, I will build the 
 p2-repo
 and update the thread.

 Thanks

 On Fri, Nov 14, 2014 at 8:40 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi Chanika,

 Can you please share the p2 repo as well?

 Regards,
 Aparna.


 On Thu, Nov 13, 2014 at 9:19 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Please find the latest DSS 3.2.2 pack from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Tue, Nov 11, 2014 at 8:14 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Fixed the build and latest DSS and BAM packs are available at
 https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-11-11/


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 2:13 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Yes. Yesterday night I built both DSS and BAM and there was a
 build break and a BAM internal defect. Therefore was not able to 
 release
 it. At the moment we are in the process of fixing these issues.


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 1:17 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Both BAM and DSS are added to chunk-13. Yesterday there was
 some issues found in the built BAM pack during smoke test. Maninda 
 will be
 able to give more details about the issues. We will try to resolve 
 those
 issues and provide RC packs today.

 Thanks


 On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias nuw...@wso2.com
 wrote:

 AFAIK only DSS is going on chunk-13. @Chanika, can you confirm
 please?

 BAM/APIM have moved to chunk-14. Ratha is building packs now
 and we should be able to provide packs within the day.

 Thanks,
 NuwanD.

 On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi,

 Since the Chunk 13 release date scheduled on 3rd week of
 November, can you build all chunk 13 packs in the builder 
 machine and share
 the latest packs and p2 repo with us.


 Regards,
 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




 --
 Best Regards..

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






 --
 Best Regards..

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




 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Best Regards..

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




 --
 Best Regards..

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




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 Mobile : +94773522586
 WSO2, Inc.; 

Re: [Dev] Error while adding value to XML element added using enrich mediator

2014-12-01 Thread Senduran Balasubramaniyam
Hi Malintha,

You can get rid of the default namespace by adding an empty namespace
i.e
property name=deliverystatus scope=default
deleveryStatus xmlns=/deleveryStatus
/property

also I am not quite sure about the 2nd enrich mediator's target. Since if
you are adding something like //deliverystatus then the xpath will try to
find a deliverystatus node in the body. If your request doesn't have a
deliverystatus node this error may occur

Thanks
Senduran


On Mon, Dec 1, 2014 at 5:59 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi,

 I want to add following XML element as a child to the payload body

 deleveryStatusabc123/deleveryStatus

 This abc123 value is taken from a property.

 I used enrich mediator to add the element as follows

 property name=deliverystatus scope=default
 deleveryStatus/deleveryStatus
  /property

  enrich
 source type=property clone=true
 property=deliverystatus/source
 target type=body action=child/target
  /enrich

 and it sets the element as expected to the body (with default namespace)

 (deleveryStatus xmlns=http://ws.apache.org/ns/synapse
 /deleveryStatus)

 Then I tired to set value in to this element (taking from another property)

  enrich
 source type=property clone=true
 property=message1/source
 target xpath=//deliverystatus xmlns=
 http://ws.apache.org/ns/synapse;/target
   /enrich

 and it gives me following error

  *ERROR - EnrichMediator Invalid Target object to be enrich.*

 But I could add values to elements which were already there in the payload
 body (value can't be added only to the newly added one). What could be the
 reason for this issue? Is there any other way to do this task ?

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

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

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while adding value to XML element added using enrich mediator

2014-12-01 Thread Malintha Adikari
Hi Senduran,

Thank you for the prompt response.


On Mon, Dec 1, 2014 at 1:06 PM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Hi Malintha,

 You can get rid of the default namespace by adding an empty namespace
 i.e
 property name=deliverystatus scope=default
 deleveryStatus xmlns=/deleveryStatus
 /property


I have already tried adding xmlns= to remove added namespace. But it did
not fix the issue for me.


 also I am not quite sure about the 2nd enrich mediator's target. Since if
 you are adding something like //deliverystatus then the xpath will try to
 find a deliverystatus node in the body.


First I add this element to request body. Then I try to add value into that
element. I used  log mediator and printed the payload after adding the
deliveryStatus element and the payload contains that element. But I
cannot access that element using //deliveryStatus xpath.

I tried to access same DOM level elements and I could access them. Problem
is cannot access the newly added element though it exists.


 If your request doesn't have a deliverystatus node this error may occur

 Thanks
 Senduran


 On Mon, Dec 1, 2014 at 5:59 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Hi,

 I want to add following XML element as a child to the payload body

 deleveryStatusabc123/deleveryStatus

 This abc123 value is taken from a property.

 I used enrich mediator to add the element as follows

 property name=deliverystatus scope=default
 deleveryStatus/deleveryStatus
  /property

  enrich
 source type=property clone=true
 property=deliverystatus/source
 target type=body action=child/target
  /enrich

 and it sets the element as expected to the body (with default namespace)

 (deleveryStatus xmlns=http://ws.apache.org/ns/synapse
 /deleveryStatus)

 Then I tired to set value in to this element (taking from another
 property)

  enrich
 source type=property clone=true
 property=message1/source
 target xpath=//deliverystatus xmlns=
 http://ws.apache.org/ns/synapse;/target
   /enrich

 and it gives me following error

  *ERROR - EnrichMediator Invalid Target object to be enrich.*

 But I could add values to elements which were already there in the
 payload body (value can't be added only to the newly added one). What could
 be the reason for this issue? Is there any other way to do this task ?

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

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

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




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

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


[Dev] EMM product build failure

2014-12-01 Thread Afkham Azeez
[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 1:41.826s

[INFO] Finished at: Mon Dec 01 18:32:53 IST 2014

[INFO] Final Memory: 48M/133M

[INFO]


[ERROR] Failed to execute goal on project
org.wso2.emm.integration.ui.pages: Could not resolve dependencies for
project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The
following artifacts could not be resolved:
org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
Failure to find
org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT
in http://dist.wso2.org/maven2/ was cached in the local repository,
resolution will not be reattempted until the update interval of
wso2-maven2-repository has elapsed or updates are forced - [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

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

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


Re: [Dev] EMM product build failure

2014-12-01 Thread Nuwan Wimalasekara
Hi
Please update the test framework version to 4.3.1 since It is released.

Thanks,
Nuwanw

On Mon, Dec 1, 2014 at 6:55 PM, Afkham Azeez az...@wso2.com wrote:

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 1:41.826s

 [INFO] Finished at: Mon Dec 01 18:32:53 IST 2014

 [INFO] Final Memory: 48M/133M

 [INFO]
 

 [ERROR] Failed to execute goal on project
 org.wso2.emm.integration.ui.pages: Could not resolve dependencies for
 project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The
 following artifacts could not be resolved:
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository,
 resolution will not be reattempted until the update interval of
 wso2-maven2-repository has elapsed or updates are forced - [Help 1]

 [ERROR]

 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.

 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

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

 *Lean . Enterprise . Middleware*

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




-- 
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] EMM product build failure

2014-12-01 Thread Afkham Azeez
How do I do that?

On Mon, Dec 1, 2014 at 7:04 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi
 Please update the test framework version to 4.3.1 since It is released.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 6:55 PM, Afkham Azeez az...@wso2.com wrote:

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 1:41.826s

 [INFO] Finished at: Mon Dec 01 18:32:53 IST 2014

 [INFO] Final Memory: 48M/133M

 [INFO]
 

 [ERROR] Failed to execute goal on project
 org.wso2.emm.integration.ui.pages: Could not resolve dependencies for
 project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The
 following artifacts could not be resolved:
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository,
 resolution will not be reattempted until the update interval of
 wso2-maven2-repository has elapsed or updates are forced - [Help 1]

 [ERROR]

 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.

 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

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

 *Lean . Enterprise . Middleware*

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




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

 phone: +94 71 668 4620






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

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


Re: [Dev] Please merge pull request to ESB - Property Integration Tests

2014-12-01 Thread Jeewantha Dharmaparakrama
Merged.

Thanks,
Jeewantha

On Fri, Nov 28, 2014 at 9:44 AM, Kasun Indrasiri ka...@wso2.com wrote:

 We are in the process of stabilizing 4.9 M4 with httpcore version upgrade.
 We'll process the PR along with that.

 On Thu, Nov 27, 2014 at 1:47 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 This pull request is still pending. Can someone from ESB team apply it.

 Thanks,
 Krishantha.

 On Thu, Nov 13, 2014 at 7:01 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi ESB Team,

 Please merge the pull request [1] to ESB which adds property Integration
 Tests and other related changes.

 [1] https://github.com/wso2-dev/product-esb/pull/78

 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




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




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

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while adding value to XML element added using enrich mediator

2014-12-01 Thread Senduran Balasubramaniyam
Hi Malintha,

can you try the following and let me know (btw  I tried with ESB 4.8.1)

property name=deliverystatus scope=default
deleveryStatus xmlns=temval/deleveryStatus
/property

property name=message1 value=abc123 scope=default
type=STRING/property

enrich
source type=property clone=true property=deliverystatus/source
target type=body action=child/target
/enrich


enrich
source clone=true type=custom xpath=$ctx:message1/source
target action=replace type=custom
xpath=//deliverystatus/text()/target
/enrich

Thanks
Senduran

On Mon, Dec 1, 2014 at 6:49 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi Senduran,

 Thank you for the prompt response.


 On Mon, Dec 1, 2014 at 1:06 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Malintha,

 You can get rid of the default namespace by adding an empty namespace
 i.e
 property name=deliverystatus scope=default
 deleveryStatus xmlns=/deleveryStatus
 /property


 I have already tried adding xmlns= to remove added namespace. But it did
 not fix the issue for me.


 also I am not quite sure about the 2nd enrich mediator's target. Since if
 you are adding something like //deliverystatus then the xpath will try to
 find a deliverystatus node in the body.


 First I add this element to request body. Then I try to add value into
 that element. I used  log mediator and printed the payload after adding the
 deliveryStatus element and the payload contains that element. But I
 cannot access that element using //deliveryStatus xpath.

 I tried to access same DOM level elements and I could access them. Problem
 is cannot access the newly added element though it exists.


 If your request doesn't have a deliverystatus node this error may occur

 Thanks
 Senduran


 On Mon, Dec 1, 2014 at 5:59 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Hi,

 I want to add following XML element as a child to the payload body

 deleveryStatusabc123/deleveryStatus

 This abc123 value is taken from a property.

 I used enrich mediator to add the element as follows

 property name=deliverystatus scope=default
 deleveryStatus/deleveryStatus
  /property

  enrich
 source type=property clone=true
 property=deliverystatus/source
 target type=body action=child/target
  /enrich

 and it sets the element as expected to the body (with default namespace)

 (deleveryStatus xmlns=http://ws.apache.org/ns/synapse
 /deleveryStatus)

 Then I tired to set value in to this element (taking from another
 property)

  enrich
 source type=property clone=true
 property=message1/source
 target xpath=//deliverystatus xmlns=
 http://ws.apache.org/ns/synapse;/target
   /enrich

 and it gives me following error

  *ERROR - EnrichMediator Invalid Target object to be enrich.*

 But I could add values to elements which were already there in the
 payload body (value can't be added only to the newly added one). What could
 be the reason for this issue? Is there any other way to do this task ?

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

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

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




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

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




-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ http://wso2.com/
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while adding value to XML element added using enrich mediator

2014-12-01 Thread Malintha Adikari
Hi Senduran,

I tried it but the issue is still there ( Using esb 4.8.1). Will check more
with your sample. Thank you very much

On Mon, Dec 1, 2014 at 2:03 PM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Hi Malintha,

 can you try the following and let me know (btw  I tried with ESB 4.8.1)

 property name=deliverystatus scope=default
 deleveryStatus xmlns=temval/deleveryStatus
 /property

 property name=message1 value=abc123 scope=default
 type=STRING/property

 enrich
 source type=property clone=true
 property=deliverystatus/source
 target type=body action=child/target
 /enrich


 enrich
 source clone=true type=custom xpath=$ctx:message1/source
 target action=replace type=custom
 xpath=//deliverystatus/text()/target
 /enrich

 Thanks
 Senduran

 On Mon, Dec 1, 2014 at 6:49 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Hi Senduran,

 Thank you for the prompt response.


 On Mon, Dec 1, 2014 at 1:06 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Hi Malintha,

 You can get rid of the default namespace by adding an empty namespace
 i.e
 property name=deliverystatus scope=default
 deleveryStatus xmlns=/deleveryStatus
 /property


 I have already tried adding xmlns= to remove added namespace. But it
 did not fix the issue for me.


 also I am not quite sure about the 2nd enrich mediator's target. Since
 if you are adding something like //deliverystatus then the xpath will try
 to find a deliverystatus node in the body.


 First I add this element to request body. Then I try to add value into
 that element. I used  log mediator and printed the payload after adding the
 deliveryStatus element and the payload contains that element. But I
 cannot access that element using //deliveryStatus xpath.

 I tried to access same DOM level elements and I could access them.
 Problem is cannot access the newly added element though it exists.


 If your request doesn't have a deliverystatus node this error may occur

 Thanks
 Senduran


 On Mon, Dec 1, 2014 at 5:59 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Hi,

 I want to add following XML element as a child to the payload body

 deleveryStatusabc123/deleveryStatus

 This abc123 value is taken from a property.

 I used enrich mediator to add the element as follows

 property name=deliverystatus scope=default
 deleveryStatus/deleveryStatus
  /property

  enrich
 source type=property clone=true
 property=deliverystatus/source
 target type=body action=child/target
  /enrich

 and it sets the element as expected to the body (with default namespace)

 (deleveryStatus xmlns=http://ws.apache.org/ns/synapse
 /deleveryStatus)

 Then I tired to set value in to this element (taking from another
 property)

  enrich
 source type=property clone=true
 property=message1/source
 target xpath=//deliverystatus xmlns=
 http://ws.apache.org/ns/synapse;/target
   /enrich

 and it gives me following error

  *ERROR - EnrichMediator Invalid Target object to be enrich.*

 But I could add values to elements which were already there in the
 payload body (value can't be added only to the newly added one). What could
 be the reason for this issue? Is there any other way to do this task ?

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

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

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




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

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




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

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


Re: [Dev] EMM product build failure

2014-12-01 Thread Krishantha Samaraweera
Edit the root product pom at [1] and set the test framework version as
below.

*test.framework.version4.3.1/test.framework.version*

[1] https://github.com/wso2-dev/product-emm/blob/master/pom.xml

Thanks, Krishantha.

On Mon, Dec 1, 2014 at 7:07 PM, Afkham Azeez az...@wso2.com wrote:

 How do I do that?

 On Mon, Dec 1, 2014 at 7:04 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Please update the test framework version to 4.3.1 since It is released.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 6:55 PM, Afkham Azeez az...@wso2.com wrote:

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 1:41.826s

 [INFO] Finished at: Mon Dec 01 18:32:53 IST 2014

 [INFO] Final Memory: 48M/133M

 [INFO]
 

 [ERROR] Failed to execute goal on project
 org.wso2.emm.integration.ui.pages: Could not resolve dependencies for
 project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The
 following artifacts could not be resolved:
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository,
 resolution will not be reattempted until the update interval of
 wso2-maven2-repository has elapsed or updates are forced - [Help 1]

 [ERROR]

 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.

 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

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

 *Lean . Enterprise . Middleware*

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




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

 phone: +94 71 668 4620






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

 *Lean . Enterprise . Middleware*




-- 
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] EMM product build failure

2014-12-01 Thread Afkham Azeez
It works. Thanks.

On Mon, Dec 1, 2014 at 8:02 PM, Krishantha Samaraweera krishan...@wso2.com
wrote:

 Edit the root product pom at [1] and set the test framework version as
 below.

 *test.framework.version4.3.1/test.framework.version*

 [1] https://github.com/wso2-dev/product-emm/blob/master/pom.xml

 Thanks, Krishantha.

 On Mon, Dec 1, 2014 at 7:07 PM, Afkham Azeez az...@wso2.com wrote:

 How do I do that?

 On Mon, Dec 1, 2014 at 7:04 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Please update the test framework version to 4.3.1 since It is released.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 6:55 PM, Afkham Azeez az...@wso2.com wrote:

 [INFO] BUILD FAILURE

 [INFO]
 

 [INFO] Total time: 1:41.826s

 [INFO] Finished at: Mon Dec 01 18:32:53 IST 2014

 [INFO] Final Memory: 48M/133M

 [INFO]
 

 [ERROR] Failed to execute goal on project
 org.wso2.emm.integration.ui.pages: Could not resolve dependencies for
 project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The
 following artifacts could not be resolved:
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find
 org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository,
 resolution will not be reattempted until the update interval of
 wso2-maven2-repository has elapsed or updates are forced - [Help 1]

 [ERROR]

 [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.

 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

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

 *Lean . Enterprise . Middleware*

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




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

 phone: +94 71 668 4620






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

 *Lean . Enterprise . Middleware*




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




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

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


Re: [Dev] Chunk 13 Release

2014-12-01 Thread Aparna Karunarathna
Hi Chanika/ Anjana,

We did a smoke test on latest DSS 3.2.2 pack and no blocking issues were
observed.

Regards,
Aparna.



On Mon, Dec 1, 2014 at 6:35 PM, Chanika Geeganage chan...@wso2.com wrote:

 Hi Aparna,

 The new pack and the p2-repo can be found from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/01-12-2014

 Thanks

 On Mon, Dec 1, 2014 at 12:10 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Aparna,

 I hope other aspects of DSS has been tested, so yeah, we can wait for the
 HZ fixes to test this specific scenario.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 10:27 AM, Aparna Karunarathna apa...@wso2.com
 wrote:

 Hi Anjana  Chanika,

 Due to the hazelcast issues [1]  [2], Is it OK to stop testing and will
 wait for new pack?  So far we have verified the fixes that has been
 identified in the last build(15/11/2014).

 [1] https://wso2.org/jira/browse/CARBON-15096
 [2] https://wso2.org/jira/browse/CARBON-15097


 Regards,
 Aparna.


 On Fri, Nov 28, 2014 at 5:51 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 The new pack can be found from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/28-11-2014/

 On Fri, Nov 28, 2014 at 5:28 AM, Chanika Geeganage chan...@wso2.com
 wrote:

 p2-repo is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/p2-repo/

 On Thu, Nov 27, 2014 at 10:39 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 The latest pack can be downloaded from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/wso2dss-3.2.2.zip

 Thanks

 On Sat, Nov 15, 2014 at 1:08 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 Hi,

 The new DSS 3.2.2 pack is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/15-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Fri, Nov 14, 2014 at 3:25 PM, Chanika Geeganage chan...@wso2.com
  wrote:

 Hi Aparna,

 Building the p2-repo is halted as some of the released artifacts
 are not deployed to nexus. See Nested categories released in chunk-11 
 are
 not deployed in nexus. Once this issue is sorted out, I will build the
 p2-repo and update the thread.

 Thanks

 On Fri, Nov 14, 2014 at 8:40 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi Chanika,

 Can you please share the p2 repo as well?

 Regards,
 Aparna.


 On Thu, Nov 13, 2014 at 9:19 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Please find the latest DSS 3.2.2 pack from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Tue, Nov 11, 2014 at 8:14 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Fixed the build and latest DSS and BAM packs are available at
 https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-11-11/


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 2:13 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Yes. Yesterday night I built both DSS and BAM and there was a
 build break and a BAM internal defect. Therefore was not able to 
 release
 it. At the moment we are in the process of fixing these issues.


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 1:17 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Both BAM and DSS are added to chunk-13. Yesterday there was
 some issues found in the built BAM pack during smoke test. 
 Maninda will be
 able to give more details about the issues. We will try to 
 resolve those
 issues and provide RC packs today.

 Thanks


 On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias nuw...@wso2.com
 wrote:

 AFAIK only DSS is going on chunk-13. @Chanika, can you
 confirm please?

 BAM/APIM have moved to chunk-14. Ratha is building packs now
 and we should be able to provide packs within the day.

 Thanks,
 NuwanD.

 On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi,

 Since the Chunk 13 release date scheduled on 3rd week of
 November, can you build all chunk 13 packs in the builder 
 machine and share
 the latest packs and p2 repo with us.


 Regards,
 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




 --
 Best Regards..

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






 --
 Best Regards..

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




 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Best Regards..

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




 --
 Best 

Re: [Dev] Invitation: Revisit APIManager and AppManager default statistics grap... @ Fri 28 Nov 2014 14:00 - 15:00 (Nuwan Dias)

2014-12-01 Thread Sumedha Rubasinghe
Minoli, Binali,
Can you guys schedule a review of current progress? No need to have
anything in complete stage. But would like to get a sense of direction 
time.

On Fri, Nov 28, 2014 at 4:02 PM, Dinusha Senanayaka dinu...@wso2.com
wrote:

 Notes on App Manager :

 - Separates graphs into separate pages
 - Allow to sort tables

 Graph1 : Overall Subscriptions
 
 Subscription pie chart: show max no of elements that can show in pie chat.
 then take remaining subscriptions as other.
 Legend width need to dynamic
 Each percentage should give detail drill down table, when click on it.

 Graph2: Apps Subscribed by User
 -
 Column1 (Web Apps) Column2 (user)
 Make app click-able. go to app details page.
 Apps list need to grow down

 Graph3: Usage by page
 --
 Should be renamed as Usage by App. Then once click on a particular bar
 relevant to app, it should redirect to Usage by page graph.

 Bar chart.
 y - axis (Total requests)
 x - axis (web app)

 x - axis name should be angled.
 y axis should be named inside bar.

 Graph4: Usage by User
 --
 Change to a scatter graph

 x - web app
 y - no of users
 Scatter on total requests.
 Once click on particular plot, it should give drill down view by user and
 number of access.

 Graph5: Response Time
 ---
 First graph shows whole web app average response time. (not per page
 response time)
 Once click on one app, redirect to a page response summarize view


 Store graphs
 ---
 Currently existing  graph for Apps Subscribed by User

 Regards,
 Dinusha.

 On Fri, Nov 28, 2014 at 3:30 PM, Nuwan Dias nuw...@wso2.com wrote:

 Notes on the API Manager TODOs for first iteration

 1. Make the Subscriptions Clickable and redirect to API overview Page.

 2. Highlight the Stats menu when it is clicked.

 3. On every page limit number of records to show.

 4. Drill down on Overall API Usage - drill down by date range. Change
 Labels as API / Hits

 5. Introduce New graph to compare APIs

 6. Response Times - Breakdown for Resource Wise Responses. Change 's' to
 'ms' (milliseconds). Limit graph to a limit and provide .

 7. Last Access Times - Show Time Zone. - Change to show most recent and
 least recently used APIs

 8. Usage by Resource Path - sort Hits - drill down to show access by
 time.

 9. Destination - Drill down Hits by time

 10. Usage by User - List by least and most hit. Drill down by Hits

 Thanks,
 NuwanD.

 On Thu, Nov 27, 2014 at 6:37 PM, Dinusha Senanayaka dinu...@wso2.com
 wrote:

 more details »
 https://www.google.com/calendar/event?action=VIEWeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29ttok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 Revisit APIManager and AppManager default statistics graphs improvements
 *When*
 Fri 28 Nov 2014 14:00 – 15:00 Colombo
 *Where*
 LK 3rd Floor Meeting Room - Kernel (map
 https://maps.google.com.au/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernelhl=en-GB
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/dinusha
 https://plus.google.com/hangouts/_/wso2.com/dinusha?hceid=ZGludXNoYUB3c28yLmNvbQ.ie5jf3bkllq0onn93ijquef87o
 *Calendar*
 Nuwan Dias
 *Who*
 •
 Dinusha Senanayaka- organiser
 •
 Minoli Perera
 •
 Nuwan Dias
 •
 Sumedha Rubasinghe
 •
 Ruwan Yatawara
 •
 Binali Perera
 •
 dev@wso2.org

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=1tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=3tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=2tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29ttok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account nuw...@wso2.com because you
 are subscribed for invitations on calendar Nuwan Dias.

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




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




 --
 Dinusha Dilrukshi
 Senior Software Engineer
 WSO2 Inc.: http://wso2.com/

Re: [Dev] Chunk 13 Release

2014-12-01 Thread Anjana Fernando
Hi Aparna,

Great! .. Thanks. @Chanika, lets release this.

Cheers,
Anjana.

On Mon, Dec 1, 2014 at 9:52 PM, Aparna Karunarathna apa...@wso2.com wrote:

 Hi Chanika/ Anjana,

 We did a smoke test on latest DSS 3.2.2 pack and no blocking issues were
 observed.

 Regards,
 Aparna.



 On Mon, Dec 1, 2014 at 6:35 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 Hi Aparna,

 The new pack and the p2-repo can be found from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/01-12-2014

 Thanks

 On Mon, Dec 1, 2014 at 12:10 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Aparna,

 I hope other aspects of DSS has been tested, so yeah, we can wait for
 the HZ fixes to test this specific scenario.

 Cheers,
 Anjana.

 On Mon, Dec 1, 2014 at 10:27 AM, Aparna Karunarathna apa...@wso2.com
 wrote:

 Hi Anjana  Chanika,

 Due to the hazelcast issues [1]  [2], Is it OK to stop testing and
 will wait for new pack?  So far we have verified the fixes that has been
 identified in the last build(15/11/2014).

 [1] https://wso2.org/jira/browse/CARBON-15096
 [2] https://wso2.org/jira/browse/CARBON-15097


 Regards,
 Aparna.


 On Fri, Nov 28, 2014 at 5:51 PM, Chanika Geeganage chan...@wso2.com
 wrote:

 The new pack can be found from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/28-11-2014/

 On Fri, Nov 28, 2014 at 5:28 AM, Chanika Geeganage chan...@wso2.com
 wrote:

 p2-repo is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/p2-repo/

 On Thu, Nov 27, 2014 at 10:39 PM, Chanika Geeganage chan...@wso2.com
  wrote:

 The latest pack can be downloaded from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/27-11-2014/wso2dss-3.2.2.zip

 Thanks

 On Sat, Nov 15, 2014 at 1:08 PM, Chanika Geeganage chan...@wso2.com
  wrote:

 Hi,

 The new DSS 3.2.2 pack is available at
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/15-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Fri, Nov 14, 2014 at 3:25 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi Aparna,

 Building the p2-repo is halted as some of the released artifacts
 are not deployed to nexus. See Nested categories released in 
 chunk-11 are
 not deployed in nexus. Once this issue is sorted out, I will build 
 the
 p2-repo and update the thread.

 Thanks

 On Fri, Nov 14, 2014 at 8:40 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi Chanika,

 Can you please share the p2 repo as well?

 Regards,
 Aparna.


 On Thu, Nov 13, 2014 at 9:19 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Please find the latest DSS 3.2.2 pack from
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/13-11-2014-DSS/wso2dss-3.2.2.zip

 Thanks

 On Tue, Nov 11, 2014 at 8:14 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Fixed the build and latest DSS and BAM packs are available at
 https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-11-11/


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 2:13 PM, Maninda Edirisooriya 
 mani...@wso2.com wrote:

 Yes. Yesterday night I built both DSS and BAM and there was a
 build break and a BAM internal defect. Therefore was not able to 
 release
 it. At the moment we are in the process of fixing these issues.


 *Maninda Edirisooriya*
 Senior Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *E-mail* : mani...@wso2.com
 *Skype* : @manindae
 *Twitter* : @maninda

 On Tue, Nov 11, 2014 at 1:17 PM, Chanika Geeganage 
 chan...@wso2.com wrote:

 Hi,

 Both BAM and DSS are added to chunk-13. Yesterday there was
 some issues found in the built BAM pack during smoke test. 
 Maninda will be
 able to give more details about the issues. We will try to 
 resolve those
 issues and provide RC packs today.

 Thanks


 On Tue, Nov 11, 2014 at 11:56 AM, Nuwan Dias nuw...@wso2.com
  wrote:

 AFAIK only DSS is going on chunk-13. @Chanika, can you
 confirm please?

 BAM/APIM have moved to chunk-14. Ratha is building packs now
 and we should be able to provide packs within the day.

 Thanks,
 NuwanD.

 On Tue, Nov 11, 2014 at 11:52 AM, Aparna Karunarathna 
 apa...@wso2.com wrote:

 Hi,

 Since the Chunk 13 release date scheduled on 3rd week of
 November, can you build all chunk 13 packs in the builder 
 machine and share
 the latest packs and p2 repo with us.


 Regards,
 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
 0714002533*




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




 --
 Best Regards..

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






 --
 Best Regards..

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




 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 

Re: [Dev] Invitation: Revisit APIManager and AppManager default statistics grap... @ Fri 28 Nov 2014 14:00 - 15:00 (Nuwan Dias)

2014-12-01 Thread Ruwan Yatawara
Just skimmed through a copy of that book. Looks very informative, should
make for a good read.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com


On Mon, Dec 1, 2014 at 10:14 PM, Sumedha Rubasinghe sume...@wso2.com
wrote:

 Minoli, Binali,
 Can you guys schedule a review of current progress? No need to have
 anything in complete stage. But would like to get a sense of direction 
 time.

 On Fri, Nov 28, 2014 at 4:02 PM, Dinusha Senanayaka dinu...@wso2.com
 wrote:

 Notes on App Manager :

 - Separates graphs into separate pages
 - Allow to sort tables

 Graph1 : Overall Subscriptions
 
 Subscription pie chart: show max no of elements that can show in pie
 chat. then take remaining subscriptions as other.
 Legend width need to dynamic
 Each percentage should give detail drill down table, when click on it.

 Graph2: Apps Subscribed by User
 -
 Column1 (Web Apps) Column2 (user)
 Make app click-able. go to app details page.
 Apps list need to grow down

 Graph3: Usage by page
 --
 Should be renamed as Usage by App. Then once click on a particular bar
 relevant to app, it should redirect to Usage by page graph.

 Bar chart.
 y - axis (Total requests)
 x - axis (web app)

 x - axis name should be angled.
 y axis should be named inside bar.

 Graph4: Usage by User
 --
 Change to a scatter graph

 x - web app
 y - no of users
 Scatter on total requests.
 Once click on particular plot, it should give drill down view by user and
 number of access.

 Graph5: Response Time
 ---
 First graph shows whole web app average response time. (not per page
 response time)
 Once click on one app, redirect to a page response summarize view


 Store graphs
 ---
 Currently existing  graph for Apps Subscribed by User

 Regards,
 Dinusha.

 On Fri, Nov 28, 2014 at 3:30 PM, Nuwan Dias nuw...@wso2.com wrote:

 Notes on the API Manager TODOs for first iteration

 1. Make the Subscriptions Clickable and redirect to API overview Page.

 2. Highlight the Stats menu when it is clicked.

 3. On every page limit number of records to show.

 4. Drill down on Overall API Usage - drill down by date range. Change
 Labels as API / Hits

 5. Introduce New graph to compare APIs

 6. Response Times - Breakdown for Resource Wise Responses. Change 's' to
 'ms' (milliseconds). Limit graph to a limit and provide .

 7. Last Access Times - Show Time Zone. - Change to show most recent and
 least recently used APIs

 8. Usage by Resource Path - sort Hits - drill down to show access by
 time.

 9. Destination - Drill down Hits by time

 10. Usage by User - List by least and most hit. Drill down by Hits

 Thanks,
 NuwanD.

 On Thu, Nov 27, 2014 at 6:37 PM, Dinusha Senanayaka dinu...@wso2.com
 wrote:

 more details »
 https://www.google.com/calendar/event?action=VIEWeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29ttok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 Revisit APIManager and AppManager default statistics graphs improvements
 *When*
 Fri 28 Nov 2014 14:00 – 15:00 Colombo
 *Where*
 LK 3rd Floor Meeting Room - Kernel (map
 https://maps.google.com.au/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernelhl=en-GB
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/dinusha
 https://plus.google.com/hangouts/_/wso2.com/dinusha?hceid=ZGludXNoYUB3c28yLmNvbQ.ie5jf3bkllq0onn93ijquef87o
 *Calendar*
 Nuwan Dias
 *Who*
 •
 Dinusha Senanayaka- organiser
 •
 Minoli Perera
 •
 Nuwan Dias
 •
 Sumedha Rubasinghe
 •
 Ruwan Yatawara
 •
 Binali Perera
 •
 dev@wso2.org

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=1tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=3tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29trst=2tok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=aWU1amYzYmtsbHEwb25uOTNpanF1ZWY4N28gbnV3YW5kQHdzbzIuY29ttok=MTYjZGludXNoYUB3c28yLmNvbWY3Yzk2OGE2NmQzMDI1MzMwZTkxNjM0NzdiNjc2ODM1MzliNjk1YWIctz=Asia/Colombohl=en_GB

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account nuw...@wso2.com because
 you are subscribed for invitations on 

Re: [Dev] Couldn't reproduce some reported issues.

2014-12-01 Thread Dmitry Sotnikov
Hi,

The tickets have video recording of me experiencing the issues.

If that helps, I was making the changes just changing the case of the
domain (uppercase to lowercase, back to uppercase, back to lowercase)
because this was a part of me fighting the bug with uppercase custom URLs
not working in AF.

If there are logs that can help you troubleshoot - Cloud team might be able
to find these old logs.

Dmitry

On Mon, Dec 1, 2014 at 2:13 AM, Pirinthapan Mahendran pirintha...@wso2.com
wrote:

 Hi Dmitry,

 I tried to reproduce the issues reported in [1] and [2]. I tried these in
 both my local setup and cloud. But I could not reproduce these issues. Were
 you able to reproduce these issues continuously?
 If so could you please give some additional information regarding that?

 1. https://wso2.org/jira/browse/APPFAC-2648
 2. https://wso2.org/jira/browse/APPFAC-2649

 Thanks.


 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.




-- 
Dmitry Sotnikov
VP of Cloud; WSO2, Inc.;  http://wso2.com/
email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
Lean . Enterprise . Middleware

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


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.3.0 RC1

2014-12-01 Thread Kishanthan Thangarajah
Hi Devs,

This is the *1st* release candidate of WSO2 Carbon Kernel 4.3.0.

This release fixes the following issues:
https://wso2.org/jira/browse/CARBON-15098?filter=12088

Please download, test and vote.

*Source  binary distribution files:*
http://maven.wso2.org/nexus/content/repositories/staging/org/wso2/carbon/wso2carbon/4.3.0/

*Maven staging repository:*
http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-033/

*The tag to be voted upon :*
https://github.com/wso2/carbon4-kernel/releases/tag/4.3.0-RC1


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thanks,
Carbon Team.

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

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


Re: [Dev] CSV - XML transformation using XSLT mediator

2014-12-01 Thread Lasindu Charith
Hi Senduran,

It should be comma separated csv to XML format.

*FROM: CSV*
abc, 123, 0.1, xyz,
pqr, 456, 0.01, qwe,
zxy, 789, 0.45, lmn

*TO: XML*
root
  element

val1abc/val1

val2123/val2

val30.1/val3
val4xyz/val4

   element
element

val1pqr/val1

val2456/val2

val30.01/val3
val4qwe/val4

   element
element

val1zxy/val1

val2789/val2

val30.45/val3
val4lmn/val4

   element
root



On Mon, Dec 1, 2014 at 6:20 PM, Senduran Balasubramaniyam sendu...@wso2.com
 wrote:

 Hi Lasindu,

 Could you please let us know a sample input format and desired output
 format

 Thanks
 Senduran

 On Mon, Dec 1, 2014 at 2:11 PM, Lasindu Charith lasi...@wso2.com wrote:

 Hi all,

 Does anybody know a way(sample) to transform CSV format to XML in ESB,
 using some mediator except Smooks? (such as XSLT)

 Thanks,
 Lasindu

 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com

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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




-- 
*Lasindu Charith*
Software Engineer, WSO2 Inc.
Mobile: +94714427192
Web: blog.lasindu.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IntegrationTest issues in connector

2014-12-01 Thread Elilmatha Sivanesan
Thank you for the responses...

It is working now



On Mon, Dec 1, 2014 at 3:18 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Hi Elimatha,

 Try using this esb distribution [1].

 [1] http://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.9.0/M3/

 On Mon, Dec 1, 2014 at 3:08 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Port 9763 is the servlet port of HTTP. Framework try to connect this port
 to verify that the server is started properly.

 On Mon, Dec 1, 2014 at 3:04 PM, Elilmatha Sivanesan elilma...@wso2.com
 wrote:

 yes, it is working fine. Is there any issues regarding the ports. i
 checked the port 9763 is not used by any applications.

 On Mon, Dec 1, 2014 at 2:51 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Please make sure the wso2esb-4.9.0-SNAPSHOT distribution is working
 fine by starting it manually.  As the logs, server has unsatisfied
 items.

 Thanks,
 Nuwanw

 On Mon, Dec 1, 2014 at 2:44 PM, Elilmatha Sivanesan elilma...@wso2.com
  wrote:


 Hi All,

 I'm writing connector, while i'm writing the test case i got the
 following error.

 Running TestSuite
 [2014-12-01 13:38:37,641]  INFO
 {org.wso2.carbon.automation.core.PlatformExecutionManager} -
  ---Test Execution Started --
 [2014-12-01 13:38:37,655]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/repository/wso2esb-4.9.0-SNAPSHOT.zip
 [2014-12-01 13:38:41,197]  INFO
 {org.wso2.carbon.automation.core.ServerGroupManager} -  Copying
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/security-verifier/SecVerifier.aar
 = /Users/elilmatha/Desktop/Nimble all/nimble with test case sat 
 day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/repository/deployment/server/axis2services/SecVerifier.aar
 [2014-12-01 13:38:41,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumentation of jar files in progress ...
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.CodeCoverageUtils} -
  Instrumented 86 files.
 [2014-12-01 13:38:47,973]  INFO
 {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  
 Starting
 server.
 [2014-12-01 13:38:48,087]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
 [2014-12-01 13:38:48,088]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  CARBON_HOME environment variable is set to 
 /Users/elilmatha/Desktop/Nimble
 all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,102]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,101]  INFO - CarbonCoreActivator Starting WSO2
 Carbon...
 [2014-12-01 13:38:53,106]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Operating System :
 Mac OS X 10.9.5, x86_64
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Home:
 /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,106]  INFO - CarbonCoreActivator Java Version :
 1.7.0_07
 [2014-12-01 13:38:53,107]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 23.3-b01,Oracle Corporation
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Carbon Home  :
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator Java Temp Dir:
 /Users/elilmatha/Desktop/Nimble all/nimble with test case sat day/Nimble
 Connector/org.wso2.carbon.connector/target/carbontmp1417421317660/wso2esb-4.9.0-SNAPSHOT/tmp
 [2014-12-01 13:38:53,108]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
  [2014-12-01 13:38:53,107]  INFO - CarbonCoreActivator User :
 elilmatha, en-US, Asia/Colombo
 [2014-12-01 13:38:53,185]  INFO
 

[Dev] Can we add jars to the carbon runtime without restarting

2014-12-01 Thread Samith Dassanayake
Hi all,
Can we add jars dynamically to the carbon runtime without restarting the
server? If it is possible is there a service method to achieve that?

Thanks,
Samith

-- 
Best Regards

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


Re: [Dev] Passing verification keys as url parameters

2014-12-01 Thread Dilan Udara Ariyaratne
Hi Sameera,

Are those verification keys passed having any sensitive informational value?

If yes, I do not think that passing as url parameters is the recommended
approach
where as storing them in a session level cookie can be the correct approach.

Following can be helpful to you on this issue.

[1]
http://blog.httpwatch.com/2009/02/20/how-secure-are-query-strings-over-https
[2]
http://security.stackexchange.com/questions/29598/should-sensitive-data-ever-be-passed-in-the-query-string

Hope this helps.

Thanks.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Nov 28, 2014 at 1:06 PM, Roshan Wijesena ros...@wso2.com wrote:

 Can't we set your key in authorization header as a bearer token?

 On Fri, Nov 28, 2014 at 9:05 AM, Sameera Jayaratna samee...@wso2.com
 wrote:

 Hi,

 I'm working on Password recovery for ES, following [1].

 According to [1], in the sequence of calls to the 
 *UserInformationRecoveryService,
 *the key generated in one call needs to be passed to the next call for
 verification. These calls occur in different views, so we need to pass the
 keys from one view to the next.

 What is the best way to do this?


- passing as url parameters?
- storing them in the session?

 Is there any security concerns related to either approach?
 Or is there a better way to do this?

 Any thoughts on this would be helpful.

 Thank you,
 Sameera

 [1] https://docs.wso2.com/display/IS500/Recover+with+Secret+Questions

 --



 *Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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] Can we add jars to the carbon runtime without restarting

2014-12-01 Thread Abimaran Kugathasan
With OSGI, You can do that.

OSGI components can be added removed at any time from a OSGI capable
platform.

BundleActivator [1] is an interface which has two methods. Bundles can
specify a class which implements this interface and the OSGi framework is
guaranteed to invoke start() method when the bundle is started and stop()
method is invoked when the bundle is stopped. BundleActivator is specified
using the Manifest Header Bundle-Activator.

[1] :
http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleActivator.html

On Tue, Dec 2, 2014 at 9:39 AM, Samith Dassanayake sam...@wso2.com wrote:

 Hi all,
 Can we add jars dynamically to the carbon runtime without restarting the
 server? If it is possible is there a service method to achieve that?

 Thanks,
 Samith

 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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




-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data  APIs Technologies Team
Mobile : +94 773922820

http://stackoverflow.com/users/515034
http://lk.linkedin.com/in/abimaran  http://www.lkabimaran.blogspot.com/
https://github.com/abimaran  https://twitter.com/abimaran
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Couldn't reproduce some reported issues.

2014-12-01 Thread Pirinthapan Mahendran
Hi Dmitry,

I tried with changing the domain as you mentioned above. But no help. I'll
check the old logs with Cloud team.

Thanks.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Tue, Dec 2, 2014 at 1:37 AM, Dmitry Sotnikov dmi...@wso2.com wrote:

 Hi,

 The tickets have video recording of me experiencing the issues.

 If that helps, I was making the changes just changing the case of the
 domain (uppercase to lowercase, back to uppercase, back to lowercase)
 because this was a part of me fighting the bug with uppercase custom URLs
 not working in AF.

 If there are logs that can help you troubleshoot - Cloud team might be
 able to find these old logs.

 Dmitry

 On Mon, Dec 1, 2014 at 2:13 AM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Dmitry,

 I tried to reproduce the issues reported in [1] and [2]. I tried these in
 both my local setup and cloud. But I could not reproduce these issues. Were
 you able to reproduce these issues continuously?
 If so could you please give some additional information regarding that?

 1. https://wso2.org/jira/browse/APPFAC-2648
 2. https://wso2.org/jira/browse/APPFAC-2649

 Thanks.


 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.




 --
 Dmitry Sotnikov
 VP of Cloud; WSO2, Inc.;  http://wso2.com/
 email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
 Lean . Enterprise . Middleware

 http://wso2.com/events/

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


Re: [Dev] Can we add jars to the carbon runtime without restarting

2014-12-01 Thread Manoj Kumara
Hi Samith,

Carbon Runtime do not have that capability yet. You have to restart the
server.

Thanks,
Manoj


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

On Tue, Dec 2, 2014 at 9:39 AM, Samith Dassanayake sam...@wso2.com wrote:

 Hi all,
 Can we add jars dynamically to the carbon runtime without restarting the
 server? If it is possible is there a service method to achieve that?

 Thanks,
 Samith

 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


 ___
 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] CSV - XML transformation using XSLT mediator

2014-12-01 Thread Tharindu Edirisinghe
Hi Lasindu,

I wrote a sample that does what you expect. Please check the attached.
import org.w3c.dom.Document;
import org.w3c.dom.Element;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;

public class Main {

public static void main(String[] args) {
ListString headers = new ArrayListString();

File file = new File(/home/tharindu/Desktop/lasindu/abc.csv);
BufferedReader reader = null;

try {

DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder domBuilder = domFactory.newDocumentBuilder();

Document newDoc = domBuilder.newDocument();
// Root element
Element rootElement = newDoc.createElement(root);
newDoc.appendChild(rootElement);

reader = new BufferedReader(new FileReader(file));
int line = 0;

String text = null;

headers.add(val1);
headers.add(val2);
headers.add((val3));
headers.add(val4);

while ((text = reader.readLine()) != null) {

StringTokenizer st = new StringTokenizer(text, ,, false);
String[] rowValues = new String[st.countTokens()];
int index = 0;
while (st.hasMoreTokens()) {

String next = st.nextToken();
rowValues[index++] = next.trim();

}

//String[] rowValues = text.split(,);


Element rowElement = newDoc.createElement(element);
rootElement.appendChild(rowElement);
for (int col = 0; col  headers.size(); col++) {
String header = headers.get(col);
String value = null;

if (col  rowValues.length) {
value = rowValues[col];
} else {
// ?? Default value
value = ;
}

Element curElement = newDoc.createElement(header);
curElement.appendChild(newDoc.createTextNode(value));
rowElement.appendChild(curElement);
}

line++;
}

ByteArrayOutputStream baos = null;
OutputStreamWriter osw = null;

try {
baos = new ByteArrayOutputStream();
osw = new OutputStreamWriter(baos);

TransformerFactory tranFactory = TransformerFactory.newInstance();
Transformer aTransformer = tranFactory.newTransformer();
aTransformer.setOutputProperty(OutputKeys.INDENT, yes);
aTransformer.setOutputProperty(OutputKeys.METHOD, xml);
aTransformer.setOutputProperty({http://xml.apache.org/xslt}indent-amount;, 4);

Source src = new DOMSource(newDoc);
Result result = new StreamResult(osw);
aTransformer.transform(src, result);

osw.flush();
System.out.println(new String(baos.toByteArray()));
} catch (Exception exp) {
exp.printStackTrace();
} finally {
try {
osw.close();
} catch (Exception e) {
}
try {
baos.close();
} catch (Exception e) {
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}

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


[Dev] IS application-authentication.xml required for application management feature

2014-12-01 Thread Harsha Kumara
Hi All,

In Storage Server we are using application management server feature for
custom permission implementation. But application management feature
requires application-authentication.xml which is not bundled with the
feature. I think it's not appropriate to keep configuration in product
itself. This configuration is coming from application authentication
framework feature. Is it Ok to include this xml in application management
feature as well? If else, what would be the approach to do it?

Thanks,
Harsha

-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IS application-authentication.xml required for application management feature

2014-12-01 Thread Johann Nallathamby
It is actually coming from application-authentication-framework feature.
Not from product level. In svn the ideal way would be to have svn
externals. But in Git I am not sure how we handle this. Duplicating this
file will be a nightmare. AFAIK in Git there is a similar way to do this.

On Tue, Dec 2, 2014 at 12:40 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi All,

 In Storage Server we are using application management server feature for
 custom permission implementation. But application management feature
 requires application-authentication.xml which is not bundled with the
 feature. I think it's not appropriate to keep configuration in product
 itself. This configuration is coming from application authentication
 framework feature. Is it Ok to include this xml in application management
 feature as well? If else, what would be the approach to do it?

 Thanks,
 Harsha

 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com




-- 
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 http://nallaa.wordpress.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Pull request for new version

2014-12-01 Thread Danushka Fernando
Hi Sameera, Maheshika
Please review and merge the pull request [1]

[1] https://github.com/wso2/orbit/pull/43

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] SlideShare connector - HTTP/1.1 301 Moved Permanently

2014-12-01 Thread Malaka Silva
Hi Vanii,

It can be due to a a SSL issue. We can verify this by enabling SSL Debug
logs. Info can be found in [1]

Then we can compare that with the logs from curl.

[1]
http://blog.facilelogin.com/2010/11/debugging-ssl-connections-part-i.html


On Fri, Nov 28, 2014 at 10:46 PM, Vanii Thiyagarajah va...@wso2.com wrote:

 Hi All,
  I'm implementing  WSO2 ESB connector  project  for SlideShare API. Their
 API end point working properly in Rest client .When  running through WSO2
 ESB i got this error. Can you please figure out this error.

 Response in XML

 ?xml version=1.0 encoding=UTF-8?
 SlideShareServiceError
 Message ID=24You must use https:// to access this API
 endpoint/Message
 /SlideShareServiceError


 *synapse configuration *

 template name=getSlideshow xmlns=http://ws.apache.org/ns/synapse;
 parameter name=api_key description=List of preferences. /
 parameter name=ts description=List of preferences. /
 parameter name=hash description=List of preferences. /
 parameter name=slideshow_id description=List of preferences. /
 parameter name=slideshow_url description=List of preferences. /

 sequence
 property name=uri.var.api_key expression=$func:api_key /
 property name=uri.var.ts expression=$func:ts /
 property name=uri.var.hash expression=$func:hash /
 property name=uri.var.slideshow_id
 expression=$func:slideshow_id /
 property name=uri.var.slideshow_url
 expression=$func:slideshow_url /

 call
 endpoint
 property name=ContentType value=application/xml
 scope=axis2/
 http method=get
   uri-template=
 https://www.slideshare.net/api/2/get_slideshow?api_key={uri.var.api_key}amp;ts={uri.var.ts}amp;hash={uri.var.hash}amp;slideshow_id={uri.var.slideshow_id}amp;slideshow_url={uri.var.slideshow_url};
 /
 /endpoint
 /call
 header name=x-li-format scope=transport action=remove/
 header name=X-LI-UUID scope=transport action=remove/
 header name=X-Li-Pop scope=transport action=remove/
 header name=X-Li-Fabric scope=transport action=remove/
 header name=x-li-request-id scope=transport action=remove/
 /sequence

 /template








 .

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




-- 

Best Regards,

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

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

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev