Skip to content

Canreg5 doesn't start with registry_code parameter #146

Description

@toptnc

Describe the bug
I try to start canreg5 automatically with the registry_code parameter but it doesn't

To Reproduce
Steps to reproduce the behavior:

  1. Go to command line interface
  2. Execute "java -jar Canreg5.jar TRN"
  3. get this error
$ java -jar CanReg.jar TRN
Mar 17, 2025 1:10:08 PM canreg.server.CanRegServerImpl <init>
INFO: Java version: 1.8.0_442
Exception in thread "main" java.lang.IllegalStateException: Application is not launched.
	at org.jdesktop.application.Application.checkApplicationLaunched(Application.java:692)
	at org.jdesktop.application.Application.getInstance(Application.java:666)
	at canreg.client.CanRegClientApp.getApplication(CanRegClientApp.java:359)
	at canreg.common.Tools.getVariableListElements(Tools.java:215)
	at canreg.server.management.SystemDescription.setSystemDescriptionXML(SystemDescription.java:97)
	at canreg.server.management.SystemDescription.<init>(SystemDescription.java:64)
	at canreg.server.CanRegServerImpl.initSystemDefinition(CanRegServerImpl.java:261)
	at canreg.server.CanRegServerImpl.<init>(CanRegServerImpl.java:143)
	at canreg.common.ServerLauncher.start(ServerLauncher.java:75)
	at canreg.client.CanRegClientApp.main(CanRegClientApp.java:1572)

Expected behavior
The same behavior of starting the app and clicking in "Login to Canreg" and then clicking again in "Login". If I start CanReg interactively it works ok.

Desktop (please complete the following information):

  • OS: RHEL 9
  • Java 1.8.0_442

Additional context
I'm trying to configure CanReg5 as a headless server on Linux. Actually I'm using latest 5.00.44k version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions