Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6
Hi Varuna, I tired with your solution but problem still remain as same. Using SSLv3 instead of TLS is working fine with direct call but not for connector. And also above mentioned code is a part of BrainTree SDK, not a connector code. Thnaks. -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060p102075.html Sent from the WSO2 Development mailing list archive at Nabble.com. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please commit CARBON-14929
Hi Sameera, Can you please commit the [1] [1] https://wso2.org/jira/browse/CARBON-14929 On Mon, Sep 1, 2014 at 10:44 AM, Chamil Jeewantha cha...@wso2.com wrote: Hi Geeth, Supun ran the build tests successfully in his local environment. Can you please commit this patch since he is not available. Regards, Chamil On Mon, Sep 1, 2014 at 10:23 AM, Chamil Jeewantha cha...@wso2.com wrote: Hi Supun, Any update on this? On Fri, Aug 29, 2014 at 3:12 PM, Chamil Jeewantha cha...@wso2.com wrote: Hi Supun, I have re-attached the patch to the issue. Please proceed. Regards, Chamil On Fri, Aug 29, 2014 at 2:57 PM, Supun Malinga sup...@wso2.com wrote: Hi Chamil, I had a chat with Sameera as well. Let's go ahead with the above approach. thanks, On Fri, Aug 29, 2014 at 2:37 PM, Chamil Jeewantha cha...@wso2.com wrote: Hi All, I'm adding org.wso2.carbon.bootstrap*.jar into patch0009. This jar should go into CARBON_HOME/bin So I think we can add a bin folder to the patch.zip and copy this jar to that folder. Theadd a step in README to copy it manually to CARBON_HOME/bin WDYT? Is there a better way of doing that? On Fri, Aug 29, 2014 at 1:49 PM, Chamil Jeewantha cha...@wso2.com wrote: Hi Supun, org.wso2.carbon.bootstrap*.jar does not go into the plugin directory. it goes to the CARBON_HOME/bin directory. Do we still need to add it to the patch zip? Regards, Chamil On Fri, Aug 29, 2014 at 12:34 PM, Supun Malinga sup...@wso2.com wrote: Hi Chamil, As discussed let's add the entries to include the built jar into patch zip as well. thanks, On Fri, Aug 29, 2014 at 12:29 PM, Chamil Jeewantha cha...@wso2.com wrote: $subject. https://wso2.org/jira/browse/CARBON-14929 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com sup...@wso2.com mobile: +94 (0)71 56 91 321 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com sup...@wso2.com mobile: +94 (0)71 56 91 321 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com http://kdchamil.blogspot.com Mobile: +94716813892 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Adding user to a tenant using admin services
Hi Shariq, I debuged the addUser method in org.wso2.carbon.identity.user.registration.UserRegistrationService class and found the code snippet that causes the error. if (tenantConfig != null tenantConfig.getSignUpDomain() != ) { int index = userName.indexOf(UserCoreConstants.DOMAIN_SEPARATOR); if (index 0) { userName = tenantConfig.getSignUpDomain().toUpperCase() + UserCoreConstants.DOMAIN_SEPARATOR + userName.substring(index + 1); } else { userName = tenantConfig.getSignUpDomain().toUpperCase() + UserCoreConstants.DOMAIN_SEPARATOR + userName; } } From this part the username is changed from 'chamila' to 'T2.COM/chamila' and this causes the 'Invalid Domain Name' error when adding a user. I was able to create users for tenants (using roles in the registry entry) by removing this part. Is there any reason for having this part? (any other places that might fail) or is it ok to remove this? Thanks, Chamila. On Fri, Aug 29, 2014 at 2:48 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Shariq, I modified according to the way you mentioned and was able to create users for tenants with default configuration (Internal/identity). But when I created the registry entry for tenants as the way you described in the architecture thread, I get the following error. My registry entry in '/_system/governance/repository/identity/sign-up-config' for domain T2.com is SelfSignUp SignUpDomainT2.COM/SignUpDomain SignUpRole RoleNametest/RoleName IsExternalRolefalse/IsExternalRole /SignUpRole /SelfSignUp Username passed for this is cham...@t2.com. I created a separate internal role 'test' with some permission. I did not do any other configuration in the API manager. Can you point out my mistake. I can create users with roles by adding following to the identity.xml SelfSignUp SignUpRole Namesubscriber/Name Externalfalse/External /SignUpRole /SelfSignUp following is the error log. org.wso2.carbon.identity.base.IdentityException: Error occurred while adding user : T2.COM/chamila at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:268) at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:162) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at
Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6
Hi Janaka, Can you try running ESB with -Djavax.net.debug=ssl ? So that it will show more info regarding SSL connection setup. Thanks, On Mon, Sep 1, 2014 at 11:46 AM, Jay janaka.n.ranathu...@gmail.com wrote: Hi Varuna, I tired with your solution but problem still remain as same. Using SSLv3 instead of TLS is working fine with direct call but not for connector. And also above mentioned code is a part of BrainTree SDK, not a connector code. Thnaks. -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060p102075.html Sent from the WSO2 Development mailing list archive at Nabble.com. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge AS UI test pull request
Will do. BTW I'm just curious to know how these UI tests run on Jenkins, could you please provide an update ? Thanks ! On Mon, Sep 1, 2014 at 11:16 AM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Reminder ! Regards Dimuthu On Thu, Aug 21, 2014 at 8:35 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi AS Team, Pls merge the pull request for AS UI Tests : https://github.com/wso2-dev/product-as/pull/22 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com -- 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
Re: [Dev] Adding user to a tenant using admin services
Modifying SignUpDomainT2.COM/SignUpDomain to SignUpDomainPRIMARY/SignUpDomain fixed the error (without modifying the code). Thank you for your explanation regarding this. Chamila. On Mon, Sep 1, 2014 at 12:04 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Shariq, I debuged the addUser method in org.wso2.carbon.identity.user.registration.UserRegistrationService class and found the code snippet that causes the error. if (tenantConfig != null tenantConfig.getSignUpDomain() != ) { int index = userName.indexOf(UserCoreConstants.DOMAIN_SEPARATOR); if (index 0) { userName = tenantConfig.getSignUpDomain().toUpperCase() + UserCoreConstants.DOMAIN_SEPARATOR + userName.substring(index + 1); } else { userName = tenantConfig.getSignUpDomain().toUpperCase() + UserCoreConstants.DOMAIN_SEPARATOR + userName; } } From this part the username is changed from 'chamila' to 'T2.COM/chamila' and this causes the 'Invalid Domain Name' error when adding a user. I was able to create users for tenants (using roles in the registry entry) by removing this part. Is there any reason for having this part? (any other places that might fail) or is it ok to remove this? Thanks, Chamila. On Fri, Aug 29, 2014 at 2:48 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Shariq, I modified according to the way you mentioned and was able to create users for tenants with default configuration (Internal/identity). But when I created the registry entry for tenants as the way you described in the architecture thread, I get the following error. My registry entry in '/_system/governance/repository/identity/sign-up-config' for domain T2.com is SelfSignUp SignUpDomainT2.COM/SignUpDomain SignUpRole RoleNametest/RoleName IsExternalRolefalse/IsExternalRole /SignUpRole /SelfSignUp Username passed for this is cham...@t2.com. I created a separate internal role 'test' with some permission. I did not do any other configuration in the API manager. Can you point out my mistake. I can create users with roles by adding following to the identity.xml SelfSignUp SignUpRole Namesubscriber/Name Externalfalse/External /SignUpRole /SelfSignUp following is the error log. org.wso2.carbon.identity.base.IdentityException: Error occurred while adding user : T2.COM/chamila at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:268) at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:162) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at
Re: [Dev] Adding user to a tenant using admin services
On Mon, Sep 1, 2014 at 1:22 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Modifying SignUpDomainT2.COM/SignUpDomain to SignUpDomainPRIMARY/SignUpDomain fixed the error (without modifying the code). Thank you for your explanation regarding this. Yes, in this case domain means the userstore name, the terminology comes from IS. Once you get this working with Primary user store, add a secondary userstore as well, and test if you can add users to it as well. Chamila. On Mon, Sep 1, 2014 at 12:04 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Shariq, I debuged the addUser method in org.wso2.carbon.identity.user.registration.UserRegistrationService class and found the code snippet that causes the error. if (tenantConfig != null tenantConfig.getSignUpDomain() != ) { int index = userName.indexOf(UserCoreConstants. DOMAIN_SEPARATOR); if (index 0) { userName = tenantConfig.getSignUpDomain().toUpperCase () + UserCoreConstants.DOMAIN_SEPARATOR + userName.substring(index + 1); } else { userName = tenantConfig.getSignUpDomain().toUpperCase () + UserCoreConstants.DOMAIN_SEPARATOR + userName; } } From this part the username is changed from 'chamila' to 'T2.COM/chamila' and this causes the 'Invalid Domain Name' error when adding a user. I was able to create users for tenants (using roles in the registry entry) by removing this part. Is there any reason for having this part? (any other places that might fail) or is it ok to remove this? Thanks, Chamila. On Fri, Aug 29, 2014 at 2:48 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Shariq, I modified according to the way you mentioned and was able to create users for tenants with default configuration (Internal/identity). But when I created the registry entry for tenants as the way you described in the architecture thread, I get the following error. My registry entry in '/_system/governance/repository/identity/sign-up-config' for domain T2.com is SelfSignUp SignUpDomainT2.COM/SignUpDomain SignUpRole RoleNametest/RoleName IsExternalRolefalse/IsExternalRole /SignUpRole /SelfSignUp Username passed for this is cham...@t2.com. I created a separate internal role 'test' with some permission. I did not do any other configuration in the API manager. Can you point out my mistake. I can create users with roles by adding following to the identity.xml SelfSignUp SignUpRole Namesubscriber/Name Externalfalse/External /SignUpRole /SelfSignUp following is the error log. org.wso2.carbon.identity.base.IdentityException: Error occurred while adding user : T2.COM/chamila at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:268) at org.wso2.carbon.identity.user.registration.UserRegistrationService.addUser(UserRegistrationService.java:162) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass( RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver. invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) at org.apache.axis2.receivers.AbstractMessageReceiver.receive( AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost( AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost( CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at
[Dev] How can we reduce the frequency of the error No application members available being printed at ELB side, when all members of a cluster are down?
Hi, Recently, when testing API-M, DSS with ELB 2.1.1, we noticed the log files of ELB growing up to hundreds of GBs. See [1]. The reason was that due to a network failure or some other reason, all the nodes of the cluster were removed from the cluster and the below error was printing continuously creating log files of about 100GB. *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* So is there a way we can reduce the frequency of this error being printed? Right now, I suppose it's being printed every millisecond/second. Is there any way that we can print this maybe every 10-15 minutes or make it configurable? [1] - https://wso2.org/jira/browse/LB-164 Regards, Evanthika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge AS UI test pull request
Hi Sagara, I have tested running these UI tests in Sauce Labs environment using Jenkins builder. We can use Sauce OnDemand Plugin for this. This plugin lets you to select the platform (eg: Linux, Windows ) and the browser type and its version (eg: firefox 15.0 etc) prior running the tests . Since I have committed the changes required to run tests in Sauce Labs environment to TAF we can run tests-UI module in the pull request above. Regards ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How can we reduce the frequency of the error No application members available being printed at ELB side, when all members of a cluster are down?
Hi, AFAIK, this log is printed for each request if there are no nodes in the cluster to serve those requests. If there request is for a worker, then there should at least be one worker node in the cluster. I guess we can make this a DEBUG log since the http response also contain this error? Regards, KasunG On Mon, Sep 1, 2014 at 1:56 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi, Recently, when testing API-M, DSS with ELB 2.1.1, we noticed the log files of ELB growing up to hundreds of GBs. See [1]. The reason was that due to a network failure or some other reason, all the nodes of the cluster were removed from the cluster and the below error was printing continuously creating log files of about 100GB. *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* So is there a way we can reduce the frequency of this error being printed? Right now, I suppose it's being printed every millisecond/second. Is there any way that we can print this maybe every 10-15 minutes or make it configurable? [1] - https://wso2.org/jira/browse/LB-164 Regards, Evanthika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] wso2as-5.2.1 start-up error when security manager is enabled
Hi all, I've signed the jars in wso2as-5.2.1, and tried to enable the security manager. I ended up with the following error trace. Any help is highly appreciated, I've attached the stack trace and the sec.policy file also. JAVA_HOME environment variable is set to /home/aruna/java/jdk1.6.0_45 CARBON_HOME environment variable is set to /home/aruna/wso2/wso2as-5.2.1 Property pattern javax.net.ssl.trustStore is restricted for tenant code. Property pattern javax.net.ssl.trustStorePassword is restricted for tenant code. Property pattern denied.system.properties is restricted for tenant code. [2014-09-01 14:18:44,203] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon... [2014-09-01 14:18:44,204] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-34-generic, amd64 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: /home/aruna/java/jdk1.6.0_45/jre [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.6.0_45 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 20.45-b01,Sun Microsystems Inc. [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/aruna/wso2/wso2as-5.2.1 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir: /home/aruna/wso2/wso2as-5.2.1/tmp [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : aruna, en-US, Asia/Colombo [2014-09-01 14:18:44,243] WARN {org.wso2.carbon.core.bootup.validator.util.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. [2014-09-01 14:18:44,243] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048 [2014-09-01 14:18:44,315] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created ! [2014-09-01 14:18:44,331] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client [2014-09-01 14:18:48,144] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 46ms [2014-09-01 14:18:48,225] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode: READ-WRITE [2014-09-01 14:18:48,584] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully. [2014-09-01 14:18:52,498] INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined [2014-09-01 14:18:53,579] ERROR {org.apache.jasper.security.SecurityClassLoad} - SecurityClassLoad java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServletWrapper at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.jasper.security.SecurityClassLoad.securityClassLoad(SecurityClassLoad.java:141) at org.apache.jasper.compiler.JspRuntimeContext.clinit(JspRuntimeContext.java:124) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1261) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at
Re: [Dev] wso2as-5.2.1 start-up error when security manager is enabled
Hi Aruna This error is harmless. You can ignore this. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Sep 1, 2014 at 2:33 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi all, I've signed the jars in wso2as-5.2.1, and tried to enable the security manager. I ended up with the following error trace. Any help is highly appreciated, I've attached the stack trace and the sec.policy file also. JAVA_HOME environment variable is set to /home/aruna/java/jdk1.6.0_45 CARBON_HOME environment variable is set to /home/aruna/wso2/wso2as-5.2.1 Property pattern javax.net.ssl.trustStore is restricted for tenant code. Property pattern javax.net.ssl.trustStorePassword is restricted for tenant code. Property pattern denied.system.properties is restricted for tenant code. [2014-09-01 14:18:44,203] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon... [2014-09-01 14:18:44,204] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-34-generic, amd64 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: /home/aruna/java/jdk1.6.0_45/jre [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.6.0_45 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 20.45-b01,Sun Microsystems Inc. [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/aruna/wso2/wso2as-5.2.1 [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir: /home/aruna/wso2/wso2as-5.2.1/tmp [2014-09-01 14:18:44,205] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : aruna, en-US, Asia/Colombo [2014-09-01 14:18:44,243] WARN {org.wso2.carbon.core.bootup.validator.util.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. [2014-09-01 14:18:44,243] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048 [2014-09-01 14:18:44,315] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created ! [2014-09-01 14:18:44,331] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client [2014-09-01 14:18:48,144] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 46ms [2014-09-01 14:18:48,225] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode: READ-WRITE [2014-09-01 14:18:48,584] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully. [2014-09-01 14:18:52,498] INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined [2014-09-01 14:18:53,579] ERROR {org.apache.jasper.security.SecurityClassLoad} - SecurityClassLoad java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServletWrapper at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.jasper.security.SecurityClassLoad.securityClassLoad(SecurityClassLoad.java:141) at org.apache.jasper.compiler.JspRuntimeContext.clinit(JspRuntimeContext.java:124) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120) at
Re: [Dev] Miss-implication logs for Deployment Synchronizor - jira issue CARBON-14723
Hi, Please review and merge pull request[1] for jira issue [2] [1] https://github.com/wso2-dev/carbon-commons/pull/15 [2] https://wso2.org/jira/browse/CARBON-14723 Thanks, Nipuni On Tue, Jul 29, 2014 at 5:42 PM, Nipuni Perera nip...@wso2.com wrote: No, Manager-node changes it's revision number with updates. (Recent modifications to dep-sync calls checkout() method inside commit(). Just checked with kasunG). I didn't have recent update in my local repo and didn't noticed changes in revision numbers. According to current updates revision numbers change with updates, in both manager and worker nodes. Thanks, Nipuni On Tue, Jul 29, 2014 at 4:28 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: -- Sent from mobile -- On 29 Jul 2014 13:36, Nipuni Perera nip...@wso2.com wrote: Hi, I have updated the above patch with the attachment SVNBasedArtifactRepository.patch. When svn is update by a manager-node, svn get a new revision number with the update but manager node remains in the same revision number. It does not call checkout() or update() methods above. If I restart the manger-node, there I can observe two different values for newRevisionNumberLog and lastRevisionNumber inside checkout() method of manager-node. Is it the same behaviour without your fixes too? The revision number cannot change unless there is a check-in. I have sent a pull request for the above fix. Thanks, Nipuni On Mon, Jul 28, 2014 at 11:21 AM, Nipuni Perera nip...@wso2.com wrote: Hi, I have update the log messages and methods mentioned earlier. Find the attached patch. Thanks, Nipuni On Wed, Jul 9, 2014 at 3:35 PM, Nipuni Perera nip...@wso2.com wrote: Hi, I am working on $subject.Three methods below checkout(int tenantId, String filePath, int depth) update(int tenantId, String rootPath, String filePathToUpdate, int depth) checkout(int tenantId, String filePath) in [1] uses the code, filesUpdated = svnClient.update(root, SVNRevision.HEAD,Depth.infinity, NO_SET_DEPTH,ignoreExternals, forceUpdate); svnClient.update(..) returns revision number but assigned to filesUpdated. The method return value is set to filesUpdated 1 which is incorrect. According to javadocs[2], methods should return true if files were checked out or updates, false otherwise. If files were changed, it can be detected comparing revision numbers. Therefore the return value would be, long lastRevisionNumber = svnClient.getInfo(root).getLastChangedRevision(); long newRevisionNumber = svnClient.update(root, SVNRevision.HEAD,Depth.infinity, NO_SET_DEPTH,ignoreExternals, forceUpdate); return newRevisionNumberlastRevisionNumber; This gives different values for newRevisionNumberLog and lastRevisionNumber, when I debug with a worker node, but gave same value for both variables for manager node. What could be the issue here?. Log messages should also updated accordingly. Is there any other issue to consider? [1] https://github.com/wso2-dev/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java [2] https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/src/main/java/org/wso2/carbon/deployment/synchronizer/ArtifactRepository.java Thanks, Nipuni -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 http://wso2.com -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
Hi, I'm also getting the same issue, any update on this? we want to up the basic APIM setup with H2 database for test automation Thanks Amalka On Mon, Aug 25, 2014 at 6:48 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Danushka, Abimaran Thanks for your responses.. I am trying to start up basic APIM setup with built in H2 database first because we ship H2 database by default. I can understand the fact that DB is corrupted, just curious why is getting corrupted every time that I am going to start up the set up. Regards Roshan On Mon, Aug 25, 2014 at 6:28 PM, Danushka Fernando danush...@wso2.com wrote: Hi Roshan H2 dbs get corrupted some times. We are not recommending H2 in production deployments. So if you want to store some data please use mysql. And you can delete h2 dbs (under $CARBON_HOME/repository/database/) and start the server with -Dsetup option. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 5:20 PM, Abimaran Kugathasan abima...@wso2.com wrote: Hi Roshan, Seems that DB file was correpted. Can you check WSO2AM_DB.trace.db file and attached it here? On Mon, Aug 25, 2014 at 4:15 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Devs, I am keep getting below exception when I am trying to add a new API via publisher Caused by: org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/roshan/workspace/MIT/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-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.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4833) ... 66 more any one has idea why is this? Regards Roshan -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs Technologies Team Mobile : +94 77 1708229 http://stackoverflow.com/users/515034 http://lk.linkedin.com/in/abimaran http://www.lkabimaran.blogspot.com/ https://github.com/abimaran https://twitter.com/abimaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Amalka Subasinghe Senior Software Engineer WSO2 Inc. Mobile: +94 77 9401267 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Why RXTManager is neither Singleton nor static.
Hi In AF RXTManager [1] is used for read / write application and version rxts. Why is $subject? Each time we use this we create a new object of it. Is there a specific reason for this? If not shall we make it either singleton or static. WDYT? [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/components/appfac/org.wso2.carbon.appfactory.core/2.0.1/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
Please attach the complete error log. -Ajith On Mon, Sep 1, 2014 at 2:59 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I'm also getting the same issue, any update on this? we want to up the basic APIM setup with H2 database for test automation Thanks Amalka On Mon, Aug 25, 2014 at 6:48 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Danushka, Abimaran Thanks for your responses.. I am trying to start up basic APIM setup with built in H2 database first because we ship H2 database by default. I can understand the fact that DB is corrupted, just curious why is getting corrupted every time that I am going to start up the set up. Regards Roshan On Mon, Aug 25, 2014 at 6:28 PM, Danushka Fernando danush...@wso2.com wrote: Hi Roshan H2 dbs get corrupted some times. We are not recommending H2 in production deployments. So if you want to store some data please use mysql. And you can delete h2 dbs (under $CARBON_HOME/repository/database/) and start the server with -Dsetup option. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Aug 25, 2014 at 5:20 PM, Abimaran Kugathasan abima...@wso2.com wrote: Hi Roshan, Seems that DB file was correpted. Can you check WSO2AM_DB.trace.db file and attached it here? On Mon, Aug 25, 2014 at 4:15 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Devs, I am keep getting below exception when I am trying to add a new API via publisher Caused by: org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/roshan/workspace/MIT/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-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.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4833) ... 66 more any one has idea why is this? Regards Roshan -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data APIs Technologies Team Mobile : +94 77 1708229 http://stackoverflow.com/users/515034 http://lk.linkedin.com/in/abimaran http://www.lkabimaran.blogspot.com/ https://github.com/abimaran https://twitter.com/abimaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Amalka Subasinghe Senior Software Engineer WSO2 Inc. Mobile: +94 77 9401267 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
ERROR - ApiMgtDAO Error while adding the API: org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/amalka/amalkas/apim-packs/Untitled Folder/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-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.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4847) at org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:383) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:45) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addAPI(APIProviderHostObject.java:1200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.api.c2._c_anonymous_7(/publisher/modules/api/add.jag:144) at org.jaggeryjs.rhino.publisher.modules.api.c2.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_1(/publisher/modules/api/module.jag:5) at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-add/ajax/add.jag:117) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:4) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.exec(/publisher/site/blocks/item-add/ajax/add.jag) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at
Re: [Dev] Commit to kernal
Can you explain rationale behind this change? Thanks, Sameera. On Mon, Aug 25, 2014 at 6:54 PM, Isura Karunaratne is...@wso2.com wrote: Hi All, Please commit following *https://wso2.org/jira/browse/CARBON-14928 https://wso2.org/jira/browse/CARBON-14928* Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please commit patch to 4.2.0 patch0009
Hi Carbon Team, Please commit the patch for [1] which is attached, this is a backporting of an existing fix [1] https://wso2.org/jira/browse/REGISTRY-2147 Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Commit to kernal
Hi Sameera, AuthenticationHandler is used to provide authentication in admin services. We can use following parameter to skip the authentication in a service. * parameter name=DoAuthentication locked=truefalse/parameter* Although this works fine with the service level it doesn't work with the operation level. So we can skip the authentication in operation level with this fix *operation name=myOperation* *parameter name=DoAuthentication locked=truefalse/parameter* */operation* Thanks Isura On Mon, Sep 1, 2014 at 3:31 PM, Sameera Jayasoma same...@wso2.com wrote: Can you explain rationale behind this change? Thanks, Sameera. On Mon, Aug 25, 2014 at 6:54 PM, Isura Karunaratne is...@wso2.com wrote: Hi All, Please commit following *https://wso2.org/jira/browse/CARBON-14928 https://wso2.org/jira/browse/CARBON-14928* Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge AS UI test pull request
Hi Dimuthu, You need to get sauce labs jenkins plugin installed in master and PR builder instances. Otherwise these UI tests will get fail. Thanks, Krishantha. On Mon, Sep 1, 2014 at 2:16 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Sagara, I have tested running these UI tests in Sauce Labs environment using Jenkins builder. We can use Sauce OnDemand Plugin for this. This plugin lets you to select the platform (eg: Linux, Windows ) and the browser type and its version (eg: firefox 15.0 etc) prior running the tests . Since I have committed the changes required to run tests in Sauce Labs environment to TAF we can run tests-UI module in the pull request above. Regards ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Why RXTManager is neither Singleton nor static.
Hi all, I read through the code. We can make it a singleton. It is thread safe in singleton mode. thanks, dimuthu On Mon, Sep 1, 2014 at 3:01 PM, Danushka Fernando danush...@wso2.com wrote: Hi In AF RXTManager [1] is used for read / write application and version rxts. Why is $subject? Each time we use this we create a new object of it. Is there a specific reason for this? If not shall we make it either singleton or static. WDYT? [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/components/appfac/org.wso2.carbon.appfactory.core/2.0.1/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- 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
Re: [Dev] [AF] Why RXTManager is neither Singleton nor static.
Hi all, I will work on this and will make this as a singleton. Thanks On Mon, Sep 1, 2014 at 4:40 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, I read through the code. We can make it a singleton. It is thread safe in singleton mode. thanks, dimuthu On Mon, Sep 1, 2014 at 3:01 PM, Danushka Fernando danush...@wso2.com wrote: Hi In AF RXTManager [1] is used for read / write application and version rxts. Why is $subject? Each time we use this we create a new object of it. Is there a specific reason for this? If not shall we make it either singleton or static. WDYT? [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/components/appfac/org.wso2.carbon.appfactory.core/2.0.1/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge AS UI test pull request
On Mon, Sep 1, 2014 at 4:25 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Dimuthu, You need to get sauce labs jenkins plugin installed in master and PR builder instances. Otherwise these UI tests will get fail. What happen if I run above code in my own EC2 instance ? I guess build will fail as I don't have any Sauce Labs plugin there. If so you need to create a new Maven profile so that above tests run only if this profile get activated, in our build servers we can install Sauce Labs plugins and enable this profile. BTW please test Sauce Labs plug-in in staging environment before apply into any production server. Thanks ! Thanks, Krishantha. On Mon, Sep 1, 2014 at 2:16 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Sagara, I have tested running these UI tests in Sauce Labs environment using Jenkins builder. We can use Sauce OnDemand Plugin for this. This plugin lets you to select the platform (eg: Linux, Windows ) and the browser type and its version (eg: firefox 15.0 etc) prior running the tests . Since I have committed the changes required to run tests in Sauce Labs environment to TAF we can run tests-UI module in the pull request above. Regards ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- 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] Need to fix the following issues in product-apim, to run the API Manager integration tests
Hi APIM team, Following are the issues I found so far while building and running API Manager. Issues when building product-apim 1: Got the following error when building product-apim repo: see the mail subjected : Build failure on wso2-dev/product-apim git repo after building carbon-apim, I could solve the issue, but product-apim should be able to build without building carbon-apim. [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project am-p2-profile: P2 publisher return code was 13 - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project am-p2-profile: P2 publisher return code was 13 2: Copied httpmime-4.2.5.jar and encode-1.1.jar to the product-apim-new/modules/distribution/product/src/main/resources folder manually to fix the following errors [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist) on project wso2am: Failed to create assembly: Error filtering file '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar': /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar (No such file or directory) - [Help 1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist) on project wso2am: Failed to create assembly: Error filtering file '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar': /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar (No such file or directory) - [Help 1] Issues when running apim 3: When running the apim it gives following warnings and hangs. could solve the issue after merging the fix specified in the mail subjected: “OSGI bundle conflict when starting up APIM GIT latest” [2014-08-21 08:58:31,302] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 08:58:31,304] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt. gateway-4.3.0.SNAPSHOT [2014-08-21 08:59:31,301] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 08:59:31,302] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT [2014-08-21 09:00:31,301] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 09:00:31,302] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT 4: Could fix the following error after applying the workaround specified in mail subjected: “org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is throwing GIT built apim” [2014-09-01 20:49:57,554] ERROR - DeploymentSynchronizerComponent Error while initializing a deployment synchronizer for the super tenant Carbon repository org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No Repository found for type registry Issues when loading publisher 5: copied encoder-1.1.jar to the product-apim/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/components/lib location to fix the following issue [2014-09-01 20:59:37,963] ERROR - ApplicationDispatcher Servlet.service() for servlet JaggeryServlet threw exception java.lang.ClassNotFoundException: org.owasp.encoder.Encode Issues when trying to add new API 6: see the mail subjected: “org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API” [2014-09-01 21:15:18,672] ERROR - ApiMgtDAO Error while adding the API: org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/amalka/amalkas/product-apim-new/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-140] Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge AS UI test pull request
Custom maven property has introduced to skip UI tests in such build environments. Users can ignore UI tests by using mvn install -DskipUiTests=true command. This property works together with surefire plugin. Will introduce build profile based on the this new property to run tests only on build servers. Thanks, Krishantha. On Mon, Sep 1, 2014 at 9:55 PM, Sagara Gunathunga sag...@wso2.com wrote: On Mon, Sep 1, 2014 at 4:25 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Dimuthu, You need to get sauce labs jenkins plugin installed in master and PR builder instances. Otherwise these UI tests will get fail. What happen if I run above code in my own EC2 instance ? I guess build will fail as I don't have any Sauce Labs plugin there. If so you need to create a new Maven profile so that above tests run only if this profile get activated, in our build servers we can install Sauce Labs plugins and enable this profile. BTW please test Sauce Labs plug-in in staging environment before apply into any production server. Thanks ! Thanks, Krishantha. On Mon, Sep 1, 2014 at 2:16 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi Sagara, I have tested running these UI tests in Sauce Labs environment using Jenkins builder. We can use Sauce OnDemand Plugin for this. This plugin lets you to select the platform (eg: Linux, Windows ) and the browser type and its version (eg: firefox 15.0 etc) prior running the tests . Since I have committed the changes required to run tests in Sauce Labs environment to TAF we can run tests-UI module in the pull request above. Regards ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- 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 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
Hi Amalka, Since you are trying to set up for automation test, have you turned on the filtering of maven-resources-plugin? If so that might be trying to modify the H2 database while APIM modifying it, thus leads to corruption. Can you check on it ? Regards, Firzhan On Mon, Sep 1, 2014 at 3:34 PM, Amalka Subasinghe ama...@wso2.com wrote: ERROR - ApiMgtDAO Error while adding the API: org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/amalka/amalkas/apim-packs/Untitled Folder/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-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.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4847) at org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:383) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:45) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addAPI(APIProviderHostObject.java:1200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.api.c2._c_anonymous_7(/publisher/modules/api/add.jag:144) at org.jaggeryjs.rhino.publisher.modules.api.c2.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_1(/publisher/modules/api/module.jag:5) at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-add/ajax/add.jag:117) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:4) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at
Re: [Dev] How can we reduce the frequency of the error No application members available being printed at ELB side, when all members of a cluster are down?
The quickest would be to set the log level to FATAL for that logger, NOT change the code issue a PATCH to change the log level to debug! On Mon, Sep 1, 2014 at 2:28 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, AFAIK, this log is printed for each request if there are no nodes in the cluster to serve those requests. If there request is for a worker, then there should at least be one worker node in the cluster. I guess we can make this a DEBUG log since the http response also contain this error? Regards, KasunG On Mon, Sep 1, 2014 at 1:56 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi, Recently, when testing API-M, DSS with ELB 2.1.1, we noticed the log files of ELB growing up to hundreds of GBs. See [1]. The reason was that due to a network failure or some other reason, all the nodes of the cluster were removed from the cluster and the below error was printing continuously creating log files of about 100GB. *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* *TID: [0] [ELB] [2014-08-26 05:19:52,131] ERROR {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} - No application members available {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}* So is there a way we can reduce the frequency of this error being printed? Right now, I suppose it's being printed every millisecond/second. Is there any way that we can print this maybe every 10-15 minutes or make it configurable? [1] - https://wso2.org/jira/browse/LB-164 Regards, Evanthika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API.
Hi Friszan, Here I got this error, when I try to start the APIM, just unzipping the pack under module/distribution. Not while executing tests. Thanks Amalka On Mon, Sep 1, 2014 at 11:10 PM, Firzhan Naqash firz...@wso2.com wrote: Hi Amalka, Since you are trying to set up for automation test, have you turned on the filtering of maven-resources-plugin? If so that might be trying to modify the H2 database while APIM modifying it, thus leads to corruption. Can you check on it ? Regards, Firzhan On Mon, Sep 1, 2014 at 3:34 PM, Amalka Subasinghe ama...@wso2.com wrote: ERROR - ApiMgtDAO Error while adding the API: org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/amalka/amalkas/apim-packs/Untitled Folder/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-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.store.PageStore.readVariableHeader(PageStore.java:699) at org.h2.store.PageStore.openExisting(PageStore.java:314) at org.h2.store.PageStore.open(PageStore.java:271) at org.h2.engine.Database.getPageStore(Database.java:2059) at org.h2.engine.Database.open(Database.java:534) at org.h2.engine.Database.openDatabase(Database.java:207) at org.h2.engine.Database.init(Database.java:202) at org.h2.engine.Engine.openSession(Engine.java:56) at org.h2.engine.Engine.openSession(Engine.java:146) at org.h2.engine.Engine.getSession(Engine.java:125) at org.h2.engine.Session.createSession(Session.java:122) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241) at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111) at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95) at org.h2.Driver.connect(Driver.java:73) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127) at org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.getConnection(APIMgtDBUtil.java:138) at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:4847) at org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:383) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:45) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_addAPI(APIProviderHostObject.java:1200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.api.c2._c_anonymous_7(/publisher/modules/api/add.jag:144) at org.jaggeryjs.rhino.publisher.modules.api.c2.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_1(/publisher/modules/api/module.jag:5) at org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-add/ajax/add.jag:117) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0.call(/publisher/site/blocks/item-add/ajax/add.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.publisher.site.blocks.item_add.ajax.c0._c_script_0(/publisher/site/blocks/item-add/ajax/add.jag:4) at
Re: [Dev] AXIS2 Merge to wso2 required
Hi Carbon Team, We are unable to merge several synapse fixes that are required for esb 490, due to the pending merge. Please do the merge. Best Regards, Malaka On Tue, Aug 12, 2014 at 4:41 PM, Malaka Silva mal...@wso2.com wrote: Hi Carbon Team, Any update on this? Best Regards, Malaka On Fri, Aug 1, 2014 at 12:13 PM, Malaka Silva mal...@wso2.com wrote: Hi Sameera, Pull request [1] is already merged with wso2-dev. Please merge same with wso2. Related jira [2] [1] https://github.com/wso2-dev/wso2-axis2/pull/10 [2] https://wso2.org/jira/browse/CARBON-14879 Thank you. 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. -- 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. -- 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
Re: [Dev] [APPFAC] Appfactory plugin build failures due to corrupted poms in nexus repo
Uploaded the given pom files. Please check now. Thanks, Rumesh On Wed, Aug 20, 2014 at 10:24 AM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, We are facing build failures due to the following corrupted pom files. Can some authorized person commit the following corrected poms to wso2 nexus repo?. uddi4j : http://maven.wso2.org/nexus/content/groups/wso2-public/uddi/uddi4j/1.0.1/uddi4j-1.0.1.pom org.eclipse.core.runtime : http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/core/org.eclipse.core.runtime/3.5.0.v20090429-1800/org.eclipse.core.runtime-3.5.0.v20090429-1800.pom Thanks Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.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
Re: [Dev] [APPFAC] Appfactory plugin build failures due to corrupted poms in nexus repo
Hi Rumesh, I'm still getting the old pom files from the previous links. Regards, Anuruddha. On Tue, Sep 2, 2014 at 10:35 AM, Rumesh Bandara rum...@wso2.com wrote: Uploaded the given pom files. Please check now. Thanks, Rumesh On Wed, Aug 20, 2014 at 10:24 AM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, We are facing build failures due to the following corrupted pom files. Can some authorized person commit the following corrected poms to wso2 nexus repo?. uddi4j : http://maven.wso2.org/nexus/content/groups/wso2-public/uddi/uddi4j/1.0.1/uddi4j-1.0.1.pom org.eclipse.core.runtime : http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/core/org.eclipse.core.runtime/3.5.0.v20090429-1800/org.eclipse.core.runtime-3.5.0.v20090429-1800.pom Thanks Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Need to fix the following issues in product-apim, to run the API Manager integration tests
These issue are blockers for API manager test automation in GIT repo. We decided to replace with old pack (APIM 1.7) and proceed with tests case writing. When can we expect stable pack ? Moving to svn not a feasible solution because we might need to migrate test cases to GIT due to API changes introduced into test framework in GIT. Thanks, Krishantha. On Mon, Sep 1, 2014 at 9:55 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi APIM team, Following are the issues I found so far while building and running API Manager. Issues when building product-apim 1: Got the following error when building product-apim repo: see the mail subjected : Build failure on wso2-dev/product-apim git repo after building carbon-apim, I could solve the issue, but product-apim should be able to build without building carbon-apim. [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project am-p2-profile: P2 publisher return code was 13 - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project am-p2-profile: P2 publisher return code was 13 2: Copied httpmime-4.2.5.jar and encode-1.1.jar to the product-apim-new/modules/distribution/product/src/main/resources folder manually to fix the following errors [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist) on project wso2am: Failed to create assembly: Error filtering file '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar': /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/httpmime-4.2.5.jar (No such file or directory) - [Help 1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:attached (dist) on project wso2am: Failed to create assembly: Error filtering file '/home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar': /home/amalka/amalkas/product-apim-new/modules/distribution/product/src/main/resources/encoder-1.1.jar (No such file or directory) - [Help 1] Issues when running apim 3: When running the apim it gives following warnings and hangs. could solve the issue after merging the fix specified in the mail subjected: “OSGI bundle conflict when starting up APIM GIT latest” [2014-08-21 08:58:31,302] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 08:58:31,304] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt. gateway-4.3.0.SNAPSHOT [2014-08-21 08:59:31,301] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 08:59:31,302] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT [2014-08-21 09:00:31,301] WARN - CarbonServerManager Carbon initialization is delayed due to the following unsatisfied items: [2014-08-21 09:00:31,302] WARN - CarbonServerManager Waiting for required OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT 4: Could fix the following error after applying the workaround specified in mail subjected: “org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException is throwing GIT built apim” [2014-09-01 20:49:57,554] ERROR - DeploymentSynchronizerComponent Error while initializing a deployment synchronizer for the super tenant Carbon repository org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No Repository found for type registry Issues when loading publisher 5: copied encoder-1.1.jar to the product-apim/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/components/lib location to fix the following issue [2014-09-01 20:59:37,963] ERROR - ApplicationDispatcher Servlet.service() for servlet JaggeryServlet threw exception java.lang.ClassNotFoundException: org.owasp.encoder.Encode Issues when trying to add new API 6: see the mail subjected: “org.h2.jdbc.JdbcSQLException: File corrupted while reading record excception is throwing APIM GIT build while adding a new API” [2014-09-01 21:15:18,672] ERROR - ApiMgtDAO Error while adding the API: org.wso2.carbon.apimgt.api.model.APIIdentifier@60ba6803 to the database org.h2.jdbc.JdbcSQLException: File corrupted while reading record: /home/amalka/amalkas/product-apim-new/modules/distribution/product/target/wso2am-1.7.0-SNAPSHOT/repository/database/WSO2AM_DB.h2.db. Possible solution: use the recovery tool [90030-140] Thanks Amalka -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev
[Dev] Cassandra-thrift dependency on carbon-utils
Hi Gayashan, It seems like new logging service introduces cassandra-thrift, hector-core as dependencies into carbon-util (carbon-common) project bit IMHO neither Carbon logging service nor carbon-util should have these dependencies, shall we get rid of them ? Anyway I'm getting following build fail with PR-16 [1] . [ERROR] Failed to execute goal on project org.wso2.carbon.logging.service: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.logging.service:bundle:4.3.0-SNAPSHOT: Failure to find org.apache.cassandra.wso2:cassandra-thrift:jar:1.1.0.wso2v1 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [1] - https://github.com/wso2-dev/carbon-utils/pull/16/files 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
Re: [Dev] Cassandra-thrift dependency on carbon-utils
Hi Sagara, These changes were done by Shameera as a result of simplifying the carbon logging story [1]. Since he is not available I will look in to these changes and provide an update asap. [1] https://wso2.org/jira/browse/COMMONS-110 Thanks. /Gayashan On Tue, Sep 2, 2014 at 11:10 AM, Sagara Gunathunga sag...@wso2.com wrote: Hi Gayashan, It seems like new logging service introduces cassandra-thrift, hector-core as dependencies into carbon-util (carbon-common) project bit IMHO neither Carbon logging service nor carbon-util should have these dependencies, shall we get rid of them ? Anyway I'm getting following build fail with PR-16 [1] . [ERROR] Failed to execute goal on project org.wso2.carbon.logging.service: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.logging.service:bundle:4.3.0-SNAPSHOT: Failure to find org.apache.cassandra.wso2:cassandra-thrift:jar:1.1.0.wso2v1 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [1] - https://github.com/wso2-dev/carbon-utils/pull/16/files 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 -- *Gayashan Amarasinghe* Software Engineer | Platform TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94718314517 Blog : gayashan-a.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev