Forum Stats

  • 3,741,292 Users
  • 2,248,405 Discussions
  • 7,861,728 Comments

Discussions

ORDS silent install prompts for "location to store configuration data"

Aoife
Aoife Member Posts: 3

I'm trying to script an ORDS (version 19.2.0.199.1647) silent install in an environment where stdin is a tty. When it tries to run:

java -jar ords.war install --parameterFile path/to/ords_params.properties

ords.war prompts "Enter the location to store configuration data" on stdin. If stdin is not a tty, an exception is thrown:

Exception in thread "main" java.lang.reflect.InvocationTargetException        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:498)        at oracle.dbtools.jarcl.Entrypoint.invoke(Entrypoint.java:66)        at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:77)Caused by: java.lang.NullPointerException        at oracle.dbtools.cmdline.Commands.promptForConfigDir(Commands.java:561)        at oracle.dbtools.cmdline.Commands.configurationContext(Commands.java:466)        at oracle.dbtools.cmdline.Commands.prepareApplicationContext(Commands.java:385)        at oracle.dbtools.cmdline.Commands.main(Commands.java:363)        ... 6 more

Is there a way to do an ORDS install without any prompts or requiring stdin be a tty?

Thanks!

Tagged:

Best Answer

Answers

Sign In or Register to comment.