PDF viewer issue

Hello Everyone…
I am using PDF viewer (vision)component in my project to show some PDF’s which all are created by AutoCAD.I’m retrieving this pdf’s from my DB table and loading into the PDF viewer component using loadPDFBytes function. After loading this pdf file into my PDF viewer component my gateway connection is keep on fluctuating.

This is my simple script…
image
i’m using ignition 8.1

What exactly is the problem? What do you mean your gateway is fluctuating? Does the PDF not load?

What’s the filesize of these PDFs? How much memory do you have dedicated to the gateway, and how much memory are your clients using? What do the performance stats look like on the gateway?

Files all are less than 500Kb,we have dedicated 8GB memory to gateway…
sharing the error screenshot…


PFA text file as well…
prod_error.txt (10.9 KB)

This isn’t a performance issue, this is a configuration or upgrade issue:

22:08:26.243 [ClientExecEngine-1] WARN com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Connection to Gateway lost, due to exception.
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: class org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey cannot be cast to class java.security.interfaces.XECPublicKey (org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey is in unnamed module of loader java.net.URLClassLoader @7eee9bbd; java.security.interfaces.XECPublicKey is in module java.base of loader 'bootstrap')
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:351)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:543)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:357)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.ping(GatewayInterface.java:1002)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.ping(GatewayInterface.java:987)
	at com.inductiveautomation.ignition.client.tags.impl.GatewayTagInterface.runPoll(GatewayTagInterface.java:125)
	at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$TrackedTask.run(BasicExecutionEngine.java:581)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: class org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey cannot be cast to class java.security.interfaces.XECPublicKey (org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey is in unnamed module of loader java.net.URLClassLoader @7eee9bbd; java.security.interfaces.XECPublicKey is in module java.base of loader 'bootstrap')
	at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:410)
	... 11 common frames omitted

Did you recently upgrade? How did you perform the last upgrade? Are you using any custom modules?

fluctuating i mean i’m losing connection to the gateway due to this…i can able to load the pdf’s on the component but after loading i’m facing this issue…

No i’ve not upgraded and i’m not using any custom modules…
currently i’m using this PFA image
image

should i need to upgrade my ignition to fix this issue?

I would give upgrading a try.

Where is this script? If it is in a propertyChange event and you haven’t properly filtered by propertyName, you could be running that script over and over unexpectedly. That would crush your connection.