inductiveautomation / ignition-sdk-examples

Ignition SDK Example Projects
164 stars 92 forks source link

Example perspective module does not work in 8.1.21 #93

Closed bradder555 closed 1 year ago

bradder555 commented 2 years ago

java version:

$ java --version
Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\WINDOWS\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"
openjdk 11.0.16.1 2022-08-12
OpenJDK Runtime Environment Temurin-11.0.16.1+1 (build 11.0.16.1+1)
OpenJDK 64-Bit Server VM Temurin-11.0.16.1+1 (build 11.0.16.1+1, mixed mode)

steps to replicate

ModuleManager | 31Oct2022 20:04:35 | Error starting module org.fakester.radcomponent

java.lang.NoClassDefFoundError: com/inductiveautomation/perspective/gateway/api/PerspectiveContext
at org.fakester.gateway.RadGatewayHook.startup(RadGatewayHook.java:39)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.startup(ModuleManagerImpl.java:2439)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.startupModule(ModuleManagerImpl.java:1232)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$2.call(ModuleManagerImpl.java:777)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.executeModuleOperation(ModuleManagerImpl.java:953)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.installModuleInternal(ModuleManagerImpl.java:743)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$InstallCommand.execute(ModuleManagerImpl.java:1909)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$Receiver.receiveCall(ModuleManagerImpl.java:1862)
at com.inductiveautomation.ignition.gateway.redundancy.QueueableMessageReceiver.receiveCall(QueueableMessageReceiver.java:47)
at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.dispatchMessage(RedundancyManagerImpl.java:1007)
at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl$ExecuteTask.run(RedundancyManagerImpl.java:1075)
at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:544)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(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: java.lang.ClassNotFoundException: com.inductiveautomation.perspective.gateway.api.PerspectiveContext
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 18 common frames omitted
PerryAJ commented 1 year ago

Looking at the stacktrace, it seems that the Perspective module may be missing, have failed startup, and/or is not loaded when the example component is loaded.

Can you confirm that Perspective module is in a healthy state (check the gateway status/config sections)?

I just built and installed a module from this example and did not experience the same thing.

Skrys33 commented 1 year ago

Ignition (v8.1.18)

I have the same problem, when building "./gradle build" everything works. But if we look at the module content, the web module is not present.

If we execute the command "./gradlew:web:build" before the previous command it generates correctly the build of the web module. (/web/build/..) But it is not transferred to the gateway module (as in the old days) or included directly in the .modl.

PerryAJ commented 1 year ago

Ok, I was able to reproduce this in a clean checkout, will get a fix PR'd today.

PerryAJ commented 1 year ago

PR up with fixes, please let me know if this resolves the problems you were seeing.

bradder555 commented 1 year ago

The Gateway is totally fine, managed to install another module

Did you build in a clean environment? In a pipeline build or similar? Could be you've got something cached?

The PR, single perspective example, fixed a minor bug there and got it to build and install fine.

On Thu, 3 Nov 2022, 09:04 Perry Arellano-Jones, @.***> wrote:

Looking at the stacktrace, it seems that the Perspective module may be missing, have failed startup, and/or is not loaded when the example component is loaded.

Can you confirm that Perspective module is in a healthy state (check the gateway status/config sections)?

I just built and installed a module from this example and did not experience the same thing.

— Reply to this email directly, view it on GitHub https://github.com/inductiveautomation/ignition-sdk-examples/issues/93#issuecomment-1301535410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGJF7Y2RO54YRJFFPOZQDWGMFQDANCNFSM6AAAAAARTA2OWY . You are receiving this because you authored the thread.Message ID: @.*** com>

bradder555 commented 1 year ago

The Gateway is totally fine, managed to install another module Did you build in a clean environment? In a pipeline build or similar? Could be you've got something cached? The PR, single perspective example, fixed a minor bug there and got it to build and install fine. On Thu, 3 Nov 2022, 09:04 Perry Arellano-Jones, @.> wrote: Looking at the stacktrace, it seems that the Perspective module may be missing, have failed startup, and/or is not loaded when the example component is loaded. Can you confirm that Perspective module is in a healthy state (check the gateway status/config sections)? I just built and installed a module from this example and did not experience the same thing. — Reply to this email directly, view it on GitHub <#93 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIGJF7Y2RO54YRJFFPOZQDWGMFQDANCNFSM6AAAAAARTA2OWY . You are receiving this because you authored the thread.Message ID: @. com>

Sorry, I got the e-mail with your first message, but I didn't see subsequent messages.

Will test out now