无法运行BAM 2.3.0服务器到期错误'java.lang.NoClassDefFoundError:org / github / jamm / MemoryMeter'

时间:2013-07-22 12:00:38

标签: wso2

我尝试在Windows 64 Pro上启动BAM服务器,但抛出异常(也有评估的管理权限)...

  

[2013-07-22 15:45:51,575] INFO   {org.wso2.carbon.core.internal.CarbonCoreActivator} - 启动WSO2   碳... [2013-07-22 15:45:51,576]信息   {org.wso2.carbon.core.internal.CarbonCoreActivator} - 运作   系统:Windows 8 6.2,amd64 [2013-07-22 15:45:51,576]信息   {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home
  :C:\ Program Files \ Java \ jdk1.7.0_25 \ jre [2013-07-22 15:45:51,576]   INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java   版本:1.7.0_25 [2013-07-22 15:45:51,576]信息   {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM
  :Oracle HotSpot(TM)64位服务器VM 23.25-b01,Oracle Corporation

     

...

     

[2013-07-22 15:45:55,725] INFO   {org.apache.cassandra.service.AbstractCassandraDaemon} - 类路径:   。\ lib中; C:\ PROGRAM   文件\的Java \ jdk1.7.0_25 \ LIB \ tools.jar中;; \ BIN \ org.wso2.carbon.bootstrap-4.1.0.jar;。\ BIN \ TCPMON-1.0.jar; \ BIN \ tomcat-巨力-7.0.34.jar ;; \ LIB \公琅2.6.0.wso2v1.jar   [2013-07-22 15:45:55,727] INFO {org.apache.cassandra.utils.CLibrary}    - 没有找到JNA。本机方法将被禁用。

     

...

     

[2013-07-22 15:45:55,881]错误   {org.apache.cassandra.service.AbstractCassandraDaemon} - 例外   启动时遇到java.lang.NoClassDefFoundError:   org / github / jamm / MemoryMeter at   org.apache.cassandra.db.Memtable。(Memtable.java:118)at   org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)at at   org.apache.cassandra.db.DataTracker。(DataTracker.java:63)at   org.apache.cassandra.db.ColumnFamilyStore。(ColumnFamilyStore.java:230)     在   org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)     在   org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)     在org.apache.cassandra.db.Table.initCf(Table.java:371)at   org.apache.cassandra.db.Table。(Table.java:304)at   org.apache.cassandra.db.Table.open(Table.java:119)at   org.apache.cassandra.db.Table.open(Table.java:97)at   org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:274)     在   org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:171)     在   org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)     在   org.wso2.carbon.cassandra.server.CassandraServerController $ 1.run(CassandraServerController.java:48)     在java.lang.Thread.run(Thread.java:724)引起:   java.lang.ClassNotFoundException:org.github.jamm.MemoryMeter at   org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)     在   org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)     在java.lang.ClassLoader.loadClass(ClassLoader.java:357)...还有15个   启动时遇到异常:org / github / jamm / MemoryMeter   [2013-07-22 15:45:57,341]错误   {org.apache.cassandra.service.AbstractCassandraDaemon} - 例外   thread Thread [OptionalTask​​s:1,5,main] java.lang.NoClassDefFoundError:   org / github / jamm / MemoryMeter at   org.apache.cassandra.db.Memtable。(Memtable.java:118)at   org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)at at   org.apache.cassandra.db.DataTracker。(DataTracker.java:63)at   org.apache.cassandra.db.ColumnFamilyStore。(ColumnFamilyStore.java:230)     在   org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)     在   org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)     在org.apache.cassandra.db.Table.initCf(Table.java:371)at   org.apache.cassandra.db.Table。(Table.java:304)at   org.apache.cassandra.db.Table.open(Table.java:119)at   org.apache.cassandra.db.Table.open(Table.java:97)at   org.apache.cassandra.db.Table $ 2.apply(Table.java:578)at   org.apache.cassandra.db.Table $ 2.apply(Table.java:575)at   com.google.common.collect.Iterators $ 9.transform(Iterators.java:845)     在   com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)     在   org.apache.cassandra.db.ColumnFamilyStore.all(ColumnFamilyStore.java:1649)     在   org.apache.cassandra.db.MeteredFlusher.countFlushingBytes(MeteredFlusher.java:118)     在org.apache.cassandra.db.MeteredFlusher.run(MeteredFlusher.java:45)     在   org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor $ UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79)     在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     在   java.util.concurrent.FutureTask中$ Sync.innerRunAndReset(FutureTask.java:351)     在java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)     在   java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:178)     在   java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)     在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:724)

2 个答案:

答案 0 :(得分:1)

将以下内容添加到wso2server.sh文件

  

-javaagent:“path / to / jamm / jar”\

作为一个例子

  

-javaagent: “$ CARBON_HOME /存储库/组件/插件/ jamm_0.2.5.wso2v2.jar”   \

答案 1 :(得分:0)

修改\bin\yajsw\conf\wrapper.conf。 对于WSO2 BAM版本2.5.0,在文件末尾添加行。

wrapper.java.additional.26 = -javaagent:"${cabon_home}\\repository\\components\\plugins\\jamm_0.2.5.wso2v2.jar"