Jump to content
We've recently updated our Privacy Statement, available here ×

sanidu_lakmal

Members
  • Posts

    6
  • Joined

  • Last visited

sanidu_lakmal's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi jmand ! It is 8.0.2 on my remote Environment but it is working on my local which has the version 8.0.0
  2. HI jmand , arai_4 Sorry for the late reply. Path to chromium executable is correct. PS : I encountered wrong path issue before . It gives me another error message than this. java.io.IOException: error=2, No such file or directory
  3. I tried the solution suggested by jmand. The only new thing I have done is adding deploy.base.url. Other options are already there. but unfortunately it does not fix the issue. (I redeployed them on remote, So the JR server is started fresh with those changes)
  4. After trying the steps stated in Link In my local Environment Java 8 , Jasper 8, Windows 11 Now I can export a dashboard report using Screenshot -> PDF. But in remote environment (uses docker), it failed with Timeout exception. In Js.config.properties, chromium path is set chrome.path=/usr/lib64/chromium-browser/chromium-browser.sh and I try increasing timeout (chrome.page.timeout) but I does not fix the issue. and I also tried the solutions suggested here but no success. Here are the logs 2023-05-16T14:39:24,685 ERROR BaseDashboardRenderer,pool-23-thread-1:82 - Error rendering dashboard net.sf.jasperreports.engine.JRRuntimeException: java.util.concurrent.TimeoutException at net.sf.jasperreports.chrome.BrowserService.lambda$evaluateInPage$1(BrowserService.java:149) at net.sf.jasperreports.chrome.IsolatedPageCreator.lambda$runInPage$0(IsolatedPageCreator.java:96) at net.sf.jasperreports.chrome.ChromeInstance.runWithChromeInstance(ChromeInstance.java:92) at net.sf.jasperreports.chrome.IsolatedPageCreator.runInPage(IsolatedPageCreator.java:69) at net.sf.jasperreports.chrome.BrowserService.evaluateInPage(BrowserService.java:98) at com.jaspersoft.ji.remote.dashboard.ChromeDashboardRenderer.renderDashboard(ChromeDashboardRenderer.java:41) at com.jaspersoft.ji.remote.dashboard.BaseDashboardRenderer.call(BaseDashboardRenderer.java:76) at com.jaspersoft.ji.remote.dashboard.BaseDashboardRenderer.call(BaseDashboardRenderer.java:26) at com.jaspersoft.ji.remote.dashboard.ContextInheritingCallable.call(ContextInheritingCallable.java:51) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)Caused by: java.util.concurrent.TimeoutException at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021) at net.sf.jasperreports.chrome.BrowserService.lambda$evaluateInPage$1(BrowserService.java:144) ... 12 more[/code]PS: Chrome location for remote environment
  5. Environment Java 8 , Jasper 8, Windows 11 When I try to export a dashboard report Screenshot -> PDF Following error occurs 18:06:06,536 INFO [stdout] (pool-47-thread-2) 2023-05-08T18:06:06,534 WARN WebSocketServiceImpl,pool-47-thread-2:105 - Failed connecting to ws server ws://localhost:54220/devtools/browser/af2fadba-a2d0-45c8-92f0-f01c67360ebb... javax.websocket.DeploymentException: Handshake error.18:06:06,536 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:679)18:06:06,536 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:717)18:06:06,536 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)18:06:06,536 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.FutureTask.run(FutureTask.java:266)18:06:06,536 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:871)18:06:06,536 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)18:06:06,536 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:516)18:06:06,536 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:378)18:06:06,536 INFO [stdout] (pool-47-thread-2) at com.github.kklisura.cdt.services.impl.WebSocketServiceImpl.connect(WebSocketServiceImpl.java:94)18:06:06,536 INFO [stdout] (pool-47-thread-2) at com.github.kklisura.cdt.services.impl.WebSocketServiceImpl.create(WebSocketServiceImpl.java:84)18:06:06,536 INFO [stdout] (pool-47-thread-2) at net.sf.jasperreports.chrome.IsolatedPageCreator.getBrowserDevToolsService(IsolatedPageCreator.java:147)18:06:06,536 INFO [stdout] (pool-47-thread-2) at net.sf.jasperreports.chrome.IsolatedPageCreator.lambda$runInPage$0(IsolatedPageCreator.java:71)18:06:06,538 INFO [stdout] (pool-47-thread-2) at net.sf.jasperreports.chrome.ChromeInstance.runWithChromeInstance(ChromeInstance.java:92)18:06:06,538 INFO [stdout] (pool-47-thread-2) at net.sf.jasperreports.chrome.IsolatedPageCreator.runInPage(IsolatedPageCreator.java:69)18:06:06,538 INFO [stdout] (pool-47-thread-2) at net.sf.jasperreports.chrome.BrowserService.evaluateInPage(BrowserService.java:98)18:06:06,538 INFO [stdout] (pool-47-thread-2) at com.jaspersoft.ji.remote.dashboard.ChromeDashboardRenderer.renderDashboard(ChromeDashboardRenderer.java:41)18:06:06,538 INFO [stdout] (pool-47-thread-2) at com.jaspersoft.ji.remote.dashboard.BaseDashboardRenderer.call(BaseDashboardRenderer.java:76)18:06:06,538 INFO [stdout] (pool-47-thread-2) at com.jaspersoft.ji.remote.dashboard.BaseDashboardRenderer.call(BaseDashboardRenderer.java:26)18:06:06,538 INFO [stdout] (pool-47-thread-2) at com.jaspersoft.ji.remote.dashboard.ContextInheritingCallable.call(ContextInheritingCallable.java:51)18:06:06,538 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.FutureTask.run(FutureTask.java:266)18:06:06,538 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)18:06:06,538 INFO [stdout] (pool-47-thread-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)18:06:06,538 INFO [stdout] (pool-47-thread-2) at java.lang.Thread.run(Thread.java:750)18:06:06,538 INFO [stdout] (pool-47-thread-2) Caused by: org.glassfish.tyrus.core.HandshakeException: Response code was not 101: 403.18:06:06,538 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.client.TyrusClientEngine.processResponse(TyrusClientEngine.java:320)18:06:06,538 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleHandshake(GrizzlyClientFilter.java:346)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:315)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)18:06:06,539 INFO [stdout] (pool-47-thread-2) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)[/code]Chrome path is set and added net.sf.jasperreports.chrome.argument.no-sandbox=true[/code]to jasperreports.properties get rid of previous error messages , Now I am stuck here.
×
×
  • Create New...