Reference for Connecting EJB in KM scheduler Task

Hi,
       What are the main References we need to add portalapp.xml,when we connect Ejb in Km scheduler Tasks
For Example:
portalapp.xml
<?xml version="1.0" encoding="UTF-8"?>
  <application >
    <application-config>
    <property name="SharingReference" value="usermanagement, knowledgemanagement,landscape,       htmlb, exportalJCOclient, exportal, com.sap.portal.admin.wizardframework"/>  </application-config>
  <components/>
  <services>
    <service name="RFServiceWrapper">
      <service-config>
        <property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
        <property name="startup" value="true"/>
      </service-config>
    </service>
  </services>
</application>
Regards,
Vino

Hi,
Try some thing like this:
ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();                                   
try {
          Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
          Context initial = new InitialContext();
          Object objref = initial.lookup("JNDI Name Of the Session Bean");
          Object obj = PortableRemoteObject.narrow(objref, BeanHome.class);
     } catch (NamingException ex) {
          ex.printStackTrace();          
     } catch (Exception ex) {
          ex.printStackTrace();          
     finally {
     Thread.currentThread().setContextClassLoader(originalContextClassLoader);
Regards,
Praveen Gudapati

Similar Messages

  • Call Multiple Files From Single ColdFusion Scheduled Task

    Our host only allows us to have 5 scheduled tasks per account but we need to run cfml applications to import data for multiple sites (at least 15 processes).  What I'd like to do is combine all the 'sample requests' for all sites into ONE scheduled task that will run them one after another thus cutting back on the number of scheduled tasks needed.
    We're using ColdFusion to connect to a MySQL DB to gather all sample requests. First the app retrieves all the unflagged records from a remote db then begins looping through all the returned records. On the each loop, the app 'scrubs' the data by properly formatting phone numbers, fixing address abbreviations, etc. Next the app saves the scrubbed data to a local MS SQL table then starts the loop over on the next row. Lastly the app sends out an email saying it has completed successfully.
    What I'm trying to do is Create a New Parent App that will run as a scheduled task to do the following:
    - New Parent App Runs as Scheduled Task and calls/includes first of X sample request app files
    - New Parent App runs first sample request app as described above (which can take up to a minute to process)
    - Parent app waits until after first sample request app completes, then Parent App goes on to second sample request app, etc.
    - After all sample requests are complete New App sends completion email with date and time
    The problem I'm having is getting the scheduled task to wait for apppage1.cfm to finish before loading apppage2.cfm and so on. Can you give me a simple codeset that accomplishes this?
    I've attached a sample of the include page the needs to complete before moving on!

    Our approach is a bit more comprehensive.
    First, we (meaning my co-workers) wrote a custom tag that does something like this:
    <cftry>
    <cfinclude the template>
    <cfcatch>
    log any errors
    Then our actual scheduled job go like this:
    set a really long timeout (and none of the actual jobs can have their own timeout)
    set some variables
    use the custom tag for each job we want to run
    send mail if any errors occurred.

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

  • Not able to create Schedule Task in OIM 9.1.0.2

    Hi,
    I created one Java program and created Jar file. Then placed in Schduled Task folder.
    When I try to create one Schedule Task in OIM web console, I am not able to see the Class File name in the list.
    Please let me know what could be the reason for this.
    Thansk for your help.

    In OIm Web console, there is one serach where we can serach the required class file. I am not able to see the class file in the list where as I am able to see other class files for other scheduled Tasks.
    But I am not able to see my Class file.
    When I try to paste the full class file path in Design Console, It gives an error saying No database read.
    This is very urgent for me to create the scheduled Task.
    Any idea??

  • ColdFusion 11 Scheduled Task & IIS 7.5

    I have a scheduled task registered in ColdFusion 11 Admin console. ColdFusion 11 is hosted over IIS 7.5. The schedule task is to run 1 perticular file from sub application of the main app. After upgrading application from ColdFusion 9 to ColdFusion 11, scheduled task stopped working.
    Note that, on IIS, main App has "Anonymous Authentication - Disabled" and "Windows Authentication - Enabled" ...
    While for sub app (which is being called by scheduled task) has "Anonymous Authentication - Enabled" and "Windows Authentication - Disabled".
    Moreover, when I try to run the scheduled task manually, it shows "Authentication falure" error in log file as
    HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers.
    Any help would be greatly appriciated.
    Thank you.

    I've been fighting the identical problem since upgrading from CF8 on Windows Server 2008R2 with SSL enabled.  The main CF application's folder is set for Windows Authentication  This is happening on two different test servers- one running CF10 and the other running CF11, both of which had been running CF8 tasks with no problems.  IIS settings for the subfolder with the scheduled task have only Anonymous authentication enabled (which is set to use the Application Pool identity that the Application Pool's identity is set to).  I've set the file system permissions to allow Everybody, as well as IUSR, on the .CFM in question, and have tried using both HTTP and HTTPS forms of the URL in the scheduled task settings.
    I can use the same HTTP/HTTPS URL in a browser directly (without authenticating to the server's application first) and the .CFM runs flawlessly.  The CF http.log file shows Status Code=401, and saving the scheduled task output shows "IIS 7.0 Detailed Error - 401.2 - Unauthorized".  What has changed in CF10 and CF11 if the underlying IIS server settings that worked before haven't changed? 
    Thanks,
    Myron

  • How to set schedule task in windows using java code

    Hi,
    i want to set the schedule task in windows os using the java code can any one help me on that
    can any one thinks i need to wright a dll file for that which set the schedule task for me which dll i can use in my java code.
    thanks in advance.

    Maybe this will help you?

  • Certain scheduled tasks do not run anymore after DST change

    Hi everyone,
    I noticed a problem on Server 2012 after daylight savings time was set effective last weekend in March. All scheduled tasks that are configured to run weekly on Monday through Friday don't run anymore! Tasks that are configured to run daily are OK. Shall
    I really put a wrapper script around the executable to check the weekday myself??? Another solution to work around this bug seems to be to set the start day after DST change day, then the weekly Jobs also run OK again.
    Many Greetings
    Michael

    We have experienced the same issues.  Just to put some more information out there (and confirm some points from above):
    We run 12 scheduled tasks on 2 servers.
    Machines are "Microsoft Windows Server 2012 Standard", ver. 6.2.9200 build 9200, HP ProLiant BL460c Gen8
    4 scheduled tasks did fine over the DST switch in March
    8 scheduled tasks failed to run
    All scheduled tasks that ran were set up with
    “Configure For” = “Windows Server 2012”
    All scheduled tasks that failed were set up with
    “Configure For” = “Windows Vista™, Windows Server™
    2008”.
    All scheduled tasks, both affected and unaffected, were scheduled as Weekly, Mon-Fri.
    Changing the "Configure For" field after the tasks failed to run did NOT fix the problem.
    Changing the time of a task after the task failed to run did NOT fix the problem
    Changing the "Start" date of a task after it failed to run DID fix the problem.
    Given that there are not a whole ton more complaints out on the web about this bug, it must be that the bug does not affect every instance of the scheduler on Windows Server 2012.  In other words, it must be only some particular configuration
    of Windows Server 2012 that causes this bug, otherwise surely there would be many many more complaints.  Can people who are experiencing this bug check and post configuration info so perhaps we can determine a common factor?  Thanks.

  • Error while registering plugin for custom schedule task

    Hello,
    I am trying to register a plugin for creating a custom scheduled task. I have referred to the document
    http://docs.oracle.com/cd/E23943_01/doc.1111/e14309/refsched.htm
    Followed the below steps-
    1. Updated the task.xml as below taken from MDS database
    <task>
    <name>AC Target Source Reconciliation</name>
    <class>com.cgc.iam.customconnector.ac.ReconACTarget</class>
    <description>This schedule task reconciles the active users from AC to OIM. This is a one time initial recon</description>
    <retry>0</retry>
    <parameters>
    <string-param required="true" helpText="IT Resource">IT Resource</string-param>
    <string-param required="true" encrypted="false" helpText="FileName">FileName</string-param>
    <string-param required="true" helpText="Admin">Admin</string-param>
                   <string-param required="true" helpText="AdminPassword">AdminPassword</string-param>
    <string-param required="true" helpText="ConfigurationLookup">ConfigurationLookup</string-param>
                   <string-param required="true" helpText="FilePath">FilePath</string-param>
                   <string-param required="true" helpText="ResourceObject">ResourceObject</string-param>
    </parameters>
    </task>
         <task>
    <name>ACRoleReconTask</name>
    <class>com.cgc.iam.customconnector.ac.ReconACRoles</class>
    <description>This scheduled task will reconcile the ACGroups and AC Roles from a csv file that is stored at a shared location</description>
    <retry>0</retry>
    <parameters>
    <string-param required="true" helpText="Admin">Admin</string-param>
                   <string-param required="true" helpText="AdminPassword">AdminPassword</string-param>
                   <string-param required="true" helpText="FilePath">FilePath</string-param>
    <string-param required="true" helpText="GroupLookup">GroupLookup</string-param>               
    <string-param required="true" helpText="RoleLookup">RoleLookup</string-param>               
                   <string-param required="true" helpText="GroupTableName">GroupTableName</string-param>
                   <string-param required="true" helpText="RoleTableName">RoleTableName</string-param>
    </parameters>
    </task>
    2. Imported the task.xml into MDS.
    3. created the plugin.xml as below-
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <plugins pluginpoint="oracle.iam.scheduler.vo.TaskSupport">
    <plugin pluginclass= "com.cgc.iam.customconnector.ac.ReconACTarget" version="1.0.1" name="scheduler element"></plugin>
    <plugin pluginclass= "com.cgc.iam.customconnector.ac.ReconACRoles" version="1.0.1" name="scheduler element">
    </plugin>
    </plugins>
    </oimplugins>
    3. created the plugin.zip with the folder structure as-
    plugin.zip
    plugin.xml
    lib
    jar files
    4. set ant properties
    5. run the command
    java -jar ../../../modules/com.bea.core.jarbuilder_1.7.0.0.jar
    4. registered plugin using ant utility.
    Now, I am getting the below exception-
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Please help.
    Thanks
    sjit

    [echo] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    [echo] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    [echo] at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    [echo] Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    [echo] at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    [echo] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    [echo] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    [echo] at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
    [echo] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.executeInsertRow(UpdatableResultSet.java:8630)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.insertRow(UpdatableResultSet.java:6428)
    [echo] at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_UpdatableResultSet.insertRow(Unknown Source)
    [echo] at oracle.iam.platform.pluginframework.DBStore.updatePluginTable(DBStore.java:395)
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:193)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    [echo] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    [echo] ... 3 more
    [echo] Exception in thread "Main Thread" oracle.iam.platform.pluginframework.PluginStoreException: An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    [echo] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    [echo] at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_1036_WLStub.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    [echo] at $Proxy2.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceDelegate.registerPluginAndReturnStatus(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    [echo] at weblogic.security.Security.runAs(Security.java:41)
    [echo] at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    [echo] at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
    [echo] at $Proxy3.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.utils.PluginUtility.registerPluginAndReturnStatus(PluginUtility.java:279)
    [echo] at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:219)
    [echo] Caused by: oracle.iam.platform.pluginframework.PluginStoreException: An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:222)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    [echo] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    [echo] at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    [echo] Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    [echo] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    [echo] at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    [echo] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    [echo] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    [echo] at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    [echo] at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
    [echo] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
    [echo] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.executeInsertRow(UpdatableResultSet.java:8630)
    [echo] at oracle.jdbc.driver.UpdatableResultSet.insertRow(UpdatableResultSet.java:6428)
    [echo] at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_UpdatableResultSet.insertRow(Unknown Source)
    [echo] at oracle.iam.platform.pluginframework.DBStore.updatePluginTable(DBStore.java:395)
    [echo] at oracle.iam.platform.pluginframework.DBStore.storePlugins(DBStore.java:193)
    [echo] at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPluginAndReturnStatus(PluginManagerImpl.java:90)
    [echo] at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPluginAndReturnStatus(PlatformServiceImpl.java:106)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    [echo] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy735.registerPluginAndReturnStatus(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    [echo] at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    [echo] at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    [echo] at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    [echo] at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    [echo] at $Proxy734.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke(Unknown Source)
    [echo] at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginAndReturnStatusx(Unknown Source)
    [echo] at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    [echo] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    [echo] at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    [echo] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    [echo] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [echo] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    [echo] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    [echo] ... 3 more
    [echo] classpath=/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/spring.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-context.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-utils.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/client/oimclient.jar:/users/oim/Oracle/Middleware/wlserver_10.3/server/lib/wlfullclient.jar:/users/oim/Oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar
    [echo]
    [echo]
    [echo] was_home=null
    [echo]
    [echo]
    [echo] client_home=null
    [echo]
    [echo]
    [echo] xl_home=null
    [echo]
    [echo]
    [echo] mw_home=null
    [echo]
    [echo]
    [echo] newClasspath=/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/spring.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-context.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-utils.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/users/oim/Oracle/Middleware/Oracle_IDM1/server/client/oimclient.jar:/users/oim/Oracle/Middleware/wlserver_10.3/server/lib/wlfullclient.jar:/users/oim/Oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar.:/sample:null/ext/ojdbc14.jar:null/ext/ucp.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/lib/oimclient.jar:null/server/lib/wlfullclient.jar:null/ext/jakarta-commons/commons-logging.jar:null/ext/commons-logging.jar:null/ext/spring.jar:null/ext/spring.jar:null/server/lib/webserviceclient+ssl.jar:null/platform/iam-platform-utils.jar:null/server/lib/wlclient.jar:null/server/lib/weblogic.jar:null/platform/iam-platform-auth-client.jar:null/features/iam-features-system-configuration.zip:null/features/iam-features-identity.zip:null/features/iam-features-platformservice.zip:null/ext/log4j-1.2.8.jar:null/lib/XellerateClient.jar:null/lib/xlAPI.jar:null/lib/xlLogger.jar:null/lib/xlVO.jar:null/lib/xlUtils.jar:null/lib/xlCrypto.jar:null/lib/xlAuthentication.jar:null/lib/xlDataObjectBeans.jar:null/ext/oscache.jar:null/ext/javagroups-all.jar:null/lib/xlFvcUtil.jar:../../../iam/iam-lib/internal/jrf-api.jar:null/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar:null/ext/jrf-api.jar:null/oracle_common/webservices/wsclient_extended.jar:null/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
    [echo] Error in registering the plugin. An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    [echo]
    [echo] Error occured during the use of plugin registering utility. An error occurred while storing the plugin in store ORA-00001: unique constraint (DEV1_OIM.PLUGINS_UNIQUE_NAME) violated
    BUILD SUCCESSFUL
    Edited by: sjit on Nov 23, 2012 5:20 AM

  • Exception Thrown When a Scheduled Task Runs for Many Hours

    In the Oracle documentation here (http://download.oracle.com/docs/cd/E10391_01/doc.910/e10367/toc.htm#CACGBDAD) it states that the below exception can get thrown when a scheduled task runs for many hours (on OAS) and can be ignored:
    Primary Server went down going to get a fresh object elsewhere in the cluster.
    com.evermind.server.rmi.RMIConnectionException: LRU connection
    Just want to find out from other users that get this error (If there is any), have you found the scheduled task actually completes, then the error is thrown or what?
    I just don't feel comfortable that one of our tasks is completing properly due to this exception occuring and causing the task to stop midway through processing...

    Hi,
    I've had trouble with scheduling PowerShell scripts in the past as well. You can try running your script in the SYSTEM context by launching a cmd prompt this way, just to verify that the issue isn't related to the account itself:
    http://myitforum.com/cs2/blogs/jmarcum/archive/2010/08/25/150872.aspx
    This method does require PSExec, there's a link to the tool in the post if you don't already have it on hand.
    You can also start PowerShell as SYSTEM and play around if you need to:
    http://blogs.technet.com/b/ben_parker/archive/2010/10/28/how-do-i-run-powershell-exe-command-prompt-as-the-localsystem-account-on-windows-7.aspx?Redirected=true
    Not the best answer, but hopefully it helps shed a little light on the issue.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • GTC Scheduled task recon error - Bootstrap connections

    Hi,
    Well, I am getting an error when running the scheduled task which is created automatically when we install GTC conn.
    I am running recon of data stored on files and my App Server is IBM WAS.
    I am trying to figure out where I should set up the correct bootstrap port number which in my case SIB_ENDPOINT_SECURE_ADDRESS = 7289, and not 7286.
    It seems to happen only when I run this scheduled task. For example, built-in scheduled tasks and a full custom scheduled task work properly.
    Does anybody know which file or OIM table I should change to redirect it to the right bootstrap port?
    BTW, it is a replicated environment and WAS was installed on a different profile, that is why we have a different bootstrap port numbers, not the default ones.
    Regards,
    Hugo
    +[3/12/10 16:56:20:400 BRT] 00000035 SystemOut O ERROR,12 Mar 2010 16:56:20,399,[XELLERATE.JMS],Class/Method: MessageQueue/connect encounter some problems: CWSIT0006E: It was not possible to contact any of the specified bootstrap servers. Please see the linked exception for further details. Bootstrap connections were attempted to: [Default:7286:BootstrapSecureMessaging]+
    +com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It was not possible to contact any of the specified bootstrap servers. Please see the linked exception for further details. Bootstrap connections were attempted to: [Default:7286:BootstrapSecureMessaging]+

    An update, in case someone got the same error.
    I just changed the file resources.xml which is located in a folder under WAS_HOME.
    Old value: name="ProviderEndpoints" type="java.lang.String" value="Default"
    New value: name="ProviderEndpoints" type="java.lang.String" value="<your hostname>:7289:BootstrapSecureMessaging"
    At least, the error is not being logged anymore.

  • Most straight forward approach for monitoring scheduled tasks in SCOM 2012

    Hi,
    This one should be easy (?): looking for the most straight forward approach for monitoring scheduled tasks in SCOM 2012.
    Best regards
    Thanks in advance, Best Regards

          <Reference Alias="SC">
            <ID>Microsoft.SystemCenter.Library</ID>
            <Version>6.0.6278.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Windows">
            <ID>Microsoft.Windows.Library</ID>
            <Version>6.0.6278.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="MicrosoftWindowsServerLibrary6063215">
            <ID>Microsoft.Windows.Server.Library</ID>
            <Version>6.0.7061.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Health">
            <ID>System.Health.Library</ID>
            <Version>6.0.6278.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="System">
            <ID>System.Library</ID>
            <Version>6.0.6278.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
    You also need to add/copy the reference for the Scheduled Tasks MP you are using for other OSs. The above is from the MP for Windows 2012 Scheduled Tasks. Most of the existing MPs available for scheduled tasks already cover Windows 2003/2008 R2, I just extended
    support for 2012.

  • KM Scheduler Task vs SAP Netweaver Scheduler for java

    Hi Experts,
    I need to know the key differences between KM Scheduler task implementation and SAP Netweaver Scheduler for java task implementation. Which one is better and why?
    Thanks for looking into this and for you patience in answering the question.
    Regards,
    Kiran K Grandhi.

    Hi,
    Please look at this help
    [SAP NetWeaver Scheduler for Java|http://help.sap.com/saphelp_nwce10/helpdata/en/44/03d66015ee10b3e10000000a11466f/content.htm] and [KM Scheduler task|http://help.sap.com/saphelp_nw04s/helpdata/en/3a/bc37b5789dee4eaa8005bff84f14cf/content.htm]
    Best Regards
    Vijay K

  • Windows Server 2008 R2 GPO schedule task for copying folders

    Dear spicers,I have spend many hours trying to get my gpo working to sync a fewshared networkfolders with office templates to users default office 2010 template location.I created a user conf gpo: preferences\control panel settings\schedule tasks\Action: UpdateName: Mirror FoldersRun: \\dfsname\netlogon\scrips\RobocopyScript.cmdMarked: Enable (scedule task runs at specific time)schedule taks: At system startup Starttime: 8:00:00Advanced: everything unmarkedTab settings: everything unmarkedTab common: Marked Run in logged-on users....Script: robocopy "\\dfslocation\public\Prog\Documentsjablonen\Office" "C:\users\%username%\AppData\Roaming\Microsoft\Sjablonen" /MIR /R:10 /W:30 Is there anyone who is able to help me out please. I have read many topics on the internet etc. When I run the script local it is working.Thanks in advance.Kind...
    This topic first appeared in the Spiceworks Community

    Thank you for your help with this but I was able to get it resolved using these steps.
    Here is the fix that worked for me.
    Start > Run > regedit
    Navigate to HKLM\SOFTWARE\MICROSOFT\RPC\INTERNET 
    Export this key to back it up first, then delete the whole Internet key (and it's sub-keys). 
    Reboot your system
    Task Scheduler should now work.
     https://social.technet.microsoft.com/Forums/windows/en-US/0c438376-1486-4ae4-9847-2de7a8767f27/task-scheduler-service-has-encountered-rpc-initialization-error-in?forum=itprovistasp

  • Schedule task - manager updation for user in oim 11g

    Hi,
    I am in the way of writing a custom schedule task to update manager for the user created in oim.
    I know the procedure of custom scedule task
    I want the code snipet to be written in the execute() method of java class to update the manager for the user
    Could anybody help me with this!

    Hi Gyanprakash,
    How will you retrieve the user detail ..?? i am getting null pointer exception error
    public void execute(HashMap taskParameters) {
    System.out.println("inside the Execute methode");
    System.out.println("Schedule task Arguments "+taskParameters);
    String userId = (String)taskParameters.get("User Login");
    System.out.println("===========input=============== "+userId);
    String passwordex=taskParameters.get("usr_pwd_expire_date").toString();
    System.out.println("===========input=============== "+passwordex);
    String passwordwar=taskParameters.get("usr_pwd_warn_date").toString();
    System.out.println("===========input=============== "+passwordwar);
    Thanks,
    Edited by: Srivatsa.kashyap on May 25, 2012 6:00 AM

  • Which solution is better for schedules task? Console application or windows service?

    I have a "MULTI-LEVEL" XML file that I will be getting on daily basis and I want to accomplish following tasks:
    1) I have to read and parse the "MULTI-LEVEL" XML data
    2) Then I have to set or create some kind of .net service (c#) that read the xml and parse the data once a day (daily)?
    3) Now I have SOAP service from other software where I want to feed this XML data to. The schedules service will compare the XML data with software data and update (or add) based on the comparision.
    For this task, I come to conclusion that there are 2 best ways to do this:
    1) Create a console application and use windows task scheduler to run it everyday
    2) Create a windows service that runs in the background
    Which is a better way (or reliable)  solution to do this task? Please advise

    There are several things to keep in mind when writing an app that is designed to run without a user logged in. One of the most common mistakes is requiring some sort of user input.  Since the task will run without user intervention you don't want
    any sort of calls to Console.ReadLine, MessageBox.Show, etc.  They will cause the task to freeze and eventually need to be terminated.  You also don't want to rely on any sort of desktop apps running since a user may or may not be logged on at the
    time.
    Also be aware that a task can be scheduled to run under any user context.  As such you either need to ensure it runs under an account with sufficient privileges or that your app needs no special privileges.  You mentioned you tried to run it from
    bin\debug but you most likely have your project under your Documents directory.  Only you would have permissions to that folder and therefore will run into issues if the task is run under a different context.  You also mentioned you put it in the
    C:\ but users don't have write privileges to that folder and therefore if you tried to write a file out it would fail. If you need to read/write files then you should pick a common location that all users have access to or at least the one that will run the
    scheduled task. Be aware that, by default, Task Scheduler will not run a task elevated. You need to check the option to run elevated when you configure the user to run the task under.
    One of the key things to ensure you do with a task is verify it is working properly as a normal app.  You should also ensure that you have good logging so that if it does fail you can trace down the failure more easily.  One common thing that people
    tend to do in console apps is put a try-catch around the main function and display a message if an unhandled exception occurs. This is going to cause problems in a task.  Simply log the exception and rethrow it so Task Scheduler will flag the run as a
    failure.
    If you still cannot figure out why your task is failing then please add some logging and then tell us what code is being run at the time and what the failure is.

Maybe you are looking for

  • Parallel process in select query

    Hi Experts its production stats are good indexes are good issue : a select query is taking time 20min , the indexes exists on the where clause columns, I tried the query using parallel hint it gave the results iin 20 sec. the DOP of the table set to

  • MacBook ProS not finding router

    Recently BOTH my MacBook Pros (2010) have consistently failed to find my wireless router.  This is a new problem and applies to both laptops - but not necessarily at the same time Other networks appear on the list - but my network does not appear, re

  • Upgrading to iPhoto 6 - still possible?

    Hi I have a Mac Mini 1.13ghz running 10.4.11. I use it purely for storing my music and photos, and syncing them to Apple TV and my iPhone. I wish to use Snapfish by HP to share my photos online, and they have an iPhoto Exporter available on their sit

  • Converting fromula in pivot tables in EXcel 2013

    I'm looking to convert to Formulas in Excel 2013. The Help function says that the functionality resides in the pivot table tools-> Analyze->in the Calculations group> click OLAP tools > click convert to formula This is grayed out in my worksheet and

  • Enhancement (HR ABAP)

    HI Friends, Pls solve this for me its urgent In  T-code PA30 ... giving PERNR , infotype 0015 and subtype after giving valid values I say CREATE Now in the second screen there is a AMOUNT field which will be blank. My req is to populate the data in t