1 Reply Latest reply: Jul 16, 2013 3:48 PM by user12294627 RSS

    generate_ssl_keys.sh failed on linux

    YueZ-Oracle

      following Endeca Server Installation Guide on Creating SSL certificates section. I got the following error:

       

      CLASSPATH=/u01/app/oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/lib/tools.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/app/oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-wlstman.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/lib/adfscripting.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/lib/mdswlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/auditwlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/igfwlsthelp.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/jps-wlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/jrf-wlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/oamap_help.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/ossoiap_help.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/ossoiap.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/sslconfigwlst.jar:/u01/app/oracle/Middleware/oracle_common/common/wlst/resources/wsm-wlst.jar:/u01/app/oracle/Middleware/utils/config/10.3/config-launch.jar::/u01/app/oracle/Middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/app/oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/app/oracle/Middleware/wlserver_10.3/common/derby/lib/derbytools.jar::

       

       

      Initializing WebLogic Scripting Tool (WLST) ...

       

       

      Welcome to WebLogic Server Administration Scripting Shell

       

       

      Type help() for help on available commands

       

       

      Connecting to t3://localhost:7001 with userid weblogic ...

      Successfully connected to Admin Server 'AdminServer' that belongs to domain 'endeca_domain'.

       

       

      Warning: An insecure protocol was used to connect to the

      server. To ensure on-the-wire security, the SSL port or

      Admin port should be used instead.

       

       

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneCA.key

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/dgraphCA.srl

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneCertSigned.pem

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneCertTmp.csr

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneCertTmp.key

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneRnd1.rnd

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneRnd2.rnd

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneRnd3.rnd

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/eneRnd4.rnd

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esCert.p12

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esCertSigned.pem

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esCertTmp.csr

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esCertTmp.key

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esClientCertSigned.pem

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esClientCertTmp.csr

      failed to remove temporary file /u01/app/oracle/Middleware/user_projects/domains/endeca_domain/config/ssl/esClientCertTmp.key

      Problem invoking WLST - Traceback (innermost last):

        File "/u01/app/oracle/Middleware/user_projects/domains/endeca_domain/EndecaServer/lib/generate_ssl_keys.py", line 285, in ?

        File "/u01/app/oracle/Middleware/user_projects/domains/endeca_domain/EndecaServer/lib/generate_ssl_keys.py", line 91, in createCertificates

        File "/u01/app/oracle/Middleware/user_projects/domains/endeca_domain/EndecaServer/lib/generate_ssl_keys.py", line 71, in runCommandOrDie

        File "/u01/app/oracle/Middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/javaos$py.class", line 333, in system

        File "/u01/app/oracle/Middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/popen2.py", line 31, in ?

        File "/u01/app/oracle/Middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/javashell.py", line 17, in ?

        File "/u01/app/oracle/Middleware/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/string$py.class", line 434, in ?

              at java.io.File.<init>(File.java:222)

              at java.lang.Package$1.run(Package.java:527)

              at java.lang.Package.defineSystemPackage(Package.java:520)

              at java.lang.Package.getSystemPackages(Package.java:511)

              at java.lang.ClassLoader.getPackages(ClassLoader.java:1513)

              at java.lang.ClassLoader.getPackages(ClassLoader.java:1511)

              at java.lang.Package.getPackages(Package.java:281)

              at org.python.core.JavaImportHelper.buildLoadedPackages(Unknown Source)

              at org.python.core.JavaImportHelper.tryAddPackage(Unknown Source)

              at org.python.core.imp.import_next(Unknown Source)

              at org.python.core.imp.import_name(Unknown Source)

              at org.python.core.imp.importName(Unknown Source)

              at org.python.core.ImportFunction.load(Unknown Source)

              at org.python.core.ImportFunction.__call__(Unknown Source)

              at org.python.core.PyObject.__call__(Unknown Source)

              at org.python.core.__builtin__.__import__(Unknown Source)

              at org.python.core.imp.importFromAs(Unknown Source)

              at org.python.core.imp.importFrom(Unknown Source)

              at string$py.f$0(C:\wlst\jython_2.2.1\Lib\string.py:434)

              at string$py.call_function(C:\wlst\jython_2.2.1\Lib\string.py)

              at org.python.core.PyTableCode.call(Unknown Source)

              at org.python.core.PyCode.call(Unknown Source)

              at org.python.core.imp.createFromCode(Unknown Source)

              at org.python.core.imp.createFromPyClass(Unknown Source)

              at org.python.core.ZipFileImporter$ZipFileLoader.load_module(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

       

       

      java.lang.NullPointerException: java.lang.NullPointerException

       

       

      Anyone has encountered the same issue? How to fix it? Thanks!