# java.lang.AssertionError

JIRA | Kevin Normoyle | 3 years ago
1. 0

### I double checked the expression in R (ignore all the NAs you get..it had real data in h2o) In R to just init the data frames r.hex <- data.frame(matrix(ncol = 300, nrow = 100)) r4.hex <- r.hex r0.hex <- r.hex Then this parsed okay. (even though I guess runif may not be the same as h2o?) ifelse(0,1,2);!c(1,3,5);r.hex[1,-1]; r.hex[1,-1]; r.hex[1,-1];x=1;factor(r.hex[,5]);1.23<=2.34;max(1,23);x=0; x+2;r.hex[1,];function(x){x+1}(2);ifelse(r.hex>3,99,r.hex);apply(r.hex,2,sum);function(x){x+1}(2);r.hex-r.hex;1.23<!2.34;x=0; x+2;runif(r4.hex[,1]);r.hex[2+4,-4];r.hex[,1];runif(r4.hex[,1]);x<-!1;sum(4,c(1,3,5),2,6);r.hex[,1]=r.hex[,1]+1;sum(1,2);1.23;1.23;r.hex-r.hex;factor(r.hex[,5]);r.hex[nrow(r.hex),];1.23<!2.34;r.hex[2,3];x<-1;1.23>2.34;r.hex[2+4,-4];r.hex[nrow(r.hex),];1.23<=2.34;x=!1;x=!1;cbind(c(1,2,3,4), c(5,6,7,8));(1.23+r.hex)-r.hex;is.na(r.hex);is.na(r.hex);1.23==2.34;x=!0; !x+2;1.23==2.34;ifelse(0,1,2);apply(r.hex,2,function(x){ifelse(x==-1,1,x)});x=0; x+2;a=0; x=0;a=ncol(r.hex); r.hex[,c(a+1,a+2)]=5;x<-1;r.hex+1;r0.hex[,1]==1.0;r.hex[nrow(r.hex)-1,ncol(r.hex)-1];r.hex[,ncol(r.hex)+1]=4;r.hex[nrow(r.hex),];x=!0; !x+2; here's h2o [2014-04-03 04:02:35.139029] exec_query parameters: {'str': 'ifelse(0,1,2);!c(1,3,5);r.hex[1,-1]; r.hex[1,-1]; r.hex[1,-1];x=1;factor(r.hex[,5]);1.23<=2.34;max(1,23);x=0; x+2;r.hex[1,];function(x){x+1}(2);ifelse(r.hex>3,99,r.hex);apply(r.hex,2,sum);function(x){x+1}(2);r.hex-r.hex;1.23<!2.34;x=0; x+2;runif(r4.hex[,1]);r.hex[2+4,-4];r.hex[,1];runif(r4.hex[,1]);x<-!1;sum(4,c(1,3,5),2,6);r.hex[,1]=r.hex[,1]+1;sum(1,2);1.23;1.23;r.hex-r.hex;factor(r.hex[,5]);r.hex[nrow(r.hex),];1.23<!2.34;r.hex[2,3];x<-1;1.23>2.34;r.hex[2+4,-4];r.hex[nrow(r.hex),];1.23<=2.34;x=!1;x=!1;cbind(c(1,2,3,4), c(5,6,7,8));(1.23+r.hex)-r.hex;is.na(r.hex);is.na(r.hex);1.23==2.34;x=!0; !x+2;1.23==2.34;ifelse(0,1,2);apply(r.hex,2,function(x){ifelse(x==-1,1,x)});x=0; x+2;a=0; x=0;a=ncol(r.hex); r.hex[,c(a+1,a+2)]=5;x<-1;r.hex+1;r0.hex[,1]==1.0;r.hex[nrow(r.hex)-1,ncol(r.hex)-1];r.hex[,ncol(r.hex)+1]=4;r.hex[nrow(r.hex),];x=!0; !x+2;'} [2014-04-03 04:02:35.139115] ERROR rjson: { [2014-04-03 04:02:35.182878] "error": "class java.lang.AssertionError", [2014-04-03 04:02:35.182878] "response": { [2014-04-03 04:02:35.182878] "h2o": "pytest-jenkins-13175", [2014-04-03 04:02:35.182878] "node": "/10.137.71.117:54321", [2014-04-03 04:02:35.182878] "status": "error", [2014-04-03 04:02:35.182878] "time": 40 [2014-04-03 04:02:35.182878] } [2014-04-03 04:02:35.182878] } [2014-04-03 04:02:35.182897] 04:02:35.179 # Session ERRR WATER: [2014-04-03 04:02:35.193266] + java.lang.AssertionError [2014-04-03 04:02:35.193503] + at water.exec.Env.popDbl(Env.java:185) [2014-04-03 04:02:35.193550] + at water.exec.ASTBinOp.apply(ASTOp.java:570) [2014-04-03 04:02:35.193590] + at water.exec.ASTApply.exec(AST.java:204) [2014-04-03 04:02:35.193629] + at water.exec.ASTApply.exec(AST.java:202) [2014-04-03 04:02:35.193667] + at water.exec.ASTStatement.exec(AST.java:83) [2014-04-03 04:02:35.193716] + at water.exec.Exec2.exec(Exec2.java:109) [2014-04-03 04:02:35.193755] + at water.api.Exec2.serve(Exec2.java:34) [2014-04-03 04:02:35.193792] + at water.api.Request.serveGrid(Request.java:139) [2014-04-03 04:02:35.193831] + at water.Request2.superServeGrid(Request2.java:478) [2014-04-03 04:02:35.193871] + at water.api.Exec2.serveGrid(Exec2.java:71) [2014-04-03 04:02:35.193909] + at water.api.Request.serve(Request.java:116) [2014-04-03 04:02:35.193947] + at water.api.RequestServer.serve(RequestServer.java:328) [2014-04-03 04:02:35.193988] + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:421) [2014-04-03 04:02:35.194027] + at java.lang.Thread.run(Thread.java:662) [2014-04-03 04:02:35.194066] ERROR

