This discussion is archived
5 Replies Latest reply: Mar 12, 2013 6:55 AM by 985493 RSS

empdk create_plugin fails:

EdSpn Newbie
Currently Being Moderated
Hi all,

I have started to look into creating a plug-in using OEM 12c (with repo on 11g). The validation is successful (empdk validate_plugin), but the creation of the OPAR file fails (empdk create_plugin).

I have built the hostsample before successfully. The difference between the 2 plugin validation reports (after creating the plugin) is that with my plugin it doesn't seem to pickup the connection details ( Connection descriptor used:null )

HostSample command:
empdk create_plugin -stage_dir ./stage -conn_desc <myIP>:1521:EMREPO -repos_user sysman -repos_pwd <mypwd> -out_dir <mypath>\Oracle\edk\samples\plugins\HostSample\tmp
My Plug-In command: (from within stage dir)
empdk create_plugin -stage_dir .       -conn_desc <myIP>:1521:EMREPO -repos_user sysman -repos_pwd <mypwd> -out_dir out -tmp_dir tmp
HostSample report:
Oracle Enterprise Manager Plugin Development Kit
Oracle Enterprise Manager 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.

################ PLUGIN VALIDATION REPORT ##########################
#Plugin Version: 12.1.0.1.0
#Plugin name: oracle.sysman.ohs
#Validation started at: 2013-01-03 14:31:56
#Validation ended at: 2013-01-03 14:32:01
#Plugin Stage directory: <mypath>\Oracle\edk\samples\plugins\HostSample\demo_hostsample\.\stage
#Temporary directory used: <mypath>\Oracle\edk\samples\plugins\HostSample\tmp\tempLoc_pdkf2c074e9-a907-45d2-864a-3283c789a336
#Connection descriptor used: <myIP>:1521:EMREPO

#------------------------------------------------------------------------------------------
#                            SUMMARY OF PROBLEMS DETECTED                                   
#------------------------------------------------------------------------------------------
#                    VALIDATION   |     ERRORS  |  DEPRECATED USAGES   |  OBSOLETE API USAGES  | WARNING
#-----------------------------------------------------------------------------------------
# Plug-in Meta data         DONE  |         0  |                   0   |                 0   |            0
# Staging Directory         DONE  |         0  |                   0   |                 0   |            0
#        MRS Syntax         DONE  |         0  |                   0   |                 0   |            0
# Metadata Regis..         DONE  |         0  |                   0   |                 0   |            0
# Meta data Embe..         DONE  |         0  |                   0   |                 0   |            0
#----------------------------------------------------------------------------
# Note: MRS semantic validation is done only against the file which has passed the syntax validation
#############################################################
My Plug-In report:
Oracle Enterprise Manager Plugin Development Kit
Oracle Enterprise Manager 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.

################ PLUGIN VALIDATION REPORT ##########################
#Plugin Version: 12.1.0.1.0
#Plugin name: emc.oem.tgt1
#Validation started at: 2013-01-11 12:32:11
#Validation ended at: 2013-01-11 12:32:12
#Plugin Stage directory: <mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\.
#Temporary directory used: <mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\.\tempLoc_pdkc8971ec9-d8ab-44b7-a92c-58cc00586b83
#Connection descriptor used:null
#------------------------------------------------------------------------------------------
#                            SUMMARY OF PROBLEMS DETECTED                                   
#------------------------------------------------------------------------------------------
#                    VALIDATION   |     ERRORS  |  DEPRECATED USAGES   |  OBSOLETE API USAGES  | WARNING
#-----------------------------------------------------------------------------------------
# Plug-in Meta data         DONE  |         0  |                   0   |                 0   |            0
# Staging Directory         DONE  |         0  |                   0   |                 0   |            0
#        MRS Syntax         DONE  |         0  |                   0   |                 0   |            0
# Metadata Regis..         DONE  |         0  |                   0   |                 0   |            0
# Metadata Regis..        MRS Semantic validation might be incomplete as repository details were not provided.
# Meta data Embe..         DONE  |         0  |                   0   |                 0   |            0
# Meta data Embe..        Validation of embedded SQL strings in meta data is skipped since repository details were not provided.
#----------------------------------------------------------------------------
# Note: MRS semantic validation is done only against the file which has passed the syntax validation
#############################################################
I must be overlooking something, but can't put my finger on it...
Any help appreciated!

Regards,
Ed
  • 1. Re: empdk create_plugin fails:
    EdSpn Newbie
    Currently Being Moderated
    [update]
    The plugin validation report now no longer shows a null for the connection descriptor used (#Connection descriptor used: <myIP>:1521:EMREPO).
    Difference is that I first made edk the current directory. (The edk is in my path.)

    However, it still fails at the same point for plugin creation...

    Command-line and output:
    <mypath>\Oracle\edk>empdk create_plugin -stage_dir "<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage" -conn_desc <myIP>:1521:EMREPO -repos_user sysman -repos_pwd EMsee123 -out_dir "<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\out" -tmp_dir "<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\tmp"
    Validating Plugin Xml : Passed
    Validating Plugin Structure: Passed
    Validating Metadata Syntax: Passed
    Validating Metadata Semantic: Passed
    Validating Embedded SQL strings in meta data: Passed
    Plugin Validation : Passed
    Validation Report generated to: <mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\out\plugin_validation_report_130111.txt
    
    Creating the opar file......
    Plug-in creation failed. Please refer to log file <mypath>\Oracle\edk\createplugin20130111-145406.log
    
    <mypath>\Oracle\edk>
    The last several lines from the "createplugin20130111-145406.log" file are:
    2013-01-11 14:54:38,715 [main] DEBUG packaging.ShiphomeCreator logp.251 - Done creating shiphomeproperties.xml
    2013-01-11 14:54:38,715 [main] DEBUG packaging.ShiphomeCreator logp.251 - Running Installer
    2013-01-11 14:54:38,776 [main] INFO  packaging.ShiphomeCreator logp.251 - Running runInstaller command: [<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\tmp\tempLoc_pdke80d1694-9a4d-4950-8da4-72450728ca8f\stage\oms\runOuiInstaller.bat]
    2013-01-11 14:54:38,922 [main] INFO  packaging.ShiphomeCreator logp.251 - 
    2013-01-11 14:54:38,922 [main] INFO  packaging.ShiphomeCreator logp.251 - C:\Users\spaene\Downloads\Oracle\edk>"<mypath>\Oracle\edk\bin\../oui/ouihome/oui/bin/win32/setup.exe" -jreLoc C:/Progra~1/Java/jdk1.6.0_31/ -silent -waitforcompletion ORACLE_HOME_NAME=emc_oem_tgt112_1_0_1_0OMSHome11357916078715 "ORACLE_HOME=<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\tmp\tempLoc_pdke80d1694-9a4d-4950-8da4-72450728ca8f\stage\oms\plugin_install" -sourceLoc <mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\tmp\tempLoc_pdke80d1694-9a4d-4950-8da4-72450728ca8f\stage\oms/Disk1/stage/products.xml -noWait 
    2013-01-11 14:55:11,930 [main] ERROR packaging.PluginPackager logp.251 - OSPOUIError
    oracle.sysman.pdk.packaging.OSPOUIError: Exit value of process oui/bin/setup.exe is non-zero: -1
         at oracle.sysman.pdk.packaging.ShiphomeCreator.runInstaller(ShiphomeCreator.java:286)
         at oracle.sysman.pdk.packaging.ShiphomeCreator.createShiphome(ShiphomeCreator.java:131)
         at oracle.sysman.pdk.packaging.PluginPackager.createPluginPackage(PluginPackager.java:326)
         at oracle.sysman.pdk.packaging.CreatePlugin.createPlugin(CreatePlugin.java:52)
         at oracle.sysman.pdk.Main.main(Main.java:175)
    2013-01-11 14:55:11,931 [main] ERROR packaging.PluginPackager logp.251 - Plug-in creation failed. Please refer to log file <mypath>\Oracle\edk\createplugin20130111-145406.log
    2013-01-11 14:55:11,932 [main] INFO  pdk.Main logp.251 - Step name:Duration
    2013-01-11 14:55:11,932 [main] INFO  pdk.Main logp.251 - ShiphomeCreator.generateShiphomeOMS: 26181ms
    2013-01-11 14:55:11,932 [main] INFO  pdk.Main logp.251 - ShiphomeCreator.copyTemplatesOMS: 12ms
    2013-01-11 14:55:11,932 [main] INFO  pdk.Main logp.251 - ShiphomeCreator.generateSpecFileOMS: 1708ms
    [edit:]
    Just comparing the "createplugin...log" files of the successful HostSample and the above failed logfile. I cannot determine any differences that might be causing the failure.


    Any thoughts?

    Many thanks,
    Ed

    Edited by: 977814 on Jan 11, 2013 4:04 PM

    Edited by: 977814 on Jan 11, 2013 4:12 PM
  • 2. Re: empdk create_plugin fails:
    user775296 Newbie
    Currently Being Moderated
    Hi Ed,

    Looks like your stage directory '<mypath>\Oracle\OEM Plug-In\Ed Target 1\stage\' includes spaces. EDK doesn't work well when you have spaces in the EDK extracted path or the stage directory.

    Can you please re-try after make sure both your path where you extracted EDK as well as your stage directory does not have any spaces in them? You can use '_' or '-' or any other character supported on Windows platforms.

    Also, after fixing the paths, please run the 'empdk' command using '-debug <path_to_debug_file>' option. This will put more debug messages in the log file specified in the option. This will help us identify any further issues quickly.

    Thanks,
    Venkat.
  • 3. Re: empdk create_plugin fails:
    user775296 Newbie
    Currently Being Moderated
    Also, please attach the complete debug file generated instead of pasting some lines. We'll need it to find out the issue.

    Thanks,
    Venkat.
  • 4. Re: empdk create_plugin fails:
    EdSpn Newbie
    Currently Being Moderated
    Hi Venkat,

    You were spot on! I have just removed any spaces from the path to the plug-in and it works. So empdk create_plugin now successfully creates the opar file.
    I fell for the age-old trap of the spaces-in-pathname-error. Amazing though that nobody has ever built in this very simple check with a proper error message?

    Many thanks for your response!!

    Best,
    Ed
  • 5. Re: empdk create_plugin fails:
    985493 Newbie
    Currently Being Moderated
    We also have the same issue. Could you please help us?

    The plug-n can be created from the same source from other machine (windows 7)

    But when we tried to create plugin from WinXP machine it is not working and same above error is raised. In this machine we have installed Japanese language. So the "backslash" (path seperator) is coming as "¥".

    The error while creating the plug-in
    Validating Plugin Xml : Passed
    Validating Plugin Structure: Passed
    Validating Metadata Syntax: Failed
    Validating Metadata Semantic: Passed
    Validating Embedded SQL strings in meta data: Passed
    Plugin Validation : Failed
    Validation Report generated to: D:\shihab\output_plugin\plugin_validation_report
    _130312.txt
    OPAR cannot be created as the plug-in is not
    valid. Please see the validation report and resolve all errors and try again.

    Validation report

    Oracle Enterprise Manager Plugin Development Kit
    Oracle Enterprise Manager 12c Release 2
    Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.

    ################ PLUGIN VALIDATION REPORT ##########################
    #Plugin Version: 12.1.0.1.0
    #Plugin name: abc.def.Stub
    #Validation started at: 2013-03-12 19:02:11
    #Validation ended at: 2013-03-12 19:02:13
    #Plugin Stage directory: D:\developer\abcplugin\stage
    #Temporary directory used: D:\developer\output_plugin\tempLoc_pdk17dc103b-93e2-486a-8984-83cc1202a3be
    #Connection descriptor used: oracle.ind.abcgroup.net:1522:orcl

    #------------------------------------------------------------------------------------------
    # SUMMARY OF PROBLEMS DETECTED
    #------------------------------------------------------------------------------------------
    # VALIDATION | ERRORS | DEPRECATED USAGES | OBSOLETE API USAGES | WARNING
    #-----------------------------------------------------------------------------------------
    # Plug-in Meta data DONE | 0 | 0 | 0 | 0
    # Staging Directory DONE | 0 | 0 | 0 | 0
    # MRS Syntax DONE | 3 | 0 | 0 | 0
    # Metadata Regis.. DONE | 0 | 0 | 0 | 0
    # Meta data Embe.. DONE | 0 | 0 | 0 | 0
    #----------------------------------------------------------------------------
    # Note: MRS semantic validation is done only against the file which has passed the syntax validation
    #############################################################

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points