Error in .jcheck: Java Exception <no description because toString() failed>
Months ago I had this issue and I fixed it by updating the rJava package. But now I had to update xlsx and again it's not working, regardless the rJava package
The rest of the message is .jcall("RJavaTools", "Z", "hasMethod", .jcast(x, "java/lang/Object"), name)new("jobjRef", jobj = <pointer: 0x556275683bd0>, jclass = "java/lang/Throwable")
I need it since I'm using createstyle and other cell format related functions.
My R version is 3.6.3, RTools 3.5, xlsx 0.6.5, rJava 1.0.4
Hello @mmoralesIG ! I'm sorry to hear about your trouble! Does rJava work? i.e. trying rJava::.jinit()? Can you show a reprex, perhaps?
(EDIT: fixed link)
Hello @mmoralesIG ! I'm sorry to hear about your trouble! Does
rJavawork? i.e. tryingrJava::.jinit()? Can you show areprex, perhaps?(EDIT: fixed link)
Hi! thank you for your speed answer I got 0
rJava::.jinit()
Created on 2021-07-12 by the reprex package (v2.0.0)
but I'll try it in the application, since in my local works yep, also 0 in the deployed app
Perfect! Good to know! That is the expected result. Can you provide a reprex of the code that is causing the broken behavior, perhaps? That would be helpful to understand what is happening.
Perfect! Good to know! That is the expected result. Can you provide a reprex of the code that is causing the broken behavior, perhaps? That would be helpful to understand what is happening.
The original script is quite long since it's a report (a whole workbook). I made a pretty simple one and this it's just a download button, it reads a small csv and then write's it into a xlsx. It's in a small shiny application. (https://inspeccionesglobales.shinyapps.io/cajas_colores/ where it says "descargar tabla")
(and since it's in a application, the reprex doesn't quite work. it downloads fine in my laptop, but not when I deploy)
output$downloadData <- downloadHandler(
filename = function() {
paste('test-', Sys.Date(), '.xlsx', sep='')
},
content = function(con) {
df <- read.csv("./data/coordenadas_zonas.csv")
write.xlsx(df,con)
})
the libraries used
library(shiny)
library(shinydashboard)
library(shinyWidgets)
library(lubridate)
library(tidyr)
library(dplyr)
library(xlsx)
Thank you for providing this simple example!! Removing layers of complexity to get to the core issue is very helpful 😄 Is it possible to reproduce with a simple / public CSV? That is one that I do not have access to. I'm wondering if something about the language / etc. is causing the trouble on the shinyapps.io environment. Can you print the output of the following locally and in the deployed application? Sharing both here?:
devtools::session_info()
Thank you for providing this simple example!! Removing layers of complexity to get to the core issue is very helpful 😄 Is it possible to reproduce with a simple / public CSV? That is one that I do not have access to. I'm wondering if something about the language / etc. is causing the trouble on the shinyapps.io environment. Can you print the output of the following locally and in the deployed application? Sharing both here?:
devtools::session_info()
Hi, I modified the dataframe to something simpler: a row with sys.time
output$downloadData <- downloadHandler(
filename = function() {
paste('test-', Sys.Date(), '.xlsx', sep='')
},
content = function(con) {
df <- data.frame(n=1,"time"=Sys.time() )
print(devtools::session_info())
write.xlsx(df,con)
})
And the shiny.app.logs.txt is the downloaded log of the deployed app, meanwhile the local.session.info is the one from my computer
I really appreciate your help on this
Hello, any solution to this issue? We're suffering from the same problem in 0.6.5 and R 4.1 .
I switched to the package openxlsx, with minor modifications to existing code.
I'm working on getting CI set up so we can actually test against R 4.1 a bit better. Apologies for the trouble! If openxlsx works for you, that is a great alternative!