getRPCHandler usage in Ignition 8.0

Since I upgrade some module to Ignition 8.0, I need to suppress @Override annotation for getRPCHandler. Is it normal ???
to avaid the error : Method doesnot override method from its super class

public class GatewayHook extends AbstractGatewayModuleHook {

...

	@Override
	public Object getRPCHandler(ClientReqSession session, Long projectId) {
		return new GatewayRPCHandler(this.context);
	}

Same result with :

ignition-platform-version 8.0.0
ignition-sdk-version ${ignition-platform-version}-SNAPSHOT

or

ignition-platform-version 8.0.1
ignition-sdk-version ${ignition-platform-version}-SNAPSHOT

The way projects are referenced has changed in 8 – there is no longer a project ID.

The signature for that function is now
public Object getRPCHandler(ClientReqSession session, String projectName)

2 Likes

I believe the gateway-network-function-gateway SDK example needs to be updated, it currently doesn't compile with 8.0.2:

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ gateway-network-function-gateway ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to D:\GitHub\ignition-sdk-examples\gateway-network-function\gateway-network-function-gateway\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/GitHub/ignition-sdk-examples/gateway-network-function/gateway-network-function-gateway/src/main/java/com/inductiveautomation/ignition/examples/GatewayHook.java:[78,5] method does not over
ide or implement a method from a supertype

Thanks, should be fixed shortly.

Thanks Kevin. While you’re in there, the gateway-webpage-gateway project doesn’t build either:

[INFO] ------------------------------------------------------------------------
[INFO] Building gateway-webpage-gateway 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/ignition-common/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/ignition-common/8.0.0-SNAPSHOT/maven-metadata.xml (631 B a
t 1.4 kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/common/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/common/8.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 9.6 kB/s)

Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml (627 B at 5.
9 kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 9.9
kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/simple-orm/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/simple-orm/8.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 9.8 k
B/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/metro/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignition/metro/8.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 9.3 kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/driver-api/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/driver-api/8.0.0-SNAPSHOT/maven-metadata.xml (626 B at 5.4
 kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/opcua/opc-ua-gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/com/inductiveautomation/opcua/opc-ua-gateway-api/8.0.0-SNAPSHOT/maven-metadata.xml (1.0 kB at
10.0 kB/s)
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/org/eclipse/milo/sdk-server/0.3.0-SNAPSHOT/maven-metadata.xml
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/org/eclipse/milo/sdk-server/0.3.0-SNAPSHOT/sdk-server-0.3.0-SNAPSHOT.pom
[WARNING] The POM for org.eclipse.milo:sdk-server:jar:0.3.0-SNAPSHOT is missing, no dependency information available
Downloading from snapshots: https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots/org/eclipse/milo/sdk-server/0.3.0-SNAPSHOT/sdk-server-0.3.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gateway-webpage .................................... SUCCESS [  0.361 s]
[INFO] gateway-webpage-gateway ............................ FAILURE [  2.783 s]
[INFO] gateway-webpage-build .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.310 s
[INFO] Finished at: 2019-06-29T09:59:41-07:00
[INFO] Final Memory: 11M/50M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gateway-webpage-gateway: Could not resolve dependencies for project com.inductiveautomation.ignition.examples.hce:gateway-webpage-gateway:jar:1.0.0-SNAPSHOT:
Could not find artifact org.eclipse.milo:sdk-server:jar:0.3.0-SNAPSHOT in snapshots (https://nexus.inductiveautomation.com/repository/inductiveautomation-snapshots) -> [Help 1]

:+1: