Re: [Dev] SocketTimeoutException

2014-04-04 Thread Sohani Weerasinghe
Hi Nirmal,

Thanks,

Hi Isuru,

Yes I am using try it tool and the proxy is getting the response as well.
Even though I increased the socket timeout still I am getting this error
while running ESB in debug mode.

Thanks,
Sohani

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

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


On Sat, Apr 5, 2014 at 12:12 PM, Isuru Udana  wrote:

> Hi Sohani,
>
> I think you are invoking the proxy service using the tryit tool.
> Reason for getting this "Read timed out" is you haven't receive a
> response back.
> Increasing the http.socket.timeout will only help if the issue is proxy
> takes long time to respond.
> First verify whether proxy service sending back a response to the client.
>
>
>
>
> On Sat, Apr 5, 2014 at 12:00 PM, Nirmal Fernando  wrote:
>
>> Hi Sohani,
>>
>> If you want to increase the socket timeout (http.socket.timeout), you can
>> do it via the passthru.properties file of ESB.
>>
>>
>> On Sat, Apr 5, 2014 at 11:58 AM, Sohani Weerasinghe wrote:
>>
>>>  Hi,
>>>
>>> When trying to invoke a proxy  while the ESB server runs in debug mode,
>>> I am getting the following error.
>>>
>>> [2014-04-05 11:35:30,261]  INFO - HTTPSender Unable to sendViaPost to
>>> url[serviceurl for the proxy]
>>> java.net.SocketTimeoutException: Read timed out
>>> at java.net.SocketInputStream.socketRead0(Native Method)
>>> at java.net.SocketInputStream.read(SocketInputStream.java:150)
>>>  at java.net.SocketInputStream.read(SocketInputStream.java:121)
>>> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>>>  at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
>>> at
>>> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>>>  at
>>> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
>>> at
>>> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>>>  at
>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
>>> at
>>> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>>>  at
>>> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>>> at
>>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>>>  at
>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>>> at
>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>>  at
>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>> at
>>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
>>>  at
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>>> 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:430)
>>>  at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>> 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.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp:276)
>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>>  at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>>>  at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>  at
>>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>  at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(P

Re: [Dev] SocketTimeoutException

2014-04-04 Thread Isuru Udana
Hi Sohani,

I think you are invoking the proxy service using the tryit tool.
Reason for getting this "Read timed out" is you haven't receive a response
back.
Increasing the http.socket.timeout will only help if the issue is proxy
takes long time to respond.
First verify whether proxy service sending back a response to the client.




On Sat, Apr 5, 2014 at 12:00 PM, Nirmal Fernando  wrote:

> Hi Sohani,
>
> If you want to increase the socket timeout (http.socket.timeout), you can
> do it via the passthru.properties file of ESB.
>
>
> On Sat, Apr 5, 2014 at 11:58 AM, Sohani Weerasinghe wrote:
>
>>  Hi,
>>
>> When trying to invoke a proxy  while the ESB server runs in debug mode, I
>> am getting the following error.
>>
>> [2014-04-05 11:35:30,261]  INFO - HTTPSender Unable to sendViaPost to
>> url[serviceurl for the proxy]
>> java.net.SocketTimeoutException: Read timed out
>> at java.net.SocketInputStream.socketRead0(Native Method)
>> at java.net.SocketInputStream.read(SocketInputStream.java:150)
>>  at java.net.SocketInputStream.read(SocketInputStream.java:121)
>> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>>  at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
>> at
>> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>>  at
>> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
>> at
>> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>>  at
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>>  at
>> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>>  at
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>  at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>> at
>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
>>  at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>> 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:430)
>>  at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>> 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.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp:276)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>  at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>>  at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>  at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>  at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>  at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>  at
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica

[Dev] WSO2 Data Services Server 3.2.0-Alpha Released

2014-04-04 Thread Chanika Geeganage
*WSO2 Data Services Server 3.2.0-Alpha Released!*


The Alpha pack is available at:
http://svn.wso2.org/repos/wso2/people/chanika/DSS_3.2.0_Alpha/

To run the samples please follow the read-me, $DSS_HOME/samples/README.txt

Following are the bug fixes, improvements and the new features.
Bug

   - [DS-870 
]
   - [Cluster-tenant] - NPE observed when invoking a service in the tenant mode
   - [DS-869 ] - nDatasource - adding
   datasource is broken
   - [DS-868 ] - If an attribute is
   added for a null value in the result element throws an exception
   - [DS-866 
]
   - Headers on rows > 1 not recognized in excel, csv and gsreadsheet
   datasources

Improvement

   - [DS-871 
]
   - Transaction Handling Improvements

New Feature

   - [DS-872 ] - Cassandra Native CQL
   driver support

We welcome your feedback on this release of DSS.

Thanks
-- 
Best Regards..

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


Re: [Dev] SocketTimeoutException

2014-04-04 Thread Nirmal Fernando
Hi Sohani,

If you want to increase the socket timeout (http.socket.timeout), you can
do it via the passthru.properties file of ESB.


On Sat, Apr 5, 2014 at 11:58 AM, Sohani Weerasinghe  wrote:

> Hi,
>
> When trying to invoke a proxy  while the ESB server runs in debug mode, I
> am getting the following error.
>
> [2014-04-05 11:35:30,261]  INFO - HTTPSender Unable to sendViaPost to
> url[serviceurl for the proxy]
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:150)
>  at java.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>  at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
> at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>  at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
> at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>  at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
> at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>  at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>  at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>  at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
>  at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
> 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:430)
>  at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> 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.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp:276)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>  at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>  at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>  at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>  at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> o

[Dev] SocketTimeoutException

2014-04-04 Thread Sohani Weerasinghe
Hi,

When trying to invoke a proxy  while the ESB server runs in debug mode, I
am getting the following error.

[2014-04-05 11:35:30,261]  INFO - HTTPSender Unable to sendViaPost to
url[serviceurl for the proxy]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
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:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
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.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp:276)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThre

[Dev] Identiy DB Script : ON UPDATE RESTRICT ON DELETE CASCADE

2014-04-04 Thread Prasad Tissera
Unlike MySql and H2, Oracle does not support ON UPDATE clause. But ON
UPDATE RESTRICT is the default behavior of Oracle. Since  ON UPDATE
RESTRICT will be omitted in the oracle SQL scripts.

example.

H2/MySQL Script:

ALTER TABLE IDN_APPMGT_CLIENT ADD CONSTRAINT APPLICATION_ID_CONSTRAINT
FOREIGN KEY (APP_ID) REFERENCES IDN_APPMGT_APP (ID) ON UPDATE RESTRICT ON
DELETE CASCADE;

Oracle Equivalent:

ALTER TABLE IDN_APPMGT_CLIENT ADD CONSTRAINT APPLICATION_ID_CONSTRAINT
FOREIGN KEY (APP_ID) REFERENCES IDN_APPMGT_APP (ID) ON DELETE CASCADE;


-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied

2014-04-04 Thread Senaka Fernando
+1 for using touchpoints.

Thanks,
Senaka.


On Fri, Apr 4, 2014 at 9:49 PM, Lasantha Fernando  wrote:

> Hi Ajith,
>
> Can we add a null check to the constructor code or log the error and
> throw?
>
> The actual cause is indeed the missing configs, but it is hard to debug
> because that NPE simply causes the bundle instance to not be created, and
> dependent bundles also become unsatisfied.
>
>
> On 4 April 2014 21:06, Ajith Vitharana  wrote:
>
>> Hi Manoj/Lasantha,
>>
>> I just checked the fresh G-Reg pack without indexing config in
>> registry.xml  and it is working fine without any issue.
>> When you install some registry feature to others products, you should add
>> the related configs (handler config ..etc ) to work that features properly.
>>
>> AFAIK, there is no way to add config sections to existing configuration
>> files while installing features.
>>
>
> Maybe can we use the new touchpoints introduced in Carbon 4.2.0 [1] for
> this?
>
> [1]
> https://docs.wso2.org/display/Carbon420/Adding+and+Removing+XML+Element+Touchpoint+Actions
>
> Thanks,
> Lasantha
>
>
>> Thanks.
>> Ajith.
>>
>>
>>
>> On Fri, Apr 4, 2014 at 4:54 PM, Manoj Kumara  wrote:
>>
>>> [Adding Greg Team]
>>>
>>> Can Greg team please have a look on this.
>>>
>>> Thanks,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Fri, Apr 4, 2014 at 4:49 PM, Lasantha Fernando wrote:
>>>
 Hi all,

 When looking into the CEP 3.1.0 osgi services, we (Myself and Manoj)
 found out that the following registry services were unsatisfied. We found
 out that the above services were unsatisfied for some released packs as
 well.

 81 Unsatisfied org.wso2.carbon.governance.api
 org.wso2.carbon.governance.api(bid=275)
 110 Unsatisfied org.wso2.carbon.registry.indexing
 org.wso2.carbon.registry.indexing(bid=358)
 116 Unsatisfied registry.search.dscomponent
 org.wso2.carbon.registry.search(bid=371)

 It seems this occurs due to indexing config not being available in
 registry.xml. If this is not available, an NPE is thrown
 in org.wso2.carbon.registry.indexing.RegistryConfigLoader constructor which
 is run when registering the registry service for the
 org.wso2.carbon.registry.indexing bundle. Therefore this NPE is not logged
 anywhere and those registry.indexing service fails to register.

 As a workaround for this issue, you can to add an
 ** element to registry.xml.

 But I think the correct fix is to catch the exception in
 *org.wso2.carbon.registry.indexing.RegistryConfigLoader* constructor
 and assign defaults as has been done for other parameters of the class.

 Thanks,
 Lasantha
 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> *Lasantha Fernando*
> Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>



-- 


*[image: http://wso2.com]  Senaka Fernando*
Senior Technical Lead; WSO2 Inc.; http://wso2.com



* Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388; ext: 51736*;


*M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Oracle SQL script error

2014-04-04 Thread Prasad Tissera
Problem was with the semicolon in the ALTER TABLE line. By removing the
semicolon problem solved.

ALTER TABLE IDN_APPMGT_APP ADD CONSTRAINT APPLICATION_NAME_CONSTRAINT
UNIQUE(APP_NAME, TENANT_ID)




On Fri, Apr 4, 2014 at 10:12 AM, Prasad Tissera  wrote:

> Can anyone help to figure out what is wrong with this SQL.
>
> CREATE TABLE IDN_APPMGT_APP (
> ID NUMBER(7, 0),
> APP_NAME VARCHAR (255) NOT NULL ,
> USERNAME VARCHAR (255) NOT NULL ,
> TENANT_ID NUMBER(7, 0) NOT NULL,
> USER_STORE VARCHAR (255) NOT NULL,
> ROLE_CLAIM VARCHAR (512),
> PRIMARY KEY (ID)
> )
> /
> CREATE SEQUENCE IDN_APPMGT_APP_SEQUENCE START WITH 1 INCREMENT BY 1 NOCACHE
> /
> CREATE OR REPLACE TRIGGER IDN_APPMGT_APP_TRIGGER
> BEFORE INSERT
> ON IDN_APPMGT_APP
> REFERENCING NEW AS NEW
> FOR EACH ROW
> BEGIN
>  SELECT IDN_APPMGT_APP_SEQUENCE.nextval INTO :NEW.IDFROM 
> dual;
> END;
> /
> ALTER TABLE IDN_APPMGT_APP ADD CONSTRAINT APPLICATION_NAME_CONSTRAINT
> UNIQUE(APP_NAME, TENANT_ID);
> /
>
> *Running this script returns following output.*
>
> Table created.
>
>
> Sequence created.
>
>
> Trigger created.
>
>
> Table altered.
>
> ALTER TABLE IDN_APPMGT_APP ADD CONSTRAINT APPLICATION_NAME_CONSTRAINT
> UNIQUE(APP_NAME, TENANT_ID)
>   *
> ERROR at line 1:
> ORA-02261: such unique or primary key already exists in the table
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied

2014-04-04 Thread Lasantha Fernando
Hi Ajith,

Can we add a null check to the constructor code or log the error and throw?

The actual cause is indeed the missing configs, but it is hard to debug
because that NPE simply causes the bundle instance to not be created, and
dependent bundles also become unsatisfied.


On 4 April 2014 21:06, Ajith Vitharana  wrote:

> Hi Manoj/Lasantha,
>
> I just checked the fresh G-Reg pack without indexing config in
> registry.xml  and it is working fine without any issue.
> When you install some registry feature to others products, you should add
> the related configs (handler config ..etc ) to work that features properly.
>
> AFAIK, there is no way to add config sections to existing configuration
> files while installing features.
>

Maybe can we use the new touchpoints introduced in Carbon 4.2.0 [1] for
this?

[1]
https://docs.wso2.org/display/Carbon420/Adding+and+Removing+XML+Element+Touchpoint+Actions

Thanks,
Lasantha


> Thanks.
> Ajith.
>
>
>
> On Fri, Apr 4, 2014 at 4:54 PM, Manoj Kumara  wrote:
>
>> [Adding Greg Team]
>>
>> Can Greg team please have a look on this.
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Fri, Apr 4, 2014 at 4:49 PM, Lasantha Fernando wrote:
>>
>>> Hi all,
>>>
>>> When looking into the CEP 3.1.0 osgi services, we (Myself and Manoj)
>>> found out that the following registry services were unsatisfied. We found
>>> out that the above services were unsatisfied for some released packs as
>>> well.
>>>
>>> 81 Unsatisfied org.wso2.carbon.governance.api
>>> org.wso2.carbon.governance.api(bid=275)
>>> 110 Unsatisfied org.wso2.carbon.registry.indexing
>>> org.wso2.carbon.registry.indexing(bid=358)
>>> 116 Unsatisfied registry.search.dscomponent
>>> org.wso2.carbon.registry.search(bid=371)
>>>
>>> It seems this occurs due to indexing config not being available in
>>> registry.xml. If this is not available, an NPE is thrown
>>> in org.wso2.carbon.registry.indexing.RegistryConfigLoader constructor which
>>> is run when registering the registry service for the
>>> org.wso2.carbon.registry.indexing bundle. Therefore this NPE is not logged
>>> anywhere and those registry.indexing service fails to register.
>>>
>>> As a workaround for this issue, you can to add an
>>> ** element to registry.xml.
>>>
>>> But I think the correct fix is to catch the exception in
>>> *org.wso2.carbon.registry.indexing.RegistryConfigLoader* constructor
>>> and assign defaults as has been done for other parameters of the class.
>>>
>>> Thanks,
>>> Lasantha
>>> --
>>> *Lasantha Fernando*
>>> Software Engineer - Data Technologies Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: lasan...@wso2.com
>>> mobile: (+94) 71 5247551
>>>
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied

2014-04-04 Thread Ajith Vitharana
Hi Manoj/Lasantha,

I just checked the fresh G-Reg pack without indexing config in registry.xml
 and it is working fine without any issue.
When you install some registry feature to others products, you should add
the related configs (handler config ..etc ) to work that features properly.

AFAIK, there is no way to add config sections to existing configuration
files while installing features.

Thanks.
Ajith.



On Fri, Apr 4, 2014 at 4:54 PM, Manoj Kumara  wrote:

> [Adding Greg Team]
>
> Can Greg team please have a look on this.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Fri, Apr 4, 2014 at 4:49 PM, Lasantha Fernando wrote:
>
>> Hi all,
>>
>> When looking into the CEP 3.1.0 osgi services, we (Myself and Manoj)
>> found out that the following registry services were unsatisfied. We found
>> out that the above services were unsatisfied for some released packs as
>> well.
>>
>> 81 Unsatisfied org.wso2.carbon.governance.api
>> org.wso2.carbon.governance.api(bid=275)
>> 110 Unsatisfied org.wso2.carbon.registry.indexing
>> org.wso2.carbon.registry.indexing(bid=358)
>> 116 Unsatisfied registry.search.dscomponent
>> org.wso2.carbon.registry.search(bid=371)
>>
>> It seems this occurs due to indexing config not being available in
>> registry.xml. If this is not available, an NPE is thrown
>> in org.wso2.carbon.registry.indexing.RegistryConfigLoader constructor which
>> is run when registering the registry service for the
>> org.wso2.carbon.registry.indexing bundle. Therefore this NPE is not logged
>> anywhere and those registry.indexing service fails to register.
>>
>> As a workaround for this issue, you can to add an
>> ** element to registry.xml.
>>
>> But I think the correct fix is to catch the exception in
>> *org.wso2.carbon.registry.indexing.RegistryConfigLoader* constructor and
>> assign defaults as has been done for other parameters of the class.
>>
>> Thanks,
>> Lasantha
>> --
>> *Lasantha Fernando*
>> Software Engineer - Data Technologies Team
>> WSO2 Inc. http://wso2.com
>>
>> email: lasan...@wso2.com
>> mobile: (+94) 71 5247551
>>
>
>


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


Re: [Dev] [Siddhi] attributes not added to out stream when called in side init method in a Transform class

2014-04-04 Thread Sriskandarajah Suhothayan
Can you try with the latest code?
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/commons/siddhi/2.1.0-wso2v1


On Fri, Apr 4, 2014 at 8:08 PM, Sriskandarajah Suhothayan wrote:

> I think then you are using an old code
> We fixed this recently.
>
> Suho
>
>
> On Fri, Apr 4, 2014 at 10:37 AM, Waruna Perera  wrote:
>
>> i did it in the init. but it doesn't work. in the
>> updateQueryEventSourceOutDefinition in StreamParser class doesn't call the
>> init function of Transform class. So when query returns data it takes only
>> the attributes added in the constructor.
>>
>>
>>
>>
>> On Fri, Apr 4, 2014 at 10:28 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> You should not add any output stream definition information in the
>>> constructor, do all at the init().
>>>
>>> Suho
>>>
>>>
>>> On Fri, Apr 4, 2014 at 9:28 AM, Waruna Perera  wrote:
>>>
 Hi,

 I wrote a transform class in Siddhi which i wanted to return variable
 number of parameters depending on the  # of input parameters. So I got the
 input stream definition in init method to find out number of input
 parameters and added attributes to out put stream depending on that.

 but I found that when siddhi query returns the out put , it only takes
 the output stream parameters which are added in the constructor.

 I found that siddhi call updateQueryEventSourceOutDefinition method
 when adding query.

 package org.wso2.siddhi.core.util.parser;
 StreamParser.java

 In this method it only make instance of the Transformer class , but not
 call the init method.

 So i can not add attributes to out stream when  called in side init
 method in a Transform class.

 Please advice me on this.

 Waruna




>>>
>>>
>>> --
>>>
>>> *S. Suhothayan *
>>> Associate Technical Lead,
>>>  *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/  twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>>
>>
>
>
> --
>
> *S. Suhothayan*
> Associate Technical Lead,
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/  twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
>


-- 

*S. Suhothayan*
Associate Technical Lead,
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] attributes not added to out stream when called in side init method in a Transform class

2014-04-04 Thread Sriskandarajah Suhothayan
I think then you are using an old code
We fixed this recently.

Suho


On Fri, Apr 4, 2014 at 10:37 AM, Waruna Perera  wrote:

> i did it in the init. but it doesn't work. in the
> updateQueryEventSourceOutDefinition in StreamParser class doesn't call the
> init function of Transform class. So when query returns data it takes only
> the attributes added in the constructor.
>
>
>
>
> On Fri, Apr 4, 2014 at 10:28 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> You should not add any output stream definition information in the
>> constructor, do all at the init().
>>
>> Suho
>>
>>
>> On Fri, Apr 4, 2014 at 9:28 AM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> I wrote a transform class in Siddhi which i wanted to return variable
>>> number of parameters depending on the  # of input parameters. So I got the
>>> input stream definition in init method to find out number of input
>>> parameters and added attributes to out put stream depending on that.
>>>
>>> but I found that when siddhi query returns the out put , it only takes
>>> the output stream parameters which are added in the constructor.
>>>
>>> I found that siddhi call updateQueryEventSourceOutDefinition method when
>>> adding query.
>>>
>>> package org.wso2.siddhi.core.util.parser;
>>> StreamParser.java
>>>
>>> In this method it only make instance of the Transformer class , but not
>>> call the init method.
>>>
>>> So i can not add attributes to out stream when  called in side init
>>> method in a Transform class.
>>>
>>> Please advice me on this.
>>>
>>> Waruna
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan *
>> Associate Technical Lead,
>>  *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/  twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>>
>


-- 

*S. Suhothayan*
Associate Technical Lead,
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What JARs should be considered when generating LICENSE.txt for a pack?

2014-04-04 Thread Sajith Ravindra
Hi All,

When generating LICENSE.txt for a product pack is it required to consider
all the JAR files included in the pack. Or else is it only sufficient to
consider jars in /lib and /repository/components/*?

Also, in addition to jars should we also count other file types such as
.zip, .mar files?

Thanks
*, Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/
 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CEP 3.1.0 Nightly Build Pack

2014-04-04 Thread Lasantha Fernando
Hi all,

Please find the latest CEP nightly build pack at [1].

[1]
https://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds/wso2cep-3.1.0-04-04-2014.zip

Thanks,
Lasantha


On 1 April 2014 17:05, Mohanadarshan Vivekanandalingam wrote:

> Hi All,
>
> CEP pack is re-uploaded now.. Please download it and sorry for
> convenience..
>
> [1]
> https://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds/wso2cep-3.1.0-01-04-2014.zip
>
> Regards,
> Mohan
>
>
>
> On Tue, Apr 1, 2014 at 4:48 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Shshika.. we'll check the pack and re-upload it..
>>
>> Thanks,
>> Mohan
>>
>>
>>
>> On Tue, Apr 1, 2014 at 4:44 PM, Shashika Ubhayaratne 
>> wrote:
>>
>>> Hi Lasantha,
>>>
>>> Downloaded the pack from [1] and seems pack has corrupted. Server not
>>> started and observed below exception.
>>>
>>> JAVA_HOME environment variable is set to
>>> /home/shashi/software/jdk1.7.0_51
>>> CARBON_HOME environment variable is set to
>>> /home/shashi/Downloads/wso2cep-3.1.0
>>> Error occurred during initialization of VM
>>> java/lang/ClassNotFoundException: error in opening JAR file
>>> /home/shashi/Downloads/wso2cep-3.1.0/lib/endorsed/xalan-2.7.1.wso2v1.jar
>>>
>>>
>>> [1]:
>>> https://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds/wso2cep-3.1.0-01-04-2014.zip
>>>
>>> Thanks,
>>> Shahsika
>>>
>>> Shashika Ubhayaratne
>>> Associate Technical Lead - QA
>>> WSO2 Inc: http://www.wso2.com/
>>> Mobile: +94773383831
>>>
>>>
>>> On Tue, Apr 1, 2014 at 4:18 PM, Lasantha Fernando 
>>> wrote:
>>> > Hi all,
>>> >
>>> > Please find the latest CEP nightly build pack at [1].
>>> >
>>> > [1]
>>> >
>>> https://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds/wso2cep-3.1.0-01-04-2014.zip
>>> >
>>> > Thanks,
>>> > Lasantha
>>> >
>>> >
>>> > On 25 March 2014 15:36, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com>
>>> > wrote:
>>> >>
>>> >> Hi All,
>>> >>
>>> >> Please find the latest CEP nightly build pack at [1]..
>>> >>
>>> >> [1]
>>> >>
>>> http://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds/wso2cep-3.1.0-25-03-2014.zip
>>> >>
>>> >> @Shashika & Shavantha - Please use the above pack for next QA cycle..
>>> >>
>>> >> Thanks,
>>> >> Mohan
>>> >>
>>> >>
>>> >> On Wed, Mar 19, 2014 at 12:23 PM, Lasantha Fernando <
>>> lasan...@wso2.com>
>>> >> wrote:
>>> >>>
>>> >>> Hi all,
>>> >>>
>>> >>> Please find the nightly build packs for CEP 3.1.0 from [1]. Please
>>> use
>>> >>> the latest one (wso2cep-3.1.0-19-03-2014.zip).
>>> >>>
>>> >>> [1]
>>> https://svn.wso2.org/repos/wso2/people/mohan/CEP_3.1.0_NightlyBuilds
>>> >>>
>>> >>> Thanks,
>>> >>> Lasantha
>>> >>>
>>> >>> --
>>> >>> Lasantha Fernando
>>> >>> Software Engineer - Data Technologies Team
>>> >>> WSO2 Inc. http://wso2.com
>>> >>>
>>> >>> email: lasan...@wso2.com
>>> >>> mobile: (+94) 71 5247551
>>> >>>
>>> >>> ___
>>> >>> Dev mailing list
>>> >>> Dev@wso2.org
>>> >>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> V. Mohanadarshan
>>> >> Software Engineer,
>>> >> Data Technologies Team,
>>> >> WSO2, Inc. http://wso2.com
>>> >> lean.enterprise.middleware.
>>> >>
>>> >> email: mo...@wso2.com
>>> >> phone:(+94) 771117673
>>> >>
>>> >> ___
>>> >> Dev mailing list
>>> >> Dev@wso2.org
>>> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Lasantha Fernando
>>> > Software Engineer - Data Technologies Team
>>> > WSO2 Inc. http://wso2.com
>>> >
>>> > email: lasan...@wso2.com
>>> > mobile: (+94) 71 5247551
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problems with using org.wso2.carbon.ndatasource.stub

2014-04-04 Thread Anjana Fernando
Hi Johann,

NDatasource component is not specific to RDBMS data sources. It is a
generic component that can be (and we have) used to create any type of a
data source. That is why, the payload you send to testConnection in
ndatasource component basically contains all the information required to
fully identify the data source type and all its properties. It does not
contain any unwanted properties, but have just the required amount of data
to implement this as a generic feature. So this test connection behavior is
originally created to be used by the data sources UI component, where it
has all these information readily available, if not, if you're using this
API, you have to create this structure yourself, and send it. The existing
data source types such as RDBMS type [1], we simply use JAXB to create the
XML payload need to be send as the "datasourceDefinition", where you can
populate RDBMSConfiguration object and serialize it. This may possibly how
you guys are doing it in other places now.

Anyways, you mentioned you cannot use the same functionality to do this
from the backend, I've just in my earlier mail pointed out how you can do
this. You can simply look at how the admin service is implemented which you
use from your UI. It's done basically by using
"DataSourceManager.getInstance().getDataSourceRepository().testDataSourceConnection()".
So you can directly call it like that. And also with that, you yourself can
write a more convenient RDBMS specific backend service to do connection
validations by only passing in the properties you need for a JDBC
connection.

[1]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.ndatasource.rdbms/4.2.0/src/main/java/org/wso2/carbon/ndatasource/rdbms/RDBMSConfiguration.java

Cheers,
Anjana.


On Fri, Apr 4, 2014 at 6:40 PM, Johann Nallathamby  wrote:

> Hi Anjana,
>
>
> On Thu, Apr 3, 2014 at 3:04 PM, Anjana Fernando  wrote:
>
>> Hi Maduranga,
>>
>> Yeah, seems like the packages exported from the stub is not correct. We
>> will have to fix those eventually, @Chanika please note.
>>
>> But for your requirement, I'm guessing you will have your own admin
>> service operations when adding user stores and all. So calling another
>> service from through a backend service is overkill, you can directly call
>> the required functionality directly. Check here [1] to see how
>> "testDataSourceConnection()" is implemented, you just have to use a logic
>> similar to do it.
>>
>
> We are not calling the service from the BE. We are using the same
> ndatasource stub to call the web service from the UI component itself.
>
> We find that the nadatasource UI component is doing quite a lot of
> processing and creating a complex object before sending  the request to the
> back end. I don't think all that processing is needed in the UI. Due to
> this we also had to duplicate all that code in our
> user.store.configuration.ui. Effectively you should only need the
> connection URL, username, password and Driver class to test the JDBC
> connection from the UI. If the service was accepting only these parameters
> our lives would have been much easier.
>
> Another problem with this is that we cannot use the same service to do
> validation from our backend components. What comes to my mind right now as
> a work around is to have all that code we duplicated in a common bundle and
> use it in both FE and BE components. I wonder if you are doing this
> validation both in FE and BE and if so how you are doing it.
>
> If you are doing any changes related to these components please consider
> the above improvements.
>
>
>> But then again, if your requirement is directly from the UI to check the
>> validity of database connection information, then yeah, do fix the data
>> source UI component as you've done, but you have to check all the usages of
>> those packages and fix those as well.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.ndatasource.core/4.2.0/src/main/java/org/wso2/carbon/ndatasource/core/services/NDataSourceAdminService.java
>>
>> Cheers,
>> Anjana.
>>
>>
>> On Thu, Apr 3, 2014 at 1:32 PM, Maduranga Siriwardena > > wrote:
>>
>>> Hi all,
>>> In the IS, when a secondary JDBC user store is creating the database
>>> connection is not tested. So when we do a operation on the user store,
>>> exceptions are thrown. So to fix the issue, I need to check the database
>>> connection before creating the user store.
>>>
>>> Same scenario happens in DSS. It uses org.wso2.carbon.ndatasource.stub
>>> and generate a client and call the relevant methods. But as you can see
>>> imports are done as org.wso2.carbon.ndatasource.ui.stub in [1]. So if I
>>> do the same thing and build my component, I builds without errors. But when
>>> I add the jar to the pack and run the server it gives runtime errors(can't
>>> remember the exact error. but it was about problems with finding the
>>> correct packages and classes.). But if I add
>>> t

Re: [Dev] Problems with using org.wso2.carbon.ndatasource.stub

2014-04-04 Thread Johann Nallathamby
Hi Anjana,


On Thu, Apr 3, 2014 at 3:04 PM, Anjana Fernando  wrote:

> Hi Maduranga,
>
> Yeah, seems like the packages exported from the stub is not correct. We
> will have to fix those eventually, @Chanika please note.
>
> But for your requirement, I'm guessing you will have your own admin
> service operations when adding user stores and all. So calling another
> service from through a backend service is overkill, you can directly call
> the required functionality directly. Check here [1] to see how
> "testDataSourceConnection()" is implemented, you just have to use a logic
> similar to do it.
>

We are not calling the service from the BE. We are using the same
ndatasource stub to call the web service from the UI component itself.

We find that the nadatasource UI component is doing quite a lot of
processing and creating a complex object before sending  the request to the
back end. I don't think all that processing is needed in the UI. Due to
this we also had to duplicate all that code in our
user.store.configuration.ui. Effectively you should only need the
connection URL, username, password and Driver class to test the JDBC
connection from the UI. If the service was accepting only these parameters
our lives would have been much easier.

Another problem with this is that we cannot use the same service to do
validation from our backend components. What comes to my mind right now as
a work around is to have all that code we duplicated in a common bundle and
use it in both FE and BE components. I wonder if you are doing this
validation both in FE and BE and if so how you are doing it.

If you are doing any changes related to these components please consider
the above improvements.


> But then again, if your requirement is directly from the UI to check the
> validity of database connection information, then yeah, do fix the data
> source UI component as you've done, but you have to check all the usages of
> those packages and fix those as well.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.ndatasource.core/4.2.0/src/main/java/org/wso2/carbon/ndatasource/core/services/NDataSourceAdminService.java
>
> Cheers,
> Anjana.
>
>
> On Thu, Apr 3, 2014 at 1:32 PM, Maduranga Siriwardena 
> wrote:
>
>> Hi all,
>> In the IS, when a secondary JDBC user store is creating the database
>> connection is not tested. So when we do a operation on the user store,
>> exceptions are thrown. So to fix the issue, I need to check the database
>> connection before creating the user store.
>>
>> Same scenario happens in DSS. It uses org.wso2.carbon.ndatasource.stub
>> and generate a client and call the relevant methods. But as you can see
>> imports are done as org.wso2.carbon.ndatasource.ui.stub in [1]. So if I
>> do the same thing and build my component, I builds without errors. But when
>> I add the jar to the pack and run the server it gives runtime errors(can't
>> remember the exact error. but it was about problems with finding the
>> correct packages and classes.). But if I add
>> the org.wso2.carbon.ndatasource.ui component also to the dropins folder, it
>> works without errors.
>>
>> But I can't add the UI component to the IS as it will change the UI of
>> the IS.
>> When I checked the folder structure of the jar of the stub, it was like 
>> org/wso2/carbon/ndatasource/ui/stub.
>> So I think there is a problem with exporting the packages in the stub. So I
>> did some changes to the pom of the stub (in the maven-antrun-plugin
>> section) changing some package names when generating the stub from
>> wsdl2java (changed pom and diff are attached here). So by doing this, I can
>> test the connection in IS without a problem.
>> As changing the stub will break the other components that user the stub,
>> I changed the above mentioned UI component. Now it is working without a
>> problem. (not much sure of any other component that use the stub)
>>
>> Can someone please comment about the suitability of this approach.
>>
>>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/ndatasource/org.wso2.carbon.ndatasource.ui/4.2.2/src/main/java/org/wso2/carbon/ndatasource/ui/NDataSourceAdminServiceClient.java
>>
>> Thank you,
>> Maduranga
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

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

Re: [Dev] Cache invalidation on remote Greg mounts on other Carbon products

2014-04-04 Thread Afkham Azeez
On Fri, Apr 4, 2014 at 5:44 PM, Amal Gunatilake  wrote:

> Hi Azeez/Senaka,
>
> I have implemented the JMS publisher and receiver as a separate component.
> These interfaces will register a topic in the ActiveMQ server and each
> cluster node can subscribe to the topic. Once GReg cluster publish the
> message to the topic the subscribers will receive the message.
>
> In-order to implement the next step which is passing and updating the
> correct data, I need to know the following.
>
>1. Which section of the code I need to focus in Kernel where cache
>invalidation happens in GReg (Hazelcast Cache add, delete, update)?
>
> In GReg, wherever relevant resources are updated, and cache needs to be
globally (across multiple clusters) invalidated, your OSGi service should
get called. Let's call that service GlobalCacheInivalidationService


>
>1.
>2. Which section of the code I need to focus in Kernel where
>individual nodes get update in a cluster with Hazelcast?
>
>
In the kernel, we just need to add the patch which implements the
coordinator functionality. We don't need to change any other code or the
caching implementation

>
>1.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> 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*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cache invalidation on remote Greg mounts on other Carbon products

2014-04-04 Thread Amal Gunatilake
Hi Azeez/Senaka,

I have implemented the JMS publisher and receiver as a separate component.
These interfaces will register a topic in the ActiveMQ server and each
cluster node can subscribe to the topic. Once GReg cluster publish the
message to the topic the subscribers will receive the message.

In-order to implement the next step which is passing and updating the
correct data, I need to know the following.

   1. Which section of the code I need to focus in Kernel where cache
   invalidation happens in GReg (Hazelcast Cache add, delete, update)?
   2. Which section of the code I need to focus in Kernel where individual
   nodes get update in a cluster with Hazelcast?

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied

2014-04-04 Thread Manoj Kumara
[Adding Greg Team]

Can Greg team please have a look on this.

Thanks,
Manoj


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


On Fri, Apr 4, 2014 at 4:49 PM, Lasantha Fernando  wrote:

> Hi all,
>
> When looking into the CEP 3.1.0 osgi services, we (Myself and Manoj) found
> out that the following registry services were unsatisfied. We found out
> that the above services were unsatisfied for some released packs as well.
>
> 81 Unsatisfied org.wso2.carbon.governance.api
> org.wso2.carbon.governance.api(bid=275)
> 110 Unsatisfied org.wso2.carbon.registry.indexing
> org.wso2.carbon.registry.indexing(bid=358)
> 116 Unsatisfied registry.search.dscomponent
> org.wso2.carbon.registry.search(bid=371)
>
> It seems this occurs due to indexing config not being available in
> registry.xml. If this is not available, an NPE is thrown
> in org.wso2.carbon.registry.indexing.RegistryConfigLoader constructor which
> is run when registering the registry service for the
> org.wso2.carbon.registry.indexing bundle. Therefore this NPE is not logged
> anywhere and those registry.indexing service fails to register.
>
> As a workaround for this issue, you can to add an
> ** element to registry.xml.
>
> But I think the correct fix is to catch the exception in
> *org.wso2.carbon.registry.indexing.RegistryConfigLoader* constructor and
> assign defaults as has been done for other parameters of the class.
>
> Thanks,
> Lasantha
> --
> *Lasantha Fernando*
> Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied

2014-04-04 Thread Lasantha Fernando
Hi all,

When looking into the CEP 3.1.0 osgi services, we (Myself and Manoj) found
out that the following registry services were unsatisfied. We found out
that the above services were unsatisfied for some released packs as well.

81 Unsatisfied org.wso2.carbon.governance.api
org.wso2.carbon.governance.api(bid=275)
110 Unsatisfied org.wso2.carbon.registry.indexing
org.wso2.carbon.registry.indexing(bid=358)
116 Unsatisfied registry.search.dscomponent
org.wso2.carbon.registry.search(bid=371)

It seems this occurs due to indexing config not being available in
registry.xml. If this is not available, an NPE is thrown
in org.wso2.carbon.registry.indexing.RegistryConfigLoader constructor which
is run when registering the registry service for the
org.wso2.carbon.registry.indexing bundle. Therefore this NPE is not logged
anywhere and those registry.indexing service fails to register.

As a workaround for this issue, you can to add an
**element to registry.xml.

But I think the correct fix is to catch the exception in
*org.wso2.carbon.registry.indexing.RegistryConfigLoader* constructor and
assign defaults as has been done for other parameters of the class.

Thanks,
Lasantha
-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to read a resource in the ESB registry programatically

2014-04-04 Thread Rushmin Fernando
Thanks Chanaka

I have the following resource in my registry.

*/_system/governance/repository/components/org.wso2.apn/apns.p12*

When I try to get it using  *regInstance.getResource(new
Entry("gov:/repository/components/org.wso2.apn/apns.p12**"),null);*   it
gives the following NPE

Caused by: java.lang.NullPointerException
at
org.wso2.carbon.mediation.registry.WSO2Registry.readNonXML(WSO2Registry.java:664)
at
org.wso2.carbon.mediation.registry.WSO2Registry.lookup(WSO2Registry.java:186)

But if I cast the registry to WSO2Registry and use the following code line
it works.

*wso2registry.wso2Registry.getResource("gov:/repository/components/org.wso2.apn/apns.p12")*

Any thoughts on this please ?


On Fri, Apr 4, 2014 at 1:09 PM, Chanaka Fernando  wrote:

> You can access registry resource inside mediate method as below.
>
>   // if localentry "testLocalentry" defined in synapse econfig
> Entry localEntryObj = (Entry) synapseMsgContext.getConfiguration()
> .getLocalRegistry().get("testLocalentry");
> System.out.println(" value: " + localEntryObj.getValue());
> System.out.println(" Filename : " + localEntryObj.getFileName());
>
> // goverance/config registry
> Registry regInstance = synapseMsgContext.getConfiguration()
> .getRegistry();
> Object obj=regInstance.getResource(new
> Entry("gov:/test1.txt"),null);
> Object obj2=regInstance.getResource(new
> Entry("conf:/test2.txt"),null);
>
> Thanks,
> Chanaka
>
>
> On Fri, Apr 4, 2014 at 12:51 PM, Rushmin Fernando wrote:
>
>> Hi
>>
>> I need to read a blob in the the registry, from a mediator class. How can
>> I do that please ?
>>
>> Thanks
>> /rushmin
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>> ___
>> 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
>
>
>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create wso2 orbit repository for bsf

2014-04-04 Thread Manoj Kumara
Hi,

I need to add the fix relevant to [1] to git trunk. Could you please create
relevant git repository for [2] on [3].

[1] https://wso2.org/jira/browse/ESBJAVA-3019
[2] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0/bsf/
[3] https://github.com/wso2/orbit

Thanks,
Manoj

*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problems with using org.wso2.carbon.ndatasource.stub

2014-04-04 Thread Maduranga Siriwardena
Hi all,
I found another reference to the above mentioned stub
in org.wso2.carbon.mediator.dblookup.ui component. Seems to be it is the
only other component that is using that stub. (It is the only reference I
found from a search to a component that has the reference to
org.wso2.carbon.ndatasource.ui.stub, but not sure)
So is there another way to use the stub without changing it (in a way that
will break the other components) and not using the UI component (
org.wso2.carbon.ndatasource.ui ) that uses the stub?

Thank you,
Maduranga


On Thu, Apr 3, 2014 at 3:04 PM, Anjana Fernando  wrote:

> Hi Maduranga,
>
> Yeah, seems like the packages exported from the stub is not correct. We
> will have to fix those eventually, @Chanika please note.
>
> But for your requirement, I'm guessing you will have your own admin
> service operations when adding user stores and all. So calling another
> service from through a backend service is overkill, you can directly call
> the required functionality directly. Check here [1] to see how
> "testDataSourceConnection()" is implemented, you just have to use a logic
> similar to do it.
>
> But then again, if your requirement is directly from the UI to check the
> validity of database connection information, then yeah, do fix the data
> source UI component as you've done, but you have to check all the usages of
> those packages and fix those as well.
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.ndatasource.core/4.2.0/src/main/java/org/wso2/carbon/ndatasource/core/services/NDataSourceAdminService.java
>
> Cheers,
> Anjana.
>
>
> On Thu, Apr 3, 2014 at 1:32 PM, Maduranga Siriwardena 
> wrote:
>
>> Hi all,
>> In the IS, when a secondary JDBC user store is creating the database
>> connection is not tested. So when we do a operation on the user store,
>> exceptions are thrown. So to fix the issue, I need to check the database
>> connection before creating the user store.
>>
>> Same scenario happens in DSS. It uses org.wso2.carbon.ndatasource.stub
>> and generate a client and call the relevant methods. But as you can see
>> imports are done as org.wso2.carbon.ndatasource.ui.stub in [1]. So if I
>> do the same thing and build my component, I builds without errors. But when
>> I add the jar to the pack and run the server it gives runtime errors(can't
>> remember the exact error. but it was about problems with finding the
>> correct packages and classes.). But if I add
>> the org.wso2.carbon.ndatasource.ui component also to the dropins folder, it
>> works without errors.
>>
>> But I can't add the UI component to the IS as it will change the UI of
>> the IS.
>> When I checked the folder structure of the jar of the stub, it was like 
>> org/wso2/carbon/ndatasource/ui/stub.
>> So I think there is a problem with exporting the packages in the stub. So I
>> did some changes to the pom of the stub (in the maven-antrun-plugin
>> section) changing some package names when generating the stub from
>> wsdl2java (changed pom and diff are attached here). So by doing this, I can
>> test the connection in IS without a problem.
>> As changing the stub will break the other components that user the stub,
>> I changed the above mentioned UI component. Now it is working without a
>> problem. (not much sure of any other component that use the stub)
>>
>> Can someone please comment about the suitability of this approach.
>>
>>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/ndatasource/org.wso2.carbon.ndatasource.ui/4.2.2/src/main/java/org/wso2/carbon/ndatasource/ui/NDataSourceAdminServiceClient.java
>>
>> Thank you,
>> Maduranga
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Anjana Fernando*
> Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge wso2-synapse #5 pull request

2014-04-04 Thread Vanjikumaran Sivajothy
Pull request has been merged and build [1]

[1]
https://github.com/dhanuka84/wso2-synapse/commit/e996fa31023ec042150e8a8c6093714b1cadfb9b



On Fri, Apr 4, 2014 at 12:19 PM, Vanjikumaran Sivajothy wrote:

> Please review the change @ [1]
>
> [1]
> https://github.com/dhanuka84/wso2-synapse/commit/e996fa31023ec042150e8a8c6093714b1cadfb9b
>
> Thanks
>
>
> On Fri, Apr 4, 2014 at 12:17 PM, Dhanuka Ranasinghe wrote:
>
>> Please merge the following pull request
>>
>> https://github.com/wso2-dev/wso2-synapse/pull/5
>>
>> Related Jirra
>>
>> https://wso2.org/jira/browse/LB-142
>> https://wso2.org/jira/browse/LB-95
>>
>> Cheers,
>> Dhanuka
>>
>> *Dhanuka Ranasinghe*
>>
>> Senior Software Engineer
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 715381915
>>
>
>
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com *
> *Mobile:(+94)777219209*
> *Mobile USA:**(+1)918 813 2403*
> [image: Facebook]  [image: 
> Twitter] [image:
> LinkedIn]  
> [image:
> Blogger]  [image: 
> SlideShare]
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>



-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
*Mobile USA:**(+1)918 813 2403*
[image: Facebook]  [image:
Twitter] [image:
LinkedIn] 
[image:
Blogger]  [image:
SlideShare]

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


Re: [Dev] Authentication Framework Clarification

2014-04-04 Thread Prasad Tissera
Got it. Problem was with my configuration. Thank you for the clarification.


On Fri, Apr 4, 2014 at 1:46 PM, Suresh Attanayaka  wrote:

> That cannot be, Only the variable name is *sp *there, but the value being
> passed over there is the client id.
>
>
> On Fri, Apr 4, 2014 at 1:31 PM, Prasad Tissera  wrote:
>
>> Class:
>> *org.wso2.carbon.identity.application.authentication.framework.config.builder.UIBasedConfigurationBuilder
>>  *
>>
>> Method:  *getSequence(String reqType, String sp) *
>>
>> *ApplicationDTO appConfigDTO = appDataAPI.getApplicationData(sp, reqType,
>> MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);*
>>
>> Here service provider Id has been passed for clientId in Method :*
>> getApplicationData(String clientId, String type, String tenantDomain) *
>>
>>
>>
>>
>> On Fri, Apr 4, 2014 at 1:21 PM, Suresh Attanayaka wrote:
>>
>>> In this query we are trying to get the application name from the client
>>> id, here what we should pass is the Client ID , but not the Application
>>> Name. Do you know at which place we are passing the Application Name as the
>>> Client ID ?
>>>
>>>
>>> On Fri, Apr 4, 2014 at 12:24 PM, Prasad Tissera wrote:
>>>
 As I observed when the service provider name and the issuer name in
 service provider configurations are different it does not pick the
 configurations from the database.

 That is because of passing service provider name for CLIENT_ID in the
 following query.

 "SELECT APP_NAME  FROM IDN_APPMGT_APP INNER JOIN IDN_APPMGT_CLIENT ON
 IDN_APPMGT_APP.ID = IDN_APPMGT_CLIENT.APP_ID  WHERE CLIENT_ID = ? AND
 CLIENT_TYPE = ? AND IDN_APPMGT_APP.TENANT_ID = ? AND
 IDN_APPMGT_CLIENT.TENANT_ID=?";

 Just want to know whether this is the intended behavior.


 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

>>>
>>>
>>>
>>> --
>>> Suresh Attanayake
>>> Senior Software Engineer; WSO2 Inc. http://wso2.com/
>>> Blog : http://sureshatt.blogspot.com/
>>> Web : http://www.ssoarcade.com/
>>> Facebook : https://www.facebook.com/IdentityWorld
>>> Twitter : https://twitter.com/sureshatt
>>> LinkedIn : http://lk.linkedin.com/in/sureshatt
>>> Mobile : +94755012060
>>> Mobile : +016166171172
>>>
>>
>>
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>
>
>
> --
> Suresh Attanayake
> Senior Software Engineer; WSO2 Inc. http://wso2.com/
> Blog : http://sureshatt.blogspot.com/
> Web : http://www.ssoarcade.com/
> Facebook : https://www.facebook.com/IdentityWorld
> Twitter : https://twitter.com/sureshatt
> LinkedIn : http://lk.linkedin.com/in/sureshatt
> Mobile : +94755012060
> Mobile : +016166171172
>



-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authentication Framework Clarification

2014-04-04 Thread Suresh Attanayaka
That cannot be, Only the variable name is *sp *there, but the value being
passed over there is the client id.


On Fri, Apr 4, 2014 at 1:31 PM, Prasad Tissera  wrote:

> Class:
> *org.wso2.carbon.identity.application.authentication.framework.config.builder.UIBasedConfigurationBuilder
>  *
>
> Method:  *getSequence(String reqType, String sp) *
>
> *ApplicationDTO appConfigDTO = appDataAPI.getApplicationData(sp, reqType,
> MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);*
>
> Here service provider Id has been passed for clientId in Method :*
> getApplicationData(String clientId, String type, String tenantDomain) *
>
>
>
>
> On Fri, Apr 4, 2014 at 1:21 PM, Suresh Attanayaka  wrote:
>
>> In this query we are trying to get the application name from the client
>> id, here what we should pass is the Client ID , but not the Application
>> Name. Do you know at which place we are passing the Application Name as the
>> Client ID ?
>>
>>
>> On Fri, Apr 4, 2014 at 12:24 PM, Prasad Tissera  wrote:
>>
>>> As I observed when the service provider name and the issuer name in
>>> service provider configurations are different it does not pick the
>>> configurations from the database.
>>>
>>> That is because of passing service provider name for CLIENT_ID in the
>>> following query.
>>>
>>> "SELECT APP_NAME  FROM IDN_APPMGT_APP INNER JOIN IDN_APPMGT_CLIENT ON
>>> IDN_APPMGT_APP.ID = IDN_APPMGT_CLIENT.APP_ID  WHERE CLIENT_ID = ? AND
>>> CLIENT_TYPE = ? AND IDN_APPMGT_APP.TENANT_ID = ? AND
>>> IDN_APPMGT_CLIENT.TENANT_ID=?";
>>>
>>> Just want to know whether this is the intended behavior.
>>>
>>>
>>> --
>>> Prasad Tissera
>>> Software Engineer.
>>> Mobile : +94777223444
>>>
>>
>>
>>
>> --
>> Suresh Attanayake
>> Senior Software Engineer; WSO2 Inc. http://wso2.com/
>> Blog : http://sureshatt.blogspot.com/
>> Web : http://www.ssoarcade.com/
>> Facebook : https://www.facebook.com/IdentityWorld
>> Twitter : https://twitter.com/sureshatt
>> LinkedIn : http://lk.linkedin.com/in/sureshatt
>> Mobile : +94755012060
>> Mobile : +016166171172
>>
>
>
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



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


[Dev] Service Provider db script : column names too long

2014-04-04 Thread Prasad Tissera
Following column names are need to be changed because those are more than
30 characters long. Oracle only allow maximum of 30 characters.

SP_IDP_CLAIMS : SP_IDP_IS_PROVISION_USER_STORE_CLAIM
SP_IDP_OPENID : SP_IDP_IS_OPENID_USER_ID_IN_CLAIMS
SP_IDP_SAMLSSO : SP_IDP_IS_SAMLSSO_USER_ID_IN_CLAIMS
SP_IDP_OIDC : SP_IDP_IS_OIDC_USER_ID_IN_CLAIMS
SP_IDP_PASSIVE_STS : SP_IDP_IS_PASSIVE_STS_USER_ID_IN_CLAIMS

I am planning to change column names as follows to satisfy the rule. All
the references also will need to change accordingly.

SP_IDP_CLAIMS : IS_PROVISION_USER_STORE_CLAIM
SP_IDP_OPENID : IS_OPENID_USER_ID_IN_CLAIMS
SP_IDP_SAMLSSO : IS_SAMLSSO_USER_ID_IN_CLAIMS
SP_IDP_OIDC : IS_OIDC_USER_ID_IN_CLAIMS
SP_IDP_PASSIVE_STS : IS_PSVE_STS_USER_ID_IN_CLAIMS

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authentication Framework Clarification

2014-04-04 Thread Prasad Tissera
Class:
*org.wso2.carbon.identity.application.authentication.framework.config.builder.UIBasedConfigurationBuilder
*

Method:  *getSequence(String reqType, String sp) *

*ApplicationDTO appConfigDTO = appDataAPI.getApplicationData(sp, reqType,
MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);*

Here service provider Id has been passed for clientId in Method :*
getApplicationData(String clientId, String type, String tenantDomain) *




On Fri, Apr 4, 2014 at 1:21 PM, Suresh Attanayaka  wrote:

> In this query we are trying to get the application name from the client
> id, here what we should pass is the Client ID , but not the Application
> Name. Do you know at which place we are passing the Application Name as the
> Client ID ?
>
>
> On Fri, Apr 4, 2014 at 12:24 PM, Prasad Tissera  wrote:
>
>> As I observed when the service provider name and the issuer name in
>> service provider configurations are different it does not pick the
>> configurations from the database.
>>
>> That is because of passing service provider name for CLIENT_ID in the
>> following query.
>>
>> "SELECT APP_NAME  FROM IDN_APPMGT_APP INNER JOIN IDN_APPMGT_CLIENT ON
>> IDN_APPMGT_APP.ID = IDN_APPMGT_CLIENT.APP_ID  WHERE CLIENT_ID = ? AND
>> CLIENT_TYPE = ? AND IDN_APPMGT_APP.TENANT_ID = ? AND
>> IDN_APPMGT_CLIENT.TENANT_ID=?";
>>
>> Just want to know whether this is the intended behavior.
>>
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>
>
>
> --
> Suresh Attanayake
> Senior Software Engineer; WSO2 Inc. http://wso2.com/
> Blog : http://sureshatt.blogspot.com/
> Web : http://www.ssoarcade.com/
> Facebook : https://www.facebook.com/IdentityWorld
> Twitter : https://twitter.com/sureshatt
> LinkedIn : http://lk.linkedin.com/in/sureshatt
> Mobile : +94755012060
> Mobile : +016166171172
>



-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Relevant mailing list on http://jaggeryjs.org not mentioned

2014-04-04 Thread Shani Ranasinghe
Just now found it being repeated on http://jaggeryjs.org/documentation.jagtoo.


On Fri, Apr 4, 2014 at 12:45 AM, Shani Ranasinghe  wrote:

> Hi,
>
> I was going through the http://jaggeryjs.org/about.jag page, and noticed
> in the first section "Jaggery Manifesto " it has a statement saying "So
> give it a run and let us know how it goes by mailing us here". I checked
> using Firefox 26.0 and google chrome version 32.0.1700.107.  I didn't
> find the word here being a link or a mail address specified anywhere in
> that page, or a contact us page. I would like to suggest that,  to have
> the mail address clearly stated and rather than having it with a "here"
> link (if that was the intention), specify the mail address it self.
>
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



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

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


[Dev] Invitation: CEP Code Review @ Fri Apr 4, 2014 2pm - 3:30pm (mo...@wso2.com)

2014-04-04 Thread Mohanadarshan Vivekanandalingam
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140404T083000Z
DTEND:20140404T10Z
DTSTAMP:20140404T074647Z
ORGANIZER;CN=Mohanadarshan Vivekanandalingam:mailto:mo...@wso2.com
UID:uqve9is96v5ik7gindoimh7...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dilini Muthumala;X-NUM-GUESTS=0:mailto:dil...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 6th Floor Meeting Room - Dijkstra;X-NUM-GUESTS=0:mailto:wso2.com_3
 7373634303139362d333...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jaminda Batuwangala;X-NUM-GUESTS=0:mailto:jami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=mo...@wso2.com;X-NUM-GUESTS=0:mailto:mo...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sajith Ravindra;X-NUM-GUESTS=0:mailto:saji...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20140404T074551Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&eid=dXF2ZTlpczk2djVpazdnaW5kb2ltaDdzcjAgZGV2QHdzbzIub3Jn&tok=MTQjbW9oY
 W5Ad3NvMi5jb21kZDk2MzhlY2Q0ZTg3OGUxZWE3ZTg5YWJjMDhjNzc5ZDU4ZjA0Mzg5&ctz=Asi
 a/Colombo&hl=en.
LAST-MODIFIED:20140404T074647Z
LOCATION:LK 6th Floor Meeting Room - Dijkstra
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:CEP Code Review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] Authentication Framework Clarification

2014-04-04 Thread Suresh Attanayaka
In this query we are trying to get the application name from the client id,
here what we should pass is the Client ID , but not the Application Name.
Do you know at which place we are passing the Application Name as the
Client ID ?


On Fri, Apr 4, 2014 at 12:24 PM, Prasad Tissera  wrote:

> As I observed when the service provider name and the issuer name in
> service provider configurations are different it does not pick the
> configurations from the database.
>
> That is because of passing service provider name for CLIENT_ID in the
> following query.
>
> "SELECT APP_NAME  FROM IDN_APPMGT_APP INNER JOIN IDN_APPMGT_CLIENT ON
> IDN_APPMGT_APP.ID = IDN_APPMGT_CLIENT.APP_ID  WHERE CLIENT_ID = ? AND
> CLIENT_TYPE = ? AND IDN_APPMGT_APP.TENANT_ID = ? AND
> IDN_APPMGT_CLIENT.TENANT_ID=?";
>
> Just want to know whether this is the intended behavior.
>
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



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


[Dev] [Jaggery] Relevant mailing list on http://jaggeryjs.org not mentioned

2014-04-04 Thread Shani Ranasinghe
Hi,

I was going through the http://jaggeryjs.org/about.jag page, and noticed in
the first section "Jaggery Manifesto " it has a statement saying "So give
it a run and let us know how it goes by mailing us here". I checked using
Firefox 26.0 and google chrome version 32.0.1700.107.  I didn't find the
word here being a link or a mail address specified anywhere in that page,
or a contact us page. I would like to suggest that,  to have the mail
address clearly stated and rather than having it with a "here" link (if
that was the intention), specify the mail address it self.

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

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


[Dev] Fwd: Build failed in Jenkins: productESBProjectDev #16

2014-04-04 Thread Vanjikumaran Sivajothy
We are facing this error stack after merging the pull request that you send.
Please have a look.  We can not have the 4.2.0 in the GIT
Thank you
Vanji
-- Forwarded message --
From: 
Date: Fri, Apr 4, 2014 at 12:34 PM
Subject: Build failed in Jenkins: productESBProjectDev #16


See 

Changes:

[dharshanaw] Adding integration modules to the ESB

[dharshanaw] Adding integration modules to the ESB

Downloading:
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.rest.api/4.2.0-SNAPSHOT/org.wso2.carbon.rest.api-4.2.0-SNAPSHOT.jar
Downloading:
http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.rest.api.stub/4.2.0-SNAPSHOT/org.wso2.carbon.rest.api.stub-4.2.0-SNAPSHOT.jar
Downloading:
http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/1.6.1-wso2v12-SNAPSHOT/rampart-core-1.6.1-wso2v12-SNAPSHOT.jar
Downloading:
http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.rest.api/4.2.0-SNAPSHOT/org.wso2.carbon.rest.api-4.2.0-SNAPSHOT.jar
Downloading:
http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.rest.api.stub/4.2.0-SNAPSHOT/org.wso2.carbon.rest.api.stub-4.2.0-SNAPSHOT.jar
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 ESB - Aggregator Module .. SUCCESS [1.650s]
[INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.025s]
[INFO] WSO2 ESB - Styles . SUCCESS [33.718s]
[INFO] WSO2 ESB - Samples Parent . SUCCESS [0.024s]
[INFO] WSO2 ESB - Samples  SUCCESS
[2:44.570s]
[INFO] WSO2 ESB - Features Parent  SUCCESS [0.031s]
[INFO] WSO2 ESB - Features Aggregator Module . SUCCESS [0.023s]
[INFO] WSO2 ESB - Styles Features  SUCCESS [6.124s]
[INFO] WSO2 ESB - Samples Features ... SUCCESS [0.205s]
[INFO] WSO2 ESB - P2 Profile Generation .. SUCCESS
[38:12.496s]
[INFO] WSO2 ESB - Distribution ... SUCCESS
[1:42.202s]
[INFO] WSO2 ESB - Integration Parent . SUCCESS [3.952s]
[INFO] integration-test-common ... SUCCESS [0.033s]
* [INFO] ESB Integration Test Admin Clients  FAILURE
[54:18.160s]*
[INFO] ESB Integration Extensions  SKIPPED
[INFO] ESB Integration Test Common Utils . SKIPPED
[INFO] ESB Test Service Module ... SKIPPED
[INFO] ESB test Module-Service ... SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:37:51.119s
[INFO] Finished at: Fri Apr 04 12:33:49 IST 2014
[INFO] Final Memory: 66M/505M
[INFO]

Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal
on project admin-clients: Could not resolve dependencies for project
org.wso2.esb:admin-clients:jar:4.9.0-SNAPSHOT: The following artifacts
could not be resolved:
org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT,
org.wso2.carbon:org.wso2.carbon.localentry.stub:jar:4.3.0-SNAPSHOT,
*org.wso2.carbon:org.wso2.carbon.rest.api:jar:4.2.0-SNAPSHOT,
org.wso2.carbon:org.wso2.carbon.rest.api.stub:jar:4.2.0-SNAPSHOT*: Could
not find artifact
org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :admin-clients





-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
*Mobile USA:**(+1)918 813 2403*
[image: Facebook]  [image:
Twitter] [image:
LinkedIn] 
[image:
Blogger]  [image:
SlideShare]

This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intend

Re: [Dev] how to read a resource in the ESB registry programatically

2014-04-04 Thread Chanaka Fernando
You can access registry resource inside mediate method as below.

  // if localentry "testLocalentry" defined in synapse econfig
Entry localEntryObj = (Entry) synapseMsgContext.getConfiguration()
.getLocalRegistry().get("testLocalentry");
System.out.println(" value: " + localEntryObj.getValue());
System.out.println(" Filename : " + localEntryObj.getFileName());

// goverance/config registry
Registry regInstance = synapseMsgContext.getConfiguration()
.getRegistry();
Object obj=regInstance.getResource(new
Entry("gov:/test1.txt"),null);
Object obj2=regInstance.getResource(new
Entry("conf:/test2.txt"),null);

Thanks,
Chanaka


On Fri, Apr 4, 2014 at 12:51 PM, Rushmin Fernando  wrote:

> Hi
>
> I need to read a blob in the the registry, from a mediator class. How can
> I do that please ?
>
> Thanks
> /rushmin
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


[Dev] how to read a resource in the ESB registry programatically

2014-04-04 Thread Rushmin Fernando
Hi

I need to read a blob in the the registry, from a mediator class. How can I
do that please ?

Thanks
/rushmin

-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev