Hi,

The jira[1] mentions the steps to resolve the above issue.

steps:
1. add org.github.jamm,\ in
$CARBON_PRODUCT/repository/conf/etc/launch.ini

2. add following javaagent command in server startup script (wso2server.sh)
-javaagent:"$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar"
\


[1]https://wso2.org/jira/browse/REGISTRY-2224

Thanks.

On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla <prasa...@wso2.com>
wrote:

> Hi all,
>
> I build the wso2greg-5.0.0-SNAPSHOT using source in git. (
> https://github.com/wso2-dev/product-greg). Build was successful. But the
> following error occurs when running the wso2server.sh.
>
> I added the this (
> -javaagent:"$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar"
> \ ) line to wso2server.sh too, but the error still remains.
>
>
> [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor}
> -  Unable to initialize MemoryMeter (jamm not specified as javaagent).
> This means Cassandra will be unable to measure object sizes accurately and
> may consequently OOM.
> [2014-09-17 13:51:50,689] ERROR
> {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager}
> -  Could not initialize the DataSource:bpsds
> javax.naming.ServiceUnavailableException [Root exception is
> java.rmi.ConnectException: Connection refused to host: localhost; nested
> exception is:
>         java.net.ConnectException: Connection refused]
>         at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
>         at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107)
>         at javax.naming.InitialContext.lookup(InitialContext.java:392)
>         at
> org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134)
>         at
> org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112)
>         at
> org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107)
>         at
> org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100)
>         at
> org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67)
>         at
> org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90)
>         at
> org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59)
>         at
> org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90)
>         at
> org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71)
>         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.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:125)
>         at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:220)
>         at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:205)
>         at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:156)
>         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.ComponentReference.bind(ComponentReference.java:376)
>         at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>         at
> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
>         at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
>         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)
>
>
>
>
> Thanks
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to