Error in implementing Cassandra Trigger - triggers

Was trying to implement the triggers in Cassandra.
Have been trying to use the available Cassandra help: https://github.com/hmsonline/cassandra-triggers
However, when i tried to set the value for the trigger and checked the logs, following is the error which i received.
DEBUG [Thrift:2] 2013-03-19 15:07:27,753 CassandraServerTriggerAspect.java (line 69) Mutation for [triggers] with consistencyLevel [ONE]
DEBUG [Thrift:2] 2013-03-19 15:08:08,873 ConfigurationStore.java (line 66) Refreshing trigger configuration.
DEBUG [Thrift:2] 2013-03-19 15:08:08,876 ConfigurationStore.java (line 92) Triggers.isCommitLogEnabled? [true]
DEBUG [Thrift:2] 2013-03-19 15:08:08,876 CassandraServerTriggerAspect.java (line 69) Mutation for [world] with consistencyLevel [ONE]
DEBUG [Thrift:2] 2013-03-19 15:08:08,882 LogEntryStore.java (line 84) Host ID: CTSINGMRGTO
DEBUG [Thrift:2] 2013-03-19 15:08:08,882 CassandraStore.java (line 59) Did not create [triggers:CommitLog_CTSINGMRGTO] (probably already there)
INFO [Thrift:2] 2013-03-19 15:08:08,884 CassandraStore.java (line 93) Did not create [triggers:CommitLog_CTSINGMRGTO] (probably already there)
WARN [Thrift:2] 2013-03-19 15:08:08,884 CommitLog.java (line 38) Instantiated commit log [CommitLog_CTSINGMRGTO]
DEBUG [Thrift:2] 2013-03-19 15:08:08,886 TriggerTask.java (line 32) Spawning [20] threads for commit log processing.
DEBUG [Thrift:2] 2013-03-19 15:08:08,890 CommitLog.java (line 41) Started Trigger Task thread.
ERROR [Thrift:2] 2013-03-19 15:08:08,892 CassandraServerTriggerAspect.java (line 61) Could not write to cassandra! Method: org.apache.cassandra.thrift.CassandraServer.doInsert()
java.lang.ClassCastException: java.util.UUID cannot be cast to java.lang.Integer
at com.hmsonline.cassandra.triggers.dao.CommitLog.writePending(CommitLog.java:63)
at com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect.writePending(CassandraServerTriggerAspect.java:72)
at com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect.ajc$inlineAccessMethod$com_hmsonline_cassandra_triggers_CassandraServerTriggerAspect$com_hmsonline_cassandra_triggers_CassandraServerTriggerAspect$writePending(CassandraServerTriggerAspect.java:1)
at com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect.writeToCommitLog(CassandraServerTriggerAspect.java:34)
at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:854)
at org.apache.cassandra.thrift.CassandraServer.internal_insert(CassandraServer.java:624)
at org.apache.cassandra.thrift.CassandraServer.insert(CassandraServer.java:645)
at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3526)
at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3514)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
WARN [Thread-23] 2013-03-19 15:08:08,895 TriggerTask.java (line 62) Could not execute triggers [null]
ERROR [Thrift:2] 2013-03-19 15:08:08,896 CustomTThreadPoolServer.java (line 217) Error occurred during processing of message.
For further diagnosis, the error displayed in the cassandra-cli is:
org.apache.thrift.transport.TTransportException
at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:129)
at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:839)
at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:823)
at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:975)
at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:218)
at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:210)
at org.apache.cassandra.cli.CliMain.main(CliMain.java:337)

In the log information given by you, it is clearly mentioned
java.lang.ClassCastException: java.util.UUID cannot be cast to java.lang.Integer
For a better response, you have to share the script and insertion code

Related

I'm trying to train the code of Target-Aware Deep Tracking in matlab

I'm for now compiling in CPU version.I am working on matlab 2020a.I've tried to remove the vl_nnconv.m from matconvnet but i still get the following error.
Also the matconvnet i'm using is version matconvnet-1.0-beta25 I'm stuck here since 2 days ,could somebody lease help me out with this issue?
https://github.com/XinLi-zn/TADT
The above is the github code i'm trying to work on.
Foloowing are the errors i'm getting:
Error using vl_nnconv
The option name is not a string (argument number 5)
Error in dagnn.Conv/forward (line 11)
outputs{1} = vl_nnconv(...
Error in dagnn.Layer/forwardAdvanced (line 85)
outputs = obj.forward(inputs, {net.params(par).value}) ;
Error in dagnn.DagNN/eval (line 91)
obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;
Error in get_subwindow_feature (line 37)
net_feat.eval({'input',gpuArray(patch_sw)});
Error in tadt_tracking (line 63)
feat_groups = get_subwindow_feature(net_feat, img, sw_location, input_sz, feat_layer);
Error in Demo_TADT (line 23)
[result, fps]=tadt_tracking(seq_info.img_list, seq_info.gt(1,:), vgg16_model_path, display);
the following are the functions that is causing the error and the argument is obj.pad
function outputs = forward(obj, inputs, params)
if ~obj.hasBias, params{2} = [] ; end
outputs{1} = vl_nnconv(...
inputs{1}, params{1}, params{2}, ...
'pad', obj.pad, ...
'stride', obj.stride, ...
obj.opts{:}) ;
end

How do I use PRtools' forward feature selection in MatLab?

I am trying to apply a forward feature selection on a PRdataset. Following the syntax presented online though produces a bunch of errors that I don't quite understand and haven't been able to solve. Any ideas on what is causing them or how to fix?
Code used and resulting errors shown below:
A=prdataset(data,classes);
[w,r]=featself(A,'NN');
Error using indnn (line 50)
Trainset and testset should by identical for LOO processing
Error in fnnc (line 33)
L = indnn(a,trainset,loo);
Error in prmap (line 231)
[d,varargout{:}] = feval(mapp,a,b);
Error in * (line 14)
d = prmap(a,b);
Error in testk (line 55)
d = a*w;
Error in feateval (line 128)
J = 1 - testk(a,1);
Error in featsellr>plusl (line 182)
critval = feateval(a(:,[state.I Jsub]),crit);
Error in featsellr (line 127)
state = plusl(a,crit,t,state,fid);
Error in featself (line 56)
[w,r] = featsellr(a,crit,ksel,1,0,t);

Mirtoolbox miraudio function issue

How do I solve this error?
a = miraudio('tea')
Here are the error message returned by each reader:
Error using wavread (line 7)
WAVREAD will be removed in a future release. Use AUDIOREAD instead.
Error using auread (line 8)
AUREAD will be removed in a future release. Use AUDIOREAD instead.
Error using mp3read>mysystem (line 306)
unable to execute "C:\Program Files\MATLAB\R2015b\toolbox\mirtoolbox1.3.3\mirtoolbox\mp3info.exe" -r m -p "%Q %u %b %r %v * %C %e %E %L %O %o %p" "tea.mp3" (Error opening MP3: tea.mp3: No such file or directory
)
Error using aiffread (line 159)
Could not open file 'tea.aif'.
Error using mirerror (line 4)
ERROR using MIRREAD: Cannot open file tea
Error in mirread>misread (line 142)
mirerror('MIRREAD',['Cannot open file ',file]);
Error in mirread (line 57)
misread(orig, err);
Error in mireval (line 68)
[d1,tp1,fp1,f1,lg,b,n,ch] = mirread([],file,0,0,0);
Error in mirfunction (line 69)
o = mireval(o,filename,nout);
Error in miraudio (line 170)
varargout = mirfunction(#miraudio,orig,varargin,nargout,specif,#init,#main);

Error using getImageFromFile (line 11)

My code execute correctly for the digits but it given some errors to the characters. the image presented in that location but it shows image not found like..
Error using getImageFromFile (line 11)
Cannot find the specified file: "C:\Program Files\MATLAB\R2014a\toolbox\vision\visiondemos\characters\handwritten\B\img012-00012".
Error in imageDisplayParseInputs (line 73)
[common_args.CData,common_args.Map] = ...
Error in imshow (line 219)
[common_args,specific_args] = ...
Error in charmodified (line 22)
subplot(2,3,4); imshow(testChar{1,2});

gwt error :component not available

anyone know what is error triggered from in gwt?
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js :: sss_saveState :: line 1909" data: no]
getLabels()(Object t=Object name=iw, Object, "http://gg.google.com/csi")NmZDK%2B...oNg%3D%3D (line 1)
Lz("iw", [["iwo0", 0 0=iwo0 1=0], ["oss0", 3141 0=oss0 1=3141], ["oss1", 3910 0=oss1 1=3910], 1 more... 0=[2] 1=[2] 2=[2] 3=[2]], Object)NmZDK%2B...oNg%3D%3D (line 1)
Qz("iw", [["iwo0", 0 0=iwo0 1=0], ["oss0", 3141 0=oss0 1=3141], ["oss1", 3910 0=oss1 1=3910], 1 more... 0=[2] 1=[2] 2=[2] 3=[2]], Object)NmZDK%2B...oNg%3D%3D (line 1)
Pz("iw")NmZDK%2B...oNg%3D%3D (line 1)
wl()()main.js (line 1018)
require()()main.js (line 165)
XA()("stats", 1, function(), undefined, undefined)main.js (line 162)
require()("stats", 1, function(), undefined, undefined)main.js (line 166)
Rc("stats", 1, function(), undefined, undefined)main.js (line 175)
wl("iw", [["iwo0", 0 0=iwo0 1=0], ["oss0", 3141 0=oss0 1=3141], ["oss1", 3910 0=oss1 1=3910], 1 more... 0=[2] 1=[2] 2=[2] 3=[2]], Object)main.js (line 1018)
mh()(["iw", [["iwo0", 0 0=iwo0 1=0], ["oss0", 3141 0=oss0 1=3141], ["oss1", 3910 0=oss1 1=3910], 1 more... 0=[2] 1=[2] 2=[2] 3=[2]], Object 0=iw 1=[4] 2=Object])main.js (line 297)
fh()()main.js (line 277)
p([Object gj=report ZO=0 Ea=0 __type=[4] 0=Object], function())main.js (line 102)
Q(pf(), "report")main.js (line 277)
pP()()main.js (line 1004)
branch()(undefined, undefined)main.js (line 1001)
dC()()main.js (line 1319)
O()()main.js (line 139)
Sx()()
Double-check that you've compiled the application for this specific browser type.