Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Dulanja Liyanage
I'm not sure about the exact root cause of this. But, please note that WSO2
components are intended to run on Oracle Java 1.6 and 1.7. Please refer [1].

[1] https://docs.wso2.com/display/IS500/Installation+Prerequisites

On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hi All,

 I configured IS 5.0.0 STS to issue tokens and tried to run the client
 sample at [1].
 I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
 1.6 which is the apple version.
 When running the client under this setup I got the below exception which
 is thrown by the Identity Server. But this client worked as expected when I
 changed my JAVA_HOME to java 1.7 which is oracle java.

 java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance
 at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
 at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
 at org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
 at
 org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
 at
 org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
 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.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.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:695)
 Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
 

Re: [Dev] jaggery file upload

2014-10-08 Thread Sameera Medagammaddegedara
Hi Lochana,

As per our offline discussion you could try the following:

%
 var systemProcess = require('process');
 var parent = 'file:///' + (systemProcess.getProperty('
jaggery.home') ||
systemProcess.getProperty('carbon.home')).replace(/[\\]/g,
'/').replace(/^[\/]/g, '');
 print(parent);
 var file=new File(parent+'/test.txt');
 try{
 file.open('w');
 file.write('hello!');
 }catch(e){
 print(e);
 } finally{
 file.close();
 }
%
Thank You,
Sameera

On Tue, Oct 7, 2014 at 12:50 PM, Chan duli...@wso2.com wrote:

 I believe it's because Jaggery Apps are web apps that needs to operate
 under the deployments directory. Writing into other directories of the
 server is potentially harmful and a bad practice. But I do understand the
 testing part (since it's easy to save a file to filesystem). How about
 having a special folder inside the webapp (like 'files') and saving them to
 that location. Saving part needs to be abstracted away so that it can be
 later switched to some other implementation.

 Also I think you need to read this file from a Java component. For that -
 you can use the absolute path to the web app itself (again the same method
 as above -abstract the implementation)

 @SameeraM @SameeraP remember the file server discussion we had couple of
 months ago. I think - now we need to have a platform wide, scalable, secure
 standard to write to files and read files.

 Cheers~

 On Tue, Oct 7, 2014 at 12:41 PM, Lochana Menikarachchi loch...@wso2.com
 wrote:

 Is there any reason to restrict file system operations  (why not outside
 Jaggery application context root) ?
 http://jaggeryjs.org/documentation.jag?api=file

 On Tue, Oct 7, 2014 at 12:20 PM, Lochana Menikarachchi loch...@wso2.com
 wrote:

 We need to support file uploading to a server location (for testing
 etc.) in addition to S3,HDFS  etc.

 My question is why does file.save do it the way it does..

 Operation Returns Description  File(String filename)Object

 var file = new File(/templates/tmp.jag);

 Takes a filename and provides a File object. (File path is relative to
 the Jaggery application context root)

 shouldn't it allow saving to any location..


 On Tue, Oct 7, 2014 at 12:11 PM, Chan duli...@wso2.com wrote:

 Hi Lochana,
 Exactly. The correct method to store files is to use a separate file
 service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the
 thread.

 Cheers~

 On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi 
 loch...@wso2.com wrote:

 Hi,

 File uploading brings about a number of issues in scalability. For
 example - if we upload files to the deployments directory- it's not going
 to scale properly (DepSync will sync all these files across the cluster if
 DepSync enabled).

 This is exactly what is happening with current file save method,

 if you do following:

 var carbon = require('carbon');
 var datasetService =
 carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
 var uploadingLimit = datasetService.getDatasetUploadingLimit();
 var memThreshold = datasetService.getDatasetInMemoryThreshold();
 var uploadingDir = datasetService.getDatasetUploadingDir();
 var file = request.getFile(uploadDataset);
* file.saveAs(uploadingDir+/+file.getName());*

 file gets saved under deployment directory.

 We need to upload the file into some other directory on the server..


 On Tue, Oct 7, 2014 at 11:44 AM, Chan duli...@wso2.com wrote:

 Hi Lochana,
 File uploading brings about a number of issues in scalability. For
 example - if we upload files to the deployments directory- it's not going
 to scale properly (DepSync will sync all these files across the cluster 
 if
 DepSync enabled). Also saving a file to a specific path is inadvisable
 cause paths will depend upon deploying machine.

 Can you elaborate more on the requirement - where we can give a
 solution?

 Cheers~

 On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi 
 loch...@wso2.com wrote:

 Unfortunately, that's not going to work. Shouldn't there be a file
 uploader in jaggery (that can upload a file to a given location)?

 On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Lochana!

 Do not know exactly whether their is a way to directly
 give an absolute path and save the file.

 BTW, as a workaround, if no such way exists, can you try to create
 the corresponding relative path for the given absolute one
 and use the same method provided.

 Cheers!


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

 On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi 
 loch...@wso2.com wrote:

 Dilan, There is a specific requirement.. We need to upload a file
 to a given location
 Madhuka, That method returns absolute path.. What I want is to
 upload a file to a given location (that is when absolute path is 
 given as a
 string)
 Thanks.

 On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha 
 

Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Asok Perera
Hi Mailthi,

Could you mention the exact java version in your system ?
In my case, the java version was 1.6.0_65 and it worked without a problem.

BR

*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/
http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
lean.enterprise.middleware

Mobile: +94722241032

On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage dula...@wso2.com wrote:

 I'm not sure about the exact root cause of this. But, please note that
 WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
 refer [1].

 [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites

 On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi All,

 I configured IS 5.0.0 STS to issue tokens and tried to run the client
 sample at [1].
 I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
 1.6 which is the apple version.
 When running the client under this setup I got the below exception which
 is thrown by the Identity Server. But this client worked as expected when I
 changed my JAVA_HOME to java 1.7 which is oracle java.

 java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance
 at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
 at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
 at org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
 at
 org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
 at
 org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
 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.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.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 

Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server

2014-10-08 Thread Tharindu Dharmarathna
Hi Dinesh,Danushka ,
Thank you for help to fix it.


On Tue, Oct 7, 2014 at 11:55 AM, Danushka Fernando danush...@wso2.com
wrote:

 IIRC this is due to a class loading issue. You might have the same jar in
 two places in side the server.

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

 On Tue, Oct 7, 2014 at 11:16 AM, Dinesh J Weerakkody dine...@wso2.com
 wrote:

 Hi,

 I haven't come across this issue. But found this mail thread [1] and just
 give a try..

 [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html

 On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Hi all,
 I have tryed to deploy an Jax-RS app in Application Server .When it
 deploys, following exception is shown.

 Is there any work around which solves this issue ?


 Caused by: java.lang.LinkageError: loader constraint violation: when
 resolving method
 org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;
 the class loader (instance of
 org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
 class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
 (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
 resolved class, org/wso2/securevault/SecretResolverFactory, have different
 Class objects for the type org/apache/axiom/om/OMElement used in the
 signature
 at
 org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
 at
 org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
 at
 org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
 at
 org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
 at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:143)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:623)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:609)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:658)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:650)
 at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
 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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)



 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




 --

 *Dinesh J. Weerakkody*
 Software Engineer
 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

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





-- 

*Tharindu Dharmarathna*Associate Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] jaggery file upload

2014-10-08 Thread Lochana Menikarachchi
Hi Sameera,

At the end, this is what actually worked... Sending the code snippet for
record..

%
var carbon = require('carbon');
var datasetService =
carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
var uploadingDir = datasetService.getDatasetUploadingDir();
var file = request.getFile(uploadDataset);
var uploadFilePath = 'file:///'+uploadingDir+/+file.getName();
var fileN = new File(uploadFilePath);
try{
file.open('r');
fileN.open('w');
fileN.write(file.getStream());
}
finally{
fileN.close();
file.close();
}
%

Thanks.

On Wed, Oct 8, 2014 at 3:15 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Lochana,

 As per our offline discussion you could try the following:

 %
  var systemProcess = require('process');
  var parent = 'file:///' + (systemProcess.getProperty('
 jaggery.home') ||
 systemProcess.getProperty('carbon.home')).replace(/[\\]/g,
 '/').replace(/^[\/]/g, '');
  print(parent);
  var file=new File(parent+'/test.txt');
  try{
  file.open('w');
  file.write('hello!');
  }catch(e){
  print(e);
  } finally{
  file.close();
  }
 %
 Thank You,
 Sameera

 On Tue, Oct 7, 2014 at 12:50 PM, Chan duli...@wso2.com wrote:

 I believe it's because Jaggery Apps are web apps that needs to operate
 under the deployments directory. Writing into other directories of the
 server is potentially harmful and a bad practice. But I do understand the
 testing part (since it's easy to save a file to filesystem). How about
 having a special folder inside the webapp (like 'files') and saving them to
 that location. Saving part needs to be abstracted away so that it can be
 later switched to some other implementation.

 Also I think you need to read this file from a Java component. For that -
 you can use the absolute path to the web app itself (again the same method
 as above -abstract the implementation)

 @SameeraM @SameeraP remember the file server discussion we had couple of
 months ago. I think - now we need to have a platform wide, scalable, secure
 standard to write to files and read files.

 Cheers~

 On Tue, Oct 7, 2014 at 12:41 PM, Lochana Menikarachchi loch...@wso2.com
 wrote:

 Is there any reason to restrict file system operations  (why not outside
 Jaggery application context root) ?
 http://jaggeryjs.org/documentation.jag?api=file

 On Tue, Oct 7, 2014 at 12:20 PM, Lochana Menikarachchi loch...@wso2.com
  wrote:

 We need to support file uploading to a server location (for testing
 etc.) in addition to S3,HDFS  etc.

 My question is why does file.save do it the way it does..

 Operation Returns Description  File(String filename)Object

 var file = new File(/templates/tmp.jag);

 Takes a filename and provides a File object. (File path is relative to
 the Jaggery application context root)

 shouldn't it allow saving to any location..


 On Tue, Oct 7, 2014 at 12:11 PM, Chan duli...@wso2.com wrote:

 Hi Lochana,
 Exactly. The correct method to store files is to use a separate file
 service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the
 thread.

 Cheers~

 On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi 
 loch...@wso2.com wrote:

 Hi,

 File uploading brings about a number of issues in scalability. For
 example - if we upload files to the deployments directory- it's not going
 to scale properly (DepSync will sync all these files across the cluster 
 if
 DepSync enabled).

 This is exactly what is happening with current file save method,

 if you do following:

 var carbon = require('carbon');
 var datasetService =
 carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
 var uploadingLimit = datasetService.getDatasetUploadingLimit();
 var memThreshold = datasetService.getDatasetInMemoryThreshold();
 var uploadingDir = datasetService.getDatasetUploadingDir();
 var file = request.getFile(uploadDataset);
* file.saveAs(uploadingDir+/+file.getName());*

 file gets saved under deployment directory.

 We need to upload the file into some other directory on the server..


 On Tue, Oct 7, 2014 at 11:44 AM, Chan duli...@wso2.com wrote:

 Hi Lochana,
 File uploading brings about a number of issues in scalability. For
 example - if we upload files to the deployments directory- it's not 
 going
 to scale properly (DepSync will sync all these files across the cluster 
 if
 DepSync enabled). Also saving a file to a specific path is inadvisable
 cause paths will depend upon deploying machine.

 Can you elaborate more on the requirement - where we can give a
 solution?

 Cheers~

 On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi 
 loch...@wso2.com wrote:

 Unfortunately, that's not going to work. Shouldn't there be a file
 uploader in jaggery (that can upload a file to a given location)?

 On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Lochana!

 Do not know exactly whether their is a way to 

Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server

2014-10-08 Thread KasunG Gajasinghe
Hi,

I think your webapp contain the axiom jar which conflicts with the one in
plugins/ folder. Remove that from your webapp and try.

On Wed, Oct 8, 2014 at 1:01 PM, Tharindu Dharmarathna tharin...@wso2.com
wrote:

 Hi Dinesh,Danushka ,
 Thank you for help to fix it.


 On Tue, Oct 7, 2014 at 11:55 AM, Danushka Fernando danush...@wso2.com
 wrote:

 IIRC this is due to a class loading issue. You might have the same jar in
 two places in side the server.

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

 On Tue, Oct 7, 2014 at 11:16 AM, Dinesh J Weerakkody dine...@wso2.com
 wrote:

 Hi,

 I haven't come across this issue. But found this mail thread [1] and
 just give a try..

 [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html

 On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Hi all,
 I have tryed to deploy an Jax-RS app in Application Server .When it
 deploys, following exception is shown.

 Is there any work around which solves this issue ?


 Caused by: java.lang.LinkageError: loader constraint violation: when
 resolving method
 org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;
 the class loader (instance of
 org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
 class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
 (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
 resolved class, org/wso2/securevault/SecretResolverFactory, have different
 Class objects for the type org/apache/axiom/om/OMElement used in the
 signature
 at
 org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
 at
 org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
 at
 org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
 at
 org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
 at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:143)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:623)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:609)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:658)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:650)
 at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
 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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)



 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




 --

 *Dinesh J. Weerakkody*
 Software Engineer
 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com

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





 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Niranda Perera
Hi,

Is there any way to restrict only files of certain file types to be
uploaded in the API thumbnail image section in APIM?

Rgds


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


Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Malithi Edirisinghe
Hi Asok,

I have the same java version, i.e 1.6.0_65

Thanks,
Malithi.

On Wed, Oct 8, 2014 at 3:52 PM, Asok Perera as...@wso2.com wrote:

 Hi Mailthi,

 Could you mention the exact java version in your system ?
 In my case, the java version was 1.6.0_65 and it worked without a
 problem.

 BR

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage dula...@wso2.com wrote:

 I'm not sure about the exact root cause of this. But, please note that
 WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
 refer [1].

 [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites

 On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi All,

 I configured IS 5.0.0 STS to issue tokens and tried to run the client
 sample at [1].
 I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
 1.6 which is the apple version.
 When running the client under this setup I got the below exception which
 is thrown by the Identity Server. But this client worked as expected when I
 changed my JAVA_HOME to java 1.7 which is oracle java.

 java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance
 at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
 at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
 at
 org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
 at
 org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
 at
 org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
 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.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.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 

[Dev] How to run integration tests in App Factory

2014-10-08 Thread Amalka Subasinghe
Hi,

Test location: [1]

I have skipped running integration tests from regular builds making
skipPlatformTests = true in [2].


When you want to execute the tests; either you can

a. change the property skipPlatformTestsfalseskipPlatformTests in [2]
and then execute the command mvn clean install

OR

b. execute the command mvn clean install -DskipPlatformTests=false

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/
[2]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/tests-integration/tests-scenarios/pom.xml


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


[Dev] Error while building sample connector

2014-10-08 Thread Kasun Dissanayake
Hi all,

I have checked out the
http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
and compiled with following repository as offline discuss with Darshana




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building IS sample connector

2014-10-08 Thread Darshana Gunawardana
I tried with a clean repo and it builds fine. Do you have any local changes?

On Wed, Oct 8, 2014 at 6:52 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Sorry guys I mistakenly add this to vacation group.

 -- Forwarded message --
 From: Kasun Dissanayake kas...@wso2.com
 Date: Wed, Oct 8, 2014 at 6:50 PM
 Subject: Error while building IS sample connector
 To: vacation-group vacation-gr...@wso2.com
 Cc: Darshana Gunawardana darsh...@ws02.com


 Hi All,

 I have downloaded following [1]
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
  and
 compiled with following property in the pom.xml

  repository
   idwso2-nexus/id
   nameWSO2 internal Repository/name  url
 http://maven.wso2.org/nexus/content/groups/wso2-public//url
 http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Fgroups%2Fwso2-public%2F%3C%2Furlsa=Dsntz=1usg=AFQjCNGl3yYK3QdHe79I4o8kkc7AWP4UPw
 
 releases enabledtrue/enabled
 updatePolicydaily/updatePolicy
  checksumPolicyignore/checksumPolicy
  /releases /repository

 as I discussed offline with Darshana

 but i am getting the following error

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project
 org.wso2.carbon.identity.provisioning.connector.sample: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[59,49]
 cannot find symbol
 [ERROR] symbol  : variable JIT_PROVISIONING_ENABLED
 [ERROR] location: class
 org.wso2.carbon.identity.provisioning.IdentityProvisioningConstants
 [ERROR]
 /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[62,24]
 cannot find symbol
 [ERROR] symbol  : variable jitProvisioningEnabled
 [ERROR] location: class
 org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
 [ERROR]
 /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,34]
 cannot find symbol
 [ERROR] symbol  : method isJitProvisioning()
 [ERROR] location: class
 org.wso2.carbon.identity.provisioning.ProvisioningEntity
 [ERROR]
 /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,59]
 cannot find symbol
 [ERROR] symbol  : method isJitProvisioningEnabled()
 [ERROR] location: class
 org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
 [ERROR]
 /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnectorFactory.java:[64,1]
 method does not override or implement a method from a supertype
 [ERROR] - [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/MojoFailureException

 any help ?

 Cheers ~

 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/



 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/




-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com darsh...@wso2.com*
*Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while bulding carbon-govenance

2014-10-08 Thread Prasanna Dangalla
Hi,

I'm getting the following error when building carbon-governance from git
repo[1] master branch

https://github.com/wso2-dev/carbon-governance

---
Running org.wso2.carbon.governance.api.test.PolicyTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
Running org.wso2.carbon.governance.api.test.SchemaTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
Running org.wso2.carbon.governance.api.test.WSDLTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Retrieving document at '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving schema at '../xsd/purchasing.xsd', relative to '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving document at '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving schema at '../xsd/purchasing.xsd', relative to '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
 FAILURE!

Results :

Tests in error:
  testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.

Tests run: 7, Failures: 0, Errors: 1, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
[INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
[INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
SUCCESS [3.987s]
[INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
[5.667s]
[INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
SUCCESS [2.954s]
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
[2.181s]
[INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
[2.354s]
[INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
SUCCESS [2.599s]
[INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
SUCCESS [2.712s]
[INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
[2.159s]
[INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
[2.155s]
[INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
[2.365s]
[INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
[INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
[INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
[INFO] WSO2 Carbon - Governance .. FAILURE [13.785s]
[INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
[INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
[INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
[INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
[INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
[INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
[INFO] WSO2 Carbon - Governance - Generic Artifact Management  SKIPPED
[INFO] WSO2 Carbon - Governance - Information Source for Gadgets in
Dashboard  SKIPPED
[INFO] WSO2 Carbon - Governance - Gadgets UI . SKIPPED
[INFO] WSO2 Carbon - Governance - Notifications User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - Life Cycles BE . SKIPPED
[INFO] WSO2 Carbon - Governance - Dashboard Populator  SKIPPED
[INFO] 

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
This is due to some bad code introduced lately. I have a fix which will go
across kernel, registry and governance and I will commit ASAP.

thanks
Eranda

On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla prasa...@wso2.com wrote:

 Hi,

 I'm getting the following error when building carbon-governance from git
 repo[1] master branch

 https://github.com/wso2-dev/carbon-governance

 ---
 Running org.wso2.carbon.governance.api.test.PolicyTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
 Running org.wso2.carbon.governance.api.test.SchemaTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
 Running org.wso2.carbon.governance.api.test.WSDLTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
  FAILURE!

 Results :

 Tests in error:
   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
 adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.

 Tests run: 7, Failures: 0, Errors: 1, Skipped: 0

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
 [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
 [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
 SUCCESS [3.987s]
 [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
 [5.667s]
 [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
 SUCCESS [2.954s]
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
 [2.181s]
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
 [2.354s]
 [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
 SUCCESS [2.599s]
 [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
 SUCCESS [2.712s]
 [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
 [2.159s]
 [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
 [2.155s]
 [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
 [2.365s]
 [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
 [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
 [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
 [INFO] WSO2 Carbon - Governance .. FAILURE
 [13.785s]
 [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
 [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
 [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
 [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
 [INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
 [INFO] WSO2 Carbon - Governance - Generic Artifact Management  SKIPPED
 [INFO] WSO2 Carbon - Governance - Information 

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
Hi Prasanna,
As I can see those changes were committed. I think your code is too old.
Please pull from git and try building.

thanks
Eranda

On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla prasa...@wso2.com wrote:

 Hi,

 I'm getting the following error when building carbon-governance from git
 repo[1] master branch

 https://github.com/wso2-dev/carbon-governance

 ---
 Running org.wso2.carbon.governance.api.test.PolicyTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
 Running org.wso2.carbon.governance.api.test.SchemaTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
 Running org.wso2.carbon.governance.api.test.WSDLTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
  FAILURE!

 Results :

 Tests in error:
   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
 adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.

 Tests run: 7, Failures: 0, Errors: 1, Skipped: 0

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
 [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
 [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
 SUCCESS [3.987s]
 [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
 [5.667s]
 [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
 SUCCESS [2.954s]
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
 [2.181s]
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
 [2.354s]
 [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
 SUCCESS [2.599s]
 [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
 SUCCESS [2.712s]
 [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
 [2.159s]
 [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
 [2.155s]
 [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
 [2.365s]
 [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
 [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
 [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
 [INFO] WSO2 Carbon - Governance .. FAILURE
 [13.785s]
 [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
 [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
 [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
 [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
 [INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
 [INFO] WSO2 Carbon - Governance - Generic Artifact Management  SKIPPED
 [INFO] WSO2 Carbon - Governance - Information Source for Gadgets 

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
Hi Prasannaa,
It seems the nexus has a older version of
org.wso2.carbon.registry.extensions. Please build
org.wso2.carbon.registry.extensions and build
org.wso2.carbon.governance.api.

thanks
Eranda

On Thu, Oct 9, 2014 at 12:49 AM, Eranda Sooriyabandara era...@wso2.com
wrote:

 Hi Prasanna,
 As I can see those changes were committed. I think your code is too old.
 Please pull from git and try building.

 thanks
 Eranda

 On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi,

 I'm getting the following error when building carbon-governance from git
 repo[1] master branch

 https://github.com/wso2-dev/carbon-governance

 ---
 Running org.wso2.carbon.governance.api.test.PolicyTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
 Running org.wso2.carbon.governance.api.test.SchemaTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
 Running org.wso2.carbon.governance.api.test.WSDLTest
 log4j:WARN No appenders could be found for logger
 (org.wso2.carbon.context.internal.CarbonContextDataHolder).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving document at '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Retrieving schema at '../xsd/purchasing.xsd', relative to '
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
 '.
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
  FAILURE!

 Results :

 Tests in error:
   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
 adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.

 Tests run: 7, Failures: 0, Errors: 1, Skipped: 0

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS
 [0.123s]
 [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS
 [0.009s]
 [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task
 Stub  SUCCESS [3.987s]
 [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
 [5.667s]
 [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
 SUCCESS [2.954s]
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub
 SUCCESS [2.181s]
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub
 SUCCESS [2.354s]
 [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
 SUCCESS [2.599s]
 [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
 SUCCESS [2.712s]
 [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
 [2.159s]
 [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
 [2.155s]
 [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
 [2.365s]
 [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS
 [2.405s]
 [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS
 [2.002s]
 [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS
 [0.008s]
 [INFO] WSO2 Carbon - Governance .. FAILURE
 [13.785s]
 [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
 [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
 [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
 [INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
 [INFO] WSO2 Carbon - Governance - Life Cycles User Interface  

Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Johann Nallathamby
I remember facing the same problem in Java 1.6. Not the same version you
have used. It happened for me in OpenID flow. When I debugged the issue I
found that the error occurred while parsing the cacerts file in JDK. So the
fix in that instance was to provide a rampart config property to disable
parsing the cacerts file [1]. But couldn't find what the exact cause for
the issue is. From whatever googling I did online I was able to narrow it
down as incompatibilities with specific JCE provider versions, in our case
bouncy castle.

[1] Commit revision: 193388

Thanks,
Johann.

On Wed, Oct 8, 2014 at 6:25 PM, Malithi Edirisinghe malit...@wso2.com
wrote:

 Hi Asok,

 I have the same java version, i.e 1.6.0_65

 Thanks,
 Malithi.

 On Wed, Oct 8, 2014 at 3:52 PM, Asok Perera as...@wso2.com wrote:

 Hi Mailthi,

 Could you mention the exact java version in your system ?
 In my case, the java version was 1.6.0_65 and it worked without a
 problem.

 BR

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage dula...@wso2.com
 wrote:

 I'm not sure about the exact root cause of this. But, please note that
 WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
 refer [1].

 [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites

 On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe malit...@wso2.com
 wrote:

 Hi All,

 I configured IS 5.0.0 STS to issue tokens and tried to run the client
 sample at [1].
 I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
 1.6 which is the apple version.
 When running the client under this setup I got the below exception
 which is thrown by the Identity Server. But this client worked as expected
 when I changed my JAVA_HOME to java 1.7 which is oracle java.

 java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance
 at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
 at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
 at
 org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
 at
 org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
 at
 org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
 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.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.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 

Re: [Dev] Error while building sample connector

2014-10-08 Thread Chanaka Fernando
Hi Kasun,

What is the error you are getting? Please share the error details such that
others can help you out.

Thanks,
Chanaka

On Wed, Oct 8, 2014 at 6:44 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi all,

 I have checked out the
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
 and compiled with following repository as offline discuss with Darshana




 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

 ___
 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] Error while building sample connector

2014-10-08 Thread Inosh Perera
Hi Kasun,
Could you please attach the maven errors you are getting while compiling.

Regards,
Inosh

On Thu, Oct 9, 2014 at 8:49 AM, Chanaka Fernando chana...@wso2.com wrote:

 Hi Kasun,

 What is the error you are getting? Please share the error details such
 that others can help you out.

 Thanks,
 Chanaka

 On Wed, Oct 8, 2014 at 6:44 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi all,

 I have checked out the
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
 and compiled with following repository as offline discuss with Darshana




 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

 ___
 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




-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Governance Registry: Web service executor sample

2014-10-08 Thread Himasha Guruge
Hi All,

In Governance Registry web service executor sample[1] , when trying to
create a new lifecycle, I'm unable to save it since it says unable to
validate the configuration.

In the console, following error is shown where line number 23 points to
 axis:args05/axis:args0 of the payload parameter.

 ERROR {org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to parse
the XML configuration. Please validate the XML
configurationorg.xml.sax.SAXParseException; lineNumber: 23; columnNumber:
33; cvc-complex-type.2.3: Element 'parameter' cannot have character
[children], because the type's content type is element-only.

I have added the exact segment mentioned in the sample, under data model
tag of Development state. What could be the issue in the xml configuration?

[1] https://docs.wso2.com/display/Governance460/Web+Service+Executor+Sample
Thanks  Regards,

-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error creating tenant by connecting to Active directory

2014-10-08 Thread Godwin Amila Shrimal
Hi,

Thanks for the help Rajitha, Sorted out the issue by adding host entry.



On Mon, Oct 6, 2014 at 8:20 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Changed subject



 Hi,

 I have configured the user-mg.xml to point active directory and tried to
 create a tenant and given following error. Can someone point me whats wrong
 ?

 org.wso2.carbon.user.core.UserStoreException: Error occurred while
 searching in root partition.

 at
 org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.isOrganizationalUnitCreated(CommonHybridLDAPTenantManager.java:140)

 at
 org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.addTenant(CommonHybridLDAPTenantManager.java:98)

 at
 org.wso2.carbon.tenant.mgt.core.TenantPersistor.addTenant(TenantPersistor.java:174)

 at
 org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenantInUserStore(TenantPersistor.java:100)

 at
 org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenant(TenantPersistor.java:66)

 at
 org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:70)

 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.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)

 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)

 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)

 at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)

 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.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718)

 at
 org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90)

 at
 org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67)

 at
 org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp:116)

 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)

Re: [Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Dinesh J Weerakkody
Hi Niranda,

modern browsers support accept attribute and explain in this stackoverflow
tread [1]. If that doesn't work for you, you have to write a custom js for
validation.
Sample validation can be found here [2].

[1]
http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter
[2]
http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si


On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Is there any way to restrict only files of certain file types to be
 uploaded in the API thumbnail image section in APIM?

 Rgds


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

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




-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi All,

I am writing my first carbon component.

I want to achieve something so simple; add a link in a page that links to a
different page in my component. Can somebody tell me how to get the url of
my target page?

Thanks

-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
Hi Lahiru,

DO you want to link two .jsp pages? From one of your .jsp pages to another
one? is that what you are trying to achieve?

Regards


*Supun Rasitha Muthutantrige*




*supunr WSO2 Inc: http://wso2.com http://wso2.com
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi Supun,

That is exactly what I am trying to do.

Thanks

On Thu, Oct 9, 2014 at 10:43 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 Hi Lahiru,

 DO you want to link two .jsp pages? From one of your .jsp pages to another
 one? is that what you are trying to achieve?

 Regards


 *Supun Rasitha Muthutantrige*




 *supunr WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
you can simple add an anchor tag in you jsp file. or you can add a button
to redirect it into the relevant page

Anchor tag
a href=*your_jsp**link text*/a



*Supun Rasitha Muthutantrige*





*supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Thanks Supun. I will try that.

I thought the actual link may be different because when I visit a certain
page, browser doesn't show my jsp file name of the page in the URL.


On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 you can simple add an anchor tag in you jsp file. or you can add a button
 to redirect it into the relevant page

 Anchor tag
 a href=*your_jsp**link text*/a



 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Oh, I was wrong. It shows my jsp. I was confused because of the following
part that was appended to the URL.

/carbon/order-manager/index.jsp?region=region1item=order_management_menu



On Thu, Oct 9, 2014 at 10:54 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Thanks Supun. I will try that.

 I thought the actual link may be different because when I visit a certain
 page, browser doesn't show my jsp file name of the page in the URL.


 On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige sup...@wso2.com
 wrote:

 you can simple add an anchor tag in you jsp file. or you can add a button
 to redirect it into the relevant page

 Anchor tag
 a href=*your_jsp**link text*/a



 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com




-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
Is your problem solved then?

Regards


*Supun Rasitha Muthutantrige*





*supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Yes. Thanks for the help

On Thu, Oct 9, 2014 at 10:59 AM, Supun Muthutantrige sup...@wso2.com
wrote:

 Is your problem solved then?

 Regards


 *Supun Rasitha Muthutantrige*





 *supunrIntern WSO2 Inc: http://wso2.com http://wso2.com
 lean.enterprise.middleware*
 *Mobile: 0758374608*




-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NoHostAvailableException in MB when doing load testing

2014-10-08 Thread Sajini De Silva
Hi,

I increased the values in poolOptions and socketOptions in the
configuration. The cause for this exception IMO was setting a low value to
connectTimeoutMillis option.

@Asitha

Will verify this after doing more tests on this.

Thank you,
Sajini.

On Mon, Oct 6, 2014 at 11:36 AM, Asitha Nanayakkara asi...@wso2.com wrote:

 Hi Sajini,

 Can we take this data source configuration as the default configuration
 for MB? If so we need to update the master-datasources.xml in the pack [1]
 I guess.

 [1]
 https://github.com/wso2-dev/product-mb/blob/master/modules/distribution/src/main/conf/master-datasources.xml

 Thanks

 On Mon, Oct 6, 2014 at 9:35 AM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Sajini,

 Can you please point which part of above configuration fixed the issue?

 Thanks,
 Bhathiya

 On Mon, Oct 6, 2014 at 9:30 AM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 This issue was fixed with following configurations.

 *master-datasources.xml in MB node:*

 !-- external Cassandra data source.  --
 datasource
 nameWSO2_CASSANDRA_DB/name
 descriptionThe datasource used for cassandra/description
 jndiConfig
 nameCassandraRepo/name
 /jndiConfig
 definition type=CASSANDRA
 configuration
 asyncfalse/async
 clusterNameTestCluster/clusterName
 compressionSNAPPY/compression
 concurrency100/concurrency
 usernameadmin/username
 password encrypted=trueadmin/password
 port9042/port
 maxConnections100/maxConnections

 hosts
 host127.0.0.1/host
 /hosts
 loadBalancePolicy
 exclusionThreshold2.5/exclusionThreshold
 latencyAwaretrue/latencyAware
 minMeasure100/minMeasure
 policyNameRoundRobinPolicy/policyName
 retryPeriod10/retryPeriod
 scale2/scale
 /loadBalancePolicy

 poolOptions

 coreConnectionsForLocal1000/coreConnectionsForLocal

 coreConnectionsForRemote1000/coreConnectionsForRemote

 maxConnectionsForLocal1000/maxConnectionsForLocal

 maxConnectionsForRemote1000/maxConnectionsForRemote

 maxSimultaneousRequestsForLocal1000/maxSimultaneousRequestsForLocal

 maxSimultaneousRequestsForRemote1000/maxSimultaneousRequestsForRemote

 minSimultaneousRequestsForLocal1000/minSimultaneousRequestsForLocal

 minSimultaneousRequestsForRemote1000/minSimultaneousRequestsForRemote
 /poolOptions

 reconnectPolicy
 baseDelayMs3000/baseDelayMs

 policyNameConstantReconnectionPolicy/policyName
 /reconnectPolicy
 socketOptions

 connectTimeoutMillis1/connectTimeoutMillis
 keepAlivetrue/keepAlive
 readTimeoutMillis15000/readTimeoutMillis
 tcpNoDelaytrue/tcpNoDelay
 /socketOptions

 /configuration

 /definition
 /datasource



 *cassandra-env.sh in cassandra node:*

 system_memory_in_mb=10240
 system_cpu_cores=6

 Tested with an SSD hard drive.

 Thank you,
 Sajini.

 On Fri, Oct 3, 2014 at 12:23 PM, Sajini De Silva saj...@wso2.com
 wrote:

 Hi Prabath,

 This is the error we got while deleting messages.

 [2014-10-03 12:16:55,059] ERROR
 {org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl} -  Error while
 deleting messages
 com.datastax.driver.core.exceptions.NoHostAvailableException: All
 host(s) tried for query failed (tried: /127.0.0.1 (Timeout during
 read))
 at
 com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64)
 at
 com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:269)
 at
 com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:183)
 at com.datastax.driver.core.Session.execute(Session.java:111)
 at
 org.wso2.andes.store.cassandra.dao.GenericCQLDAO.batchExecute(GenericCQLDAO.java:207)
 at
 org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:299)
 at
 org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.deleteMessages(DurableAsyncStoringManager.java:327)
 at
 org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.processAckReceived(DurableAsyncStoringManager.java:203)
 at
 org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:30)
 at
 org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:19)
 at
 com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
 at
 

Re: [Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Niranda Perera
Hi Dinesh,

Thank you for your input. It was indeed very helpful. :-)

Cheers

On Thu, Oct 9, 2014 at 10:16 AM, Dinesh J Weerakkody dine...@wso2.com
wrote:

 Hi Niranda,

 modern browsers support accept attribute and explain in this stackoverflow
 tread [1]. If that doesn't work for you, you have to write a custom js for
 validation.
 Sample validation can be found here [2].

 [1]
 http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter
 [2]
 http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si


 On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera nira...@wso2.com wrote:

 Hi,

 Is there any way to restrict only files of certain file types to be
 uploaded in the API thumbnail image section in APIM?

 Rgds


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

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




 --

 *Dinesh J. Weerakkody*
 Software Engineer
 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com




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