Comments (21)
No problem. Can you give me the output of traceback()
after that error occurs? And, give me the output of sessionInfo()
just so I know your R and OS settings?
from tabulapdf.
> kimberly <- extract_tables(paste0(dir, "EvaluationReport - Kimberly.pdf"))
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.util.NoSuchElementException
> traceback()
7: stop(list(message = "java.util.NoSuchElementException", call = .jcall("RJavaTools",
"Ljava/lang/Object;", "invokeMethod", cl, .jcast(if (inherits(o,
"jobjRef") || inherits(o, "jarrayRef")) o else cl, "java/lang/Object"),
.jnew("java/lang/String", method), j_p, j_pc, use.true.class = TRUE,
evalString = simplify, evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
6: .Call(RJavaCheckExceptions, silent)
5: .jcheck(silent = FALSE)
4: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
3: .jrcall(x, name, ...)
2: page$getArea(guessRect)
1: extract_tables(paste0(dir, "EvaluationReport - Kimberly.pdf"))
> sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tabulizerjars_0.1.2 tabulizer_0.1.21
loaded via a namespace (and not attached):
[1] tools_3.3.0 rJava_0.9-8 png_0.1-7
from tabulapdf.
+1 Same error
from tabulapdf.
I am getting the same error.
from tabulapdf.
I'm getting a similar error:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.UnsupportedOperationException
In addition: Warning messages:
1: Closing open result sets
2: Closing open result sets
Tracback gives me:
8: stop(list(message = "java.lang.UnsupportedOperationException",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String",
method), j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
7: .Call(RJavaCheckExceptions, silent)
6: .jcheck(silent = FALSE)
5: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
4: .jrcall(x, name, ...)
3: page$getArea(area[[p]])
2: extract_tables(paste(sourceFolder, files[i], sep = ""), pages = p,
guess = F, area = list(c(157.86, 74.186, 406.296, 1345.695)))
1: as.data.frame(extract_tables(paste(sourceFolder, files[i], sep = ""),
pages = p, guess = F, area = list(c(157.86, 74.186, 406.296,
1345.695))), stringsAsFactors = FALSE) at #18
sessionInfo() gives me
R version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lubridate_1.6.0 plyr_1.8.4 gdata_2.17.0 reshape2_1.4.1 stringi_1.1.1
[6] tabulizer_0.1.22 tabulizerjars_0.1.2 RMySQL_0.10.9 DBI_0.5-1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 gtools_3.5.0 png_0.1-7 digest_0.6.10 mime_0.5 R6_2.1.3
[7] xtable_1.8-2 magrittr_1.5 git2r_0.15.0 ghit_0.2.12 tools_3.3.0 stringr_1.1.0
[13] shiny_0.14 httpuv_1.3.3 rJava_0.9-8 htmltools_0.3.5
from tabulapdf.
So I noticed a change. If I extract data from a page 1, it works great. Later in the function, if I extract_tables from page 2 it gives me this error.
Anyone getting this same error in page other than '1'?
traceback()
7: stop(list(message = "java.util.NoSuchElementException", call = .jcall("RJavaTools",
"Ljava/lang/Object;", "invokeMethod", cl, .jcast(if (inherits(o,
"jobjRef") || inherits(o, "jarrayRef")) o else cl, "java/lang/Object"),
.jnew("java/lang/String", method), j_p, j_pc, use.true.class = TRUE,
evalString = simplify, evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
6: .Call(RJavaCheckExceptions, silent)
5: .jcheck(silent = FALSE)
4: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
3: .jrcall(x, name, ...)
2: page$getArea(area[[p]])
1: extract_tables(pdf_path, pages = 2, area = list(c(651.136680677627,
280.597983182863, 670.562552770651, 312.974436671235)), method = data.frame)
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ghit_0.2.12 RSelenium_1.3.5 XML_3.98-1.4 RJSONIO_1.3-0 RCurl_1.95-4.8 bitops_1.0-6 tabulizer_0.1.22
loaded via a namespace (and not attached):
[1] tabulizerjars_0.1.2 tools_3.3.1 git2r_0.15.0 caTools_1.17.1 rJava_0.9-8 png_0.1-7
from tabulapdf.
I am also getting the error.
> extract_tables("http://www.usda.gov/oce/commodity/wasde/Secretary_Briefing.pdf")
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.UnsupportedOperationException
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tabulizer_0.1.22 pdftools_0.5
loaded via a namespace (and not attached):
[1] tabulizerjars_0.1.2 httr_1.2.1 R6_2.2.0 tools_3.3.2 withr_1.0.2
[6] curl_2.3 memoise_1.0.0 Rcpp_0.12.8 git2r_0.16.0 digest_0.6.10
[11] rJava_0.9-8 ghit_0.2.12 devtools_1.12.0 png_0.1-7
> traceback()
7: stop(list(message = "java.lang.UnsupportedOperationException",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String",
method), j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
6: .Call(RJavaCheckExceptions, silent)
5: .jcheck(silent = FALSE)
4: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
3: .jrcall(x, name, ...)
2: page$getArea(guessRect)
1: extract_tables("http://www.usda.gov/oce/commodity/wasde/Secretary_Briefing.pdf")
The function works just fine if I tell it what page a table is on.
from tabulapdf.
I have a similar exeption:
traceback()
7: stop(list(message = "java.lang.IllegalArgumentException: shapes can't be empty",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String",
method), j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
6: .Call(RJavaCheckExceptions, silent)
5: .jcheck(silent = FALSE)
4: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
3: .jrcall(x, name, ...)
2: spreadsheetExtractor$isTabular(page)
1: extract_tables(location, pages = 1, guess = F, method = data.frame)
sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tabulizer_0.1.22 devtools_1.12.0 dplyr_0.5.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 png_0.1-7 digest_0.6.10 withr_1.0.2 assertthat_0.1
[6] R6_2.1.3 DBI_0.5 git2r_0.15.0 magrittr_1.5 httr_1.2.1
[11] lazyeval_0.2.0 curl_1.2 tabulizerjars_0.1.2 tools_3.3.1 rJava_0.9-8
[16] memoise_1.0.0 tibble_1.2
from tabulapdf.
I have a similar error when I am trying to use extract_area function. It was working fine for other pdf documents.
traceback():
8: stop(list(message = "java.util.NoSuchElementException", call = .jcall("RJavaTools",
"Ljava/lang/Object;", "invokeMethod", cl, .jcast(if (inherits(o,
"jobjRef") || inherits(o, "jarrayRef")) o else cl, "java/lang/Object"),
.jnew("java/lang/String", method), j_p, j_pc, use.true.class = TRUE,
evalString = simplify, evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
7: .Call(RJavaCheckExceptions, silent)
6: .jcheck(silent = FALSE)
5: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
4: .jrcall(x, name, ...)
3: page$getArea(area[[p]])
2: extract_tables(file = file, pages = pages, area = areas, guess = guess,
...)
1: extract_areas(loaction1, 7)
sessionInfo():
R version 3.3.1 (2016-06-21)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.5 (Santiago)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8
[9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] miniUI_0.1.1 shiny_1.0.0 dplyr_0.5.0
[4] tabulizer_0.1.22
loaded via a namespace (and not attached):
[1] Rcpp_0.12.9 png_0.1-7 digest_0.6.11
[4] assertthat_0.1 mime_0.5 R6_2.2.0
[7] jsonlite_1.2 xtable_1.8-2 DBI_0.5-1
[10] magrittr_1.5 tabulizerjars_0.1.2 tools_3.3.1
[13] httpuv_1.3.3 rJava_0.9-8 htmltools_0.3.5
[16] tibble_1.2
from tabulapdf.
Same error
from tabulapdf.
Can everyone on this thread let me know if this is still occurring with the latest versions of tabulizer and tabulizerjars (v0.9.2)? I've run the example from @thatsawinner and it appears to be working.
from tabulapdf.
A student of mine is trying to use the package for a class project and having the same issues. I tried to install it on my system and also facing the same.
Versions
java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
R --version
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Example from README
> f <- system.file("examples", "data.pdf", package = "tabulizer")
> out1 <- extract_tables(f)
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I
Calls: extract_tables ... <Anonymous> -> .jrcall -> .jcall -> .jcheck -> .Call
Traceback
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I
Calls: extract_tables ... <Anonymous> -> .jrcall -> .jcall -> .jcheck -> .Call
6.
stop(structure(list(message = "java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String", ...
5.
.jcheck(silent = FALSE)
4.
.jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify, ...
3.
.jrcall(x, name, ...)
2.
spreadsheetExtractor$isTabular(page)
1.
extract_tables(f)
Session info
Session info ---------------------------------------------------------------
setting value
version R version 3.3.2 (2016-10-31)
system x86_64, darwin13.4.0
ui RStudio (1.0.136)
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2017-03-24
Packages -------------------------------------------------------------------
package * version date
assertthat 0.1 2013-12-06
backports 1.0.5 2017-01-18
broom 0.4.2 2017-02-13
callr 1.0.0 2016-06-18
clipr 0.3.2 2017-01-09
codetools 0.2-15 2016-10-05
colorspace 1.3-2 2016-12-14
coyote 0.3 2017-01-06
crayon 1.3.2 2016-06-28
DBI 0.6 2017-03-09
devtools * 1.12.0 2016-06-24
digest 0.6.12 2017-01-27
dplyr * 0.5.0 2016-06-24
evaluate 0.10 2016-10-11
forcats 0.2.0 2017-01-23
foreign 0.8-67 2016-09-13
ggplot2 * 2.2.1 2016-12-30
gtable 0.2.0 2016-02-26
haven 1.0.0 2016-09-23
highlite 0.0.0.9000 2017-01-11
hms 0.3 2016-11-22
htmltools 0.3.5 2016-03-21
httr 1.2.1 2016-07-03
jsonlite 1.3 2017-02-28
knitr 1.15.1 2016-11-22
lattice 0.20-34 2016-09-06
lazyeval 0.2.0 2016-06-12
lookup * 0.0.0.9000 2017-02-06
lubridate 1.6.0 2016-09-13
magrittr 1.5 2014-11-22
memoise 1.0.0.9001 2017-01-11
mnormt 1.5-5 2016-10-15
modelr 0.1.0 2016-08-31
munsell 0.4.3 2016-02-13
nlme 3.1-131 2017-02-06
plyr 1.8.4 2016-06-08
png 0.1-7 2013-12-03
psych 1.7.3.21 2017-03-22
purrr * 0.2.2 2016-06-18
R6 2.2.0 2016-10-05
Rcpp 0.12.10 2017-03-19
readr * 1.1.0 2017-03-22
readxl 0.1.1.9000 2017-02-03
reprex * 0.1.1 2017-01-13
reshape2 1.4.2 2016-10-22
rJava 0.9-8 2016-01-07
rmarkdown 1.3.9004 2017-03-08
rprojroot 1.2 2017-01-16
rstudioapi 0.6 2016-06-27
rvest 0.3.2 2016-06-17
scales 0.4.1 2016-11-09
stringi 1.1.3 2017-03-21
stringr 1.2.0 2017-02-18
tabulizer * 0.1.24 2017-03-22
tabulizerjars 0.9.2 2017-03-22
tibble * 1.2 2016-08-26
tidyr * 0.6.1 2017-01-10
tidyverse * 1.1.1 2017-01-27
whisker 0.3-2 2013-04-28
withr 1.0.2 2016-06-20
xml2 1.1.1 2017-01-24
source
CRAN (R 3.3.0)
cran (@1.0.5)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
Github (karthik/coyote@acad466)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
cran (@0.6.12)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
Github (jimhester/highlite@767b122)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
cran (@1.3)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
Github (jimhester/lookup@dd1cb74)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
Github (hadley/memoise@884d565)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
Github (tidyverse/readxl@2a188c2)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
Github (rstudio/rmarkdown@01dc037)
cran (@1.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
cran (@1.2.0)
Github (ropensci/tabulizer@eb30d7d)
Github (ropensci/tabulizerjars@7dd9132)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
CRAN (R 3.3.2)
CRAN (R 3.3.0)
CRAN (R 3.3.0)
CRAN (R 3.3.2)
from tabulapdf.
Same problem and I have the latest version of tabulizer and tabulizerjars (just started this project a few days ago). Has anyone found a solution?
I ran a test PDF and everything worked fine. I exited my R Session and came back to run more PDFs later, that's when I started getting the error. Now I can't even run the original test PDF.
from tabulapdf.
Same problem occurs when using extract_tables and extract_areas. Tabular app itself works fine extracting pdf.
>extract_tables(f,1)
>Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NoSuchMethodError: java.lang.Integer.compare(II)I
Java version
>java -version
java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)
Session info
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X Yosemite 10.10.5
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rJava_0.9-8 tabulizerjars_0.9.2 shiny_1.0.3 tabulizer_0.1.24
loaded via a namespace (and not attached):
[1] R6_2.2.2 rsconnect_0.4.3 htmltools_0.3.6 tools_3.3.2 Rcpp_0.12.11 stringi_1.1.5 jsonlite_1.5
[8] digest_0.6.12 xtable_1.8-2 httpuv_1.3.5 miniUI_0.1.1 mime_0.5 png_0.1-7
from tabulapdf.
This seems to be the same issue as Issue #42, it appears to be rJava problem, not recognizing Java 8 and still using Java 6. Solution is suggested in Issue #42
from tabulapdf.
I am having the same problem
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.io.FileNotFoundException: C:\Users\vine\AppData\Local\Temp\RtmpWMRmDx.pdf (The system cannot find the file specified)
from tabulapdf.
I'm facing same error:
> traceback()
8: stop(list(message = "java.io.IOException: Error: End-of-File, expected line",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String",
method), j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE), jobj = <S4 object of class "jobjRef">))
7: .Call(RJavaCheckExceptions, silent)
6: .jcheck(silent = FALSE)
5: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
4: .jrcall(x, name, ...)
3: pdfDocument$load(filename = file, scratchFile = randomAccess)
2: load_doc(file, password = password)
1: extract_tables(url3)
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rJava_0.9-9 tabulizer_0.1.24
loaded via a namespace (and not attached):
[1] tabulizerjars_0.9.2 compiler_3.4.1 tools_3.4.1 png_0.1-7
from tabulapdf.
I have the same issue when i attempted to extract tables using locate_areas.. It seems to work nicely for a 1 or 2 tables from small pdf files, it got the same error for anything else. When i used the option guess with extract_tables, some tables were not extracted and in some cases, it missed some entries on other tables.
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_1.2.0 miniUI_0.1.1.1 tabulizer_0.2.2 rJava_0.9-10
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 png_0.1-7 digest_0.6.16 later_0.7.5 mime_0.5
[6] R6_2.2.2 jsonlite_1.5 xtable_1.8-3 magrittr_1.5 rlang_0.2.2
[11] promises_1.0.1 tabulizerjars_1.0.1 tools_3.5.2 httpuv_1.4.5.1 yaml_2.2.0
from tabulapdf.
@leeper - Had the same problem. Installed using remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"))
and everything worked fine.
Hope the others also had similar success.
from tabulapdf.
Same error for me (see below), but JoeFernando's solution did not work for me, because the installation bombed:
Error: package or namespace load failed for 'tabulizerjars':
.onLoad failed in loadNamespace() for 'tabulizerjars', details:
call: NULL
error: .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/decicco1/OneDrive - Michigan State University/CSTATRedirects/Documents/R/win-library/4.0/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Original error from tabulizer
(R : 4.0.2 (2020-06-22) -- "Taking Off Again"):
(Platform: x86_64-w64-mingw32/x64 (64-bit))
out <- extract_tables(location)
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.io.IOException: Error: End-of-File, expected line
traceback()
7: stop(structure(list(message = "java.io.IOException: Error: End-of-File, expected line",
call = .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
cl, .jcast(if (inherits(o, "jobjRef") || inherits(o,
"jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String",
method), j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE), jobj = new("jobjRef", jobj = <pointer: 0x000001aa2a86c2e8>,
jclass = "java/io/IOException")), class = c("IOException",
"Exception", "Throwable", "Object", "error", "condition")))
6: .jcheck(silent = FALSE)
5: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = FALSE)
4: .jrcall(x, name, ...)
3: pdfDocument$load(input = fileInputStream)
2: load_doc(file, password = password, copy = copy)
1: extract_tables(location)
from tabulapdf.
Hi folks, any update on this? I'm having the same error...
from tabulapdf.
Related Issues (20)
- Specifying columns as percentages
- Having problems with automate table recognition, can one save areas found manually for reproduction?
- {tabulizer} got archived on CRAN on 2021-10-31 HOT 20
- extract_tables function status was 'SSL connect error' error
- Select multiple areas per page in `*_areas()`
- q question about package( Tabulizer) installation HOT 4
- a suggested code or documentation change, improvement to the code, or feature request HOT 1
- inconsistent behavior of extract_tables and extract_areas HOT 4
- Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.IllegalAccessException: class RJavaTools cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public" HOT 11
- New Maintainer Wanted :-) HOT 6
- An illegal reflective access operation has occurred HOT 1
- Renaming to tabula HOT 2
- Windows CI fails because of Java 8 requirement HOT 1
- build fails with tabula 1.2.1 jar HOT 1
- ROADMAP FOR FALL 2023 HOT 6
- Unable to install in tabulizer HOT 1
- pkgdown building issue HOT 10
- Is jdk7 -y needed? HOT 6
- Is the package abandoned? HOT 1
- Issue with extract_tables function. Couldn't run the example: getRowCount HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabulapdf.