Re: [Dev] TenantManager doesn't return super tenant

2015-07-29 Thread Chathura Priyankara
Hi Anuruddha,

To get a specific tenant by using the tenant id you have to login from that
tenant first.

Thanks,
Chathura.

On Thu, Jul 30, 2015 at 10:50 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Anuruddha,

 AFAIK that is the expected behavior. Super tenant id is -1234

 https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.base/src/main/java/org/wso2/carbon/base/MultitenantConstants.java#L34

 Thanks
 /Thusitha

 On Thu, Jul 30, 2015 at 10:18 AM, Anuruddha Liyanarachchi 
 anurudd...@wso2.com wrote:

 Hi,

 I noticed that org.wso2.carbon.user.core.tenant.TenantManager class
 getTenant() method doesn't return super tenant for super tenantId(-1234).

 Just wanted to know whether this is the expected behaviour ?

 --
 *Thanks and Regards,*
 Anuruddha Lanka Liyanarachchi
 Software Engineer - WSO2
 Mobile : +94 (0) 712762611
 Tel  : +94 112 145 345
 a thili...@wso2.comnurudd...@wso2.com

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-22 Thread Chathura Priyankara
Hi Thilini,

We cannot get the key store manager instance as above mentioned way from a
test case, because the test case is running out side of the OSGi
environment of running server.
So I think we have to get the tenant key store
through KeyStoreAdminServiceStub.

Thanks,
Chathura.

On Wed, Jul 22, 2015 at 10:49 AM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 org.wso2.carbon.core.util.KeyStoreManager can be used for accessing tenant
 key store as follows.

 KeyStoreManager tenantKeyStoreManager = KeyStoreManager.getInstance(tenantId);

 KeyStoreManager contains a function called getKeyStore for retrieving key 
 store.

 Thanks.



 On Wed, Jul 22, 2015 at 10:35 AM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm writing some test cases to test the multi-tenancy functionality in
 AS.
 For that I want to access tenant key store after adding a tenant. Is
 there any API to access tenant key store ?

 Thanks,
 Charhuara.
 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Is there an API to access tenant key store

2015-07-21 Thread Chathura Priyankara
Hi,

I'm writing some test cases to test the multi-tenancy functionality in AS.
For that I want to access tenant key store after adding a tenant. Is there
any API to access tenant key store ?

Thanks,
Charhuara.
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Input parameter values are not assigning in the server side (using SoapUI)

2015-07-20 Thread Chathura Priyankara
Hi Bimali,

Check whether the wadl link that you are using in SoapUI is correct.
And make sure that the wadl is accessible.

Thanks,
Chathura.

On Mon, Jul 20, 2015 at 11:34 AM, Bimali Dayananda bim...@wso2.com wrote:

 Hi,

 I'm testing a jax-rs web service (GET method) using SoapUI. I set
 parameter values in the request.
 But from the server side it always takes null values as parameter values.

 Any idea about this problem?

 Thanks.

 --
 Bimali Dayananda
 Intern-Software Engineering
 Mobile : +94(77) 571 6618
 bim...@wso2.com

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error while starting the ESB-4.9.0-Alpha

2015-07-20 Thread Chathura Priyankara
]]
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at
 org.wso2.carbon.tomcat.ext.service.ExtendedStandardService.startInternal(ExtendedStandardService.java:49)
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 5 more
 Caused by: org.apache.catalina.LifecycleException: A child container
 failed during start
 at
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
 at
 org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 7 more
 [2015-07-20 13:24:50,712]  INFO - EmbeddedRegistryService Configured
 Registry in 33ms
 [2015-07-20 13:24:50,763]  INFO - RegistryCoreServiceComponent Registry
 Mode: READ-WRITE
 [2015-07-20 13:24:50,970]  INFO - UserStoreMgtDSComponent Carbon
 UserStoreMgtDSComponent activated successfully.

 Thanks,

 --
 Thulasika
 Associate Software Engineer
 Mobile:0778014295
 email: thulas...@wso2.com sanj...@wso2.com

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




 --
 Thank you
 Best Regards

 Rajjaz HM
 Associate Software Engineer
 WSO2 Inc. http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94752833834
 Email  :raj...@wso2.com
 LinkedIn | Blogger | WSO2 Profile
 http://wso2.com/about/team/mohammer_rajjaz/




 --

 Best Regards,

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

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

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Chathura Priyankara
Hi Sabra,

You can change offset value in carbon.xml or else the port offset can be
passed to the server during startup
using following command ./wso2server.sh -DportOffset=3. Using the either
way you can start multiple AS instances in a single host.

Thanks,
Chathura.

On Tue, Jul 21, 2015 at 10:46 AM, Danushka Fernando danush...@wso2.com
wrote:

 You can set port offset in carbon.xml. Refer [1].

 [1] https://docs.wso2.com/pages/viewpage.action?pageId=43977215

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

 On Tue, Jul 21, 2015 at 10:43 AM, Sabra Ossen sabra...@gmail.com wrote:

 Hi,

 Can someone give me some input on $subject. The AS version is 5.3.0
 alpha. Thank you in advance.

 Regards.
 --
 Sabra Ossen http://lk.linkedin.com/in/sabraossen
 Undergraduate | Department of Computer Science and Engineering
 University of Moratuwa
 Sri Lanka

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



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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Chathura Priyankara
Hi,

I was able to solve this issue by adding rmi context in carbon.xml
as mentioned in [1].

[1]
http://wso2.com/library/articles/2013/02/jmx-monitoring-wso2-bam/#multitenancy

Thanks,
Chathura.

On Thu, Jul 2, 2015 at 11:13 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi All,

 When I'm trying to use JMX webapp in AS multi tenant environment I'm
 getting following exception.

 org.springframework.web.util.NestedServletException: Request processing
 failed; nested exception is java.lang.IllegalArgumentException:
 rmiURLContext: name is not an RMI URL: 1

 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)

 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 root cause

 java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI URL:
 1
 com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)

 com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)

 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)

 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
 javax.naming.InitialContext.lookup(InitialContext.java:411)

 javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)

 javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
 javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
 javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
 org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 java.lang.reflect.Method.invoke(Method.java:606)

 org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)

 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)

 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)

 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)

 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 However this works fine in super tenant mode.
 The JMX service URL that I'm using is as follows
 service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.

 I found similar exceptions are reported in few places but I could not
 solve this in AS.
 Any suggestion to overcome this issue is highly appreciated.

 Thanks,
 Chathura.



 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Chathura Priyankara
Hi All,

When I'm trying to use JMX webapp in AS multi tenant environment I'm
getting following exception.

org.springframework.web.util.NestedServletException: Request processing
failed; nested exception is java.lang.IllegalArgumentException:
rmiURLContext: name is not an RMI URL: 1
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
root cause

java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI URL: 1
com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
javax.naming.InitialContext.lookup(InitialContext.java:411)
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

However this works fine in super tenant mode.
The JMX service URL that I'm using is as follows
service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.

I found similar exceptions are reported in few places but I could not solve
this in AS.
Any suggestion to overcome this issue is highly appreciated.

Thanks,
Chathura.



-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon Build Failure (Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test)

2015-06-23 Thread Chathura Priyankara
 list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-09 Thread Chathura Priyankara
Congratulations Saneth.

On Tue, Jun 9, 2015 at 11:45 AM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 Congratulations Saneth

 On Tue, Jun 9, 2015 at 11:41 AM, Malith Munasinghe mali...@wso2.com
 wrote:

 Congratulations Saneth!!

 On Tue, Jun 9, 2015 at 11:38 AM, Madhuranga Bandara madhura...@wso2.com
 wrote:

 Congratulations Saneth !!!

 *Madhuranga Sampath Bandara*
 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: +94722241065

 On Tue, Jun 9, 2015 at 11:31 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulation...!!

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



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




 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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




 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com dharsha...@wso2.com
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94770342233
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running the Application server

2015-06-01 Thread Chathura Priyankara
Hi,

Make sure that there is tomcat-juli-7.0.59.jar inside AS_HOME/bin
directory.

Thanks,
Chathura.

On Mon, Jun 1, 2015 at 12:05 PM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 HI,

 Can you try running using java 1.6

 On Mon, Jun 1, 2015 at 12:02 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 Are you getting this in a fresh pack?
 Thanks
 /Thusitha

 On Mon, Jun 1, 2015 at 12:01 PM, Aaquibah Nashry nas...@wso2.com wrote:

 Hi,
 i get the following error when i try to run the application server. Can
 anyone help me with this?


 JAVA_HOME environment variable is set to /usr/lib/jvm/jdk1.7.0_79
 CARBON_HOME environment variable is set to
 /usr/nashry/home/SOFTWARES/org.wso2.carbon.server-4.2.0
 wso2server.sh: 260: cd: can't cd to
 /usr/nashry/home/SOFTWARES/org.wso2.carbon.server-4.2.0
 Could not load Logmanager org.apache.juli.ClassLoaderLogManager
 java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 at java.util.logging.LogManager$1.run(LogManager.java:191)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.clinit(LogManager.java:181)
 at java.util.logging.Logger.demandLogger(Logger.java:339)
 at java.util.logging.Logger.getLogger(Logger.java:393)
 at com.sun.jmx.remote.util.ClassLogger.init(ClassLogger.java:55)
 at
 sun.management.jmxremote.ConnectorBootstrap.clinit(ConnectorBootstrap.java:823)
 at sun.management.Agent.startLocalManagementAgent(Agent.java:144)
 at sun.management.Agent.startAgent(Agent.java:264)
 at sun.management.Agent.startAgent(Agent.java:456)
 Error: Could not find or load main class
 org.wso2.carbon.bootstrap.Bootstrap

 M.R.Aaquibah Nashry
 *Intern, Engineering*
 Mobile : +94 773946123
 Tel  : +94 112662541
 nas...@wso2.com

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] error in running ESB sample 153

2015-05-22 Thread Chathura Priyankara
Hi Rukshan,

I also faced the same issue when I'm trying to run the sample 153 with java
1.7,
but with java 1.6 it worked properly.

Thanks!
Chathura.

On Thu, May 21, 2015 at 12:26 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Rukshan,

 What is the Java version that you are using?
 You can refer to following mail thread  [Dev] Exception when running the
 ESB Sample 153

 Thanks

 On Thu, May 21, 2015 at 12:22 PM, Rukshan Premathunga ruks...@wso2.com
 wrote:

 hi,

 i'm getting an error when i run the ESB sample 153 client
 I copy the bcprov-jdk15.jar and install the unlimited strength policy
 files from
 http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
 .

 But still i get the error as follow.


 [2015-05-21 12:16:47,273] DEBUG - OutMediator Start : Out mediator
 [2015-05-21 12:16:47,273] DEBUG - OutMediator Current message is a
 request - skipping child mediators
 [2015-05-21 12:16:47,273] DEBUG - OutMediator End : Out mediator
 [2015-05-21 12:16:47,273] DEBUG - SequenceMediator End : Sequence main
 [2015-05-21 12:16:47,828] ERROR - AxisEngine InvalidSecurity
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 [2015-05-21 12:16:47,830] ERROR - ClientWorker Fault processing response
 message through Axis2
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 [2015-05-21 12:17:47,037]  WARN - SourceHandler Connection time out after
 request is read: http-incoming-1
 [2015-05-21 12:19:01,997]  WARN - TimeoutHandler Expiring message ID :
 urn:uuid:d6a5ec0c-62e3-4022-b53a-2fd41dd34362; dropping message after
 global timeout of : 120 seconds


 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Unable to register shutdown hook Exception

2015-05-08 Thread Chathura Priyankara
Hi,

I'm in the process of upgrading the log4j version of Carbon kernel to
log4j2. After adding log4j2 jars to Carbon kernel in the shutdown process
of Carbon I'm getting the following exception.

Unable to register shutdown hook because JVM is shutting down

What can be the issue for this error ?

Thanks!
Regards,
Chathura.

-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build Failure - JiBX Data Binding Sample

2015-04-28 Thread Chathura Priyankara
Hi Nadeesha,

I think similar exception is discussed in [1].
According to that you need to set the JVM option -XX:-UseSplitVerifier
before executing the binding compiler.

[1]
https://wso2.org/jira/si/jira.issueviews:issue-html/CARBON-12931/CARBON-12931.html

Thanks!
Best Regards,
Chathura.

On Wed, Apr 29, 2015 at 8:42 AM, Nadeesha Meegoda nadees...@wso2.com
wrote:

 Hi,

 I am running these AS samples, currently running the JiBX and the build
 fails. Has anyone come across this before?

  [bind] Error running binding compiler
  [bind] java.lang.VerifyError: Expecting a stackmap frame at branch
 target 12
  [bind] Exception Details:
  [bind]   Location:
  [bind]
 org/wso2/appserver/jibx/library/beans/Book.JiBX_jibx_unwrapped_newinstance_1_0(Lorg/wso2/appserver/jibx/library/beans/Book;Lorg/jibx/runtime/impl/UnmarshallingContext;)Lorg/wso2/appserver/jibx/library/beans/Book;
 @1: ifnonnull
  [bind]   Reason:
  [bind]Expected stackmap frame at this location.
  [bind] Bytecode:
  [bind] 000: 2ac7 000b bb00 0a59 b700 744b 2ab0
  [bind]
  [bind] at java.lang.Class.getDeclaredMethods0(Native Method)
  [bind] at
 java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
  [bind] at java.lang.Class.getDeclaredMethods(Class.java:1860)
  [bind] at org.jibx.binding.Compile.compile(Compile.java:278)
  [bind] at
 org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
  [bind] at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  [bind] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
 Source)
  [bind] at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [bind] at java.lang.reflect.Method.invoke(Method.java:606)
  [bind] at
 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [bind] at org.apache.tools.ant.Task.perform(Task.java:348)
  [bind] at org.apache.tools.ant.Target.execute(Target.java:435)
  [bind] at
 org.apache.tools.ant.Target.performTasks(Target.java:456)
  [bind] at
 org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  [bind] at
 org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  [bind] at
 org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  [bind] at
 org.apache.tools.ant.Project.executeTargets(Project.java:1248)
  [bind] at org.apache.tools.ant.Main.runBuild(Main.java:851)
  [bind] at org.apache.tools.ant.Main.startAnt(Main.java:235)
  [bind] at
 org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
  [bind] at
 org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
  [bind]

 BUILD FAILED
 /home/nadeesham/Documents/Products/wso2as-5.2.1/samples/Jibx/build.xml:89:
 JiBXException in JiBX binding compilation


 Any Input regarding this is highly appreciated.

 Thanks
 --
 *Nadeesha Meegoda*
 Software Engineer - QA
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 email : nadees...@wso2.com
 mobile: +94783639540
 %2B94%2077%202273555

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Review and Merge

2015-04-28 Thread Chathura Priyankara
Hi,

Please review and merge PR[1].
This is the fix for JIRA issue [2].

[1] https://github.com/wso2/wso2-axis2/pull/41
[2] https://wso2.org/jira/browse/CARBON-15236

Thanks!
Chathura.

-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Mahesh Chinthaka

2015-04-28 Thread Chathura Priyankara
Congratulations Mahesh !!!

