Project/ServerSession creation error

I have an web-based application that allows users to configure their DB information on a web page.
Upon startup, the application tries to connect to the database with the following code:
Server serverSession = null;
try {
MyProject tlProject = new MyProject(); // My Project is a Project subclass and builds all of the descriptors
DatabaseLogin login = tlProject.getLogin();
serverSession = tlProject.createServerSession(5, 100);
ConnectionPool readPool = new ReadConnectionPool("ReadPool", login, 5, 100, (ServerSession) serverSession);
serverSession.setReadConnectionPool(readPool);
serverSession.initializeIdentityMaps();
serverSession.logMessages();          
serverSession.login();
} catch (DatabaseException de){
if( serverSession != null ){
serverSession.logout();
serverSession.release();
throw de;
If serverSession.login() throws a DatabaseException, the user is redirected to the config page and this operation is repeated until a connection is made.
The problem I am having is that any time at least 1 unsuccessful connection is attempted, I get the following error repeated for every mapped field in the application from TopLink once it connects:
Exception [TOPLINK-48] (OracleAS TopLink - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
Exception Description: Multiple writable mappings exist for the field [T_CUSTOMERS.CUSTOMERID]. Only one may be defined as writable, all others must be specified read-only.
Mapping: com.attask.persist.RKOneToOneMapping[_customer]
Descriptor: RKDescriptor(com.attask.model.RKCustomer--> [DatabaseTable(T_CUSTOMERS)])
It is behaving as if the descriptors are duplicated. I have put debug output everywhere I can, but I can't understand what is happening here. It's as if the descriptor information on the previous connection attempts are being saved somehow and that repetative attempts at logging in to the database cause duplication, but I can't see if this is the case.
Does TopLink cache created ServerSessions/Projects/Descriptors/etc. for unsuccessful DB connection atttempts? Any other ideas what could be causing this error?
If the DB configuraiton information is correct on startup, everything works great. This only happens is unsuccessful attempts are made.

This code snippet is a little abbreviated for this example, but the key steps are all there.
Yes, this code is re-executed until no DatabaseException is thrown. So, the Project creation is done repeatedly, the ServerSession is created repeatedly, etc. When serverSession.login() throws an exception, I clean it up in preparation for another attempt.
I did get this to work by only creating the Project 1 time in a static initializer (basically to make it work like a singleton), and reuse that same instance in repeated attempts. It appears that repeated construction of the Project is causing the duplicate mappings to occur.
MyProject is not a singleton, and it is created programmatically not through the work bench. The constructor for the Project is:
public MyProject(Class[] persistentClasses) {
          setName("myproject");
          setConversionManager();
          buildDescriptors(persistentClasses);
buildDescriptors() iterates through the array of classes and uses static methods defined in the Java classes to programmatically build the descriptor (it was easier to keep the actual class and the mapping info in the same .java file). This sounds like a place where problems could be happening, but the only TopLink interaction in this method is at the very end when it calls:
addDescriptor(descriptor);
The behavior is as if this call to addDescriptor() has a memory outside the Project. If I create a Project and call addDescriptor() where else does this get stored? If other TopLink objects keep a record of this, then this is probably the problem I am seeing.
If this is true, then Project should absolutely be a singleton to prevent this from ever happening.
Nate          

Similar Messages

  • Issue Alert created with workflow (Prasanna Adavi posts) - Error project site creation in EPT

    Hi,
    in PROJECT SERVER 2013, after following the Prasanna Adavi  posts on "Setting up an alert for Project Site Issue (and Risk) Alerts using SharePoint
    Designer Workflow" i've saved the site template.
    If i create a site from the template the site creates correctly and workflow Issue Alert works fine. BUT if i add the new template in an EPT, when i create a new Project i receive error in ProjectSiteUpdate (Failedbutnot blocking) and the site failed
    to be created.
    This is the error:
    General•CreateWssSiteContent: Creating project site failed! Project Uid=6fc7f531-8ad7-e311-9415-005056ab29ed, site URL=https://project.companygroup.org/PWA/20140509-TestIssueAlert10, site name=20140509-TestIssueAlert10. System.Runtime.InteropServices.COMException
    (0x8107058A): <nativehr>0x8107058a</nativehr><nativestack></nativestack>Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete the operation, please try again in a few minutes. If you see this message repeatedly,
    contact your administrator. ---> System.Data.SqlClient.SqlException:
    The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_, schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1
    wrapClos at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate,
    Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String&
    bstrWebTemplate, Int32& plWebTemplateId)Microsoft.SharePoint.SPException: Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.
    ---> System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_, schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException
    exception, Boolean breakConnection, Action`1 wrapClos ---> System.Runtime.InteropServices.COMException: <nativehr>0x8107058a</nativehr><nativestack></nativestack>Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete
    the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator. ---> System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_,
    schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapClos at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb,
    Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb,
    Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) --- End of inner exception stack trace --- at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String
    bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.SPWeb.ProvisionWebTemplate(SPWebTemplate
    webTemplate, String webTemplateToUse, SPFeatureWebTemplate featureWebTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(SPWebTemplate
    webTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.SPSite.CreateWeb(String strUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate,
    Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid webId, Guid rootFolderId, Boolean createSystemCatalogs, Guid appInstanceId, String appWebDomainId) at Microsoft.SharePoint.SPSite.SPWebCollectionProvider.CreateWeb(String strWebUrl, String strTitle,
    String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid appInstanceId) at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String
    strWebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere, Guid appInstanceId) at Microsoft.Office.Project.Server.BusinessLayer.AdminProjectSiteAllocator.CreateSPWeb(ProjectSiteConfigurationInfo configInfo, SPSite topSite):?WSSCreateSiteFailure
    (16400). Details: id='16400' name='WSSCreateSiteFailure' uid='cb09143a-8ad7-e311-9415-005056ab29ed' projectUID='6fc7f531-8ad7-e311-9415-005056ab29ed' workspaceUrl='https://project.companygroup.org/PWA/20140509-TestIssueAlert10/20140509-TestIssueAlert10' projectWorkspaceName='20140509-TestIssueAlert10'.
    •Queue:?GeneralQueueJobFailed (26000) - CreateWssSite.CreateWssSiteMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='cc09143a-8ad7-e311-9415-005056ab29ed' JobUID='bcc7f531-8ad7-e311-9415-005056ab29ed' ComputerName='4c7454d7-d6c8-42e7-a071-01921e89dbd5'
    GroupType='CreateWssSite' MessageType='CreateWssSiteMessage' MessageId='1' Stage='' CorrelationUID='9b3a8f9c-a1f4-e0a1-9dbd-59e8ea307386'. For more details, check the ULS logs on machine 4c7454d7-d6c8-42e7-a071-01921e89dbd5 for entries with JobUID bcc7f531-8ad7-e311-9415-005056ab29ed.
    Can someone help me?
    Regards
    Daniele
    Daniele

    Thanks Adavi,
    i've created the workflow in a placeholder template for test purpose and it works. I confirm you dependence from:
    - App Configuration Management Service (hidden in TechNet but you receive error if is not active);
    - User Profile Service and Sync Service active;
    - Profile Syncronization started;
    The error occurs when i create a new project with the site template created with the issue list workflow inside.
    I'll wait for your test and tomorrow i'll test it in an other environment to exclude installation dependence.
    Daniele

  • Creation error of EJB

    Hi!
    I ran into the following problem when referencing the public parts of
    an external j2ee library project stored in the NWDI. Specifically I would
    like to reference an API part for having a correct build path during development.
    Unfortunately I can create this reference but afterwards the NWDS tells
    me that it requires to rebuild the ejb-jar.xml and the ejb-j2ee-engine.xml.
    This automated refactoring leaves me with two 'empty' files, having all
    my ejb definitions removed.
    I tried to define new stateless ejbs by creating them via the context menu
    and ran into the error 'Not able to create Session Bean'. In order to find out
    what happened, I checked the .log file of the NWDS in my workspace folder
    and found the following lines:
    com.tssap.j2ee.ui.ejb.external.EjbCreationException: Creation error of EJB
         at com.tssap.j2ee.ui.ejb.external.EjbFactory.createSessionBean(EjbFactory.java:304)
         at com.tssap.j2ee.ui.ejb.external.EjbFactory.createSessionBean(EjbFactory.java:91)
         at com.tssap.j2ee.ui.perspective.core.action.CreateEjbInPackageActionProvider$CreateStatelessSessionBeanInPackageAction.run(CreateEjbInPackageActionProvider.java:468)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         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:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Nested exception -
    com.tssap.j2ee.model.J2eeCreateException: Creation error of EJB
         at com.tssap.j2ee.model.ejb.impl.EjbProject.createSessionBean(EjbProject.java:155)
         at com.tssap.j2ee.model.ejb.impl.EjbModule.createSessionBean(EjbModule.java:385)
         at com.tssap.j2ee.ui.ejb.wizard.internal.CreationFactorySemanticAPI.createEJB(CreationFactorySemanticAPI.java:115)
         at com.tssap.j2ee.ui.ejb.wizard.internal.CreationFactorySemanticAPI.createSessionBean(CreationFactorySemanticAPI.java:55)
         at com.tssap.j2ee.ui.ejb.external.EjbFactory.createSessionBean(EjbFactory.java:301)
         at com.tssap.j2ee.ui.ejb.external.EjbFactory.createSessionBean(EjbFactory.java:91)
         at com.tssap.j2ee.ui.perspective.core.action.CreateEjbInPackageActionProvider$CreateStatelessSessionBeanInPackageAction.run(CreateEjbInPackageActionProvider.java:468)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         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:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Does anyone has been confronted with such an error before and could give
    me a hint about how to solve this problem.
    Kind regards,
      Christian Kreutzfeldt

    I resolved the problem myself by creating a new library project where I added
    the libraries stepwise until building the referencing project failed. The library
    project contains the hibernate framework which includes a file named jboss-j2ee.jar.
    In some way or another this conflicts with the NWDS which leads to failures
    when updating the ejb-jar.xml and ejb-j2ee-engine.xml files.

  • Download Helper, even with paid converter upgrade, gives "Invalid Capture File" errors and will not record audio, with "File Creation Error - Unable to rename/copy audio file" Error.

    Download Helper Screen Capture worked to capture video if the default "no audio" option is active. But, no audio. The "speakers" or "microphone" audio options are confusing....the audio to be captured is from the video, so what do you choose? With either "speakers" or "microphone" selected, the captured file has poor audio and no video. Re-capture efforts (speakers) get "Invalid capture file error" and "File Creation error- Unable to rename/copy audio file"
    The paid upgrade of "Converter" doesn't work.
    Instructive documentation - not very good.
    Suggestions - Need time delay between initiation of "Record" and starting the video to be recorded.
    Could use timer tracking of the record process.
    Are there operating system limitations? (Have Windows XP Pro)

    That is an issue for the developer of that Download Helper.

  • Trying to make a dvd from a project and this error message appears .The project could not be prepared for publishing because an error occurred. (-2125)

    Trying to make a dvd from a project and this error message appears .The project could not be prepared for publishing because an error occurred. (-2125)

    Hi
    Error -2125
    OK Error code - 2125 usually indicates that the movie is to large.
    It use to pop up when going to iDVD !
    iDVD - DO NOT CARE ABOUT Gbs at all. I got movies on 500Mb that do not fit and 50Gb that fits nicely.
    iDVD - ONLY CARES ABOUT - Duration. Duration is Movie time + MENU TIME. Choice of
    menu and animation of this can take lost of "DURATION" 15 minutes or even more.
    Choice of encoding method and use of SL or DL DVDs determine the DVD limit.
    iDVD 08 & 09 & 11 has three levels of qualities.
    iDVD 6 has the two last ones
    • Professional Quality (movies + menus up to 120 min.) - BEST
    • Best Performances (movies + menus less than 60 min.) - High quality on final DVD
    • High Quality (in iDVD08 or 09) / Best Quality (in iDVD6) (movies + menus up to 120 min.) - slightly lower quality than above
    DL DVDs can store about double of these times.
    ALTERNATIVE - The Error Code can indicate that free space on Start-up (BOOT) hard disk is
    less than 25Gb (my minimum)
    calbe - wrote
    If you are getting OSStatus error -2125, I've seen this caused by the computer display sleep settings.
    Try changing the sleep settings to never and see if you are able to export.
    Yours Bengt W

  • I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).

    I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).  I'm running iMovie 09 v. 8.0.6 on a iMac with OSX v 10.6.8, 2Ghz core duo, 1GB 667 Mhz DDR2 SDRAM.  Any ideas why?

    That particular error comes up for a number of reasons, sometimes it's the size of the movie you're trying to export. Bengt Wärleby a longtime contributor to the iMovie Discussion Group has advised a number of people on this error code, so I am going to link to his latest advice he's given to anyone trying to export to DVD from iMovie: Bengt's tips for great DVDs.
    Specifically, try bypassing Share to iDVD by using Share to Media Browser instead.
    In the Share to Media Browser dialog box choose the Large Size.
    When(If?) it gets through that process, quit iMovie altogehter then go to iDVD.
    Create a new project and click on the Media button near the lower right hand side of the Project Window.
    Then click the Movies button in the Browser window just above that.
    Under the iMovie star icon you should see the name of the project you shared out from iMovie.
    Drag that into the project and burn the DVD.
    If it's still to large or you get the same -2125 error code trying to Share using the Medium size instead. But again if you really get stuck consult Bengt Warleby's User tips:
    Bengt's tips for great DVDs

  • IMovie '09 "Unable to Prepare Project for Publishing" error (-2009)

    Please help ! I have just created a small movie in iMovie '09 from imported clips from Sony Handycam with miniDV tapes. All clips imported easily and can be viewed and edited. Though when I try to share the project to iTunes or even export it to my desktop I get the message "Unable to prepare the project for publishing" error (-2009).
    I have been searching the forum and the web for an answer or quick fix and I see none, though i do see that many people are having this same issue. I already have all permission set to read & write on all the appropriate folders. I don't know what else to do.....I was hoping to have this project done for a Christmas present for my wife.
    Please help .... ! ! !

    I think I know what was the problem in my case. My project-file wasn´t very large, but I imported all my movies in one single event. After splitting the movies up into different events, I was able to export my project....

  • Service Contracts Billing Schedule Creation Error

    Hi,
    I have a requirement of creating service contracts from back-end for which I am using the oks_contracts_pub.create_contract_header, create_service_line, and create_bill_schedule. I am creating my contracts with active status and renewal type of EVN (Header level), FUL(Line Level). My contract is of type subscription. The contract header and line are creating fine but the Bill schedule API is throwing an UNEXPECTED ERROR. The billing schedules need to be created based on accounting rule which can be quarterly or monthly. I have included the bill schedule code (hard coded values) for review. Any help is greatly appreciated.
    Also the version I am working on is R12
    ________________________________________________CODE___________________________________________________________________
    CREATE OR REPLACE PROCEDURE BILLING_SCHEDULE AS
    l_strm_level_tbl OKS_BILL_SCH.STREAMLVL_TBL;
    v_bill_qtrs NUMBER := 0;
    v_bill_mths NUMBER := 0;
    v_bill_days NUMBER := 0;
    v_net_amount NUMBER := 468;
    v_acct_rule_name VARCHAR2(50) := 'QUARTERLY';
    v_amt_per_day NUMBER;
    x_error_locator VARCHAR2(2000);
    v_start_date DATE := '04-MAY-2010';
    v_end_date DATE := '25-MAY-2010';
    x_return_status VARCHAr2(3);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    v_billing_sequence NUMBER;
    x_chr_id NUMBER := 17000;
    x_line_id NUMBER := 223248604345353294444923586786456728480;
    g_day_uom VARCHAR2(10) := 'DAY';
    g_month_uom VARCHAR2(10) := 'MTH';
    g_quarter_uom VARCHAR2(10) := 'QTR';
    v_amt NUMBER;
    v_invoicing_rule_id NUMBER := -2;
    BEGIN
    --Create Billing Schedule based on accounting rule
    okc_context.set_okc_org_context;
    MO_GLOBAL.INIT('OKS');
    MO_GLOBAL.SET_POLICY_CONTEXT('S', 83);
    v_bill_qtrs := 0;
    v_bill_days := 0;
    v_bill_mths := 0;
    SELECT NVL(v_net_amount, 0)/(v_end_date - v_start_date)
    INTO v_amt_per_day
    FROM dual;
    dbms_output.put_line('Calculated amt per day ' || v_amt_per_day);
    IF v_acct_rule_name LIKE '%QUARTERLY%' THEN
    --Quarterly billing schedule
    SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
    v_start_date)/3),
    v_end_date - ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3))
    INTO v_bill_qtrs,
    v_bill_days
    FROM dual;
    dbms_output.put_line('Calculated the qtrs and days');
    IF v_bill_qtrs > 0 THEN
    SELECT (ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3)) - v_start_date)*v_amt_per_day
    INTO v_amt
    FROM dual;
    dbms_output.put_line('Calculated qtr amt');
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    -- l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_quarter_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
    l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for QTR');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for QTR');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Quarterly schedule creation error ' || x_msg_data);
    ---DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    -- RETURN;
    END IF;
    END IF;
    IF v_bill_days > 0 THEN
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    dbms_output.put_line('sequence '||v_billing_sequence);
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_periods := 1;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_net_amount;--v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_net_amount;--v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for QTR days');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for QTR days ' || v_bill_days || ' ' || x_return_status);
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Day schedule, for quarterly accounting rule, creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    ELSE
    --Monthly billing schedule
    SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
    v_start_date)),
    v_end_date - ADD_MONTHS(v_start_date, FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)))
    INTO v_bill_mths,
    v_bill_days
    FROM dual;
    dbms_output.put_line('Calculated the mths and days');
    IF v_bill_mths > 0 THEN
    SELECT (ADD_MONTHS(v_start_date,FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date))) - v_start_date)*v_amt_per_day
    INTO v_amt
    FROM dual;
    dbms_output.put_line('Calculated the mths amt');
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_month_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
    l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for MTHS');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for MTHS');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Monthly schedule creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    IF v_bill_days > 0 THEN
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_periods := 1;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for MTH days');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for MTH days');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Day schedule, for monthly accounting rule, creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    END IF;
    COMMIT;
    EXCEPTION
    when others then
    dbms_output.put_line('Error ' || sqlerrm);
    END;
    Thanks,
    Yash.

    Hi There,
    I have a similar requirement to create rental service contracts and create billing schedules.
    Can you please pass on your functional docs so that i can refer to them.
    Thanks,
    Raidu

  • Request creation error for mitigation control workflow

    Dear Expert,
             I had activiate the workflow from RAR to CUP on Mitigated User assignment, I had completed following customizing:
    1)RAR->configaration->Workflow
    2)CUP->configaration->initiator, stage, path.
    but when I created mitigated user assignments in RAR, after click "Submit", error popup: "Request creation error"
    can some one help?
    thanks!

    Dear,
         the log is below:
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 1:33:16 PM com.virsa.cc.common.SAPAdapter serverExceptionOccurred
    INFO: Exception in Server YYY:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu May 20 13:33:16 CST 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=YYY GWHOST=visoil01 GWSERV=SAPGW00
    ERROR       service 'SAPGW00' unknown
    TIME        Thu May 20 13:33:16 2010
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -3
    MODULE      niuxi.c
    LINE        1732
    DETAIL      NiPGetServByName2: service 'SAPGW00' not found
    SYSTEM CALL getservbyname_r
    COUNTER     375
    May 20, 2010 2:10:50 PM com.virsa.cc.workflow.bo.WorkflowBO submit
    INFO: END POOINT URL: http://9.186.143.129:50100/AEWFRequestSubmissionService_5_2/Config1?style=document
    May 20, 2010 2:10:50 PM com.virsa.cc.workflow.bo.WorkflowBO submit
    INFO: before submit:
    May 20, 2010 2:10:50 PM com.virsa.cc.workflow.bo.WorkflowBO submit
    INFO: wftype: MITIOBJ reqid: GRC01
    May 20, 2010 2:10:50 PM com.virsa.cc.rulearchitect.dao.dto.MitObjDTO getObjContext
    FINEST: validfrom: 2010-05-20 validto: 2011-05-20
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: MITREFNO
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: MOMITREFNO
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: CT01
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: RISKID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: MORISKID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: ZC02
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: LANG
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: LANG
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: EN
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: MONITORID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: MONITORID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: GRC01
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: Integer
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: STATUS
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: MOSTATUS
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: 0
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: DATE
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: VALIDFROM
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: VALIDFROM
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: 05/20/2010
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: DATE
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: VALIDTO
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: VALIDTO
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: 05/20/2011
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: BU ID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: BUID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: null
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: Approver ID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: MOAPPROVERID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: null
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: OBJTYPE
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: OBJTYPE
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: U
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Data Type: String
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Descripton: OBJID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Name: OBJID
    May 20, 2010 2:10:50 PM com.virsa.cc.xsys.aewf.SubmitAEWorkflow setProcessContext
    INFO: Value: 207471
    May 20, 2010 2:10:50 PM com.virsa.cc.workflow.bo.WorkflowBO submit
    INFO: Return code: 2010 Message: com.virsa.ae.core.ObjectNotFoundException: Invalid Priority Value : MO_HIGH workflow id: null Status: null
    May 20, 2010 2:10:50 PM com.virsa.cc.workflow.bo.WorkflowBO submit
    WARNING: 2010: null

  • Every time I convert a CVI project to Visual C++(6.0) project, there are errors: easyio.fp, fieldpoint.fp,niimaq.fp

    Every time I convert a CVI project to Visual C++(6.0) project, there are errors:
    Wizard was unable to locate the following function panel modules referenced by your project: easyio.fp
    Wizard was unable to locate the following function panel modules referenced by your project: fieldpoint.fp, niimaq.fp
    what's the problem?

    Every time I convert a CVI project to Visual C++(6.0) project, there are errors:
    Wizard was unable to locate the following function panel modules referenced by your project: easyio.fp
    Wizard was unable to locate the following function panel modules referenced by your project: fieldpoint.fp, niimaq.fp
    what's the problem?

  • Delivery Note to Subcontract creation error "Essential transfer parameters

    Hi
    I am facing issue in return delivey
    Delivery Note to Subcontract creation error "Essential transfer parameters are missing in record:000001".
    Could you please let me know the casue of this error and where exactly i can see error.
    Regards
    vikcy

    Hi Vicky,
                   Check If the Customer number(Plant) has been maintained in the vendor master record control data and the vendor should also be maintained in the customer master data. Once you maintain this system determines the shipping point based on the  customer master and the shipping data missing. Kindly try delivering after maintaining these and let me know If you need any more information on this.
    Regards
    Ram Pedarla

  • RoboHelp 11 - When previewing topics from within the project, a script error displays: 'HHComponent Activator' is undefined. How do you get rid of this script error?

    RoboHelp 11
    When previewing topics from within the project, a script error diplays: 'HHComponent Activator' is undefined.
    How do you get rid of this script error?

    Hi there
    Have you tried clicking Help > Updates and applying the service release?
    If not, I'd start with that.
    Cheers... Rick

  • How to add new Attachment category in Projects master creation form

    Hi Dudes,
    I would like to know that how to add new Attachment category in Projects master creation form.
    It defaults as Miscellaneous.
    I created new category by navigated Application developer - attachment - category
    but i dont know how to assign the above created category for Project master creation form
    Can you pls throw some lights into this little dark room?

    See http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458262.htm
    Scrool down to the "Category Assignments Window".
    This is where you assign an attachment category to your form/function.
    See http://erpschools.com/articles/oracle-attachment-functionality-adding-an-attachment-to-a-form for step-by-step screenshots.
    Sandeep Gandhi

  • Child creation Error on vms HELP

    Hi,
    Iam trying to execute a file from withing a java program on VMS This is my code
    public class BAMBOE {
      public static void main(String[] args) { 
        BamboeRunner boe = new BamboeRunner();
        boe.start();
    import java.io.*;
    public class BamboeRunner extends Thread implements Runnable { 
      public void run() {
        try {
          Process process = Runtime.getRuntime().exec("@SIMPEL");
          process.waitFor();
          return ;
        catch (Exception e) {
          e.printStackTrace();
          return ;
    }But I keep getting the following error:
    java.io.IOException: Child creation error: error 100052
    VMS error code: error 100052
            at java.lang.UNIXProcess.<init>(Compiled Code)
            at java.lang.Runtime.exec(Compiled Code)
            at java.lang.Runtime.exec(Compiled Code)
            at BamboeRunner.run(Compiled Code)Anybody that can help me fix this problem please??

    I've managed to get somewhere with this...
    I've got it to work by having the system command I want to run in a com file and specifying the full path to that file in the exec method without the '@'...
    e.g.
    Process proc = Runtime.getRuntime.exec("ppoi_dev:[user.dba_ppoi.matt.proc]proc.com");
    where the file
    ppoi_dev:[user.dba_ppoi.matt.proc]proc.com
    contains
    $ dir
    When I run this I can get the output from the dir command by reading from the InputStream of the Process object.
    Have fun.

  • CUSTOM VIP CREATION ERROR

    Hi all, i have tried to define a new VIP on my ORACLE 11gR2 RAC cluster, in order to manage third-party component by using ORACLE Clusterware.
    I have used the info written on the ORACLE manual "Oracle Clusterware Administration and Deployment Guide E10717-04" at page 5-15.
    I have executed the command "/u01/app/grid/bin/appvipcfg create -network=1 -ip=xx.xxx.xxx.140 -vipname=appsVIP -user=root", as the manual says, from root user.
    My environment is AIX 6.1.
    Unfortunately, i get an error (reported following) but i am not able to solve it.
    Please, may you help me?
    Thanks
    Marco
    CUSTOM VIP CREATION ERROR
    [nodo01][]>/u01/app/grid/bin/appvipcfg create -network=1 -ip=xx.xxx.xxx.140 -vipname=appsVIP -user=root
    Production Copyright 2007, 2008, Oracle.All rights reserved
    2010-05-31 18:39:54: Creating Resource Type
    2010-05-31 18:39:54: Executing cmd: /u01/app/grid/bin/crsctl add type app.appvip.type -basetype cluster_resource -file
    /u01/app/grid/crs/template/appvip.type
    2010-05-31 18:39:55: Create the Resource
    2010-05-31 18:39:55: Executing cmd: /u01/app/grid/bin/crsctl add resource appsVIP -type app.appvip.type -attr
    USR_ORA_VIP=xx.xxx.xxx.,START_DEPENDENCIES=hard(ora.net1.network)
    pullup(ora.net1.network),STOP_DEPENDENCIES=hard(ora.net1.network),ACL='owner:root:rwx,pgrp:root:r-x,other::r--,user:root:r-x'
    CRS-0247: User name or group name is invalid
    CRS-4000: Command Add failed, or completed with errors.
    Command return code of 1 (256) from command: /u01/app/grid/bin/crsctl add resource appsVIP -type app.appvip.type -attr
    USR_ORA_VIP=xx.xxx.xxx.,START_DEPENDENCIES=hard(ora.net1.network)
    pullup(ora.net1.network),STOP_DEPENDENCIES=hard(ora.net1.network),ACL='owner:root:rwx,pgrp:root:r-x,other::r--,user:root:r-x'
    2010-05-31 18:39:56: ###### Begin Error Stack Trace ######
    2010-05-31 18:39:56: Package File Line Calling
    2010-05-31 18:39:56: --------------- -------------------- ---- ----------
    2010-05-31 18:39:56: 1: crsconfig_lib crsconfig_lib.pm 7474 crsconfig_lib::error
    2010-05-31 18:39:56: 2: main appvipcfg.pl 241 crsconfig_lib::system_cmd
    2010-05-31 18:39:56: 3: main appvipcfg.pl 93 main::config
    2010-05-31 18:39:56: 4: main appvipcfg.pl 74 main::process_arguments
    2010-05-31 18:39:56: ####### End Error Stack Trace #####
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hi,
    On Solaris 10 and Oracle Grid Infrastructure 11.2.0.2 did the following. Posting this as it might be useful to someone else. Installed Grid Infrastructure as oracle.
    As root:
    # ${GRID_HOME}/bin/appvipcfg create -network=1 -ip=<vip_address> -vipname=<vip_name> -user=root
    In the above command, if you are wondering what -network=1 is, got useful info from "Oracle GoldenGate high availability using Oracle Clusterware" white paper at http://www.oracle.com/technetwork/middleware/goldengate/overview/ha-goldengate-whitepaper-128197.pdf
    As per the white paper, if you do
    crsctl status resource -p | egrep -i 'network|subnet' | egrep -i 'name|subnet'
    output will look something like this:
    NAME=ora.net1.network
    USR_ORA_SUBNET=10.2.0.0
    net1 in NAME indicates this is network 1, and second line indicates the subnet on which the vip will be created.
    # ${GRID_HOME}/bin/crsctl setperm resource <vip_name> -u user:oracle:r-x
    I did the following as oracle:
    Oracle_Prompt> ${GRID_HOME}/bin/crsctl start resource <vip_name>
    If you want to relocate this vip to other node in the cluster:
    Oracle_Prompt> ${GRID_HOME}/bin/crsctl relocate resource <vip_name> -s <source_node> -n <target_node>
    Hope this helps.
    Thanks,
    Moorthy.
    帖子经 Moorthy Rekapalli编辑过

Maybe you are looking for

  • Brand new ipod classic won't sync to itunes 11.

    I just got a brand new 160gb ipod classic for Christmas, and when I tried to sync it with itunes it wouldn't work. I ran the diagnostics and it failed the sync tests, and apple's help/troubleshooting page does not give any solutions to this problem.

  • Safari Hangs and has to be restarted

    Safari will open, will navigate to a few sites and then just stops working. It needs a force quit, then does the same the next time it's opened. I've run a disk verification and repair. I've also deleted the flashplayer files (as recommended by some)

  • How To Create Credit Memo Request In CRM

    Hi Friends, I have to create CMR i.e. Credit Memo Request with Header and Item details but I am not able to do it. Kindly let me know the BAPI / FM with some example. Also, do let me know which all values are mandatory for the FM or BAPI structures.

  • How to format my pc without lose all my itunes stuff

    I have to format my pc but I don't want to lose all my settings in itunes,my songs,libraries and most of all my purchased games,how can I do??

  • OSTC Query Not Showing Correct Percent If Component is Changed

    Hello gurus and experts...here is an interesting question: Question:  Why does a query not report proper Sales Tax Code percentage from OSTC table when a component is updated? Sales Tax Code (STC) of CA-37B, with a rate of 10.25% is made up of three