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


   
  172.17.0.4:27017
  *TestDB*
  NONE
  PRIMARY
  true
   
   
  *db.TestCollection.findOne()*
   
   
  mongo find operation
  
   
   
  
   



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.

http://www.w3.org/2003/05/soap-envelope";
xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
   
  axis2ns38:UNKNOWN_ERROR
   
   
  DS 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



   
   
  http://ws.wso2.org/dataservice";>
 {}

 mongo_find
 DS Fault Message: Unknown MongoDB
operation 'TestCollection.findOne'
DS Code: UNKNOWN_ERROR

 
/testMongoService.dbs
http://ws.wso2.org/dataservice

N/A

testMongoService
 
 UNKNOWN_ERROR
  
   



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

> Hi,
>
> I'm trying to query a mongoDb, using the following data service.
>
> 
>
>   172.17.0.4:27017
>   *TestDB*
>   NONE
>   PRIMARY
>   true
>
>
>   *db.TestCollection.findOne()*
>
>
>   mongo find operation
>   
>
>
>   
>
> 
>
>
> 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.
>
> http://www.w3.org/2003/05/soap-envelope";
> xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
>
>   axis2ns38:UNKNOWN_ERROR
>
>
>   DS 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
>
>
> 
>
>
>   http://ws.wso2.org/dataservice";>
>  {}
>
>  mongo_find
>  DS Fault Message: Unknown MongoDB
> operation 'TestCollection.findOne'
> DS Code: UNKNOWN_ERROR
> 
>  
> /testMongoService.dbs
> http://ws.wso2.org/dataservice
> 
> N/A
>
> testMongoService
>  
>  UNKNOWN_ERROR
>   
>
> 
>
>
> 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.

http://www.w3.org/2003/05/soap-envelope";
xmlns:axis2ns43="http://ws.wso2.org/dataservice";>
   
  axis2ns43:UNKNOWN_ERROR
   
   
  DS 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


   
   
  http://ws.wso2.org/dataservice";>
 {}

 mongo_find

 
java.lang.NullPointerException
 
/testMongoService.dbs
http://ws.wso2.org/dataservice

N/A

testMongoService
 
 UNKNOWN_ERROR
  
   



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



On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando  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 
> wrote:
>
>> Hi,
>>
>> I'm trying to query a mongoDb, using the following data service.
>>
>> 
>>
>>   172.17.0.4:27017
>>   *TestDB*
>>   NONE
>>   PRIMARY
>>   true
>>
>>
>>   *db.TestCollection.findOne()*
>>
>>
>>   mongo find operation
>>   
>>
>>
>>   
>>
>> 
>>
>>
>> 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.
>>
>> http://www.w3.org/2003/05/soap-envelope";
>> xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
>>
>>   axis2ns38:UNKNOWN_ERROR
>>
>>
>>   DS 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
>>
>>
>> 
>>
>>
>>   http://ws.wso2.org/dataservice";>
>>  {}
>>
>>  mongo_find
>>  DS Fault Message: Unknown MongoDB
>> operation 'TestCollection.findOne'
>> DS Code: UNKNOWN_ERROR
>> 
>>  
>> /testMongoService.dbs
>> http://ws.wso2.org/dataservice
>> 
>> N/A
>>
>> testMongoService
>>  
>>  UNKNOWN_ERROR
>>   
>>
>> 
>>
>>
>> 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 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  wrote:

> Hi Anjana,
>
> I tried that too. :) It resulted in an NPE.
>
> http://www.w3.org/2003/05/soap-envelope";
> xmlns:axis2ns43="http://ws.wso2.org/dataservice";>
>
>   axis2ns43:UNKNOWN_ERROR
>
>
>   DS 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
>
> 
>
>
>   http://ws.wso2.org/dataservice";>
>  {}
>
>  mongo_find
>
>  
> java.lang.NullPointerException
>  
> /testMongoService.dbs
> http://ws.wso2.org/dataservice
> 
> N/A
>
> testMongoService
>  
>  UNKNOWN_ERROR
>   
>
> 
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando  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 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to query a mongoDb, using the following data service.
>>>
>>> 
>>>
>>>   172.17.0.4:27017
>>>   *TestDB*
>>>   NONE
>>>   PRIMARY
>>>   true
>>>
>>>
>>>   *db.TestCollection.findOne()*
>>>
>>>
>>>   mongo find operation
>>>   
>>>
>>>
>>>   
>>>
>>> 
>>>
>>>
>>> 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.
>>>
>>> http://www.w3.org/2003/05/soap-envelope";
>>> xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
>>>
>>>   axis2ns38:UNKNOWN_ERROR
>>>
>>>
>>>   DS 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
>>>
>>>
>>> 
>>>
>>>
>>>   http://ws.wso2.org/dataservice";>
>>>  {}
>>>
>>>  mongo_find
>>>  DS Fault Message: Unknown MongoDB
>>> operation 'TestCollection.findOne'
>>> DS Code: UNKNOWN_ERROR
>>> 
>>>  
>>>
>>> /testMongoService.dbs
>>> http://ws.wso2.org/dataservice
>>> 
>>> N/A
>>>
>>> testMongoService
>>>  
>>>  UNKNOWN_ERROR
>>>   
>>>
>>> 
>>>
>>>
>>> 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
>>
>
>


-- 
*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 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! :)


   
  172.17.0.4:27017
  TestDB
  NONE
  PRIMARY
  true
   
   
  TestCollection.findOne()
  
 
  
   
   
  mongo find operation
  
   
   
  
   


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  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 
> wrote:
>
>> Hi Anjana,
>>
>> I tried that too. :) It resulted in an NPE.
>>
>> http://www.w3.org/2003/05/soap-envelope";
>> xmlns:axis2ns43="http://ws.wso2.org/dataservice";>
>>
>>   axis2ns43:UNKNOWN_ERROR
>>
>>
>>   DS 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
>>
>> 
>>
>>
>>   http://ws.wso2.org/dataservice";>
>>  {}
>>
>>  mongo_find
>>
>>  
>> java.lang.NullPointerException
>>  
>> /testMongoService.dbs
>> http://ws.wso2.org/dataservice
>> 
>> N/A
>>
>> testMongoService
>>  
>>  UNKNOWN_ERROR
>>   
>>
>> 
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando  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 
>>> wrote:
>>>
 Hi,

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

 

   172.17.0.4:27017
   *TestDB*
   NONE
   PRIMARY
   true


   *db.TestCollection.findOne()*


   mongo find operation
   


   

 


 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.

 http://www.w3.org/2003/05/soap-envelope";
 xmlns:axis2ns38="http://ws.wso2.org/dataservice";>

   axis2ns38:UNKNOWN_ERROR


   DS 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


 


   http://ws.wso2.org/dataservice";>
  {}

  
 mongo_find
  DS Fault Message: Unknown MongoDB
 operation 'TestCollection.findOne'
 DS Code: UNKNOWN_ERROR
 
  

 /testMongoService.dbs
 http://ws.wso2.org/dataservice
 
 N/A

 testMongoService
  
  UNKNOWN_ERROR
   

 


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



 

[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  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! :)
>
> 
>
>   172.17.0.4:27017
>   TestDB
>   NONE
>   PRIMARY
>   true
>
>
>   TestCollection.findOne()
>   
>  
>   
>
>
>   mongo find operation
>   
>
>
>   
>
> 
>
> 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  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 
>> wrote:
>>
>>> Hi Anjana,
>>>
>>> I tried that too. :) It resulted in an NPE.
>>>
>>> http://www.w3.org/2003/05/soap-envelope";
>>> xmlns:axis2ns43="http://ws.wso2.org/dataservice";>
>>>
>>>   axis2ns43:UNKNOWN_ERROR
>>>
>>>
>>>   DS 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
>>>
>>> 
>>>
>>>
>>>   http://ws.wso2.org/dataservice";>
>>>  {}
>>>
>>>  mongo_find
>>>
>>>  
>>> java.lang.NullPointerException
>>>  
>>>
>>> /testMongoService.dbs
>>> http://ws.wso2.org/dataservice
>>> 
>>> N/A
>>>
>>> testMongoService
>>>  
>>>  UNKNOWN_ERROR
>>>   
>>>
>>> 
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando  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 
 wrote:

> Hi,
>
> I'm trying to query a mongoDb, using the following data service.
>
> 
>
>   172.17.0.4:27017
>   *TestDB*
>   NONE
>   PRIMARY
>   true
>
>
>   *db.TestCollection.findOne()*
>
>
>   mongo find operation
>   
>
>
>   
>
> 
>
>
> 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.
>
> http://www.w3.org/2003/05/soap-envelope";
> xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
>
>   axis2ns38:UNKNOWN_ERROR
>
>
>   DS 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
>
>
> 
>
>
>   http://ws.wso2.org/dataservice";>
>  {}
>
>  
> mongo_find
>  DS Fault M

[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:
http://tiles.apache.org

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

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

> Thanks Abimaran.
>
>
> On Mon, Dec 1, 2014 at 9:37 AM, Abimaran Kugathasan 
> 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  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 
>>>
>>> ___
>>> 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
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @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  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 
> 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! :)
>>
>> 
>>
>>   172.17.0.4:27017
>>   TestDB
>>   NONE
>>   PRIMARY
>>   true
>>
>>
>>   TestCollection.findOne()
>>   
>>  
>>   
>>
>>
>>   mongo find operation
>>   
>>
>>
>>   
>>
>> 
>>
>> 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  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 
>>> wrote:
>>>
 Hi Anjana,

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

 http://www.w3.org/2003/05/soap-envelope";
 xmlns:axis2ns43="http://ws.wso2.org/dataservice";>

   axis2ns43:UNKNOWN_ERROR


   DS 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

 


   http://ws.wso2.org/dataservice";>
  {}

  
 mongo_find

  
 java.lang.NullPointerException
  

 /testMongoService.dbs
 http://ws.wso2.org/dataservice
 
 N/A

 testMongoService
  
  UNKNOWN_ERROR
   

 


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



 On Mon, Dec 1, 2014 at 1:54 PM, Anjana Fernando 
 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 
> wrote:
>
>> Hi,
>>
>> I'm trying to query a mongoDb, using the following data service.
>>
>> 
>>
>>   172.17.0.4:27017
>>   *TestDB*
>>   NONE
>>   PRIMARY
>>   true
>>
>>
>>   *db.TestCollection.findOne()*
>>
>>
>>   mongo find operation
>>   
>>
>>
>>   
>>
>> 
>>
>>
>> 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.
>>
>> http://www.w3.org/2003/05/soap-envelope";
>> xmlns:axis2ns38="http://ws.wso2.org/dataservice";>
>>
>>   axis2ns38:UNKNOWN_ERROR
>>
>>
>>   DS 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
>> Defa

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

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

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

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

[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 
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 
> 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  *
>>
>> ___
>> 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  *
___
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 
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  wrote:
>
>> Thanks Abimaran.
>>
>>
>> On Mon, Dec 1, 2014 at 9:37 AM, Abimaran Kugathasan 
>> 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  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 

 ___
 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
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @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 
___
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  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
>> 
>> commented on [image: Bug] ESBJAVA-3345
>> 
>>  *[JMS] If a faulty proxy service is deleted, it is not removing from
>> the management UI* 
>>
>> 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 
> 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

abc123

This "abc123" value is taken from a property.

I used enrich mediator to add the element as follows



 

 


 

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

(http://ws.apache.org/ns/synapse";>)

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

 

http://ws.apache.org/ns/synapse";>
  

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

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




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

> Hi,
>
> I want to add following XML element as a child to the payload body
>
> abc123
>
> This "abc123" value is taken from a property.
>
> I used enrich mediator to add the element as follows
>
> 
> 
>  
>
>  
>  property="deliverystatus">
> 
>  
>
> and it sets the element as expected to the body (with default namespace)
>
> (http://ws.apache.org/ns/synapse
> ">)
>
> Then I tired to set value in to this element (taking from another property)
>
>  
>  property="message1">
> http://ws.apache.org/ns/synapse";>
>   
>
> 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/ 
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  wrote:

> Hi Malintha,
>
> You can get rid of the default namespace by adding an empty namespace
> i.e
> 
> 
> 
>

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
 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 
> wrote:
>
>> Hi,
>>
>> I want to add following XML element as a child to the payload body
>>
>> abc123
>>
>> This "abc123" value is taken from a property.
>>
>> I used enrich mediator to add the element as follows
>>
>> 
>> 
>>  
>>
>>  
>> > property="deliverystatus">
>> 
>>  
>>
>> and it sets the element as expected to the body (with default namespace)
>>
>> (http://ws.apache.org/ns/synapse
>> ">)
>>
>> Then I tired to set value in to this element (taking from another
>> property)
>>
>>  
>> > property="message1">
>> http://ws.apache.org/ns/synapse";>
>>   
>>
>> 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/ 
> 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/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

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

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

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


Re: [Dev] 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  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/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
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  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  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/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

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

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

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


Re: [Dev] 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  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 
>> 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)


temval















Thanks
Senduran

On Mon, Dec 1, 2014 at 6:49 PM, Malintha Adikari  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
>> 
>> 
>> 
>>
>
> 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
>  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 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to add following XML element as a child to the payload body
>>>
>>> abc123
>>>
>>> This "abc123" value is taken from a property.
>>>
>>> I used enrich mediator to add the element as follows
>>>
>>> 
>>> 
>>>  
>>>
>>>  
>>> >> property="deliverystatus">
>>> 
>>>  
>>>
>>> and it sets the element as expected to the body (with default namespace)
>>>
>>> (http://ws.apache.org/ns/synapse
>>> ">)
>>>
>>> Then I tired to set value in to this element (taking from another
>>> property)
>>>
>>>  
>>> >> property="message1">
>>> http://ws.apache.org/ns/synapse";>
>>>   
>>>
>>> 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/ 
>> 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/ 
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  wrote:

> Hi Malintha,
>
> can you try the following and let me know (btw  I tried with ESB 4.8.1)
>
> 
> temval
> 
>
>  type="STRING">
>
> 
>  property="deliverystatus">
> 
> 
>
>
> 
> 
>  xpath="//deliverystatus/text()">
> 
>
> Thanks
> Senduran
>
> On Mon, Dec 1, 2014 at 6:49 PM, Malintha Adikari 
> 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
>>> 
>>> 
>>> 
>>>
>>
>> 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
>>  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 
>>> wrote:
>>>
 Hi,

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

 abc123

 This "abc123" value is taken from a property.

 I used enrich mediator to add the element as follows

 
 
  

  
 >>> property="deliverystatus">
 
  

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

 (http://ws.apache.org/ns/synapse
 ">)

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

  
 >>> property="message1">
 http://ws.apache.org/ns/synapse";>
   

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

*4.3.1*

[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  wrote:

> How do I do that?
>
> On Mon, Dec 1, 2014 at 7:04 PM, Nuwan Wimalasekara 
> 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  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/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



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

> Edit the root product pom at [1] and set the test framework version as
> below.
>
> *4.3.1*
>
> [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  wrote:
>
>> How do I do that?
>>
>> On Mon, Dec 1, 2014 at 7:04 PM, Nuwan Wimalasekara 
>> 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  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/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
 *http://blog.afkham.org* 
 *twitter: **http://twitter.com/afkham_azeez*
 
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

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


>>>
>>>
>>> --
>>> 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/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> 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/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

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

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

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


Re: [Dev] 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  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  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 
>> 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 
>>> 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 
 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 
> 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 
>> 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 >> > 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 
> wrote:
>
>> AFAIK only DSS is going on chunk-13. @Chanika, can you
>> confirm please?
>>
>>>

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 
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  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 
>> wrote:
>>
>>> more details »
>>> 
>>> 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
>>> 
>>> )
>>> *Video call*
>>> https://plus.google.com/hangouts/_/wso2.com/dinusha
>>> 
>>> *Calendar*
>>> Nuwan Dias
>>> *Who*
>>> •
>>> Dinusha Senanayaka- organiser
>>> •
>>> Minoli Perera
>>> •
>>> Nuwan Dias
>>> •
>>> Sumedha Rubasinghe
>>> •
>>> Ruwan Yatawara
>>> •
>>> Binali Perera
>>> •
>>> dev@wso2.org
>>>
>>> Going?   *Yes
>>> 
>>> - Maybe
>>> 
>>> - No
>>> *
>>> more options »
>>> 
>>>
>>> Invitation from Google 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/

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

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 
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 
> 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  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 
>>> wrote:
>>>
 more details »
 
 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
 
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/dinusha
 
 *Calendar*
 Nuwan Dias
 *Who*
 •
 Dinusha Senanayaka- organiser
 •
 Minoli Perera
 •
 Nuwan Dias
 •
 Sumedha Rubasinghe
 •
 Ruwan Yatawara
 •
 Binali Perera
 •
 dev@wso2.org

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

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


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

  

abc

123

0.1
xyz

   


pqr

456

0.01
qwe

   


zxy

789

0.45
lmn

   




On Mon, Dec 1, 2014 at 6:20 PM, Senduran Balasubramaniyam  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  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/ 
> 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 
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 
> 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 
>> 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 
>>> 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 >>> > 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.conn

[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. 
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Nov 28, 2014 at 1:06 PM, Roshan Wijesena  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 
> 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  *
>>
>> ___
>> 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 *
> 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  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


  
  
___
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  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
>
> 
>
___
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  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) {
List headers = new ArrayList();

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  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 *
___
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  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
>
> 
> 
> You must use https:// to access this API
> endpoint
> 
>
>
> *synapse configuration *
>
> http://ws.apache.org/ns/synapse";>
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
>  expression="$func:slideshow_id" />
>  expression="$func:slideshow_url" />
>
> 
> 
>  scope="axis2"/>
>uri-template="
> https://www.slideshare.net/api/2/get_slideshow?api_key={uri.var.api_key}&ts={uri.var.ts}&hash={uri.var.hash}&slideshow_id={uri.var.slideshow_id}&slideshow_url={uri.var.slideshow_url}";
> />
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
>
>
>
>
>
>
>
> .
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev