I have a module for audit working for 7.9 and it was ok for Ignition 8.0.2.
With Ignition 8.0.4-SNAPSHOT 22/08/2019
I have the error the “AuditLogSplitter” type doesn’t exist anymore ?
in the SDK javadoc 8.0.1, the function still exist
The following constructor
AuditProfileType::AuditProfileType(java.lang.String typeId,
java.lang.String name,
java.lang.String description)
doesn’t exist in 8.0.4 ??
Is there another constructor to use ?
public class AuditLogSplitterType extends AuditProfileType {
// transient pour ne pas serializer
private transient Logger logger = LoggerFactory.getLogger(getClass());
public AuditLogSplitterType() {
super("AuditLogSplitter", "AuditLogSplitterSettings.Name", "AuditLogSplitterSettings.Desc");
}
...
generate an error :
ModuleManager 22Aug2019 15:54:11 Module "com.bouyguesenergiesservices.audit" threw exception during setup()
java.lang.NoSuchMethodError: com.inductiveautomation.ignition.gateway.audit.AuditProfileType: method (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found
at com.bouyguesenergiesservices.ignition.gateway.audit.AuditLogSplitterType.(AuditLogSplitterType.java:20)
at com.bouyguesenergiesservices.ignition.gateway.audit.GatewayHook.setup(GatewayHook.java:68)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.setup(ModuleManagerImpl.java:2327)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.startupModule(ModuleManagerImpl.java:1165)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$2.call(ModuleManagerImpl.java:733)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.executeModuleOperation(ModuleManagerImpl.java:905)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.installModuleInternal(ModuleManagerImpl.java:695)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$InstallCommand.execute(ModuleManagerImpl.java:1851)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$Receiver.receiveCall(ModuleManagerImpl.java:1801)
at com.inductiveautomation.ignition.gateway.redundancy.QueueableMessageReceiver.receiveCall(QueueableMessageReceiver.java:47)
at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.dispatchMessage(RedundancyManagerImpl.java:852)
at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl$ExecuteTask.run(RedundancyManagerImpl.java:924)
at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:518)
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)