0

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

[2013-07-22 15:45:51,575] 信息 {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 主页
:C: \Program Files\Java\jdk1.7.0_25\jre [2013-07-22 15:45:51,576] 信息 {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java 版本:1.7.0_25 [2013-07- 22 15:45:51,576] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM
:Java HotSpot(TM) 64-Bit Server VM 23.25-b01,Oracle Corporation

...

[2013-07-22 15:45:55,725] 信息 {org.apache.cassandra.service.AbstractCassandraDaemon} - 类路径:.\lib;C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar; ;.\bin\org.wso2.carbon.bootstrap-4.1.0.jar;.\bin\tcpmon-1.0.jar;.\bin\tomcat-juli-7.0.34.jar;;.\lib\commons- lang-2.6.0.wso2v1.jar [2013-07-22 15:45:55,727] 信息 {org.apache.cassandra.utils.CLibrary} - 未找到 JNA。本机方法将被禁用。

...

[2013-07-22 15:45:56,381] 错误 {org.apache.cassandra.service.AbstractCassandraDaemon} - 启动 java.lang.NoClassDefFoundError 时遇到异常:org.apache.cassandra.db 的 org/github/jamm/MemoryMeter .Memtable.(Memtable.java:118) 在 org.apache.cassandra.db.DataTracker.init(DataTracker.java:301) 在 org.apache.cassandra.db.DataTracker.(DataTracker.java:63) 在 org. org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357) 上的 apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230) org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java :329) 在 org.apache.cassandra.db.Table.initCf(Table.java:371) 在 org.apache.cassandra.db.Table.(Table.java:304) 在 org.apache.cassandra.db.Table .open(Table.java:119) 在 org.org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:274) 中的 apache.cassandra.db.Table.open(Table.java:97) org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon. java:171) 在 org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48) 在 java.lang 的 org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)。 Thread.run(Thread.java:724) 原因:org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455) 的 java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter 在 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) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 15 更多 启动期间遇到的异常:org/github/jamm/MemoryMeter [2013-07 -22 15:45:57,341] 错误 {org.apache.cassandra.service.AbstractCassandraDaemon} - 线程异常 [OptionalTask​​s:1,5,main] java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter at org. apache.cassandra.db.Memtable.(Memtable.java:118) 在 org.apache.cassandra.db.DataTracker.init(DataTracker.java:301) 在 org.apache.cassandra.db.DataTracker.(DataTracker.java: 63) 在 org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357) 在 org.apache.cassandra.db 的 org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230)。org.apache.cassandra.db.Table.initCf(Table.java:371) 上 org.apache.cassandra.db.Table.(Table.java:304) 上的 ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)。 org.apache.cassandra.db.Table.open(Table.java:97) 上的 apache.cassandra.db.Table.open(Table.java:119) org.apache.cassandra.db.Table$2.apply(Table .java:578) 在 org.apache.cassandra.db.Table$2.apply(Table.java:575) 在 com.google.common.collect.Iterators$9.transform(Iterators.java:845) 在 com.google。 common.collect.TransformedIterator.next(TransformedIterator.java:48) at org.apache.cassandra.db.ColumnFamilyStore.all(ColumnFamilyStore.java:1649) at 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) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset( FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent。 ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java .lang.Thread.run(Thread.java:724)concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at 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。在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread 的 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 运行 (ScheduledThreadPoolExecutor.java:293) .run(Thread.java:724)concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at 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。在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread 的 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 运行 (ScheduledThreadPoolExecutor.java:293) .run(Thread.java:724)DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at 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 (线程.java:724)DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:79) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at 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 (线程.java:724)在 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) 在 java.util. .concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at 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)在 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) 在 java.util. .concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at 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)在 java.util.concurrent.runAndReset(FutureTask.java:178) 在 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) 在 java.util.concurrent 调用(Executors.java:471) .ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread.run(Thread.java:724)在 java.util.concurrent.runAndReset(FutureTask.java:178) 在 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) 在 java.util.concurrent 调用(Executors.java:471) .ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread.run(Thread.java:724)ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread.run(Thread.java:724)ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 在 java.lang.Thread.run(Thread.java:724)运行(线程.java:724)运行(线程.java:724)

4

2 回答 2

1

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

-javaagent:“路径/到/jamm/jar”\

举个例子

-javaagent:"$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar" \

于 2013-07-24T09:58:05.410 回答
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"
于 2015-08-19T19:19:35.970 回答