On Tue, Apr 28, 2015 at 11:17 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Congratulations..!!

 On Tue, Apr 28, 2015 at 11:15 AM, Chamalee De Silva chama...@wso2.com
 wrote:

 Congratulations Mahesh !

 On Tue, Apr 28, 2015 at 11:13 AM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Congratz, Mahesh!!!


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

 On Tue, Apr 28, 2015 at 10:40 AM, Samith Dassanayake sam...@wso2.com
 wrote:

 Congratz Mahesh!

 On Tue, Apr 28, 2015 at 10:28 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Mahesh !

 On Tue, Apr 28, 2015 at 10:28 AM, Tharik Kanaka tha...@wso2.com
 wrote:

 Congratulations Mahesh.

 On Tue, Apr 28, 2015 at 9:27 AM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi all,

 It is with great pleasure that WSO2 welcomes Mahesh Chinthaka as
 WSO2 committer!

 Thank you for your hard work. Congratulation!

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer | Cloud TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +947 76207351

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



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




 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Chathura Priyankara
 *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Prasanna Dangalla

2015-04-08 Thread Chathura Priyankara
Congratulations

On Thu, Apr 9, 2015 at 9:14 AM, Thilini Cooray thili...@wso2.com wrote:

 Congratulations, Prasanna !

 On Thu, Apr 9, 2015 at 9:02 AM, Aruna Karunarathna ar...@wso2.com wrote:

 Congratulations Prasa...!!!

 On Wed, Apr 8, 2015 at 7:37 PM, Dinesh J Weerakkody dine...@wso2.com
 wrote:

 Congratulations Prasanna...

 Thanks

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

 On Thu, Apr 9, 2015 at 8:06 AM, Sagara Gunathunga sag...@wso2.com
 wrote:

 It's my pleasure to welcome Prasanna Dangalla as a WSO2 committer.
 Prasanna, welcome aboard and keep up the good work.


 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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



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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review PR

2015-03-29 Thread Chathura Priyankara
Hi,

Please review PR [1], [2] and [3]. This is the implementation of [4].

[1] Synapse core - https://github.com/wso2/wso2-synapse/pull/105
[2] Product esb - https://github.com/wso2/product-esb/pull/109
[3] Carbon mediation - https://github.com/wso2/carbon-mediation/pull/92
[4] https://redmine.wso2.com/issues/3725

Thanks,
Best Regards.

On Fri, Mar 27, 2015 at 12:42 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi,

 I did following changes as discussed in the code review.

 - Move response http status code checking to the synapse environment.
 - Check http status codes of the response based on the clone property
 - Use registered fault handler for re-sending messages
 - Without re-cloning messages every time use build with attachment.

 Please review PR [1].

 [1] https://github.com/wso2/wso2-synapse/pull/105

 Thanks.

 On Thu, Mar 19, 2015 at 12:53 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi Isuru,

 I have done back end changes for failover endpoint support on http status
 codes. Please review PR [1].

 [1] https://github.com/wso2/wso2-synapse/pull/105

 Thanks!

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review PR

2015-03-27 Thread Chathura Priyankara
Hi,

I did following changes as discussed in the code review.

- Move response http status code checking to the synapse environment.
- Check http status codes of the response based on the clone property
- Use registered fault handler for re-sending messages
- Without re-cloning messages every time use build with attachment.

Please review PR [1].

[1] https://github.com/wso2/wso2-synapse/pull/105

Thanks.

On Thu, Mar 19, 2015 at 12:53 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi Isuru,

 I have done back end changes for failover endpoint support on http status
 codes. Please review PR [1].

 [1] https://github.com/wso2/wso2-synapse/pull/105

 Thanks!

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi Isuru,

Thanks for the response I'll do the necessary changes.

Regards.

On Fri, Mar 27, 2015 at 10:45 AM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi Chathura,

 What we discusses is we need to build the MC by calling
 buildWithAttchaments() then entire input stream is written MC SoapEnvelop
 So  we can reuse that object .We dont need to build request at every time
 when we send through endpoint.

 On Fri, Mar 27, 2015 at 10:15 AM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm working on implementing a failover endpoint support for response http
 status codes for my fast track training project. To resend the request I
 need to attach a copy of message context to the same request.
 So currently what I'm doing is clone the message for the first time and
 when re sending the message build the cloned message and
 set that as a property to the request. This message context will use in
 the next time sending.

 Is this way of creating a copy of request is good ?

 Thanks
 Best Regards.

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi,

I'm working on implementing a failover endpoint support for response http
status codes for my fast track training project. To resend the request I
need to attach a copy of message context to the same request.
So currently what I'm doing is clone the message for the first time and
when re sending the message build the cloned message and
set that as a property to the request. This message context will use in the
next time sending.

Is this way of creating a copy of request is good ?

Thanks
Best Regards.

-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi,

If I use synCtx.getEnvelope().buildWithAttachments(); to build the message
do I need to call this every time when sending a request ?

Thanks.
Regards.

On Fri, Mar 27, 2015 at 10:15 AM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi,

 I'm working on implementing a failover endpoint support for response http
 status codes for my fast track training project. To resend the request I
 need to attach a copy of message context to the same request.
 So currently what I'm doing is clone the message for the first time and
 when re sending the message build the cloned message and
 set that as a property to the request. This message context will use in
 the next time sending.

 Is this way of creating a copy of request is good ?

 Thanks
 Best Regards.

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review PR

2015-03-19 Thread Chathura Priyankara
Hi Isuru,

I have done back end changes for failover endpoint support on http status
codes. Please review PR [1].

[1] https://github.com/wso2/wso2-synapse/pull/105

Thanks!

-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Chathura Priyankara
Hi,

I'm working on my fast track training project [1]. I have to implement http
status code support for FailoverEndpoint. For the re-sending purposes the
original request message context needs to be  cloned and store using the
message ID as the reference. The message cloning should be done in the
FailoverEndpoint based on the synapse configuration.

IMO the original request id changes to a new one after it sent from the
FailoverEndpoint at the Axis2FlexibleMEPClient level.

Is this correct or I'm missing something here ?

[1] https://redmine.wso2.com/issues/3725

Thanks.
Best Regards.

-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Chathura Priyankara
Hi Isuru,

We need to clone and store the message to resend it based on the response
status code. If the response http status code is success then the stored
message context will removed.
This cloning and storing process should be happened in the Failover
endpoint only if failover http status codes are set for a particular
endpoint in the configuration. If we store the cloned
message at the Failover endpoint level we cannot map the request and
response based on the MID since MID is changed after sending.
Is there anyway that I could do the same thing without cloning message
context ?

Thanks!

On Tue, Mar 17, 2015 at 2:22 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi Chathura,

 When message is gone through Axis2FlexibleMEPClient it partially cloned
 underlying axis2MessageContext and set all the endpoint specific data to
 that cloned MC and register a callback for send it to BE .It may be a
 reason for change the MID. Why we need a to store message context
 externally?

 I think this may add up huge memory overhead if message store keeps
 growing (for high concurrent scenarios and responses are too late to arrive)

 thanks

 On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm working on my fast track training project [1]. I have to implement
 http status code support for FailoverEndpoint. For the re-sending purposes
 the original request message context needs to be  cloned and store using
 the message ID as the reference. The message cloning should be done in the
 FailoverEndpoint based on the synapse configuration.

 IMO the original request id changes to a new one after it sent from the
 FailoverEndpoint at the Axis2FlexibleMEPClient level.

 Is this correct or I'm missing something here ?

 [1] https://redmine.wso2.com/issues/3725

 Thanks.
 Best Regards.

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Where the final message ID set for a request

2015-03-17 Thread Chathura Priyankara
Hi Isuru,

I think this is the best option. I did testing with attaching cloned MC as
original message property and this is working fine.

Thanks.