JIRA | 3 years ago | Kevin Normoyle
java.lang.AssertionError
2. 0

### incrementally adding known good expressions r.hex is covtype.data last one fails exec_query parameters: {'str': 'r.hex[1,];'} exec_query parameters: {'str': 'r.hex[1,];a=ncol(r.hex); r.hex[,c(a+1,a+2)]=5;'} exec_query parameters: {'str': 'r.hex[1,];a=ncol(r.hex); r.hex[,c(a+1,a+2)]=5;x=!0; !x+2;'} ERROR 10:02:52.527 # Session ERRR WATER: + java.lang.AssertionError + at water.exec.Env.popDbl(Env.java:183) + at water.exec.ASTBinOp.apply(ASTOp.java:493) + at water.exec.ASTApply.exec(AST.java:193) + at water.exec.ASTApply.exec(AST.java:191) + at water.exec.ASTStatement.exec(AST.java:72) + at water.exec.Exec2.exec(Exec2.java:100) + at water.api.Exec2.serve(Exec2.java:34) + at water.api.Request.serveGrid(Request.java:129) + at water.Request2.superServeGrid(Request2.java:466) + at water.api.Exec2.serveGrid(Exec2.java:71) + at water.api.Request.serve(Request.java:108) + at water.api.RequestServer.serve(RequestServer.java:315) + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:421) + at java.lang.Thread.run(Thread.java:744) ERROR

JIRA | 3 years ago | Kevin Normoyle
java.lang.AssertionError
3. 0

### again, concatenating known good expressions one at a time..fails at the end. (others okay) r.hex is parsed covtype.data exec_query parameters: {'str': '1.23!=2.34;'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);a=1; a=2; function(x){x=a;a=3};'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);a=1; a=2; function(x){x=a;a=3};!c(!1,3,5);'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);a=1; a=2; function(x){x=a;a=3};!c(!1,3,5);r.hex+1;'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);a=1; a=2; function(x){x=a;a=3};!c(!1,3,5);r.hex+1;min(1,2);'} exec_query parameters: {'str': '1.23!=2.34;mean=function(x){apply(x,1,sum)/nrow(x)};mean(r.hex);a=1; a=2; function(x){x=a;a=3};!c(!1,3,5);r.hex+1;min(1,2);a=ncol(r.hex); r.hex[,c(a+1,a+2)]=5;'} ERROR 09:57:49.590 # Session ERRR WATER: + java.lang.AssertionError + at water.exec.Env.poppush(Env.java:201) + at water.exec.ASTAssign.exec(AST.java:496) + at water.exec.ASTStatement.exec(AST.java:72) + at water.exec.Exec2.exec(Exec2.java:100) + at water.api.Exec2.serve(Exec2.java:34) + at water.api.Request.serveGrid(Request.java:129) + at water.Request2.superServeGrid(Request2.java:466) + at water.api.Exec2.serveGrid(Exec2.java:71) + at water.api.Request.serve(Request.java:108) + at water.api.RequestServer.serve(RequestServer.java:315) + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:421) + at java.lang.Thread.run(Thread.java:744)

JIRA | 3 years ago | Kevin Normoyle
java.lang.AssertionError
4. Speed up your debug routine!

Automated exception search integrated into your IDE

5. 0

### oddly this passes a=c(0,0,0); b=c(0,0,0) h <- cbind(a, b) but this fails a=c(0,0,0) b = a h <- cbind(a, b) I don't see the stack trace from the console below but here's a test that fails similarily cd testdir_single_jvm_fvec a=c(0,0,0); b=c(0,0,0); d=c(0,0,0); e=c(0,0,0); f=c(0,0,0); g= c(0,0,0) b=a; d=a; f=a; g=a h <- cbind(a, b) ERRR WATER: Refcnt is 1 but computed as 3 python test_exec2_cbind_fail.py + java.lang.AssertionError + at water.exec.ASTCbind.apply(ASTOp.java:814) + at water.exec.ASTApply.exec(AST.java:204) + at water.exec.ASTAssign.exec(AST.java:450) + at water.exec.ASTStatement.exec(AST.java:83) + at water.exec.Exec2.exec(Exec2.java:115) + at water.api.Exec2.serve(Exec2.java:35) + at water.api.Request.serveGrid(Request.java:140) + at water.Request2.superServeGrid(Request2.java:478) + at water.api.Exec2.serveGrid(Exec2.java:77) + at water.api.Request.serve(Request.java:117) + at water.api.RequestServer.serve(RequestServer.java:389) + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:425) + at java.lang.Thread.run(Thread.java:744) #********************* this was the original console fail. still fails if you do it in console b=c(0,0,0,0,0,0,0,0,0,0,0,0) H₂O> a = b C1 0 0 0 0 0 0 H₂O> d = b C1 0 0 0 0 0 0 H₂O> f = cbind(a, b, d) class java.lang.AssertionError H₂O> and key then stays locked by the error.. H₂O> b Frame is already locked by job null. Can't seem to do anything in exec afterwards ₂O> b Frame is already locked by job null. H₂O> A Frame is already locked by job null. H₂O> C Frame is already locked by job null. H₂O> Here's the error in the logs 01:56:59.164 # Session INFO HTTPD: GET /2/Exec2 str=f = cbind(a, b, d) 01:56:59.166 # Session ERRR WATER: Refcnt is 4 but computed as 5 01:56:59.166 # Session ERRR WATER: + java.lang.AssertionError + at water.exec.Env.tos_into_slot(Env.java:122) + at water.exec.ASTAssign.exec(AST.java:453) + at water.exec.ASTStatement.exec(AST.java:83) + at water.exec.Exec2.exec(Exec2.java:115) + at water.api.Exec2.serve(Exec2.java:35) + at water.api.Request.serveGrid(Request.java:140) + at water.Request2.superServeGrid(Request2.java:478) + at water.api.Exec2.serveGrid(Exec2.java:77) + at water.api.Request.serve(Request.java:117) + at water.api.RequestServer.serve(RequestServer.java:389) + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:425) + at java.lang.Thread.run(Thread.java:744)

JIRA | 3 years ago | Kevin Normoyle
java.lang.AssertionError
6. 0

### r.hex is smalldata/iris/iris2.csv ifelse(1,r.hex[,1]=r.hex[,1]+1 , r.hex[,ncol(r.hex)+1]=4) exec_query parameters: {'str': 'ifelse(1,r.hex[,1]=r.hex[,1]+1 , r.hex[,ncol(r.hex)+1]=4)'} rjson: { "error": "class java.lang.AssertionError", "response": { "h2o": "pytest-jenkins-18378", "node": "/10.137.71.117:54321", "status": "error", "time": 8 } } 05:08:23.551 # Session ERRR WATER: Refcnt is 2 but computed as 3 05:08:23.551 # Session ERRR WATER: + java.lang.AssertionError + at water.exec.Env.poppush(Env.java:219) + at water.exec.ASTAssign.exec(AST.java:533) + at water.exec.ASTApply.exec(AST.java:202) + at water.exec.ASTStatement.exec(AST.java:83) + at water.exec.Exec2.exec(Exec2.java:115) + at water.api.Exec2.serve(Exec2.java:34) + at water.api.Request.serveGrid(Request.java:137) + at water.Request2.superServeGrid(Request2.java:478) + at water.api.Exec2.serveGrid(Exec2.java:71) + at water.api.Request.serve(Request.java:114) + at water.api.RequestServer.serve(RequestServer.java:372) + at water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:421) + at java.lang.Thread.run(Thread.java:662)

JIRA | 3 years ago | Kevin Normoyle
java.lang.AssertionError
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

1. # java.lang.AssertionError

No message provided

at water.exec.Env.popDbl()
2. water.exec
Exec2.exec
1. water.exec.Env.popDbl(Env.java:185)
2. water.exec.ASTBinOp.apply(ASTOp.java:570)
3. water.exec.ASTApply.exec(AST.java:204)
4. water.exec.ASTApply.exec(AST.java:202)
5. water.exec.ASTStatement.exec(AST.java:83)
6. water.exec.Exec2.exec(Exec2.java:109)
6 frames
3. water.api
Request.serveGrid
1. water.api.Exec2.serve(Exec2.java:34)
2. water.api.Request.serveGrid(Request.java:139)
2 frames
4. water
Request2.superServeGrid
1. water.Request2.superServeGrid(Request2.java:478)
1 frame
5. water.api
RequestServer.serve
1. water.api.Exec2.serveGrid(Exec2.java:71)
2. water.api.Request.serve(Request.java:116)
3. water.api.RequestServer.serve(RequestServer.java:328)
3 frames
6. water
NanoHTTPD\$HTTPSession.run
1. water.NanoHTTPD\$HTTPSession.run(NanoHTTPD.java:421)
1 frame
7. Java RT