[Dev] Start RC4 build Today at 8.00 PM

2013-08-27 Thread Shameera Rathnayaka
Hi All,

RC4 build will be started Today at 8.00 PM, RM Please make sure all commits
that need to go for that build, have been committed before Today at 8.00 PM.

Thanks,
Shameera.

-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT
apache.org
*
*phone:  +9471 922 1454*
*
*
*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] After branching build is failing on windows - due to long pathnames

2013-08-27 Thread Krishantha Samaraweera
I didn't have much time to go though this issue. Report generation happens
at the end of test execution and doesn't break any thing. So you can simple
comment the reporting module and proceed.

Let me know, if this issue blocking your work and really urgent to get it
fixed.

BTW, did you get any time to check whether this is maven exec plugin issue?
I need to find windows machine to check this.

Thanks
Krishantha.


On Tue, Aug 27, 2013 at 11:47 AM, Lasith Chandrasekara wrote:

> Hi Krishantha,
>
> Can we look into this?
>
> -Lasith.
>
>
> On Tue, Aug 20, 2013 at 11:53 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Will look into this.
>>
>> Thanks,
>> Krishatha.
>>
>>
>> On Tue, Aug 20, 2013 at 12:11 PM, Senaka Fernando wrote:
>>
>>>  Hi Krishantha,
>>>
>>> Can you please have a look. I don't think that this is because the path
>>> in the error is wrong, but because of some parameters that gets passed in
>>> into this report generation thing.
>>>
>>> Hi Lasith,
>>>
>>> Please comment out the report generation piece (this is used for code
>>> coverage) and build the rest for the moment. We can commit that change
>>> until Krishantha finds time to fix it.
>>>
>>> Thanks,
>>> Senaka.
>>>
>>>
>>> On Tue, Aug 20, 2013 at 1:39 AM, Lasith Chandrasekara 
>>> wrote:
>>>
 Hi,

 I am getting following error when building branch on Windows.
 It seems after branching file name is too long and Windows can't run
 java for that long file name.

 -Lasith.

 [INFO]
 [INFO]
 
 [INFO] Building Integration Test Reporting 4.6.0
 [INFO]
 
 [INFO]
 [INFO] --- incremental-build-plugin:1.3:incremental-build (default) @
 org.wso2.carbon.registry.integration.reports ---
 [INFO] Verifying module descriptor ...
 [INFO] Pom descriptor modification detected.
 [INFO] Deleting
 C:\svn\tb\platform\products\greg\4.6.0\modules\integration\registry\reports\target
 [INFO]
 [INFO] --- maven-clean-plugin:2.4.1:clean (auto-clean) @
 org.wso2.carbon.registry.integration.reports ---
 [INFO] Deleting
 C:\svn\tb\platform\products\greg\4.6.0\modules\integration\registry\reports\target
 [INFO]
 [INFO] --- maven-dependency-plugin:2.1:copy-dependencies
 (copy-emma-dependencies) @ org.wso2.carbon.registry.integration.reports ---
 [INFO] Copying emma-2.1.5320.jar to
 C:\svn\tb\platform\products\greg\4.6.0\modules\integration\registry\reports\target\emma\emma-2.1.5320.jar
 [INFO]
 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
 org.wso2.carbon.registry.integration.reports ---
 [INFO] Installing
 C:\svn\tb\platform\products\greg\4.6.0\modules\integration\registry\reports\pom.xml
 to
 C:\Users\Lasith\.m2\repository\org\wso2\governance\org.wso2.carbon.registry.integrat
 ion.reports\4.6.0\org.wso2.carbon.registry.integration.reports-4.6.0.pom
 [INFO]
 [INFO] --- exec-maven-plugin:1.2.1:exec (my-exec) @
 org.wso2.carbon.registry.integration.reports ---
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] Registry TestNG Test Module ... SUCCESS
 [8.351s]
 [INFO] Registry Resources TestNG Test Module . SUCCESS
 [7.254s]
 [INFO] Registry Metadata TestNG Test Module .. SUCCESS
 [3.929s]
 [INFO] Registry Extensibility TestNG Test Module . SUCCESS
 [3.793s]
 [INFO] Registry JIRA TestNG Test Module .. SUCCESS
 [3.706s]
 [INFO] Registry Search and Versioning TestNG Test Module . SUCCESS
 [3.537s]
 [INFO] Registry Permissions TestNG Test Module ... SUCCESS
 [3.894s]
 [INFO] Registry Governance API TestNG Test Module  SUCCESS
 [22.649s]
 [INFO] Registry TestNG Test Module ... SUCCESS
 [3.286s]
 [INFO] Registry UI Test Module ... SUCCESS
 [2.892s]
 [INFO] Integration Test Reporting  FAILURE
 [0.950s]
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:05.472s
 [INFO] Finished at: Tue Aug 20 01:27:06 IST 2013
 [INFO] Final Memory: 56M/1140M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (my-exec) on project
 org.wso2.carbon.registry.integration.reports: Command execution failed.
 *Cannot run program
  "java" (in directory
 "C:\svn\tb\platform\products\greg\4.6.0\modules\integration\re

Re: [Dev] [DEV]svn commit r181648 breaks security scenarios.

2013-08-27 Thread Kasun Gajasinghe
Hi Nalin,

I had a look at the test case. It seems you are doing a UT secured SOAP
requests?


On Tue, Aug 27, 2013 at 11:38 AM, Nalin Chandraratne  wrote:

> Hi Geeth,
>
> Below commit result in security scenario failures in ESB 4.8.0.
>
> Please fix this ASAP as this is critical to the M2 release.
>
>
> Author: ge...@wso2.com
> Date: Fri Aug 16 23:37:36 2013
> New Revision: 181648
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=181648
>
> Log:
> Fixing https://wso2.org/jira/browse/WSAS-1473
>
> Modified:
>carbon/platform/branches/4.2.0/components/security/org.
> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/
> POXSecurityHandler.java
>
> Modified: carbon/platform/branches/4.2.0/components/security/org.
> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/
> POXSecurityHandler.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.2.0/components/security/org.wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java?rev=181648&r1=181647&r2=181648&view=diff
> 
> ==
> --- carbon/platform/branches/4.2.0/components/security/org.
> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java
>(original)
> +++ carbon/platform/branches/4.2.0/components/security/org.
> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java
>Fri Aug 16 23:37:36 2013
> @@ -94,7 +94,7 @@
>
>   //this handler only intercepts
>  if (!(msgCtx.isDoingREST() || isSOAPWithoutSecHeader(msgCtx)) ||
> -   !msgCtx.getIncomingTransportName().equals("https") ||
> (basicAuthHeader == null)) {
> +   !msgCtx.getIncomingTransportName().equals("https")) {
>  return InvocationResponse.CONTINUE;
>  }
>
>
> Below exception is thrown when running UT security scenario.
>
> org.apache.axis2.AxisFault: Transport error: 401 Error: OK
>   at 
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>   at 
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>   at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>   at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>   at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>   at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>   at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>   at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>   at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
>   at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
>   at 
> org.wso2.carbon.automation.utils.axis2client.SecureAxisServiceClient.sendReceive(SecureAxisServiceClient.java:136)
>   at 
> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredRequest(SecureServiceClient.java:72)
>   at 
> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredStockQuoteRequest(SecureServiceClient.java:43)
>   at 
> org.wso2.carbon.esb.proxyservice.test.secureProxy.SecurityTransformationProxyForPolicy2BackEndTestCase.securityPolicy1(SecurityTransformationProxyForPolicy2BackEndTestCase.java:80)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>   at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
>   at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
>   at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
>   at 
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
>   at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
>   at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
>   at org.testng.TestRunner.privateRun(TestRunner.java:757)
>   at org.testng.TestRunner.run(TestRunner.java:608)
>   at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>   at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
>   at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
>   at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>   at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWo

Re: [Dev] [DEV]svn commit r181648 breaks security scenarios.

2013-08-27 Thread Nalin Chandraratne
Yes, Simply securing the proxy with the UTOverTransport policy.


On Tue, Aug 27, 2013 at 1:30 PM, Kasun Gajasinghe  wrote:

> Hi Nalin,
>
> I had a look at the test case. It seems you are doing a UT secured SOAP
> requests?
>
>
> On Tue, Aug 27, 2013 at 11:38 AM, Nalin Chandraratne wrote:
>
>> Hi Geeth,
>>
>> Below commit result in security scenario failures in ESB 4.8.0.
>>
>> Please fix this ASAP as this is critical to the M2 release.
>>
>>
>> Author: ge...@wso2.com
>> Date: Fri Aug 16 23:37:36 2013
>> New Revision: 181648
>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=181648
>>
>> Log:
>> Fixing https://wso2.org/jira/browse/WSAS-1473
>>
>> Modified:
>>carbon/platform/branches/4.2.0/components/security/org.
>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>> carbon/security/pox/POXSecurityHandler.java
>>
>> Modified: carbon/platform/branches/4.2.0/components/security/org.
>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>> carbon/security/pox/POXSecurityHandler.java
>> URL:
>> http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.2.0/components/security/org.wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java?rev=181648&r1=181647&r2=181648&view=diff
>> 
>> ==
>> --- carbon/platform/branches/4.2.0/components/security/org.
>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>> carbon/security/pox/POXSecurityHandler.java(original)
>> +++ carbon/platform/branches/4.2.0/components/security/org.
>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>> carbon/security/pox/POXSecurityHandler.javaFri Aug 16 23:37:36 2013
>> @@ -94,7 +94,7 @@
>>
>>   //this handler only intercepts
>>  if (!(msgCtx.isDoingREST() || isSOAPWithoutSecHeader(msgCtx)) ||
>> -   !msgCtx.getIncomingTransportName().equals("https") ||
>> (basicAuthHeader == null)) {
>> +   !msgCtx.getIncomingTransportName().equals("https")) {
>>  return InvocationResponse.CONTINUE;
>>  }
>>
>>
>> Below exception is thrown when running UT security scenario.
>>
>> org.apache.axis2.AxisFault: Transport error: 401 Error: OK
>>  at 
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>>  at 
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>>  at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>  at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>  at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>>  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>  at 
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>>  at 
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>>  at 
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>  at 
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
>>  at 
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
>>  at 
>> org.wso2.carbon.automation.utils.axis2client.SecureAxisServiceClient.sendReceive(SecureAxisServiceClient.java:136)
>>  at 
>> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredRequest(SecureServiceClient.java:72)
>>  at 
>> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredStockQuoteRequest(SecureServiceClient.java:43)
>>  at 
>> org.wso2.carbon.esb.proxyservice.test.secureProxy.SecurityTransformationProxyForPolicy2BackEndTestCase.securityPolicy1(SecurityTransformationProxyForPolicy2BackEndTestCase.java:80)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>  at 
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>  at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
>>  at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
>>  at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
>>  at 
>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
>>  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
>>  at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
>>  at org.testng.TestRunner.privateRun(TestRunner.java:757)
>>  at org.testng.TestRunner.run(TestRunner.java:608)
>>  at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>>  at org.testng.SuiteRunner.runSequentially(SuiteRunn

Re: [Dev] "com.hazelcast.core.OperationTimeoutException: [CONCURRENT_MAP_CONTAINS_KEY] Redo threshold[90] exceeded!"

2013-08-27 Thread Evanthika Amarasiri
I see the below set of logs being printed continuously with the new
Hazelcast jar on one of the *Manager* nodes.

TID: [0] [AS] [2013-08-27 12:38:46,641]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,651]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,661]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,753]  INFO
{com.hazelcast.partition.PartitionService}
-  [192.168.18.3]:4500 [as.qa.420.domain] Initializing cluster partition
table first arrangement... {com.hazelcast.partition.PartitionService}
 TID: [0] [AS] [2013-08-27 12:38:46,763]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,773]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,783]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,793]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,803]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,814]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
TID: [0] [AS] [2013-08-27 12:38:46,824]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}
:
:
TID: [0] [AS] [2013-08-27 12:38:46,976]  INFO
{com.hazelcast.partition.PartitionService} -  [192.168.18.3]:4500
[as.qa.420.domain] Initializing cluster partition table first
arrangement... {com.hazelcast.partition.PartitionService}


Evanthika Amarasiri
Senior Technical Lead - Quality Assurance
Mobile: +94773125935
*
*
wso2.com Lean Enterprise Middleware


On Mon, Aug 26, 2013 at 3:27 PM, Afkham Azeez  wrote:

> We are testing with Hazelcast 3.0 right now. The following articles
> highlight the improvements in Hazelcast 3.0.
>
>
> See:
> http://blog.hazelcast.com/blog/2013/06/03/whats-new-in-hazelcast3/
> and
>
> http://blog.hazelcast.com/blog/2013/06/13/comparing-hazelcast-3-serialization-methods-with-kryo-serialization/
> and
> http://www.hazelcast.com/docs/latest/manual/single_html/#MigratingTo3
>
>
> On Mon, Aug 26, 2013 at 11:43 AM, Afkham Azeez  wrote:
>
>> Shall we try upgrading to Hazelcast 3.0?
>>
>>
>> On Sun, Aug 25, 2013 at 10:08 AM, Sameera Jayasoma wrote:
>>
>>> Hi Azeez,
>>>
>>> We've seen this error time to time. We saw this error yesterday as well.
>>> We had to restart the server to get rid of it. Please let us know if you
>>> have a clue here.
>>>
>>> https://wso2.org/jira/browse/CARBON-14287
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> --
>>> Sameera Jayasoma,
>>> Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> *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
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *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
> blog: **http://blog.afkham.org* 

[Dev] WSO2 Data Mapper - Data reading and writing

2013-08-27 Thread Gayan Yalpathwala
Hi,

As the initial step, we had to read data from JSON and CSV using selectors.
Selector format was decided to be the following.

> employee.firstname
> customers.customer.account.number


Following libraries were used to read data by converting the selector to
jsonpath and CSV header.

*Axiom* to read XML

*Jayway jsonpath*

elementPath = "$.." + elementPath;

nodesList = new ArrayList();

 nodesList = JsonPath.read(jsonString, elementPath); //elementPath-jsonpath

*Javacsv 2.0*

csvReader = new CsvReader(inputFile.getCanonicalPath());

csvReader.readHeaders();

inputValueList = new ArrayList();
while(csvReader.readRecord()){

inputValueList.add(csvReader.get(elementPath)); //elementPath-CSV header

 }

In an intermediate step, processed data is stored in a hashmap and
therefore I had to write data from the hashmap to different data types
(XML, JSON, CSV). Following is what I have tried.

*DOM* as a solution to create output XML.

DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();

 DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
 doc = docBuilder.newDocument();

Iterator> iterator = map.entrySet().iterator();
int i=0;
while (iterator.hasNext()) {

Map.Entry pairs = (Map.Entry)iterator.next();
//Set root node
if(i==0){

Element rootElement =
doc.createElement(pairs.getKey().toString().split("\\.")[0]);
doc.appendChild(rootElement);
mappedNodes.put(pairs.getKey().toString().split("\\.")[0], rootElement);

}
chooseNode(pairs.getKey().toString(), pairs.getValue().toString());
i++;

}

TransformerFactory transformerFactory = TransformerFactory.newInstance();

 Transformer transformer = transformerFactory.newTransformer();
 DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(file);
transformer.transform(source, result);

*Google Gson* as a JSON builder.

baseNode = new HashMap();

List> firstNode = new ArrayList>();

baseNode.put(key.substring(0, key.indexOf(".")), firstNode); //first node

if(getNode instanceof List)

((List>>) getNode).add(list);

else if(getNode instanceof Map)

((Map) getNode).put(lastNode,
(value.equals(""))?list:value);

Gson gson = new GsonBuilder().setPrettyPrinting().create();

String jsonString = gson.toJson(baseNode);

*Open-csv *CsvWriter to write CSV with header.

 writer = new CSVWriter(new FileWriter(file));
Set keySet = map.keySet();
List keyList = new ArrayList();
keyList.addAll(keySet);
//Csv header
List csvHeader = new ArrayList();
Iterator it = keySet.iterator();
while ( it.hasNext() ){

 csvHeader.add(it.next());

 }
writer.writeNext(csvHeader.toArray(new String[csvHeader.size()]));
//Csv data
List csvData = new ArrayList();
for(int i=0; i < map.get( keySet.iterator().next() ).size() ; i++){

String[] stringArray = new String[keyList.size()];
//iterate over keyList
for(int j=0; jhttp://wso2.com
lean.enterprise.middleware

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


[Dev] Server Startup Error - Could not initialize class org.apache.log4j.LogManager

2013-08-27 Thread Ayashkantha Ramasinghe
Hi,

I am getting this error while starting server(latest pack),

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.log4j.LogManager
at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
at
org.apache.cassandra.service.AbstractCassandraDaemon.(AbstractCassandraDaemon.java:104)
at
org.wso2.carbon.cassandra.server.CassandraServerController.(CassandraServerController.java:36)
at
org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent.activate(CassandraServerDSComponent.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.identity.authentication.internal.AuthenticationServiceComponent.activate(AuthenticationServiceComponent.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:73)
at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(

Re: [Dev] Server Startup Error - Could not initialize class org.apache.log4j.LogManager

2013-08-27 Thread Inosh Goonewardena
Which server you are referring to?


On Tue, Aug 27, 2013 at 4:20 PM, Ayashkantha Ramasinghe <
ayashkan...@wso2.com> wrote:

> Hi,
>
> I am getting this error while starting server(latest pack),
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.log4j.LogManager
> at
> org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
> at
> org.apache.cassandra.service.AbstractCassandraDaemon.(AbstractCassandraDaemon.java:104)
> at
> org.wso2.carbon.cassandra.server.CassandraServerController.(CassandraServerController.java:36)
> at
> org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent.activate(CassandraServerDSComponent.java:100)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.identity.authentication.internal.AuthenticationServiceComponent.activate(AuthenticationServiceComponent.java:57)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRe

[Dev] WSO2 Data Mapper - Converting XSD and JSON schema to Avro schema

2013-08-27 Thread Gayan Yalpathwala
Hi,

I had to come up with a solution to derive an Avro schema when the input is
XSD or JSON schema. As a solution, I have tried the following process to
convert XSD to AVRO.

   1. XSD to POJO generation
   2. POJO to Avro schema generation

*XSD to POJO generation*
Runtime execution of xjc was used.

String xjcCommand = "xjc -d src/main/java/temp/tempPojo -p gen
resource/employee.xsd";
Process child = Runtime.getRuntime().exec(xjcCommand);

*POJO to Avro schema generation*
Java reflection was used.

Schema s = ReflectData.get().getSchema(Employee.class);

For JSON schema, following is the implementation.

*JSON schema to Avro schema*

JCodeModel codeModel = new JCodeModel();

URL source = new File("./resource/mySchema.json").toURI().toURL();

new SchemaMapper().generate(codeModel, "GenPojo", "com.example", source);

codeModel.build(new File("output"));

*
*
WDYT about performing a double conversion like this? Do you find a better
way?

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

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


[Dev] {Blocker/CarbonCore/AM} NPE @ core/caching implimentaion

2013-08-27 Thread Vijayaratha Vijayasingam
Hi all;
We are facing a severe blocker in APIM 4.2.0 based product..
When we publish an API from publisher to gateway following error[1] is
thrown and APIs are not deployed in tenant space.

*what we do is*

In the Admin service (RESTAPI admin) we set tenant domain explicitly and
creating  CarbonContext  using  getThreadLocalCarbonContext(). (Because
there is an issue at AbstarctAdmin service, where it creates CarbonContext
using  PrivilegedCarbonContext.getCurrentContext, and that always contains
SuperTenant domain in  it. This was discussed at the last release time and
as a solution  we overwrites that method from our end to use
PrivilegedCarbonContext.getThreadLocalCarbonContext() )

Our sample AdminService code is;

public boolean addApiForTenant(String apiData, String tenantDomain) throws
APIException {
try {
PrivilegedCarbonContext.startTenantFlow();
PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,
  true);
boolean status = addApiFromString(apiData);
return status;
} finally {
PrivilegedCarbonContext.endTenantFlow();
}
}

//overwriting this
protected ConfigurationContext getConfigContext() {
.
PrivilegedCarbonContext carbonContext =
 PrivilegedCarbonContext.getThreadLocalCarbonContext();
String domain = carbonContext.getTenantDomain();
if (domain != null &&
!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(domain)) {
System.out.println(" Tenant domain *" +domain);
return TenantAxisUtils.getTenantConfigurationContext(domain,
mainConfigContext);
.
}

Can anyone point us, what we do wrong here?

Thanks..


[1]
2013-08-27 16:55:49,126]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2013-08-27 16:55:49,125+0530]
 Tenant domain *test.com
[2013-08-27 16:55:49,152] ERROR - EventAxis2ConfigurationContextObserver
Error in setting tenant information
java.lang.NullPointerException: Tenant domain has not been set in
CarbonContext
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
at
org.wso2.carbon.user.core.authorization.PermissionTree.getPermissionTreeCache(PermissionTree.java:91)
at
org.wso2.carbon.user.core.authorization.PermissionTree.updatePermissionTree(PermissionTree.java:905)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isRoleAuthorized(JDBCAuthorizationManager.java:117)
at
org.wso2.carbon.event.core.internal.CarbonEventBroker.initializeTenant(CarbonEventBroker.java:97)
at
org.wso2.carbon.event.core.internal.builder.EventAxis2ConfigurationContextObserver.creatingConfigurationContext(EventAxis2ConfigurationCont
extObserver.java:30)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.doPreConfigContextCreation(TenantAxisUtils.java:507)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:302)
at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.getConfigContext(RestApiAdmin.java:750)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.getAxisConfig(RestApiAdmin.java:731)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.getLock(RestApiAdmin.java:713)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.getApiByName(RestApiAdmin.java:417)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.getApiForTenant(RestApiAdmin.java:445)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.serv

[Dev] [API Manager] Class loading issue after adding multi profiles

2013-08-27 Thread Sanjeewa Malalgoda
Hi All,
I'm getting following error after creating new profiles. I added features
available in api manager default profile and other necessary features.
Default profile working as expected. Cannot diagnose this issue further
because run time did not initialized properly. So we cannot use OSGI
commands here. In logs i can see some class loading issues. But i can see
necessary jar files available inside distribution and also those jar files
there in profile configuration/org.eclipse.equinox.simpleconfigurator/
bundles.info file. Also i noticed that CarbonMemoryAppender class is no
more there in org.wso2.carbon.logging.appender jar. Please point me what we
missed here.


Thanks,
Sanjeewa.


log4j:ERROR Could not instantiate class
[org.wso2.carbon.utils.logging.TenantAwarePatternLayout].
java.lang.ClassNotFoundException:
org.wso2.carbon.utils.logging.TenantAwarePatternLayout
 at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
 at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
at
org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)
 at
org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:641)
 at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
 at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
 at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
at org.apache.log4j.LogManager.(LogManager.java:122)
 at org.apache.log4j.Logger.getLogger(Logger.java:104)
at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
 at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
 at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
 at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at
org.wso2.carbon.h2.osgi.console.H2DatabaseManager.(H2DatabaseManager.java:40)
 at
org.wso2.carbon.h2.osgi.H2ConsoleServiceActivator.start(H2ConsoleServiceActivator.java:30)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
log4j:ERROR Could not instantiate class
[org.wso2.carbon.logging.appender.CarbonMemoryAppender].
java.lang.Cla

Re: [Dev] AS integration tests are heavily broken

2013-08-27 Thread Krishantha Samaraweera
Excellent!! Lets see the test results with RC4 build

Thanks,
Krishantha.


On Tue, Aug 27, 2013 at 12:55 AM, Kasun Gajasinghe  wrote:

> All the test failures have been fixed.
>
> Thanks.
>
>
> On Sun, Aug 25, 2013 at 10:08 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Now all failures count has reduced to 7.
>>
>> Failed tests:
>> InvokeSerWithSec(org.wso2.carbon.integration.test.helloworldsampleservice.HelloWorldSampleTestCase):
>> Error in obtaining a token
>>
>> testWebApplicationStop(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationStateChangingTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> testDeleteWebApplication(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationStateChangingTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> testWebApplicationDeploymentAndAccessibility(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationReloadingTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> testDeleteWebApplication(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationReloadingTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> testWebApplicationStop(org.wso2.carbon.integration.test.webapp.spring.SpringApplicationDeploymentTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> destroy(org.wso2.carbon.integration.test.webapp.spring.SpringApplicationDeploymentTestCase):
>> Exception occurred while trying to invoke service method
>> getPagedWebappsSummary
>>
>> Tests run: 220, Failures: 7, Errors: 0, Skipped: 5
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Sat, Aug 24, 2013 at 7:43 PM, Supun Malinga  wrote:
>>
>>> Hi Fixed,
>>> Please take an svn up in
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/platform-integration/test-automation-framework/4.2.0/org.wso2.carbon.automation.api
>>> .
>>>
>>> thanks,
>>>
>>>
>>> On Sat, Aug 24, 2013 at 7:27 PM, Supun Malinga  wrote:
>>>
 Hi,

 Only the faulty  app case is failing. I was managed to fix that error
 by putting a null check, but then the faulty assertion failed. Seems there
 is no faulty apps in the system. I'll investigating further.

 thanks,


 On Sat, Aug 24, 2013 at 6:49 PM, Sagara Gunathunga wrote:

> Supun,
>
> Can you please take a look ? it seems something broken in webapp mgt
> stub ?
>
>
> Thanks !
>
>
> On Sat, Aug 24, 2013 at 6:14 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> App Server webapp management test cases are heavily broken.
>> Can someone please have a look.
>>
>> I'm getting the same error on my local machine and ec2 builder
>> machine.
>>
>> Tests run: 236, Failures: 35, Errors: 0, Skipped: 43
>>
>> Failed tests:   webAppsDeploymentTest(org.wso2.carbon.integration.
>> test.sampleservices.virtualdirectorylisting.VirtualDirectoryListingTestCase):
>> org.wso2.carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.
>> getWebapps()[Lorg/wso2/carbon/webapp/mgt
>> /stub/types/carbon/WebappMetadata;
>>   testWebApplicationDeployment(org.wso2.carbon.integration.test.
>> webapp.concurrency.SingleWebAppUploaderTestCase): org.wso2.carbon.
>> webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>   webApplicationDeploymentTest(org.wso2.carbon.integration.test.
>> webapp.classloading.CXFWebApplicationTestCase): org.wso2.carbon.
>> webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>   
>> invokeService(org.wso2.carbon.integration.test.mtomservice.MTOMTestCase):
>> AxisFault while getting response :The service cannot be found forthe 
>> endpoint reference (EPR)
>> http://localhost:9763/services/MTOMSample
>>   webAppDelete(org.wso2.carbon.integration.test.sampleservices.
>> virtualdirectorylisting.VirtualDirectoryListingTestCase): org.wso2.
>> carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>   
>> testCleanup(org.wso2.carbon.integration.test.webapp.concurrency.SingleWebAppUploaderTestCase):
>> org.wso2.carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.
>> getWebapps()[Lorg/wso2/carbon/webapp/mgt
>> /stub/types/carbon/WebappMetadata;
>>
>>
>> Thanks,
>> Krishantha.
>>
>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


 --

[Dev] [API Manager 1.4] Twitter Search Sample's scripts are not executable by default

2013-08-27 Thread Nirmal Fernando
Hi All,

Noticed $subject.

wso2am-1.4.0/samples/TwitterSearch$ ls -al APIPopulator.sh
-rw-r--r-- 1 nirmal nirmal 944 May 23 01:04 APIPopulator.sh

I'm not sure about the other sample scripts too. Please fix.

-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [API-M 1.4] Document asks me to subscribe using Bronze tier, but it is not listed

2013-08-27 Thread Nirmal Fernando
http://docs.wso2.org/display/AM140/Access+Twitter%27s+Search+Using+an+API

I can see only Gold in tiers.

-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API Manager 1.4] Twitter Search Sample's scripts are not executable by default

2013-08-27 Thread Nirmal Fernando
Same for YoutubeFeeds sample.


On Wed, Aug 28, 2013 at 12:34 AM, Nirmal Fernando  wrote:

> Hi All,
>
> Noticed $subject.
>
> wso2am-1.4.0/samples/TwitterSearch$ ls -al APIPopulator.sh
> -rw-r--r-- 1 nirmal nirmal 944 May 23 01:04 APIPopulator.sh
>
> I'm not sure about the other sample scripts too. Please fix.
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>


-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [API-M 1.4] Document asks me to subscribe using Bronze tier, but it is not listed

2013-08-27 Thread Lahiru Sandaruwan
Did you add 'Bronze' under Tier Availability while creating?

Thanks.


On Wed, Aug 28, 2013 at 12:39 AM, Nirmal Fernando  wrote:

> http://docs.wso2.org/display/AM140/Access+Twitter%27s+Search+Using+an+API
>
> I can see only Gold in tiers.
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit
> https://groups.google.com/a/wso2.com/groups/opt_out.
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [API-M 1.4] Document asks me to subscribe using Bronze tier, but it is not listed

2013-08-27 Thread Nirmal Fernando
This is the sample, I am invoking.


On Wed, Aug 28, 2013 at 12:58 AM, Lahiru Sandaruwan wrote:

> Did you add 'Bronze' under Tier Availability while creating?
>
> Thanks.
>
>
> On Wed, Aug 28, 2013 at 12:39 AM, Nirmal Fernando  wrote:
>
>> http://docs.wso2.org/display/AM140/Access+Twitter%27s+Search+Using+an+API
>>
>> I can see only Gold in tiers.
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit
>> https://groups.google.com/a/wso2.com/groups/opt_out.
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [API-M 1.4] JSON response received on an addition of a documentation to an API, doesn't make sense

2013-08-27 Thread Nirmal Fernando
wso2am-1.4.0/samples/YoutubeFeeds$ curl -X POST -b cookies
http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag -d
"action=addDocumentation&mode=&provider=provider1&apiName=TwitterSearch&version=1.0.0&docName=doc1&docType=how
to&sourceType=inline&docUrl=&summary=testing&docLocation="
*{"error" : false}
*
I saw that the document is successfully added to the API though.

And I invoked the same command again, but I still see the same useless
response, while my back-end has the correct exception.


[2013-08-28 00:59:26,100] ERROR - APIProviderHostObject Error occurred
while adding the document- doc1
org.wso2.carbon.apimgt.api.APIManagementException: Failed to add
documentation
at
org.wso2.carbon.apimgt.impl.AbstractAPIManager.handleException(AbstractAPIManager.java:621)
at
org.wso2.carbon.apimgt.impl.APIProviderImpl.createDocumentation(APIProviderImpl.java:1282)
at
org.wso2.carbon.apimgt.impl.APIProviderImpl.addDocumentation(APIProviderImpl.java:1002)
at
org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addDocumentation(UserAwareAPIProvider.java:78)
at
org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addDocumentation(APIProviderHostObject.java:1347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
at
org.jaggeryjs.rhino.publisher.modules.documentation.c1._c1(/publisher/modules/documentation/add.jag:6)
at
org.jaggeryjs.rhino.publisher.modules.documentation.c1.call(/publisher/modules/documentation/add.jag)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2347)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:272)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at
org.jaggeryjs.rhino.publisher.modules.documentation.c0._c1(/publisher/modules/documentation/module.jag:5)
at
org.jaggeryjs.rhino.publisher.modules.documentation.c0.call(/publisher/modules/documentation/module.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0._c1(/publisher/site/blocks/documentation/ajax/docs.jag:35)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0._c0(/publisher/site/blocks/documentation/ajax/docs.jag:4)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
at
org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.exec(/publisher/site/blocks/documentation/ajax/docs.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
o

[Dev] WSO2 Carbon 4.2.0 Release - RC4 Packs

2013-08-27 Thread Sameera Jayasoma
Hi Folks,

You can download the RC4 packs from the following location.

http://ec2-54-224-94-128.compute-1.amazonaws.com/rc4/


Thanks,
Sameera.

-- 
Sameera Jayasoma,
Architect,

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

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


Re: [Dev] [API Manager] Class loading issue after adding multi profiles

2013-08-27 Thread Amani Soysa
Hi Sanjeewa,

CarbonMemoryAppender is in org.wso2.carbon.logging.service bundle, Not
really sure why this issue is coming only for worker profiles. I will get
the API Manager packs and have a look at this issue.




On Tue, Aug 27, 2013 at 6:35 PM, Sanjeewa Malalgoda wrote:

> Hi All,
> I'm getting following error after creating new profiles. I added features
> available in api manager default profile and other necessary features.
> Default profile working as expected. Cannot diagnose this issue further
> because run time did not initialized properly. So we cannot use OSGI
> commands here. In logs i can see some class loading issues. But i can see
> necessary jar files available inside distribution and also those jar files
> there in profile configuration/org.eclipse.equinox.simpleconfigurator/
> bundles.info file. Also i noticed that CarbonMemoryAppender class is no
> more there in org.wso2.carbon.logging.appender jar. Please point me what we
> missed here.
>
>
> Thanks,
> Sanjeewa.
>
>
> log4j:ERROR Could not instantiate class
> [org.wso2.carbon.utils.logging.TenantAwarePatternLayout].
> java.lang.ClassNotFoundException:
> org.wso2.carbon.utils.logging.TenantAwarePatternLayout
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
>  at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
> at
> org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)
>  at
> org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
> at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:641)
>  at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
> at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>  at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
> at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>  at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
> at org.apache.log4j.LogManager.(LogManager.java:122)
>  at org.apache.log4j.Logger.getLogger(Logger.java:104)
> at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>  at
> org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
>  at
> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
>  at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
>  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
> at
> org.wso2.carbon.h2.osgi.console.H2DatabaseManager.(H2DatabaseManager.java:40)
>  at
> org.wso2.carbon.h2.osgi.H2ConsoleServiceActivator.start(H2ConsoleServiceActivator.java:30)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>  at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>  at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>  at
> org.eclipse.osgi.framewo

Re: [Dev] GReg Integration test status

2013-08-27 Thread Krishantha Samaraweera
Result of tests module as of yesterday.

Tests run: 778, Failures: 5, Errors: 0, Skipped: 0

Thanks,
Krishantha.


On Tue, Aug 27, 2013 at 1:16 AM, Shelan Perera  wrote:

> Hi,
>
> Following is the current status. Please try to make them 100% and there
> are module owners who are responsible for that task. Please discuss with
> Nuwanw if you face any framework related issues or not sure.
>
> Module Owner Status Comments Ran failed skipped tests Lasith 778 8 
> 21tests-extensibilityPulasthi
> 159 12 30 tests-governance-api  13 0 0 tests-jiras  78 0 0 
> tests-metadataEranda 12754tests-lifecyclePulasthiOne test commented out (APIM 
> integration), Not commited16020124
> tests-permissions Vijitha  46 3 1 tests-resources  234 1 
> 16tests-search-versionEranda
> 219 1 3 tests-ui  24 5 0 tests-new Nuwan One test commented out
> https://wso2.org/jira/browse/REGISTRY-1818
> https://wso2.org/jira/browse/REGISTRY-1818 213 1 0
>
>
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>
> ___
> 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] GReg Integration test status

2013-08-27 Thread Shelan Perera
Hi,

This is the latest results of other modules.

 Ran failed skipped tests-extensibility 159 12 30 tests-governance-api
13 
00tests-jiras7800tests-metadata12754tests-lifecycle16012tests-permissions4610tests-resources23400tests-search-version21900tests-ui2400tests-new21300
Thanks


On Wed, Aug 28, 2013 at 8:29 AM, Krishantha Samaraweera  wrote:

> Result of tests module as of yesterday.
>
> Tests run: 778, Failures: 5, Errors: 0, Skipped: 0
>
> Thanks,
> Krishantha.
>
>
> On Tue, Aug 27, 2013 at 1:16 AM, Shelan Perera  wrote:
>
>>  Hi,
>>
>> Following is the current status. Please try to make them 100% and there
>> are module owners who are responsible for that task. Please discuss with
>> Nuwanw if you face any framework related issues or not sure.
>>
>> Module Owner Status Comments Ran failed skipped tests Lasith 778 8 
>> 21tests-extensibilityPulasthi
>> 159 12 30 tests-governance-api  13 0 0 tests-jiras  78 0 0 
>> tests-metadataEranda 12754tests-lifecyclePulasthiOne test commented out 
>> (APIM integration), Not commited16020124
>> tests-permissions Vijitha  46 3 1 tests-resources  234 1 
>> 16tests-search-versionEranda
>> 219 1 3 tests-ui  24 5 0 tests-new Nuwan One test commented out
>> https://wso2.org/jira/browse/REGISTRY-1818
>> https://wso2.org/jira/browse/REGISTRY-1818 213 1 0
>>
>>
>>
>> --
>> *Shelan Perera*
>>
>> Senior Software Engineer
>> **
>> Integration Technology Group
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Blog* :   blog.shelan.org
>> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter* :https://twitter.com/#!/shelan
>>
>> *Mobile*  : +94 772 604 402
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Shelan Perera*

Senior Software Engineer
**
Integration Technology Group
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Blog* :   blog.shelan.org
*Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Compilation failure in mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0

2013-08-27 Thread Dinusha Senanayaka
Hi,

I'm getting following compilation failure when build running @ the
mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/
4.2.0.. Do I have miss anything ?

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
(default-compile) on project org.wso2.carbon.connector.twitter: Compilation
failure: Compilation failure:
[ERROR]
/home/dinusha/wso2_Products/trunk-new/carbon/platform/branches/4.2.0/components/mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0/src/main/java/org/wso2/carbon/connector/twitter/TwitterSearch.java:[148,41]
incompatible types
[ERROR] found   : java.util.List
[ERROR] required: java.util.List

Regards,
Dinusha.

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


Re: [Dev] [API-M 1.4] JSON response received on an addition of a documentation to an API, doesn't make sense

2013-08-27 Thread Sanjeewa Malalgoda
Ideally this should return to frontend "Error occurred while adding the
document- doc1". Created jira[1] for this and we will fix this in next
release.

Thanks,
sanjeewa.


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


On Wed, Aug 28, 2013 at 1:06 AM, Nirmal Fernando  wrote:

>
> wso2am-1.4.0/samples/YoutubeFeeds$ curl -X POST -b cookies
> http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag-d
> "action=addDocumentation&mode=&provider=provider1&apiName=TwitterSearch&version=1.0.0&docName=doc1&docType=how
> to&sourceType=inline&docUrl=&summary=testing&docLocation="
> *{"error" : false}
> *
> I saw that the document is successfully added to the API though.
>
> And I invoked the same command again, but I still see the same useless
> response, while my back-end has the correct exception.
>
>
> [2013-08-28 00:59:26,100] ERROR - APIProviderHostObject Error occurred
> while adding the document- doc1
> org.wso2.carbon.apimgt.api.APIManagementException: Failed to add
> documentation
> at
> org.wso2.carbon.apimgt.impl.AbstractAPIManager.handleException(AbstractAPIManager.java:621)
> at
> org.wso2.carbon.apimgt.impl.APIProviderImpl.createDocumentation(APIProviderImpl.java:1282)
> at
> org.wso2.carbon.apimgt.impl.APIProviderImpl.addDocumentation(APIProviderImpl.java:1002)
> at
> org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addDocumentation(UserAwareAPIProvider.java:78)
> at
> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addDocumentation(APIProviderHostObject.java:1347)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
> at
> org.jaggeryjs.rhino.publisher.modules.documentation.c1._c1(/publisher/modules/documentation/add.jag:6)
> at
> org.jaggeryjs.rhino.publisher.modules.documentation.c1.call(/publisher/modules/documentation/add.jag)
> at
> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2347)
> at
> org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:272)
> at
> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
> at
> org.jaggeryjs.rhino.publisher.modules.documentation.c0._c1(/publisher/modules/documentation/module.jag:5)
> at
> org.jaggeryjs.rhino.publisher.modules.documentation.c0.call(/publisher/modules/documentation/module.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0._c1(/publisher/site/blocks/documentation/ajax/docs.jag:35)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0._c0(/publisher/site/blocks/documentation/ajax/docs.jag:4)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
> at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.call(/publisher/site/blocks/documentation/ajax/docs.jag)
> at
> org.jaggeryjs.rhino.publisher.site.blocks.documentation.ajax.c0.exec(/publisher/site/blocks/documentation/ajax/docs.jag)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
> at
> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>

Re: [Dev] GReg Integration test status

2013-08-27 Thread Eranda Sooriyabandara
Hi All,
test-metadata is failing due to not registering the RXT's CRUD service.
Will fix it withing couple of hours.

thanks
Eranda


On Wed, Aug 28, 2013 at 8:36 AM, Shelan Perera  wrote:

> Hi,
>
> This is the latest results of other modules.
>
>  Ran failed skipped tests-extensibility 159 12 30 tests-governance-api 
> 1300tests-jiras7800tests-metadata12754tests-lifecycle16012tests-permissions4610tests-resources23400tests-search-version21900tests-ui2400tests-new21300
> Thanks
>
>
> On Wed, Aug 28, 2013 at 8:29 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Result of tests module as of yesterday.
>>
>> Tests run: 778, Failures: 5, Errors: 0, Skipped: 0
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Aug 27, 2013 at 1:16 AM, Shelan Perera  wrote:
>>
>>>  Hi,
>>>
>>> Following is the current status. Please try to make them 100% and there
>>> are module owners who are responsible for that task. Please discuss with
>>> Nuwanw if you face any framework related issues or not sure.
>>>
>>> Module Owner Status Comments Ran failed skipped tests Lasith 778 8 
>>> 21tests-extensibilityPulasthi
>>> 159 12 30 tests-governance-api  13 0 0 tests-jiras  78 0 
>>> 0tests-metadataEranda 12754tests-lifecyclePulasthiOne test commented out 
>>> (APIM integration), Not commited16020124
>>> tests-permissions Vijitha  46 3 1 tests-resources  234 1 
>>> 16tests-search-versionEranda
>>> 219 1 3 tests-ui  24 5 0 tests-new Nuwan One test commented out
>>> https://wso2.org/jira/browse/REGISTRY-1818
>>> https://wso2.org/jira/browse/REGISTRY-1818 213 1 0
>>>
>>>
>>>
>>> --
>>> *Shelan Perera*
>>>
>>> Senior Software Engineer
>>> **
>>> Integration Technology Group
>>> *WSO2, Inc. : wso2.com*
>>> lean.enterprise.middleware.
>>>
>>> *Blog* :   blog.shelan.org
>>> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>>> *Twitter* :https://twitter.com/#!/shelan
>>>
>>> *Mobile*  : +94 772 604 402
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Shelan Perera*
>
> Senior Software Engineer
> **
> Integration Technology Group
> *WSO2, Inc. : wso2.com*
> lean.enterprise.middleware.
>
> *Blog* :   blog.shelan.org
> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
> *Twitter* :https://twitter.com/#!/shelan
>
> *Mobile*  : +94 772 604 402
>
>


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

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



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


Re: [Dev] GReg Integration test status

2013-08-27 Thread Lasith Chandrasekara
Hi Krishantha,

Can you attach reports for tests module.
For me all tests are passing ..

-Lasith.


On Wed, Aug 28, 2013 at 9:24 AM, Eranda Sooriyabandara wrote:

> Hi All,
> test-metadata is failing due to not registering the RXT's CRUD service.
> Will fix it withing couple of hours.
>
> thanks
> Eranda
>
>
> On Wed, Aug 28, 2013 at 8:36 AM, Shelan Perera  wrote:
>
>> Hi,
>>
>> This is the latest results of other modules.
>>
>>  Ran failed skipped tests-extensibility 159 12 30 tests-governance-api 
>> 1300tests-jiras7800tests-metadata12754tests-lifecycle16012tests-permissions4610tests-resources23400tests-search-version21900tests-ui2400tests-new21300
>> Thanks
>>
>>
>> On Wed, Aug 28, 2013 at 8:29 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Result of tests module as of yesterday.
>>>
>>> Tests run: 778, Failures: 5, Errors: 0, Skipped: 0
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Tue, Aug 27, 2013 at 1:16 AM, Shelan Perera  wrote:
>>>
  Hi,

 Following is the current status. Please try to make them 100% and there
 are module owners who are responsible for that task. Please discuss with
 Nuwanw if you face any framework related issues or not sure.

 Module Owner Status Comments Ran failed skipped tests Lasith 778 8 
 21tests-extensibilityPulasthi
 159 12 30 tests-governance-api  13 0 0 tests-jiras  78 0 
 0tests-metadataEranda 12754tests-lifecyclePulasthiOne test commented out 
 (APIM integration), Not commited16020124
 tests-permissions Vijitha  46 3 1 tests-resources  234 1 
 16tests-search-versionEranda
 219 1 3 tests-ui  24 5 0 tests-new Nuwan One test commented out
 https://wso2.org/jira/browse/REGISTRY-1818
 https://wso2.org/jira/browse/REGISTRY-1818 213 1 0



 --
 *Shelan Perera*

 Senior Software Engineer
 **
 Integration Technology Group
 *WSO2, Inc. : wso2.com*
 lean.enterprise.middleware.

 *Blog* :   blog.shelan.org
 *Linked-i*n  :
 http://www.linkedin.com/pub/shelan-perera/a/194/465
 *Twitter* :https://twitter.com/#!/shelan

 *Mobile*  : +94 772 604 402


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


>>>
>>
>>
>> --
>> *Shelan Perera*
>>
>> Senior Software Engineer
>> **
>> Integration Technology Group
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Blog* :   blog.shelan.org
>> *Linked-i*n  :   http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter* :https://twitter.com/#!/shelan
>>
>> *Mobile*  : +94 772 604 402
>>
>>
>
>
> --
> *Eranda Sooriyabandara
> *Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
> Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
> *
> *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IS 4.5.0 release testing status

2013-08-27 Thread Suneth Ranasinghe
Following is the current testing status of the IS 4.5.0 (IS-RC3) release.

- We've reduced QA verified closed L1 count to 119 and L2 count to 107.

- There are no L1s and L2s remaining to be resolved and fixed.


Regards,



On Mon, Aug 26, 2013 at 5:14 PM, Pavithra Madurangi wrote:

> This is to update the testing status of IS 4.5.0 release.
>
> We've reduced L1 count to 179 and L2 count to 204.
>
> There are only 7 L1s (reported against user-core and user stores)
> remaining to be reviewed and closed.
>
> Regards,
> /Pavithra
>
>
>
> On Fri, Aug 23, 2013 at 6:54 PM, Pavithra Madurangi wrote:
>
>> During last two days, main focus was given to review and close L1s and
>> L2s. Following is the status of jira count as of today.
>>
>> 280 L1s are remaining to be closed.
>> filter : project = IDENTITY AND issuetype = Bug AND priority = Highest
>> AND status = Resolved
>>
>> ~239 issues have to be closed.
>> filter : project = IDENTITY AND issuetype = Bug AND priority = High AND
>> status = Resolved AND created <= -3d
>>
>> So far we've resolved ~100 jiras. (mainly L1s)
>>
>> Regards,
>> /Pavithra
>>
>
>
>
> --
> *Pavithra Madurangi*
> Senior Software Engineer - QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94777207357
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Suneth Ranasinghe
Senior Software Engineer - QA
Mobile: +94717387198
*
*
wso2.com
Lean Enterprise Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Usage of "localMemberBindPort" in clustering?

2013-08-27 Thread Nirodha Pramod
Hi,

What is the usage of this parameter? What are the deployment patterns where
we have to use this parameter. We don't use this parameter in our setup so
haven't tested it ever.

thanks,
Nirodha



-- 
*
*
*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "localMemberBindPort" in clustering?

2013-08-27 Thread Afkham Azeez
This is only used for Stratos when running with LXCs. You can bind to one
port, advertise another port, and then do an iptables port forwarding from
the virtual port to the bound port. No need to test it at this point.

Azeez


On Wed, Aug 28, 2013 at 10:44 AM, Nirodha Pramod  wrote:

> Hi,
>
> What is the usage of this parameter? What are the deployment patterns
> where we have to use this parameter. We don't use this parameter in our
> setup so haven't tested it ever.
>
> thanks,
> Nirodha
>
>
>
> --
> *
> *
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



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


[Dev] IOReactor shutdown issues with ESB integration test

2013-08-27 Thread Kasun Indrasiri
$subject is discussed in hc lists and the solution is to use SO_REUSEADDRESS
in ptt or nhttp properties. Please refer [1] for more details.

#http.socket.reuseaddr=true


[1]
http://httpcomponents.10934.n7.nabble.com/Migrating-Synapse-to-Latest-HTTP-Core-td20761.html

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

cell: +94 71 536 4128
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Axiom] Different axiom/antlr versions used by features and causes to runtime issues

2013-08-27 Thread Sanjeewa Malalgoda
Hi Team,
I can see following features are using different axiom versions and that
causes to have multiple axiom jars in distribution. Also found that order
of these jars cause to some problems when we start-up servers.


./features/idp-mgt/org.wso2.carbon.idp.mgt.ui.feature/4.2.0/pom.xml:1.2.11.wso2v3
./features/stratos/cartridge-agent/org.wso2.carbon.cartridge.agent.server.feature/1.0.0/pom.xml:1.2.11.wso2v4
./features/jaggery/0.9.0.ALPHA4.wso2v1/features/pom.xml:
 1.2.11.wso2v4


Also found that antlr is also having different versions in following
features.
*2.7.7.wso2v1*
./features/rule/service/org.wso2.carbon.rule.service.server.feature/4.2.0/pom.xml:
2.7.7.wso2v1
./features/rule/mediation/org.wso2.carbon.rule.mediation.server.feature/4.2.0/pom.xml:
2.7.7.wso2v1
./features/rule/service/org.wso2.carbon.rule.service.server.feature/4.2.0/pom.xml:

./features/rule/mediation/org.wso2.carbon.rule.mediation.server.feature/4.2.0/pom.xml:

./features/jaggery/0.9.0.ALPHA4.wso2v1/features/pom.xml:

*3.2.0.wso2v1*
./features/cassandra/pom.xml:
 3.2.0.wso2v1
./features/cassandra-explorer/pom.xml:3.2.0.wso2v1
./features/logging-mgt/pom.xml:
 3.2.0.wso2v1
./features/analytics/org.wso2.carbon.analytics.hive.server.feature/4.2.0/pom.xml:

./features/analytics/org.wso2.carbon.analytics.hive.server.feature/4.2.0/pom.xml:

./features/bpel/pom.xml:


Shouldn't we change this?

Thanks,
Sanjeewa.
-- 
*
*
*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] [DEV]svn commit r181648 breaks security scenarios.

2013-08-27 Thread Nalin Chandraratne
Hi Geeth,

It seemed the issue was not with the fix you gave. However a minor change
had to be done in the axis2.xml to cater the change you made. (
RelaySecuirtyMessageBuilderDispatchandler was brought before
SOAPActionBasedDispatcher in transport phase).

Thanks,
Nalin.


On Tue, Aug 27, 2013 at 2:06 PM, Nalin Chandraratne  wrote:

> Yes, Simply securing the proxy with the UTOverTransport policy.
>
>
> On Tue, Aug 27, 2013 at 1:30 PM, Kasun Gajasinghe  wrote:
>
>> Hi Nalin,
>>
>> I had a look at the test case. It seems you are doing a UT secured SOAP
>> requests?
>>
>>
>> On Tue, Aug 27, 2013 at 11:38 AM, Nalin Chandraratne wrote:
>>
>>> Hi Geeth,
>>>
>>> Below commit result in security scenario failures in ESB 4.8.0.
>>>
>>> Please fix this ASAP as this is critical to the M2 release.
>>>
>>>
>>> Author: ge...@wso2.com
>>> Date: Fri Aug 16 23:37:36 2013
>>> New Revision: 181648
>>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=181648
>>>
>>> Log:
>>> Fixing https://wso2.org/jira/browse/WSAS-1473
>>>
>>> Modified:
>>>carbon/platform/branches/4.2.0/components/security/org.
>>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>>> carbon/security/pox/POXSecurityHandler.java
>>>
>>> Modified: carbon/platform/branches/4.2.0/components/security/org.
>>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>>> carbon/security/pox/POXSecurityHandler.java
>>> URL:
>>> http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.2.0/components/security/org.wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java?rev=181648&r1=181647&r2=181648&view=diff
>>> 
>>> ==
>>> --- carbon/platform/branches/4.2.0/components/security/org.
>>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>>> carbon/security/pox/POXSecurityHandler.java(original)
>>> +++ carbon/platform/branches/4.2.0/components/security/org.
>>> wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
>>> carbon/security/pox/POXSecurityHandler.javaFri Aug 16 23:37:36 2013
>>> @@ -94,7 +94,7 @@
>>>
>>>   //this handler only intercepts
>>>  if (!(msgCtx.isDoingREST() || isSOAPWithoutSecHeader(msgCtx))
>>> ||
>>> -   !msgCtx.getIncomingTransportName().equals("https") ||
>>> (basicAuthHeader == null)) {
>>> +   !msgCtx.getIncomingTransportName().equals("https")) {
>>>  return InvocationResponse.CONTINUE;
>>>  }
>>>
>>>
>>> Below exception is thrown when running UT security scenario.
>>>
>>> org.apache.axis2.AxisFault: Transport error: 401 Error: OK
>>> at 
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>>> at 
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at 
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
>>> at 
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>>> at 
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at 
>>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
>>> at 
>>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
>>> at 
>>> org.wso2.carbon.automation.utils.axis2client.SecureAxisServiceClient.sendReceive(SecureAxisServiceClient.java:136)
>>> at 
>>> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredRequest(SecureServiceClient.java:72)
>>> at 
>>> org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredStockQuoteRequest(SecureServiceClient.java:43)
>>> at 
>>> org.wso2.carbon.esb.proxyservice.test.secureProxy.SecurityTransformationProxyForPolicy2BackEndTestCase.securityPolicy1(SecurityTransformationProxyForPolicy2BackEndTestCase.java:80)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at 
>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
>>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
>>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
>>> at 
>>> org.testng.internal.TestMethodWorker.invokeTestMethods

Re: [Dev] [DEV]svn commit r181648 breaks security scenarios.

2013-08-27 Thread Piyum Fernando
On Wed, Aug 28, 2013 at 11:13 AM, Nalin Chandraratne  wrote:

> Hi Geeth,
>
> It seemed the issue was not with the fix you gave. However a minor change
> had to be done in the axis2.xml to cater the change you made. (
> RelaySecuirtyMessageBuilderDispatchandler was brought before
> SOAPActionBasedDispatcher in transport phase).
>

+1. We have to keep that change. Pox security handler expected to send a
401 when there is no transport level basic auth headers.

Thanks.

>
> Thanks,
> Nalin.
>
>
> On Tue, Aug 27, 2013 at 2:06 PM, Nalin Chandraratne wrote:
>
>> Yes, Simply securing the proxy with the UTOverTransport policy.
>>
>>
>> On Tue, Aug 27, 2013 at 1:30 PM, Kasun Gajasinghe wrote:
>>
>>> Hi Nalin,
>>>
>>> I had a look at the test case. It seems you are doing a UT secured SOAP
>>> requests?
>>>
>>>
>>> On Tue, Aug 27, 2013 at 11:38 AM, Nalin Chandraratne wrote:
>>>
 Hi Geeth,

 Below commit result in security scenario failures in ESB 4.8.0.

 Please fix this ASAP as this is critical to the M2 release.


 Author: ge...@wso2.com
 Date: Fri Aug 16 23:37:36 2013
 New Revision: 181648
 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=181648

 Log:
 Fixing https://wso2.org/jira/browse/WSAS-1473

 Modified:
carbon/platform/branches/4.2.0/components/security/org.
 wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
 carbon/security/pox/POXSecurityHandler.java

 Modified: carbon/platform/branches/4.2.0/components/security/org.
 wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
 carbon/security/pox/POXSecurityHandler.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.2.0/components/security/org.wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/carbon/security/pox/POXSecurityHandler.java?rev=181648&r1=181647&r2=181648&view=diff
 
 ==
 --- carbon/platform/branches/4.2.0/components/security/org.
 wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
 carbon/security/pox/POXSecurityHandler.java(original)
 +++ carbon/platform/branches/4.2.0/components/security/org.
 wso2.carbon.security.mgt/4.2.0/src/main/java/org/wso2/
 carbon/security/pox/POXSecurityHandler.javaFri Aug 16 23:37:36 2013
 @@ -94,7 +94,7 @@

   //this handler only intercepts
  if (!(msgCtx.isDoingREST() || isSOAPWithoutSecHeader(msgCtx))
 ||
 -   !msgCtx.getIncomingTransportName().equals("https") ||
 (basicAuthHeader == null)) {
 +   !msgCtx.getIncomingTransportName().equals("https")) {
  return InvocationResponse.CONTINUE;
  }


 Below exception is thrown when running UT security scenario.

 org.apache.axis2.AxisFault: Transport error: 401 Error: OK
at 
 org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
at 
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at 
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at 
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at 
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
at 
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
at 
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at 
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
at 
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
at 
 org.wso2.carbon.automation.utils.axis2client.SecureAxisServiceClient.sendReceive(SecureAxisServiceClient.java:136)
at 
 org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredRequest(SecureServiceClient.java:72)
at 
 org.wso2.carbon.esb.util.SecureServiceClient.sendSecuredStockQuoteRequest(SecureServiceClient.java:43)
at 
 org.wso2.carbon.esb.proxyservice.test.secureProxy.SecurityTransformationProxyForPolicy2BackEndTestCase.securityPolicy1(SecurityTransformationProxyForPolicy2BackEndTestCase.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelpe

Re: [Dev] Compilation failure in mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0

2013-08-27 Thread Chanaka Fernando
Hi Dinusha,

This can be happened due to twitter4j version mismatching. Please delete
the twitter4j library from m2 repository and then build again.
That will pull the latest twitter4j library from the repository.

Thanks,
Chanaka



On Wed, Aug 28, 2013 at 8:47 AM, Dinusha Senanayaka wrote:

> Hi,
>
> I'm getting following compilation failure when build running @ the
> mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/
> 4.2.0.. Do I have miss anything ?
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
> (default-compile) on project org.wso2.carbon.connector.twitter: Compilation
> failure: Compilation failure:
> [ERROR]
> /home/dinusha/wso2_Products/trunk-new/carbon/platform/branches/4.2.0/components/mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0/src/main/java/org/wso2/carbon/connector/twitter/TwitterSearch.java:[148,41]
> incompatible types
> [ERROR] found   : java.util.List
> [ERROR] required: java.util.List
>
> Regards,
> Dinusha.
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] AS integration tests are heavily broken

2013-08-27 Thread Supun Malinga
yeah +1


On Tue, Aug 27, 2013 at 7:28 PM, Krishantha Samaraweera  wrote:

> Excellent!! Lets see the test results with RC4 build
>
> Thanks,
> Krishantha.
>
>
> On Tue, Aug 27, 2013 at 12:55 AM, Kasun Gajasinghe wrote:
>
>> All the test failures have been fixed.
>>
>> Thanks.
>>
>>
>> On Sun, Aug 25, 2013 at 10:08 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Now all failures count has reduced to 7.
>>>
>>> Failed tests:
>>> InvokeSerWithSec(org.wso2.carbon.integration.test.helloworldsampleservice.HelloWorldSampleTestCase):
>>> Error in obtaining a token
>>>
>>> testWebApplicationStop(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationStateChangingTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> testDeleteWebApplication(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationStateChangingTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> testWebApplicationDeploymentAndAccessibility(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationReloadingTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> testDeleteWebApplication(org.wso2.carbon.integration.test.webapp.mgt.WebApplicationReloadingTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> testWebApplicationStop(org.wso2.carbon.integration.test.webapp.spring.SpringApplicationDeploymentTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> destroy(org.wso2.carbon.integration.test.webapp.spring.SpringApplicationDeploymentTestCase):
>>> Exception occurred while trying to invoke service method
>>> getPagedWebappsSummary
>>>
>>> Tests run: 220, Failures: 7, Errors: 0, Skipped: 5
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Sat, Aug 24, 2013 at 7:43 PM, Supun Malinga  wrote:
>>>
 Hi Fixed,
 Please take an svn up in
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/platform-integration/test-automation-framework/4.2.0/org.wso2.carbon.automation.api
 .

 thanks,


 On Sat, Aug 24, 2013 at 7:27 PM, Supun Malinga  wrote:

> Hi,
>
> Only the faulty  app case is failing. I was managed to fix that error
> by putting a null check, but then the faulty assertion failed. Seems there
> is no faulty apps in the system. I'll investigating further.
>
> thanks,
>
>
> On Sat, Aug 24, 2013 at 6:49 PM, Sagara Gunathunga wrote:
>
>> Supun,
>>
>> Can you please take a look ? it seems something broken in webapp mgt
>> stub ?
>>
>>
>> Thanks !
>>
>>
>> On Sat, Aug 24, 2013 at 6:14 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> App Server webapp management test cases are heavily broken.
>>> Can someone please have a look.
>>>
>>> I'm getting the same error on my local machine and ec2 builder
>>> machine.
>>>
>>> Tests run: 236, Failures: 35, Errors: 0, Skipped: 43
>>>
>>> Failed tests:   webAppsDeploymentTest(org.wso2.carbon.integration.
>>> test.sampleservices.virtualdirectorylisting.VirtualDirectoryListingTestCase):
>>> org.wso2.carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.
>>> getWebapps()[Lorg/wso2/carbon/webapp/mgt
>>> /stub/types/carbon/WebappMetadata;
>>>   testWebApplicationDeployment(org.wso2.carbon.integration.test.
>>> webapp.concurrency.SingleWebAppUploaderTestCase): org.wso2.carbon.
>>> webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>>   webApplicationDeploymentTest(org.wso2.carbon.integration.test.
>>> webapp.classloading.CXFWebApplicationTestCase): org.wso2.carbon.
>>> webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>>   
>>> invokeService(org.wso2.carbon.integration.test.mtomservice.MTOMTestCase):
>>> AxisFault while getting response :The service cannot be found forthe 
>>> endpoint reference (EPR)
>>> http://localhost:9763/services/MTOMSample
>>>   webAppDelete(org.wso2.carbon.integration.test.sampleservices.
>>> virtualdirectorylisting.VirtualDirectoryListingTestCase): org.wso2.
>>> carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.getWebapps()
>>> [Lorg/wso2/carbon/webapp/mgt/stub/types/carbon/WebappMetadata;
>>>   
>>> testCleanup(org.wso2.carbon.integration.test.webapp.concurrency.SingleWebAppUploaderTestCase):
>>> org.wso2.carbon.webapp.mgt.stub.types.carbon.WebappsWrapper.
>>> getWebapps()[Lorg/wso2/carbon/webapp/mgt
>>> /stub/types/carbon/WebappMetadata;
>>>
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Le

Re: [Dev] Compilation failure in mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0

2013-08-27 Thread Dinusha Senanayaka
Thanks Chanaka.. deleting the twitter4j from the m2 repo worked..

Regards,
Dinusha.


On Wed, Aug 28, 2013 at 11:40 AM, Chanaka Fernando wrote:

> Hi Dinusha,
>
> This can be happened due to twitter4j version mismatching. Please delete
> the twitter4j library from m2 repository and then build again.
>  That will pull the latest twitter4j library from the repository.
>
> Thanks,
> Chanaka
>
>
>
> On Wed, Aug 28, 2013 at 8:47 AM, Dinusha Senanayaka wrote:
>
>> Hi,
>>
>> I'm getting following compilation failure when build running @ the
>> mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/
>> 4.2.0.. Do I have miss anything ?
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
>> (default-compile) on project org.wso2.carbon.connector.twitter: Compilation
>> failure: Compilation failure:
>> [ERROR]
>> /home/dinusha/wso2_Products/trunk-new/carbon/platform/branches/4.2.0/components/mediation/mediation-library/connectors/org.wso2.carbon.connector.twitter/4.2.0/src/main/java/org/wso2/carbon/connector/twitter/TwitterSearch.java:[148,41]
>> incompatible types
>> [ERROR] found   : java.util.List
>> [ERROR] required: java.util.List
>>
>> Regards,
>> Dinusha.
>>
>> --
>> Dinusha Dilrukshi
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


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


[Dev] Hazlecast exception thrown continuously in ELB with new version

2013-08-27 Thread Nirodha Pramod
Hi,

Get the following exception continuously in ELB with the new packs and with
the new hazlecast 3.0 jars.

use:java.lang.IllegalArgumentException: Packet versions are not matching!
This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
java.lang.IllegalArgumentException: Packet versions are not matching! This
-> 1, Incoming -> 0
at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
at
com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
at
com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
TID: [0] [ELB] [2013-08-28 11:16:01,948]  INFO
{com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
[as.qa.420.domain] Accepting socket connection from
/192.168.18.3:39326{com.hazelcast.nio.SocketAcceptor}
TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
{com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
[as.qa.420.domain] 4000 accepted socket connection from
/192.168.18.3:39326{com.hazelcast.nio.TcpIpConnectionManager}
TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
{com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
[as.qa.420.domain] Connection [/192.168.18.3:39326] lost. Reason:
java.lang.IllegalArgumentException[Packet versions are not matching! This
-> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
TID: [0] [ELB] [2013-08-28 11:16:01,950]  WARN
{com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
hz.as.qa.420.domain.IO.thread-in-1 Closing socket to endpoint null,
Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
java.lang.IllegalArgumentException: Packet versions are not matching! This
-> 1, Incoming -> 0
at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
at
com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
at
com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
TID: [0] [ELB] [2013-08-28 11:17:28,843]  INFO
{com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
[as.qa.420.domain] Accepting socket connection from
/192.168.18.3:45983{com.hazelcast.nio.SocketAcceptor}
TID: [0] [ELB] [2013-08-28 11:17:28,844]  INFO
{com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
[as.qa.420.domain] 4000 accepted socket connection from
/192.168.18.3:45983{com.hazelcast.nio.TcpIpConnectionManager}
TID: [0] [ELB] [2013-08-28 11:17:29,037]  INFO
{com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
[as.qa.420.domain] Accepting socket connection from
/192.168.18.3:45810{com.hazelcast.nio.SocketAcceptor}
TID: [0] [ELB] [2013-08-28 11:17:29,038]  INFO
{com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
[as.qa.420.domain] 4000 accepted socket connection from
/192.168.18.3:45810{com.hazelcast.nio.TcpIpConnectionManager}
TID: [0] [ELB] [2013-08-28 11:17:29,052]  INFO
{com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
[as.qa.420.domain] Connection [/192.168.18.3:45810] lost. Reason:
java.lang.IllegalArgumentException[Packet versions are not matching! This
-> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
TID: [0] [ELB] [2013-08-28 11:17:29,053]  WARN
{com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
hz.as.qa.420.domain.IO.thread-in-0 Closing socket to endpoint null,
Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
java.lang.IllegalArgumentException: Packet versions are not matching! This
-> 1, Incoming -> 0
at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
at
com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
at
com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
TID: [0] [ELB] [2013-08-28 11:17:30,035]  INFO
{com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
[as.qa.420.domain] Accepting socket connection from
/192.168.18.3:33794{com.hazelcast.nio.SocketAcceptor}
TID: [0] [ELB] [2013-08-28 11:17:30,036]  INFO
{com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
[as.qa.420.domain] 4000 accepted socket connection from
/192.168.18.3:33794{com.hazelcast.nio.TcpIpConnectionManager}
TID: [0] [ELB] [2013-08-28 11:17:30,037]  INFO
{com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
[as.qa.420.domain] Connection [/

Re: [Dev] Hazlecast exception thrown continuously in ELB with new version

2013-08-27 Thread Afkham Azeez
Are you using two different versions of Hazelcast? Looks like 2.6 & 3.0 are
used together. This won't work. All nodes in all clusters should run 3.0.


On Wed, Aug 28, 2013 at 11:48 AM, Nirodha Pramod  wrote:

> Hi,
>
> Get the following exception continuously in ELB with the new packs and
> with the new hazlecast 3.0 jars.
>
> use:java.lang.IllegalArgumentException: Packet versions are not matching!
> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
> java.lang.IllegalArgumentException: Packet versions are not matching! This
> -> 1, Incoming -> 0
> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>  at
> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
> at
> com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
>  at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
> TID: [0] [ELB] [2013-08-28 11:16:01,948]  INFO
> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
> [as.qa.420.domain] Accepting socket connection from 
> /192.168.18.3:39326{com.hazelcast.nio.SocketAcceptor}
> TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
> [as.qa.420.domain] 4000 accepted socket connection from /
> 192.168.18.3:39326 {com.hazelcast.nio.TcpIpConnectionManager}
> TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
> {com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
> [as.qa.420.domain] Connection [/192.168.18.3:39326] lost. Reason:
> java.lang.IllegalArgumentException[Packet versions are not matching! This
> -> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
> TID: [0] [ELB] [2013-08-28 11:16:01,950]  WARN
> {com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
> hz.as.qa.420.domain.IO.thread-in-1 Closing socket to endpoint null,
> Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
> java.lang.IllegalArgumentException: Packet versions are not matching! This
> -> 1, Incoming -> 0
> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>  at
> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
> at
> com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
>  at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
> TID: [0] [ELB] [2013-08-28 11:17:28,843]  INFO
> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
> [as.qa.420.domain] Accepting socket connection from 
> /192.168.18.3:45983{com.hazelcast.nio.SocketAcceptor}
> TID: [0] [ELB] [2013-08-28 11:17:28,844]  INFO
> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
> [as.qa.420.domain] 4000 accepted socket connection from /
> 192.168.18.3:45983 {com.hazelcast.nio.TcpIpConnectionManager}
> TID: [0] [ELB] [2013-08-28 11:17:29,037]  INFO
> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
> [as.qa.420.domain] Accepting socket connection from 
> /192.168.18.3:45810{com.hazelcast.nio.SocketAcceptor}
> TID: [0] [ELB] [2013-08-28 11:17:29,038]  INFO
> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
> [as.qa.420.domain] 4000 accepted socket connection from /
> 192.168.18.3:45810 {com.hazelcast.nio.TcpIpConnectionManager}
> TID: [0] [ELB] [2013-08-28 11:17:29,052]  INFO
> {com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
> [as.qa.420.domain] Connection [/192.168.18.3:45810] lost. Reason:
> java.lang.IllegalArgumentException[Packet versions are not matching! This
> -> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
> TID: [0] [ELB] [2013-08-28 11:17:29,053]  WARN
> {com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
> hz.as.qa.420.domain.IO.thread-in-0 Closing socket to endpoint null,
> Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
> java.lang.IllegalArgumentException: Packet versions are not matching! This
> -> 1, Incoming -> 0
> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>  at
> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
> at
> com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
>  at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
> TID: [0] [ELB] [2013-08-28 11:17:30,035]  INFO
> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
> [as.qa.420.domain] Accepting socket connection from 
> /192.168.18.3:33794{com

Re: [Dev] Hazlecast exception thrown continuously in ELB with new version

2013-08-27 Thread Nirodha Pramod
Hi Azeez,

Found out that one node was not patched (Hazlecast 3.0 jars) properly and
have caused this issue. Sorry for the noice.

thanks,
Nirodha


On Wed, Aug 28, 2013 at 11:50 AM, Afkham Azeez  wrote:

> Are you using two different versions of Hazelcast? Looks like 2.6 & 3.0
> are used together. This won't work. All nodes in all clusters should run
> 3.0.
>
>
> On Wed, Aug 28, 2013 at 11:48 AM, Nirodha Pramod  wrote:
>
>> Hi,
>>
>> Get the following exception continuously in ELB with the new packs and
>> with the new hazlecast 3.0 jars.
>>
>> use:java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
>> java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0
>> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>>  at
>> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
>> at
>> com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
>>  at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
>> TID: [0] [ELB] [2013-08-28 11:16:01,948]  INFO
>> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
>> [as.qa.420.domain] Accepting socket connection from 
>> /192.168.18.3:39326{com.hazelcast.nio.SocketAcceptor}
>> TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
>> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
>> [as.qa.420.domain] 4000 accepted socket connection from /
>> 192.168.18.3:39326 {com.hazelcast.nio.TcpIpConnectionManager}
>> TID: [0] [ELB] [2013-08-28 11:16:01,949]  INFO
>> {com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
>> [as.qa.420.domain] Connection [/192.168.18.3:39326] lost. Reason:
>> java.lang.IllegalArgumentException[Packet versions are not matching! This
>> -> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
>> TID: [0] [ELB] [2013-08-28 11:16:01,950]  WARN
>> {com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
>> hz.as.qa.420.domain.IO.thread-in-1 Closing socket to endpoint null,
>> Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
>> java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0
>> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>>  at
>> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
>> at
>> com.hazelcast.nio.InSelectorImpl.handleSelectionKey(InSelectorImpl.java:33)
>>  at com.hazelcast.nio.AbstractIOSelector.run(AbstractIOSelector.java:124)
>> TID: [0] [ELB] [2013-08-28 11:17:28,843]  INFO
>> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
>> [as.qa.420.domain] Accepting socket connection from 
>> /192.168.18.3:45983{com.hazelcast.nio.SocketAcceptor}
>> TID: [0] [ELB] [2013-08-28 11:17:28,844]  INFO
>> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
>> [as.qa.420.domain] 4000 accepted socket connection from /
>> 192.168.18.3:45983 {com.hazelcast.nio.TcpIpConnectionManager}
>> TID: [0] [ELB] [2013-08-28 11:17:29,037]  INFO
>> {com.hazelcast.nio.SocketAcceptor} -  [192.168.18.1]:4000
>> [as.qa.420.domain] Accepting socket connection from 
>> /192.168.18.3:45810{com.hazelcast.nio.SocketAcceptor}
>> TID: [0] [ELB] [2013-08-28 11:17:29,038]  INFO
>> {com.hazelcast.nio.TcpIpConnectionManager} -  [192.168.18.1]:4000
>> [as.qa.420.domain] 4000 accepted socket connection from /
>> 192.168.18.3:45810 {com.hazelcast.nio.TcpIpConnectionManager}
>> TID: [0] [ELB] [2013-08-28 11:17:29,052]  INFO
>> {com.hazelcast.nio.TcpIpConnection} -  [192.168.18.1]:4000
>> [as.qa.420.domain] Connection [/192.168.18.3:45810] lost. Reason:
>> java.lang.IllegalArgumentException[Packet versions are not matching! This
>> -> 1, Incoming -> 0] {com.hazelcast.nio.TcpIpConnection}
>> TID: [0] [ELB] [2013-08-28 11:17:29,053]  WARN
>> {com.hazelcast.nio.ReadHandler} -  [192.168.18.1]:4000 [as.qa.420.domain]
>> hz.as.qa.420.domain.IO.thread-in-0 Closing socket to endpoint null,
>> Cause:java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0 {com.hazelcast.nio.ReadHandler}
>> java.lang.IllegalArgumentException: Packet versions are not matching!
>> This -> 1, Incoming -> 0
>> at com.hazelcast.nio.Packet.readFrom(Packet.java:113)
>>  at
>> com.hazelcast.nio.SocketPacketReader$DefaultPacketReader.readPacket(SocketPacketReader.java:67)
>>  at com.hazelcast.nio.SocketPacketReader.read(SocketPacketReader.java:49)
>>  at com.hazelcast.nio.ReadHandler.handle(ReadHandler.java:67)
>> at
>> com.hazelcast.nio.InSelectorImpl.handleSelect

[Dev] "java.lang.NoSuchMethodError: com.hazelcast.core.Cluster.addMembershipListener(Lcom/hazelcast/core/MembershipListener; )V" thrown when starting RC4 packs with Hazelcast 3 jars

2013-08-27 Thread Evanthika Amarasiri
When staring the ELB & AS packs we see the below exception

***
[2013-08-28 12:07:17,021]  INFO
{org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} -  Task service
starting in CLUSTERED mode...
[2013-08-28 12:07:17,246] ERROR
{org.wso2.carbon.ntask.core.internal.TasksDSComponent} -  Error in
intializing Tasks component:
com.hazelcast.core.Cluster.addMembershipListener(Lcom/hazelcast/core/MembershipListener;)V
java.lang.NoSuchMethodError:
com.hazelcast.core.Cluster.addMembershipListener(Lcom/hazelcast/core/MembershipListener;)V
 at
org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.(ClusterGroupCommunicator.java:84)
 at
org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.getInstance(ClusterGroupCommunicator.java:70)
 at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:280)
 at
org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:196)
 at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
 at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123)
 at
org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.activate(ThrottlingAgentServiceComponent.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.in