On Tue, Mar 17, 2015 at 2:48 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi chathura,

 Yes you need to clone the MC because we need to save content it is ok. but
 instead of keep external store which can be caused OOM exceptions can't we
 attached clone MC as original MC property and when response received we can
 get that property and get the cloned MC for next send if response http code
 belongs to retry code. So then we dont need to externally map request to
 response because response has all the synapse properties which were in
 request.


 thanks

 On Tue, Mar 17, 2015 at 2:37 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi Isuru,

 We need to clone and store the message to resend it based on the response
 status code. If the response http status code is success then the stored
 message context will removed.
 This cloning and storing process should be happened in the Failover
 endpoint only if failover http status codes are set for a particular
 endpoint in the configuration. If we store the cloned
 message at the Failover endpoint level we cannot map the request and
 response based on the MID since MID is changed after sending.
 Is there anyway that I could do the same thing without cloning message
 context ?

 Thanks!

 On Tue, Mar 17, 2015 at 2:22 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Hi Chathura,

 When message is gone through Axis2FlexibleMEPClient it partially cloned
 underlying axis2MessageContext and set all the endpoint specific data to
 that cloned MC and register a callback for send it to BE .It may be a
 reason for change the MID. Why we need a to store message context
 externally?

 I think this may add up huge memory overhead if message store keeps
 growing (for high concurrent scenarios and responses are too late to arrive)

 thanks

 On Tue, Mar 17, 2015 at 1:21 PM, Chathura Priyankara chathu...@wso2.com
  wrote:

 Hi,

 I'm working on my fast track training project [1]. I have to implement
 http status code support for FailoverEndpoint. For the re-sending purposes
 the original request message context needs to be  cloned and store using
 the message ID as the reference. The message cloning should be done in the
 FailoverEndpoint based on the synapse configuration.

 IMO the original request id changes to a new one after it sent from the
 FailoverEndpoint at the Axis2FlexibleMEPClient level.

 Is this correct or I'm missing something here ?

 [1] https://redmine.wso2.com/issues/3725

 Thanks.
 Best Regards.

 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Best Regards
 Isuru Ranawaka
 M: +94714629880
 Blog : http://isurur.blogspot.com/




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Error in clone and sending a message

2015-03-13 Thread Chathura Priyankara
Hi,

For my fast track training project I want to clone and send the cloned copy
of a synapse message context. I used cloneMessageContext method in
MessageHelper class to clone a message, but when sending the cloned message
to the endpoint esb stuck at some point before sending the message. Is this
because operational context are also cloned in MessageHelper ?
How can I fix this issue ?

Thanks!
Best Regards,
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Premature end of file Error

2015-03-10 Thread Chathura Priyankara
Hi,

According to the wire logs I have observed that the response is spilled in
to two messages as follows.
I think this is why client can't process the response.

wire  ?xml[\r][\n]

wire   version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa=
http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:afacf573-b705-4cb4-a29a-c761186bf648/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse
from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n]

What can be the cause for this ?

Thanks!

On Tue, Mar 10, 2015 at 2:40 PM, Sewmini Jayaweera sewm...@wso2.com wrote:

 Hi Chathura,

 An issue is being reported for a similar error. Please check whether that
 is the same.
 https://wso2.org/jira/browse/ESBJAVA-2973

 Thanks!

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 On Tue, Mar 10, 2015 at 2:22 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 This error comes when I'm trying to resend a message.
 Here is the wire logs of the response

 [2015-03-10 14:16:54,899] DEBUG - wire  HTTP/1.1 200 OK[\r][\n]
 [2015-03-10 14:16:54,899] DEBUG - wire  Content-Type: text/xml;
 charset=UTF-8[\r][\n]
 [2015-03-10 14:16:54,899] DEBUG - wire  Date: Tue, 10 Mar 2015
 08:46:54 GMT[\r][\n]
 [2015-03-10 14:16:54,900] DEBUG - wire  Server:
 WSO2-PassThrough-HTTP[\r][\n]
 [2015-03-10 14:16:54,900] DEBUG - wire  Transfer-Encoding:
 chunked[\r][\n]
 [2015-03-10 14:16:54,900] DEBUG - wire  [\r][\n]
 [2015-03-10 14:16:54,904] DEBUG - wire  1a2[\r][\n]
 [2015-03-10 14:16:54,904] DEBUG - wire  ?xml version=1.0
 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa=
 http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:1565f9cc-4e70-413d-bafa-ec9de05f156b/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse
 from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n]
 [2015-03-10 14:16:54,904] DEBUG - wire  0[\r][\n]
 [2015-03-10 14:16:54,904] DEBUG - wire  [\r][\n]
 [2015-03-10 14:16:54,905] DEBUG - wire  0[\r][\n]
 [2015-03-10 14:16:54,905] DEBUG - wire  [\r][\n]


 Thanks!

 On Tue, Mar 10, 2015 at 1:50 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Chathura,

 In order to identify the issue, need to see the response coming to ESB.

 To do that enable the wire logs and share.

 On Mon, Mar 9, 2015 at 2:09 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm getting following error in client side when after receiving the
 response from the service through ESB.

  [java] javax.xml.stream.XMLStreamException: ParseError at
 [row,col]:[1,1]
  [java] Message: Premature end of file.

 Is this error comes because response message is empty ?
 How can I fix this issue ?

 The ESB log :

 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse
 received an asynchronous response message
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To:
 null
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction:
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action:
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body :
 ?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/
 soapenv:Body/soapenv:Body/soapenv:Envelope
 [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting
 MessageContext
 [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main
 Sequence for injected message
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence
 main
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError
 handler : errorHandler for the sequence : main
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence
 SequenceMediator :: mediate()
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started
 from mediator position : 0
 [2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator
 [2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a
 response - skipping child mediators
 [2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator
 [2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator
 [2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is
 outgoing - executing child mediators
 [2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator ::
 mediate()
 [2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from
 mediator position : 0
 [2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator
 [2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message
 using implicit message properties..
 Sending To: http://www.w3.org/2005/08/addressing/anonymous
 SOAPAction:
 [2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator
 [2015-03-09 14:01:17,004] DEBUG - OutMediator

Re: [Dev] [ESB] Premature end of file Error

2015-03-10 Thread Chathura Priyankara
Hi,

This error comes when I'm trying to resend a message.
Here is the wire logs of the response

[2015-03-10 14:16:54,899] DEBUG - wire  HTTP/1.1 200 OK[\r][\n]
[2015-03-10 14:16:54,899] DEBUG - wire  Content-Type: text/xml;
charset=UTF-8[\r][\n]
[2015-03-10 14:16:54,899] DEBUG - wire  Date: Tue, 10 Mar 2015 08:46:54
GMT[\r][\n]
[2015-03-10 14:16:54,900] DEBUG - wire  Server:
WSO2-PassThrough-HTTP[\r][\n]
[2015-03-10 14:16:54,900] DEBUG - wire  Transfer-Encoding:
chunked[\r][\n]
[2015-03-10 14:16:54,900] DEBUG - wire  [\r][\n]
[2015-03-10 14:16:54,904] DEBUG - wire  1a2[\r][\n]
[2015-03-10 14:16:54,904] DEBUG - wire  ?xml version=1.0
encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header xmlns:wsa=
http://www.w3.org/2005/08/addressing;wsa:Actionurn:sampleOperationResponse/wsa:Actionwsa:RelatesTourn:uuid:1565f9cc-4e70-413d-bafa-ec9de05f156b/wsa:RelatesTo/soapenv:Headersoapenv:BodyValueResponse
from server: MyServer2/Value/soapenv:Body/soapenv:Envelope[\r][\n]
[2015-03-10 14:16:54,904] DEBUG - wire  0[\r][\n]
[2015-03-10 14:16:54,904] DEBUG - wire  [\r][\n]
[2015-03-10 14:16:54,905] DEBUG - wire  0[\r][\n]
[2015-03-10 14:16:54,905] DEBUG - wire  [\r][\n]


Thanks!

On Tue, Mar 10, 2015 at 1:50 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Chathura,

 In order to identify the issue, need to see the response coming to ESB.

 To do that enable the wire logs and share.

 On Mon, Mar 9, 2015 at 2:09 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm getting following error in client side when after receiving the
 response from the service through ESB.

  [java] javax.xml.stream.XMLStreamException: ParseError at
 [row,col]:[1,1]
  [java] Message: Premature end of file.

 Is this error comes because response message is empty ?
 How can I fix this issue ?

 The ESB log :

 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse
 received an asynchronous response message
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To:
 null
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction:
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action:
 [2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body :
 ?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/
 soapenv:Body/soapenv:Body/soapenv:Envelope
 [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting
 MessageContext
 [2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main
 Sequence for injected message
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence main
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError
 handler : errorHandler for the sequence : main
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence
 SequenceMediator :: mediate()
 [2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started from
 mediator position : 0
 [2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator
 [2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a
 response - skipping child mediators
 [2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator
 [2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator
 [2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is outgoing
 - executing child mediators
 [2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator ::
 mediate()
 [2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from
 mediator position : 0
 [2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator
 [2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message
 using implicit message properties..
 Sending To: http://www.w3.org/2005/08/addressing/anonymous
 SOAPAction:
 [2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator
 [2015-03-09 14:01:17,004] DEBUG - OutMediator End : Out mediator
 [2015-03-09 14:01:17,005] DEBUG - SequenceMediator End : Sequence main


 Thanks!
 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --

 Best Regards,

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

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

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org

[Dev] [ESB] Premature end of file Error

2015-03-09 Thread Chathura Priyankara
Hi,

I'm getting following error in client side when after receiving the
response from the service through ESB.

 [java] javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[1,1]
 [java] Message: Premature end of file.

Is this error comes because response message is empty ?
How can I fix this issue ?

The ESB log :

[2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Synapse received
an asynchronous response message
[2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Received To: null
[2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver SOAPAction:
[2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver WSA-Action:
[2015-03-09 14:01:17,002] DEBUG - SynapseCallbackReceiver Body :
?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/
soapenv:Body/soapenv:Body/soapenv:Envelope
[2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Injecting
MessageContext
[2015-03-09 14:01:17,003] DEBUG - Axis2SynapseEnvironment Using Main
Sequence for injected message
[2015-03-09 14:01:17,003] DEBUG - SequenceMediator Start : Sequence main
[2015-03-09 14:01:17,003] DEBUG - SequenceMediator Setting the onError
handler : errorHandler for the sequence : main
[2015-03-09 14:01:17,003] DEBUG - SequenceMediator Sequence
SequenceMediator :: mediate()
[2015-03-09 14:01:17,003] DEBUG - SequenceMediator Mediation started from
mediator position : 0
[2015-03-09 14:01:17,003] DEBUG - InMediator Start : In mediator
[2015-03-09 14:01:17,003] DEBUG - InMediator Current message is a response
- skipping child mediators
[2015-03-09 14:01:17,003] DEBUG - InMediator End : In mediator
[2015-03-09 14:01:17,003] DEBUG - OutMediator Start : Out mediator
[2015-03-09 14:01:17,003] DEBUG - OutMediator Current message is outgoing -
executing child mediators
[2015-03-09 14:01:17,004] DEBUG - OutMediator Sequence OutMediator ::
mediate()
[2015-03-09 14:01:17,004] DEBUG - OutMediator Mediation started from
mediator position : 0
[2015-03-09 14:01:17,004] DEBUG - SendMediator Start : Send mediator
[2015-03-09 14:01:17,004] DEBUG - SendMediator Sending response message
using implicit message properties..
Sending To: http://www.w3.org/2005/08/addressing/anonymous
SOAPAction:
[2015-03-09 14:01:17,004] DEBUG - SendMediator End : Send mediator
[2015-03-09 14:01:17,004] DEBUG - OutMediator End : Out mediator
[2015-03-09 14:01:17,005] DEBUG - SequenceMediator End : Sequence main


Thanks!
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Governance Registry Help

2015-03-09 Thread Chathura Priyankara
Hi,

I think the accepted types to store in registry are String, byte[] or
Inputstream, So if you want to store Objects try to serialize the Object
first and store.

Thanks,
Best Regards.

On Mon, Mar 9, 2015 at 12:29 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Pubudu,

 I think you should save object as a byte array when you are saving the
 object in the carbon registry.

 Thanks
 Regards
 /Thusitha

 On Mon, Mar 9, 2015 at 12:23 PM, Pubudu Dodangoda pubu...@wso2.com
 wrote:

 I am trying to save Objects in the registry as resources via a REST api
 A resource is successfully saved and can be downloaded when the content
 is a String

 But whenever I try to save some other type of object, and try to download
 the resource, I get the following error message in the terminal. ( A
 resource is saved, but cannot be downloaded, it redirects to the same page)

 [2015-03-09 12:15:13,657] ERROR
 {org.wso2.carbon.registry.resource.ui.utils.GetResourceContentProcessor} -
  The resource content was empty.

 Is there any special procedure to be followed when saving an object of
 type other than String

 Thank you and Kind Regards

 --
 Pubudu Dodangoda
 BSc Engineering(Hon's) Undergraduate
 Department of Computer Science Engineering
 University of Moratuwa
 0716053681 / 0775192994

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] JdbcSQLException: File not found

2015-03-06 Thread Chathura Priyankara
Hi Manoj,

Thank you for the quick response.
After deleting the content of database directory, using the -Dsetup
parameter I can start the server.
What is the issue here ?

Regards,

On Fri, Mar 6, 2015 at 3:20 PM, Manoj Kumara ma...@wso2.com wrote:

 Can you try deleting content on wso2esb-4.8.1/repository/database and
 start the server with -Dsetup parameter.

 Regards,
 Manoj


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

 On Fri, Mar 6, 2015 at 3:12 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 When restarting ESB after remote debugging I'm getting following
 exception.  The ESB version is 4.8.1. How can I fix this issue ?

 [2015-03-06 15:02:26,371] ERROR - JDBCResourceDAO A SQLException error
 has occurred when trying to close result set or prepared statement
 org.h2.jdbc.JdbcSQLException: File not found:
 /home/chathura/office/training/training_project/ESB/wso2esb-4.8.1/repository/database/WSO2CARBON_DB.lobs.db/23.t22.lob.db
 [90124-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.engine.Database.openFile(Database.java:443)
 at org.h2.value.ValueLob.getInputStream(ValueLob.java:610)
 at org.h2.jdbc.JdbcResultSet.getBinaryStream(JdbcResultSet.java:1020)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getContentStream(JDBCResourceDAO.java:553)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResourceContentWithNoUpdate(JDBCResourceDAO.java:1239)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResource(JDBCResourceDAO.java:271)
 at org.wso2.carbon.registry.core.jdbc.Repository.get(Repository.java:195)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:689)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:139)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.loadResourceThemes(ThemeUtil.java:175)
 at
 org.wso2.carbon.theme.mgt.internal.TenantThemeMgtServiceComponent.activate(TenantThemeMgtServiceComponent.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke

Re: [Dev] [ESB] JdbcSQLException: File not found

2015-03-06 Thread Chathura Priyankara
Thank you Danushka for the information.

On Fri, Mar 6, 2015 at 4:49 PM, Danushka Fernando danush...@wso2.com
wrote:

 Although we are shipping the product with H2 database we are not
 recommending to use it. We always recommend to use mysql or oracle. So you
 can point to a mysql db and start the server. So you want get in to this
 issue again.

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

 On Fri, Mar 6, 2015 at 3:55 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 This error happened after remote debugging a Failover Endpoint with ESB
 sample 53 [1] configuration.

 [1]
 https://docs.wso2.com/display/ESB481/Sample+53%3A+Using+Failover+Endpoints+to+Handle+Peak+Loads

 Thanks!

 On Fri, Mar 6, 2015 at 3:50 PM, Manoj Kumara ma...@wso2.com wrote:

 Could be the database got corrupted somehow not sure why. Deleting the
 database files will not be a solution but we can do that when testing :)

 What was the operations you were doing ?


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

 On Fri, Mar 6, 2015 at 3:36 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi Manoj,

 Thank you for the quick response.
 After deleting the content of database directory, using the -Dsetup
 parameter I can start the server.
 What is the issue here ?

 Regards,

 On Fri, Mar 6, 2015 at 3:20 PM, Manoj Kumara ma...@wso2.com wrote:

 Can you try deleting content on wso2esb-4.8.1/repository/database and
 start the server with -Dsetup parameter.

 Regards,
 Manoj


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

 On Fri, Mar 6, 2015 at 3:12 PM, Chathura Priyankara 
 chathu...@wso2.com wrote:

 Hi,

 When restarting ESB after remote debugging I'm getting following
 exception.  The ESB version is 4.8.1. How can I fix this issue ?

 [2015-03-06 15:02:26,371] ERROR - JDBCResourceDAO A SQLException
 error has occurred when trying to close result set or prepared statement
 org.h2.jdbc.JdbcSQLException: File not found:
 /home/chathura/office/training/training_project/ESB/wso2esb-4.8.1/repository/database/WSO2CARBON_DB.lobs.db/23.t22.lob.db
 [90124-140]
 at
 org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.engine.Database.openFile(Database.java:443)
 at org.h2.value.ValueLob.getInputStream(ValueLob.java:610)
 at org.h2.jdbc.JdbcResultSet.getBinaryStream(JdbcResultSet.java:1020)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getContentStream(JDBCResourceDAO.java:553)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResourceContentWithNoUpdate(JDBCResourceDAO.java:1239)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResource(JDBCResourceDAO.java:271)
 at
 org.wso2.carbon.registry.core.jdbc.Repository.get(Repository.java:195)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:689)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:139)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.loadResourceThemes(ThemeUtil.java:175)
 at
 org.wso2.carbon.theme.mgt.internal.TenantThemeMgtServiceComponent.activate(TenantThemeMgtServiceComponent.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861

[Dev] [ESB] JdbcSQLException: File not found

2015-03-06 Thread Chathura Priyankara
.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getContentStream(JDBCResourceDAO.java:553)
... 72 more

Thanks!
Best Regards,
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] JdbcSQLException: File not found

2015-03-06 Thread Chathura Priyankara
This error happened after remote debugging a Failover Endpoint with ESB
sample 53 [1] configuration.

[1]
https://docs.wso2.com/display/ESB481/Sample+53%3A+Using+Failover+Endpoints+to+Handle+Peak+Loads

Thanks!

On Fri, Mar 6, 2015 at 3:50 PM, Manoj Kumara ma...@wso2.com wrote:

 Could be the database got corrupted somehow not sure why. Deleting the
 database files will not be a solution but we can do that when testing :)

 What was the operations you were doing ?


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

 On Fri, Mar 6, 2015 at 3:36 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi Manoj,

 Thank you for the quick response.
 After deleting the content of database directory, using the -Dsetup
 parameter I can start the server.
 What is the issue here ?

 Regards,

 On Fri, Mar 6, 2015 at 3:20 PM, Manoj Kumara ma...@wso2.com wrote:

 Can you try deleting content on wso2esb-4.8.1/repository/database and
 start the server with -Dsetup parameter.

 Regards,
 Manoj


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

 On Fri, Mar 6, 2015 at 3:12 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 When restarting ESB after remote debugging I'm getting following
 exception.  The ESB version is 4.8.1. How can I fix this issue ?

 [2015-03-06 15:02:26,371] ERROR - JDBCResourceDAO A SQLException error
 has occurred when trying to close result set or prepared statement
 org.h2.jdbc.JdbcSQLException: File not found:
 /home/chathura/office/training/training_project/ESB/wso2esb-4.8.1/repository/database/WSO2CARBON_DB.lobs.db/23.t22.lob.db
 [90124-140]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
 at org.h2.message.DbException.get(DbException.java:167)
 at org.h2.message.DbException.get(DbException.java:144)
 at org.h2.engine.Database.openFile(Database.java:443)
 at org.h2.value.ValueLob.getInputStream(ValueLob.java:610)
 at org.h2.jdbc.JdbcResultSet.getBinaryStream(JdbcResultSet.java:1020)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getContentStream(JDBCResourceDAO.java:553)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResourceContentWithNoUpdate(JDBCResourceDAO.java:1239)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.fillResource(JDBCResourceDAO.java:271)
 at
 org.wso2.carbon.registry.core.jdbc.Repository.get(Repository.java:195)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:689)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:465)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:139)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.transferAllThemesToRegistry(ThemeUtil.java:125)
 at
 org.wso2.carbon.theme.mgt.util.ThemeUtil.loadResourceThemes(ThemeUtil.java:175)
 at
 org.wso2.carbon.theme.mgt.internal.TenantThemeMgtServiceComponent.activate(TenantThemeMgtServiceComponent.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130

Re: [Dev] Registry Access Using Carbon Context

2015-02-23 Thread Chathura Priyankara
Hi Pubudu,

Use CarbonContext.getThreadLocalCarbonContext(); instead of CarbonContext.
getCurrentContext();. org.wso2.carbon.context module is not using anymore.

See following links [1] and [2] for more information:

[1]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-org-wso2-carbon-context-4-2-0-JAR-missing-in-Nexus-td89619.html
[2]
https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-getThreadLocalCarbonContext()

Thanks!
Best Regards,

On Mon, Feb 23, 2015 at 3:30 PM, Pubudu Dodangoda pubu...@wso2.com wrote:

 I am trying to access the local registry (to save and to get a resource)

 I get the following exception,

 java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
 constraint violation: when resolving method
 org.apache.axis2.util.XMLUtils.toOM(Lorg/w3c/dom/Element;)Lorg/apache/axiom/om/OMElement;
 the class loader (instance of
 org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
 class, org/wso2/carbon/utils/multitenancy/CarbonContextHolder, and the
 class loader (instance of
 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
 class, org/apache/axis2/util/XMLUtils, have different Class objects for the
 type MElement; used in the signature

 Last time when I got this exception, adding scopeProvided/scope to the
 respective artifact dependency solved the problem
 But here, when I do that I get a NoSuchMethod Exception for the line where
 the Carbon Context is defined


 Notes-
 I used the following code for registry access

 CarbonContext cctx= CarbonContext.getCurrentContext();
 Registry registry=cctx.getRegistry(RegistryType.LOCAL_REPOSITORY);
 try{
 Resource resource=registry.newResource();
 resource.setContent(Dashboard_Test);
 registry.put(RandomPath, resource);
 }catch(RegistryException re){ re.printStackTrace();}

 Thank You
 --
 Pubudu Dodangoda
 BSc Engineering(Hon's) Undergraduate
 Department of Computer Science Engineering
 University of Moratuwa
 0716053681 / 0775192994

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-20 Thread Chathura Priyankara
Hi,

You should have axis2 clint jar. Make sure that you have axis2 client jar
dependency and the following class path in your pom.xml.

pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
/

Thanks!
Best Regards,

On Fri, Feb 20, 2015 at 1:25 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Hi,

 Also check whether the correct jar file is available in below configured
 path.

 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /

 Thanks.

 On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Could you try adding wsdl4j as a dependency and check.

 [1] http://grepcode.com/search/?query=javax/wsdl

 On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel shen...@wso2.com
 wrote:

 Hi Team,

 I am currently following the tutorial [1] on building a carbon
 component, After creating the stub components and building, the build is
 successful but it generates the error below. Is there anything to be done
 to resolve this error?
 I have also attached the pom file of the stub module and the WSDL file
 for your reference.


 [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
 org.wso2.carbon.student.mgt.stub ---
 [INFO] Executing tasks
  [java] Exception in thread main java.lang.NoClassDefFoundError:
 javax/wsdl/WSDLException
  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  [java] Caused by: java.lang.ClassNotFoundException:
 javax.wsdl.WSDLException
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  [java] at java.security.AccessController.doPrivileged(Native
 Method)
  [java] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  [java] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  [java] ... 2 more
  [java] Java Result: 1
 [INFO] Executed tasks

 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks  Best Regards
 *Shenavi de Mel*
 Software Engineer
 WSO2 Inc: http://wso2.com
 email: shen...@wso2.com
 mobile:+94771244470


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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Chathura Priyankara
 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 goals -rf :org.wso2.esb.samples

 [1] http://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
 [2] http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/
 [3] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/

 Please help me to fix the issue.

 Thanks and Regards,

 Hasanthi Dissanayake

 Software Engineer | WSO2

 E: hasan...@wso2.com nirosh...@wso2.com
 M :0718407133| http://wso2.com http://wso2.com/

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




 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216



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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Carbon Component Implementation : Exception in generating service stub

2015-02-16 Thread Chathura Priyankara
Hi Indunil,

You have to set paths for axiom-1.2.11.wso2v4.jar,
axis2-client-1.6.1.wso2v10.jar and  axis2-1.6.1.wso2v10.jar from your local
maven repository like follows :

pathelement
location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
/
pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
/

Thanks!
Best Regards,


On Sat, Feb 14, 2015 at 10:47 AM, Indunil Upeksha Rathnayake 
indu...@wso2.com wrote:

 Hi,

 Thanks for the quick response. Now it's built successfully. But before
 adding these repositories, the jar files (axiom-1.2.11.wso2v4.jar,
 axis2-client-1.6.1.wso2v10.jar, axis2-1.6.1.wso2v10.jar) were there in the
 local repository .m2 folder (I believe that those has been added previously
 from another project build). As per my knowledge, in offline build, maven
 has to use the resources that are available locally. But I'm getting the
 same error, when working in the offline mode by using “mvn clean install
 -o” command. Can anyone please explain the reason behind this?

 Thank You

 Regards
 --
 Indunil Upeksha Rathnayake
 Software Engineer | WSO2 Inc

 Emailindu...@wso2.com
 Mobile  +94713695179

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




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jaxr sample of WSO2 Governance Registry throws an exception

2015-02-11 Thread Chathura Priyankara
Hi Hasanthi,

As Thusitha said this error occurs when you are using wrong username and
password in scoutv3.properties file.
Use admin for both username and password and try to run the sample.

Thanks!
Best regards,

On Tue, Feb 10, 2015 at 12:37 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Hasanthi,

 Did you edit the  scoutv3.properties file with username and password?
 Thanks

 On Mon, Feb 9, 2015 at 2:15 PM, Hasanthi Purnima Dissanayake 
 hasan...@wso2.com wrote:

 Hi,
 I tried to execute the jaxr sample according to the instructions of wso2
 documentation. (https://docs.wso2.com/display/Governance453/JAXR+Sample)
 . But it throws following exception,

 [java] javax.xml.registry.JAXRException:
 org.apache.ws.scout.transport.TransportException:
 java.lang.reflect.InvocationTargetException
  [java] at
 org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.getAuthToken(BusinessLifeCycleManagerV3Impl.java:918)
  [java] at
 org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.executeOperation(BusinessLifeCycleManagerV3Impl.java:566)
  [java] at
 org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.saveOrganizations(BusinessLifeCycleManagerV3Impl.java:421)
  [java] at
 org.wso2.registry.jaxr.sample.JaxrServiceTest.createOrganization(JaxrServiceTest.java:166)
  [java] at
 org.wso2.registry.jaxr.sample.JaxrServiceTest.publishFindAndDeleteService(JaxrServiceTest.java:50)
  [java] at
 org.wso2.registry.jaxr.sample.RegistryJaxrClient.main(RegistryJaxrClient.java:49)
  [java] Caused by: org.apache.ws.scout.transport.TransportException:
 java.lang.reflect.InvocationTargetException
  [java] at
 org.apache.ws.scout.registry.RegistryV3Impl.execute(RegistryV3Impl.java:256)
  [java] at
 org.apache.ws.scout.registry.RegistryV3Impl.getAuthToken(RegistryV3Impl.java:857)
  [java] at
 org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.getAuthToken(BusinessLifeCycleManagerV3Impl.java:914)
  [java] ... 5 more
  [java] Caused by: org.apache.ws.scout.transport.TransportException:
 java.lang.reflect.InvocationTargetException
  [java] at
 org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:83)
  [java] at
 org.apache.ws.scout.registry.RegistryV3Impl.execute(RegistryV3Impl.java:254)
  [java] ... 7 more
  [java] Caused by: java.lang.reflect.InvocationTargetException
  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  [java] at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [java] at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [java] at java.lang.reflect.Method.invoke(Method.java:597)
  [java] at
 org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:74)
  [java] ... 8 more
  [java] Caused by: java.lang.reflect.InvocationTargetException
  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  [java] at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [java] at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [java] at java.lang.reflect.Method.invoke(Method.java:597)
  [java] at
 org.apache.juddi.v3.client.transport.wrapper.RequestHandler.invoke(RequestHandler.java:176)
  [java] at
 org.apache.juddi.v3.client.transport.wrapper.UDDISecurityService.secure(UDDISecurityService.java:91)
  [java] ... 13 more
  [java] Caused by: javax.xml.ws.soap.SOAPFaultException: Invalid
 credentials were passed
  [java] at
 com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
  [java] at
 com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
  [java] at
 com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
  [java] at
 com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
  [java] at
 com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
  [java] at com.sun.proxy.$Proxy40.getAuthToken(Unknown Source)
  [java] ... 19 more

 Is there anything to configure, other than the instructions given?

 Thanks and regards,

 Hasanthi Dissanayake

 Software Engineer | WSO2

 E: hasan...@wso2.com nirosh...@wso2.com
 M :0718407133| http://wso2.com http://wso2.com/

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




 --
 Thusitha Dayaratne
 Software Engineer | WSO2 Inc

 Emailthusit...@wso2.com
 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com


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




-- 
Chathura

Re: [Dev] [DSS] IOException: Server returned HTTP response code: 500 when running FileService Sample in DSS

2015-02-09 Thread Chathura Priyankara
-bin/mailman/listinfo/dev




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] InvalidSecurity exception on using WS-Security

2015-02-08 Thread Chathura Priyankara
Hi Malith,

I got the same issue when I'm having both JDK 1.7 and 1.8 installed in my
computer. However I was able to solve the problem and run the ESB sample
100 successfully after making JDK 1.7 as the default Java version in my
machine.

Thanks!
Best regards,

On Mon, Feb 9, 2015 at 11:11 AM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi Malith,

 I got the same issue when I'm having both java 1.7 and 1.8 installed in my
 computer. How ever I was able to solve the problem and run the ESB sample
 100 successfully after making Java 1.7 as the default Java version in my
 machine.

 Thanks!
 Best regrads,

 On Mon, Feb 9, 2015 at 11:03 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Malith,

 I got the same error when I tried with JDK 1.7u7. I was able to fix that
 using [1]
 [1] -
 http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html

 Thanks

 On Mon, Feb 9, 2015 at 10:33 AM, Malith Munasinghe mali...@wso2.com
 wrote:


 While doing ESB 4.8.1 sample #100 Using WS-Security for Outgoing
 Messages I encountered the following error [1] on ESB.  Also the
 axis2Server threw the error [2].  JDK 1.7u75 is used with necessary
 prerequisites mentioned on the documentation.

 Also I referred to [3], [4] links for a resolution as well but the error
 continues.

 When I ran the same sample using JDK 1.8 expected results were achieved.

 Is there anything that I have to do to get it working on JDK 1.7 as well
 ?


 *[1] ESB Error*

 [2015-02-09 09:45:38,191] ERROR - AxisEngine InvalidSecurity
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 [2015-02-09 09:45:38,193] ERROR - ClientWorker Fault processing response
 message through Axis2
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)



 *[2] axis2Server error*

 15/02/09 09:45:37 ERROR engine.AxisEngine: An unsupported signature or
 encryption algorithm was used (unsupported key transport encryption
 algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 org.apache.axis2.AxisFault: An unsupported signature or encryption
 algorithm was used (unsupported key transport encryption algorithm: No such
 algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested
 exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745

Re: [Dev] [ESB] Illegal key size exception from AxisEngine when sending an encrypted request

2015-01-30 Thread Chathura Priyankara
Hi,

Thank you for the response.
Previously I had both java 8 and java 7 in my machine, the problem was
solved after making java 7 as the default java version.

Thanks!
Best Regards,

On Fri, Jan 30, 2015 at 9:37 AM, Pavithra Madurangi pavit...@wso2.com
wrote:

 Also please refer ESB Installation Prerequisites for more information

 https://docs.wso2.com/display/ESB481/Installation+Prerequisites

 On Fri, Jan 30, 2015 at 9:33 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 As per [1], this happens when you've not installed JCE policy files
 properly. So please make sure whether

 - You've placed the two jar files @ $JAVA_HOME/jre/lib/security
 - As per the special note in [1], if you are running your client through
 an IDE - and you still gets the above error after applying the provided
 solution - double check the JAVA_HOME set in the corresponding IDE - and
 need to patch that corresponding JDK
 Or if you are running curl commands from terminal try reloading .bashrc

 [1]
 http://blog.rampartfaq.com/2009/08/faq-001-javasecurityinvalidkeyexception.html

 Regards,
 Pavithra

 On Wed, Jan 28, 2015 at 10:35 AM, Chathura Priyankara chathu...@wso2.com
  wrote:

 Hi,

 When I'm sending an encrypted request to the proxy service for the
 sample ESB configuration listed in [1], getting the following error from
 the AxisEngine. The java version I'm using is 1.7 so I used JCE for Java 7.
 Is this because of version mismatch of Java ?

 ERROR engine.AxisEngine: The signature or decryption was invalid; nested
 exception is:
 org.apache.xml.security.encryption.XMLEncryptionException: Illegal key
 size
 Original Exception was java.security.InvalidKeyException: Illegal key
 size
 org.apache.axis2.AxisFault: The signature or decryption was invalid;
 nested exception is:
 org.apache.xml.security.encryption.XMLEncryptionException: Illegal key
 size
 Original Exception was java.security.InvalidKeyException: Illegal key
 size
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.apache.ws.security.WSSecurityException: The signature or
 decryption was invalid; nested exception is:
 org.apache.xml.security.encryption.XMLEncryptionException: Illegal key
 size
 Original Exception was java.security.InvalidKeyException: Illegal key
 size
 at
 org.apache.ws.security.processor.ReferenceListProcessor.decryptEncryptedData(ReferenceListProcessor.java:258)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:483)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:421)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
 at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
 ... 11 more

 [1]
 https://docs.wso2.com/display/ESB481/Sample+153%3A+Routing+Messages+that+Arrive+to+a+Proxy+Service+without+Processing+Security+Headers
 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: 0777207357 / 0112747089




 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: 0777207357 / 0112747089




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org

[Dev] [ESB] Illegal key size exception from AxisEngine when sending an encrypted request

2015-01-27 Thread Chathura Priyankara
Hi,

When I'm sending an encrypted request to the proxy service for the sample
ESB configuration listed in [1], getting the following error from the
AxisEngine. The java version I'm using is 1.7 so I used JCE for Java 7. Is
this because of version mismatch of Java ?

ERROR engine.AxisEngine: The signature or decryption was invalid; nested
exception is:
org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size
Original Exception was java.security.InvalidKeyException: Illegal key size
org.apache.axis2.AxisFault: The signature or decryption was invalid; nested
exception is:
org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size
Original Exception was java.security.InvalidKeyException: Illegal key size
at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.ws.security.WSSecurityException: The signature or
decryption was invalid; nested exception is:
org.apache.xml.security.encryption.XMLEncryptionException: Illegal key size
Original Exception was java.security.InvalidKeyException: Illegal key size
at
org.apache.ws.security.processor.ReferenceListProcessor.decryptEncryptedData(ReferenceListProcessor.java:258)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:483)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:421)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 11 more

[1]
https://docs.wso2.com/display/ESB481/Sample+153%3A+Routing+Messages+that+Arrive+to+a+Proxy+Service+without+Processing+Security+Headers
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error connecting to the back end

2015-01-26 Thread Chathura Priyankara
Hi,

As Thusitha said I think there is a mismatch between actual
synapse_sample_5.xml in the samples repository and what is mentioned in the
documentation*. *The actual one is  missing the property mediator as
pointed out, even after adding that I'm getting the same issue that
mentioned above mail. So what I'm doing wrong here ?

Thanks!
Regards,

On Mon, Jan 26, 2015 at 1:35 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Chathura,


 I think actual repo code in *synapse_sample_5.xml *should be changed from

 sequence name=myFaultHandler
 makefault
 code value=tns:Receiver/
 reason expression=get-property('ERROR_MESSAGE')/
 /makefault
 send/
 /sequence

 to (bold text segment should be added)

 sequence name=myFaultHandler makefault code value=tns:Receiver 
 *xmlns:tns=http://www.w3.org/2003/05/soap-envelope
 http://www.w3.org/2003/05/soap-envelope*/ reason
 expression=get-property('ERROR_MESSAGE')/ /makefault * property
 name=RESPONSE value=true/ header name=To
 expression=get-property('ReplyTo')/ send/ */sequence

 On Mon, Jan 26, 2015 at 12:46 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,
 When I'm running 5th sample of ESB getting the following error:

  [java] org.apache.axis2.AxisFault: Error connecting to the back end
  [java] at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
  [java] at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
  [java] at samples.userguide.StockQuoteClient.executeClient(Unknown
 Source)
  [java] at samples.userguide.StockQuoteClient.main(Unknown Source)

 What can be the issue for this ?

 Thanks!
 Regards,


 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 Thusitha Dayaratne
 Software Engineer | WSO2 Inc

 Mobile : +94712756809
 Blog: alokayasoya.blogspot.com




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error connecting to the back end

2015-01-25 Thread Chathura Priyankara
Hi,
When I'm running 5th sample of ESB getting the following error:

 [java] org.apache.axis2.AxisFault: Error connecting to the back end
 [java] at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 [java] at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
 [java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
 [java] at samples.userguide.StockQuoteClient.executeClient(Unknown
Source)
 [java] at samples.userguide.StockQuoteClient.main(Unknown Source)

What can be the issue for this ?

Thanks!
Regards,


-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue when starting wso2server

2015-01-22 Thread Chathura Priyankara
Thanks Udara.

On Thu, Jan 22, 2015 at 6:12 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 This message says current setup uses default key stores packed with the
 product. Using default keystore for testing purposes is OK, however for
 production environment it is less secured since everyone has the default
 keystore. So it is recommended to configure with a unique keystore.

 Since you are not using the product in a production environment, the
 warning message can be ignored.


 On Thu, Jan 22, 2015 at 6:04 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 I'm trying to run WSO2 ESB for the first time. When I'm executing
 wso2server.sh getting the following warning and getting  Your connection
 is not private error when accessing https://localhost:9443/carbon/
 https://10.100.7.27:9443/carbon/ from chrome.

 WARN - ValidationResultPrinter The default keystore (wso2carbon.jks) is
 currently being used. To maximize security when deploying to a production
 environment, configure a new keystore with a unique password in the
 production server profile.

 How can I fix this issue ?

 Thanks!
 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue when starting wso2server

2015-01-22 Thread Chathura Priyankara
Hi,

I'm trying to run WSO2 ESB for the first time. When I'm executing
wso2server.sh getting the following warning and getting  Your connection
is not private error when accessing https://localhost:9443/carbon/
https://10.100.7.27:9443/carbon/ from chrome.

WARN - ValidationResultPrinter The default keystore (wso2carbon.jks) is
currently being used. To maximize security when deploying to a production
environment, configure a new keystore with a unique password in the
production server profile.

How can I fix this issue ?

Thanks!
-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev