Unable to create greater than filter using query helper

I am trying to create a filter between  2 class
String queryString = "FirstClass.age > SecondBrother.age";
Queryhelper.createFilter(queryString);
Am getting expection " chainedextractor cannot be cast to java.lang.comparable"
Can we not have chained extractor in both argument ??

Hi
I'm pretty sure this will not work. In effect what the statement should evaluate to is an instance of a GreaterFilter but there is no GreaterFilter that takes an extractor for both the field to be checked and the value to be compared to. Neither do any of the other built in Filter implementations take two extractors as parameters so you couldn't do something like "FirstClass.age = SecondBrother.age" either. Obviously you could write a custom GreaterFilter that does do what you want but it would not be used by the QueryBuilder or CohQL.
JK

Similar Messages

  • Create a between filter using months names ...

    Hi, I need to create a dashboard filter using month names in a between statement for examples:
    From: January - To August
    the problem is when I do this the Obiee server made a filter by alphabetic order, so for the example the result will be nothing (because A is prior to J)...
    How can I solve this
    (My boss is in my neck and I have a family to feed...)
    Thanks in advance...

    Hi,
    mma as given you the solution which would be helpful.
    I can say workaround for this,what ever date parameter you want to convert to january....december
    you can make an alias of that column as said above and write the filter on that date with a sql statement example as follows
    select to_char(sysdate,'FMmonth') from dual
    same way you take your requirement as select to_char(*your_date_column*,'FMmonth') from your_table
    Hope it helps,
    Best Wishes,
    Kranthi.
    Edited by: Kranthi.K on Nov 9, 2009 10:56 PM

  • How to check arraylist size greater than 1 using expression language in jsp

    I want to remove the scripplet in jsp, so i am using jstl tags with expression language in it.
    My scripplet is
    <% if (arraylist.size() > 1) {
    ---do something ----
    %>
    i wanted to change this to
    <c:if test="${ somecondition }">
    ---do something ----
    </c:if>
    here "somecondition" is exactly i need to check whether my arraylist size is greater than 1.
    so please can anyone help me how can i do that.

    If you do not mind, you can create a function and package it into a tag library of your own. Then you can use the function just as the existing expressions language construct. You may take a look at the article use functions in jsp expression language.

  • Unable to create a pdf file using the print routine

    Hey all,
    Recently, i've been unable to create a pdf using the print routine from quickbooks, word, outlook, etc... using the print routine and the adobe pdf driver....
    I have vista and cs3... Any thoughts?
    Thanks,
    Murph
    [email address deleted by host]

    If you are trying to print to the Adobe PDF printer and that fails, try using print-to-file. Then open the file in Distiller. If the result is the desired PDF, then check for AcroTray running as a background application. Sometimes it has to be restarted, but should be in your startup (you can check msconfig from the start>run menu to see if AcroTray is there).

  • Parse an XML of size greater than 64k using DOM

    Hi,
    I had a question regarding limitation of parsing a file of size greater than 64k in Oracle 10g. Is the error "ORA-31167: XML nodes over 64K in size cannot be inserted" related to this ?
    One of the developers was telling that if we load an XML document of size greater than 64k into Oracle DOM, it will fail. Is 64k the size of the file or the size of text node in the XML?
    Is there a way we can overcome this limitation?
    I believe that Oracle 11g R1 documentation states that existing 64k limitation on the size of a text node has been eliminated. So if we use Oracle 11g, does it mean we can load XML files of size greater than 64K (or XML having text nodes of size greater than 64k)
    I am not well versed with XML. Please help me out.
    Thanks for your help.

    Search this forum for the ORA-error.
    Among others it will show the following: Node size
    In this case I think we can assured that "a future release" in 2006 was 11.1 as mentioned by Mark (= Sr Product Manager Oracle XML DB)

  • Unable to create a clustered VM using Remote Server Administration Tools - Failover Cluster Manager

    Hi
    I am using two Hyper-V Server 2012 R2 and a single WS2012 Datacenter Edition with GUI Interface for management purpose.
    I have installed Failover Clustering feature on these two Hyper-V servers and remote server administration tools for Failover Clustering on WS2012 DC Edition with GUI.
    I have created cluster using powershell cmdlets on Hyper-V server because I was unable to create a cluster using RSAT-Failover Clustering (May be some privileges issues).
    The problem is " I am still not able to create a Hyper-VM using Failover Cluster Manager on WS2012 DC Edition server". It gives me an error "Invalid operation"
    Any Help regarding this issue will be very appreciated.
    Thanks in Advance.....
    Abhinav | MCTS-Server Virtualization

    Thanks Tim for your response but atleast I should be able to create and configure VMs for high availability. 
    I think this is not the issue which I am facing. It gives me an error "invalid class". There is something missing.
    Please check and let me know if it can be solved. Any help will be really appreciated.
    Thanks in advance.
    Abhinav | MCTS-Server Virtualization

  • Outlook REST API Greater than filter is the same as Greater or Equal

    Hi, 
    It seems like a bug in
    Outlook API the followings requests return the same data
    https://outlook.office365.com/api/v1.0/me/messages?$filter=DateTimeReceived
    ge 2015-04-22T10:08:00Z
    https://outlook.office365.com/api/v1.0/me/messages?$filter=DateTimeReceived gt 2015-04-22T10:08:00Z
    But I expect that the second request will return blank result
    because condition Greater Than
    and I have only one email in mailbox.
    Could anyone explain me why condition Greater Than doesn't work? 

    Hi Rylov,
    As this question is more relate to Outlook API, I suggest you post it to the corresponding forum, you will get more help and confirmed answers there.
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge
    or learn from your interaction with us.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Unable to create a jco destination using remote AS Java system on myjava sy

    Dear SAP Gurus,
                  I had ce 7.1 and nw 2004s based AS java Systems.I want to create a jco destination in my CE 7.1 system using usermapping data of  nw 2004s for jco communication.So i created a AS Java  system of NW2004s in my CE 7.1 SLD .when i try to create a jco destination using the AS JAVA as Nw2004s system it is not creating .Please help me to solve this issue.
    regards,
    vanamaSanthosh.

    Hi vanamaSanthosh
    try this
    1. In your CE1 System where u define your JCO destination, Go to C:\WINDOWS\system32\drivers\etc
    open hosts file and define the  identity of AS System like <IP address> <name of the system>
    for example 159.858.2.45  abcd
    restart the server and then check.
    Best Regards
    Satish Kumar

  • My husband and I recently bought Iphones. We are trying to create our Apple IDs. We only have one e-mail address so have been unable to create the 2nd ID. Any help with this situation would be helpful

    My husband and I recently bought Ihones. We are trying to create Apple IDs so we can download apps. I was able to create a ID, however we only have one email address that we use so are unable to create an ID for him. Any assistance with this situation will be appreciated.

    Apple ID FAQs
    http://support.apple.com/kb/HE37
    Apple ID Manage Account
    http://www.apple.com/support/appleid/manage/
    Rescue Email
    http://support.apple.com/kb/HT5312

  • Trying to create a certificate file using keytool -help!

    Hi, I've followed a series of instructions using Terminal to create a certificate. Terminal produced a file and when i open it using Text Edit its about 20 lines long worth of code. I was hoping it would provide a certificate I could use. Maybe it has, I just don't know what I'm looking for!
    Im working in Viewer Builder and I'm in the Provisioning tab trying to enter the "Application ID"
    I'm totally stuck here. Please help!

    I'm using DPS pro. My app is for Android but won't be going as far as Google Play or Amazon. It's for internal use so I want to create an APK file to distribute via email. These are the set of instructions I'm following. I'm struggling to get this to work. What should I see when this has worked? Also what do I need to enter for the Application ID?
    Thanks or your help
    (Mac OS) Create a certificate file using Keytool
    Open Terminal, which is located in the Applications > Utilities folder.
    Type (or paste) the following line (replace “myname.key.p12” with the actual name of your certificate):
    1
    keytool -genkey -v -keystore myname.key.p12 -alias alias_name -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000
    Specifying “10000” sets the expiration date after 22 October 2033.
    Enter and reenter a password. Until the Viewer Builder supports the creation of custom Android apps, it's necessary to share this password with Adobe. Create a password that you can share.
    Follow the prompts to specify the certificate information.
    When prompted to confirm choices, enter yes, and then press Return to use the same password.
    A certificate is created in your prompt location, such as your user name folder. Copy this certificate file to a known location. Write down the password as well.

  • Problems creating a Java Array using JNI-HELP!

    Hi,
    I am trying to create a Java Array using JNI.I have posted the code below. The problem is that the oth element is added correctly to the Array but when the JVM gets to the next element...it goes for a toss. It is not able to create a new instance of the object in GetUGEntity() function...there seems to be some problem in creating a new instance of the object!
    Can somebody help me with this?
    jobject GetUGEntity(JNIEnv *env, UF_DISP_j3d_entity_t* entity_list)
         int numVerts=0, numStrips=0;
         jfieldID fid;
         jdoubleArray jTransform=NULL;
         jstring jstrName=NULL;
         jdoubleArray jNormals=NULL;
         //Init an Entity object
         cout<< "**Getting New Class Reference...";
         jclass jEntity = env->FindClass("Lcom/wipro/java3d/rmi/Entity;");
         cout << "**got Class reference..."<<endl;
         if (jEntity == NULL)
              return NULL;
         cout<<"Creating new object instance...";
         jmethodID mIDInit = env->GetMethodID(jEntity, "<init>", "()V");
         cout<<"Got java method id...";
         jobject javaObj = env->NewObject(jEntity, mIDInit);
         if (javaObj==NULL)
              return NULL;
         cout << "Created!" << endl;
         //Entity ID
         cout<< "**Setting eid...";
         fid=env->GetFieldID(jEntity,"eid","I");
         jint eid = (jint)(entity_list)->eid;
         env->SetIntField(javaObj, fid, eid);
         //env->DeleteLocalRef(eid);
         cout << "Done!" << endl;
         cout << "Done!" << endl;
         cout<< "**Returning jobject...";
         return javaObj;
    jobjectArray createJArray(JNIEnv* env, UF_DISP_j3d_entity_t** entity_list, int noOfEntities )
         UF_DISP_j3d_entity_t* tempVar=NULL;
         cout<<"*Creating Jobjectarray...";
         jobjectArray jEntityArray = (jobjectArray) env->NewObjectArray(noOfEntities,
              env->FindClass("Lcom/wipro/java3d/rmi/Entity;"),NULL);
         cout<<"Created!"<<endl;
         for(int i=0; i<noOfEntities;++i)
              tempVar = &(*entity_list);
              if (tempVar !=NULL)
                   cout<<"*Trying to get Entity...."<<endl;
                   jobject jEntity = GetUGEntity(env, tempVar);
                   if (jEntity!= NULL)
                        cout<<"Got Entity!" <<endl;
                        cout <<"*Setting Array Element....";
                        env->SetObjectArrayElement(jEntityArray, i, jEntity);
                        cout << "Done!" << endl;
                   else
                        printf("ERROR: Did not get Entity Reference");
              else
                   printf("ERROR: Got a NULL Reference!");
         return jEntityArray;

    Hi Deepak,
    Could you please let us know upto which line your code is going safe. Try printing the value in the structure before you send that to the method GetUGEntity().
    I am not too sure that would be a problem. But I have faced a problem like this, wherein I tried to access a structure for which I have not allocated memory and hence got exception because of that.
    Since your JNI code seems to be error free, I got doubt on your C part. Sorry.
    Dhamo.

  • Unable to create an universe on a query based on a real time cube

    Hello,
    I'm trying to create a universe on a BEx query. This query is based on a multiprovider which consists of one standard cube and one real time cube. I'm unable to see this query in the designer. I do see an empty folder with the name of the multi provider.
    I can create an universe directly on this multiprovider.
    Are there any specific setting for real time cube or is it a compatibility issue? Can an universe be created on a real time cube?
    Regards,
    Sameer

    Hi Sameer,
    Let me know if this SAP note helps: 1291966 - "Output Cache Directory" & "Enable Real Time Cache" options in Central Management Console

  • Unable to create server pool cluster using ISCSI/NFS... OVMAPI_4010E error

    Hi
    I have a OVM 3.0.3 setup. The OVM manager and the Oracle 11g database are running as 2 seperate VM's on a X6270 M2 Blade which is on VMware ESXi.
    I created 2 LUN's one 25GB for the Clusterfilesystem and another 300GB as a storage repository for the OVM server on a NetApp 3020 filer. I am able to map the LUN onto the OVM manager but when I try to create a server pool and select the 25GB LUN as the repository for the cluster file system I keep getting the following error.
    tamp:     Aug 03, 2012 2:18:38 pm
    Status:     Failed
    Description:     Create Server Pool clustpool
    Created By:     admin
    Duration:     93ms
    Start Time:     Aug 03, 2012 2:30:24 pm
    End Time:      Aug 03, 2012 2:30:24 pm
    Message:     (08/03/2012 02:30:24:400 PM) OVMAPI_4010E Attempt to send command: create_pool_filesystem to server: englabbld06 failed. OVMAPI_4004E Server Failed Command: create_pool_filesystem nfs 206.236.134.21:/u01/clustrepo 620c03e59354719c 0004fb00000500000655780207887c30 920c26a9-dfdf-4977-8987-32bf39b47e25 0004fb000001000063c25c719da3e856 0004fb0000020000620c03e59354719c, Status: java.lang.InterruptedException Fri Aug 03 14:30:24 IST 2012 Fri Aug 03 14:30:24 IST 2012
    I repeated the same exercise using NFS but the same error keeps popping up.
    I have thoroughly checked the configuration of OVM servers as well as the OVM manager including, host file resolution, DNS entry, firewall, ntp etc...but nothing seems to work, I have re installed the complete infrastructure once again but does not seem to solve the problem.

    Hi Pioneer
    thanks for your inputs...but it does not seem to be working...recreated the LUN's assigned it to the OVM manager but server pool creation fails...the issue here is that the server pool creation process gets locked for more than 15-20 mnts and then fails...
    BTW I was going through the following thread mentioned below and its seems to be a bug in OVM..which is resolved by installing the patch...please advise if I need to do the same. I will anyway once again recheck all the parameters
    Can't create repository as iSCSI physical disk
    Please find the log files below
    b Construction Phase
    begin()
    Appended operation 'Pool File System Construct' to object '0004fb0000050000feccace26da5f020 (Pool filesystem for clustrepo)'.
    commit()
    Completed Step: COMMIT
    Objects and Operations
    Object (CREATED): [Cluster] 8b88de52d58a611b
    Object (CREATED): [ServerPool] 0004fb00000200008b88de52d58a611b (clustrepo)
    Object (CREATED): [PoolFileSystem] 0004fb0000050000feccace26da5f020 (Pool filesystem for clustrepo)
    Operation: Pool File System Construct
    Object (IN_USE): [StorageElement] 0004fb000018000049d49e4aca3a430b (clustrepo)
    Object (CREATED): [BalancerControl] balancer_0004fb00000200008b88de52d58a611b
    Job Running Phase at 10:10 on Tue, Aug 7, 2012
    Job Participants: [ff:20:00:08:ff:ff:ff:ff:ff:ff:da:48:de:28:21:00 (englabbld06)]
    Actioner
    Starting operation 'Pool File System Construct' on object '0004fb0000050000feccace26da5f020 (Pool filesystem for clustrepo)'
    Job: 1344314405855, aborted post-commit by user: admin
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=2580 method=addTransactionIdentifier accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setFoundryContext accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=onPersistableCreate accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setName accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setFoundryContext accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=onPersistableCreate accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setLifecycleState accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setRollbackLifecycleState accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setServerPool accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setName accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setFoundryContext accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=onPersistableCreate accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setLifecycleState accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setRollbackLifecycleState accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setServerPool accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setLifecycleState accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setRollbackLifecycleState accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setSimpleName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setSimpleName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setVirtualIP accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setKeymapName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setVmMigrateUsingSsl accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=createPoolFileSystem accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setName accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setFoundryContext accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=onPersistableCreate accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setLifecycleState accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setRollbackLifecycleState accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setSimpleName accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setStorageDevice accessLevel=6
    Class=StorageElementDbImpl vessel_id=2448 method=addLayeredFileSystem accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setUuid accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setManagerUuid accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setServerPool accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=addJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=2580 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=2580 method=setAssociatedHandles accessLevel=6
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: create_pool_filesystem to server: englabbld06 failed. OVMAPI_4004E Server Failed Command: create_pool_filesystem lun /dev/mapper/360a98000433465644e346c654c51642d 8b88de52d58a611b 0004fb0000050000feccace26da5f020 0004fb000001000063c25c719da3e856 0004fb00000200008b88de52d58a611b, Status: java.lang.InterruptedException
    Tue Aug 07 10:13:53 IST 2012
    Tue Aug 07 10:13:53 IST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:475)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:427)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:369)
    at com.oracle.ovm.mgr.action.ClusterAction.createPoolFileSystem(ClusterAction.java:47)
    at com.oracle.ovm.mgr.op.physical.storage.PoolFileSystemConstruct.constructAction(PoolFileSystemConstruct.java:101)
    at com.oracle.ovm.mgr.op.physical.storage.PoolFileSystemConstruct.action(PoolFileSystemConstruct.java:50)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:193)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:264)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1090)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:247)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:207)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:751)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: create_pool_filesystem lun /dev/mapper/360a98000433465644e346c654c51642d 8b88de52d58a611b 0004fb0000050000feccace26da5f020 0004fb000001000063c25c719da3e856 0004fb00000200008b88de52d58a611b, Status: java.lang.InterruptedException
    Tue Aug 07 10:13:53 IST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:753)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:471)
    ... 21 more
    FailedOperationCleanup
    Starting failed operation 'Pool File System Construct' cleanup on object 'Pool filesystem for clustrepo'
    Complete rollback operation 'Pool File System Construct' completed with direction=Pool filesystem for clustrepo
    Rollbacker
    Objects To Be Rolled Back
    Object (CREATED): [Cluster] 8b88de52d58a611b
    Object (CREATED): [ServerPool] 0004fb00000200008b88de52d58a611b (clustrepo)
    Object (CREATED): [PoolFileSystem] 0004fb0000050000feccace26da5f020 (Pool filesystem for clustrepo)
    Object (IN_USE): [StorageElement] 0004fb000018000049d49e4aca3a430b (clustrepo)
    Object (CREATED): [BalancerControl] balancer_0004fb00000200008b88de52d58a611b
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=2580 method=addTransactionIdentifier accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setFoundryContext accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=onPersistableCreate accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setName accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setFoundryContext accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=onPersistableCreate accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setLifecycleState accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setRollbackLifecycleState accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=setServerPool accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setName accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setFoundryContext accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=onPersistableCreate accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setLifecycleState accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setRollbackLifecycleState accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=setServerPool accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setLifecycleState accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setRollbackLifecycleState accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setSimpleName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setSimpleName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setVirtualIP accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setKeymapName accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=setVmMigrateUsingSsl accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=createPoolFileSystem accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setName accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setFoundryContext accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=onPersistableCreate accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setLifecycleState accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setRollbackLifecycleState accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setSimpleName accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setStorageDevice accessLevel=6
    Class=StorageElementDbImpl vessel_id=2448 method=addLayeredFileSystem accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setUuid accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setManagerUuid accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=setServerPool accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=addJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=2580 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=2580 method=setAssociatedHandles accessLevel=6
    Class=InternalJobDbImpl vessel_id=2580 method=setFailedOperation accessLevel=6
    Class=ClusterDbImpl vessel_id=2595 method=nextJobOperation accessLevel=6
    Class=ServerPoolDbImpl vessel_id=2589 method=nextJobOperation accessLevel=6
    Class=PoolFileSystemDbImpl vessel_id=2607 method=nextJobOperation accessLevel=6
    Class=StorageElementDbImpl vessel_id=2448 method=nextJobOperation accessLevel=6
    Class=BalancerControlDbImpl vessel_id=2601 method=nextJobOperation accessLevel=6
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: create_pool_filesystem to server: englabbld06 failed. OVMAPI_4004E Server Failed Command: create_pool_filesystem lun /dev/mapper/360a98000433465644e346c654c51642d 8b88de52d58a611b 0004fb0000050000feccace26da5f020 0004fb000001000063c25c719da3e856 0004fb00000200008b88de52d58a611b, Status: java.lang.InterruptedException
    Tue Aug 07 10:13:53 IST 2012
    Tue Aug 07 10:13:53 IST 2012
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: create_pool_filesystem to server: englabbld06 failed. OVMAPI_4004E Server Failed Command: create_pool_filesystem lun /dev/mapper/360a98000433465644e346c654c51642d 8b88de52d58a611b 0004fb0000050000feccace26da5f020 0004fb000001000063c25c719da3e856 0004fb00000200008b88de52d58a611b, Status: java.lang.InterruptedException
    Tue Aug 07 10:13:53 IST 2012
    Tue Aug 07 10:13:53 IST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:475)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:427)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:369)
    at com.oracle.ovm.mgr.action.ClusterAction.createPoolFileSystem(ClusterAction.java:47)
    at com.oracle.ovm.mgr.op.physical.storage.PoolFileSystemConstruct.constructAction(PoolFileSystemConstruct.java:101)
    at com.oracle.ovm.mgr.op.physical.storage.PoolFileSystemConstruct.action(PoolFileSystemConstruct.java:50)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:193)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:264)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1090)
    at sun.reflect.GeneratedMethodAccessor1167.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:247)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:207)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)

  • Unable to create records in database using PHP Data Service

    Hello, I've been stuck on this for a few days and search up and down for this on the net, no response I've found has worked, so I come to you...
    Here are the steps I've taken, I think it's pretty standard
    1. I have a macbook pro running osx 10.7.3
    2. I installed MAMP all default (I've acually reinstalled this because someone suggested this might fix it)
    3. Thru phpMyAdmin I created a database called my_test
    4. In that database I created a table, this is the export of that table: (I've also tried this with InnoDB which is the default)
    CREATE TABLE `customer` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` varchar(50) NOT NULL,
      `email` varchar(150) NOT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `id` (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    5. I created a new Flx Project (Running Flash Builder 4.5.1 Premium)
         Project Name: PHPTest
         Application Type: Desktop (Although I've done the same thing with Web and got the same results)
         >> Next
         Application Server Type: PHP
         Web Root: /Applications/MAMP/htdocs/
         URL Root: http://localhost:8888/
         Clicked 'Validate Configuration' and that worked
         Output Folder: /Applications/MAMP/htdocs/PHPService (default by Flash Builder)
         >> Finished
    6. On the Data/Services tab on the bottom I click 'Connect to Data/Service...'
         Select 'PHP'
         >> Next
         Select 'Click here to generate a sample'
         Select 'Generate from database' radio button
         Username: root
         Password: root (default for MAMP)
         Host name: localhost
         Server port: 8889 (default for MAMP MySQL port, the HTTP port default is 8888 which in both cases seem to work but every video I've seen that uses MAMP on youtube uses 8889)
         Database: my_test
         Click 'Test Connection' (works)
         Table: customer
         Primary Key: id (this field is greyed out and Flash Builder selects 'id' which it figures out from the SQL table)
         >> Click OK
    7. Then if I don't have the Zend Framework folder in my /Applications/MAMP/htdocs/ folder it tells me its going to create that and I say alright. Then Flash Builder says stuff about how this is really only for testing and not production server ready and I say alright.
    8. Then it takes me back to the Form from Step 6 when I get the chance to select 'Click here to generate a sample'
         These fields are now filled with this data automaticly:
         PHP Class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php
         Service name: CustomerService
         Service package: services.customerservice
         Data type package: valueObjects
         >> Click Next (shows all the functions that will be now availible)
         >> Click Finished (End of the forms and it opens Dreamweaver to the php file it created CustomerService.php which I have no need to edit so I close that down)
    9. Back in Flash Builder I switch to design view and drag a datagrid onto the big white area in the middle, whatever that is called.
    10. Then below in Data/Services tab on the bottom I click drag the function 'GetAllCustomer' on top of the datagrid.
         I say yes to rebound and click ok and the view of the datagrid is updated with the colums from the 'customer' table in mySQL.
    (Now let me say that when I hit save and compile this, if I actually had records in this table that I insert thru phpMyAdmin, this does show in the datagrid. So for the whole CRUD thing I am able to get the R which is Read)
    11. Now going back to the design view in Flash Builder I will create a form to create records in the table... (I guess this isn't really a step)
    12. In the Data/Service tab on the bottom I select 'createCustomer' function and then there is an icon called 'Generate Form' that looks like a white piece of paper with a gear on the bottom of it.
    13. This opens up a new form and since I don't have a crazy bunch of fields in my table I just click Finished (If you click next you can specify which fields you want to exclude from the form but this time I don't need to)
    14. This actually creates 2 forms if you look at the code, the second just shows the return type from when you click 'CreateCustomer' button on the first form. Because they overlap in design view I drag the form out of the way so you can see the input form, the return form, and the datagrid
    15. Then I save and compile...
    (Also if your actually reading this I didn't remove the id form field, I get the same result either way, but if you do remove the form field in the code/design you also have to update the button function to not deal with the id before it gets sent off to the php page since in this case the MySQL table is set to auto_increment the id, sorry this doesn't make much sence but this little area doesn't matter much either way)
    16. Now fill in whatever data you want for name and email, try differnt numbers in the id field like 0, nothing, 1, 1000 and click 'CreateCustomer'
    (For me nothing happens, no return is put in the return field, no error pops up and the datagrid is not updated with the new record, also going over to phpMyAdmin and checking out the table browse doesn't show any changes either, I know the button is calling the function because if I add a state change in that function it changes, it would seem that the line:
    createCustomerResult.token = customerService.createCustomer(customer2); doesn't do anything)
    So any idea what is wrong here, I'm convenced it's something stupid easy simple I just can't see it.

    In case you need more info, here is a code dump on a mxml project that has this problem:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:customerservice="services.customerservice.*"
                           xmlns:valueObjects="valueObjects.*"
                           currentState="State1">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllCustomerResult.token = customerService.getAllCustomer();
                protected function button_clickHandler(event:MouseEvent):void
                    var customer2:Customer = new Customer();
                    customer2.id = parseInt(idTextInput.text);
                    customer2.name = nameTextInput.text;
                    customer2.email = emailTextInput.text;
                    currentState = "Test";
                    createCustomerResult.token = customerService.createCustomer(customer2);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="State1"/>
            <s:State name="Test"/>
        </s:states>
        <fx:Declarations>
            <s:CallResponder id="getAllCustomerResult"/>
            <customerservice:CustomerService id="customerService"
                                             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                             showBusyCursor="true"/>
            <valueObjects:Customer id="customer"/>
            <s:CallResponder id="createCustomerResult"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:DataGrid id="dataGrid" includeIn="State1" x="330" y="10" width="392"
                    creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn dataField="id" headerText="id"></s:GridColumn>
                    <s:GridColumn dataField="name" headerText="name"></s:GridColumn>
                    <s:GridColumn dataField="email" headerText="email"></s:GridColumn>
                </s:ArrayList>
            </s:columns>
            <s:typicalItem>
                <fx:Object id="id1" email="email1" name="name1"></fx:Object>
            </s:typicalItem>
            <s:AsyncListView list="{getAllCustomerResult.lastResult}"/>
        </s:DataGrid>
        <s:Form includeIn="State1" defaultButton="{button}">
            <s:FormItem label="Id">
                <s:TextInput id="idTextInput" text="{customer.id}"/>
            </s:FormItem>
            <s:FormItem label="Name">
                <s:TextInput id="nameTextInput" text="{customer.name}"/>
            </s:FormItem>
            <s:FormItem label="Email">
                <s:TextInput id="emailTextInput" text="{customer.email}"/>
            </s:FormItem>
            <s:Button id="button" label="CreateCustomer" click="button_clickHandler(event)"/>
        </s:Form>
        <s:Form includeIn="State1" x="0" y="204">
            <s:FormItem label="CreateCustomer">
                <s:TextInput id="createCustomerTextInput" text="{createCustomerResult.lastResult as int}"/>
            </s:FormItem>
        </s:Form>
    </s:WindowedApplication>

  • Unable to create Supplier as Employee using R12 API

    Hi,
    I am creating supplier as amployee by uing the API and pasting the Annonimus API code and its details below.
    declare
      x_vendor_site_id NUMBER;
      x_return_status  VARCHAR2(1);
      x_msg_count      NUMBER;
      x_msg_data       VARCHAR2(2000);
      l_vendor_rec     ap_vendor_pub_pkg.r_vendor_rec_type;
      x_vendor_id      NUMBER;
      X_PARTY_ID       NUMBER;
      BEGIN
    for c in (select employee_id,location_id,party_id,organization_id from
    PER_EMPLOYEES_X pex
    where not exists
    (select 1
    from po_vendors
    where employee_id=pex.employee_id
    and employee_id=1198)
    loop
    l_vendor_rec.employee_id := c.employee_id;
    l_vendor_rec.VENDOR_TYPE_LOOKUP_CODE := 'EMPLOYEE';
    --mo_global.set_policy_context('S',c.organization_id);
    AP_VENDOR_PUB_PKG.Create_Vendor
    (      p_api_version => 1,
         x_return_status     => x_return_status,
         x_msg_count     => x_msg_count,
         x_msg_data     => x_msg_data,
         p_vendor_rec=> l_vendor_rec,
         x_vendor_id => x_vendor_id,
         x_party_id => x_party_id
      IF x_return_status = apps.FND_API.G_RET_STS_SUCCESS
      THEN
      commit;
      dbms_output.put_line('--------------------------------------');
      dbms_output.put_line('Supplier created:'||x_vendor_id); 
      ELSE
      dbms_output.put_line ('Creation of Supplier Failed with the error :'||x_msg_data||'  '||FND_MSG_PUB.count_msg);
         FOR i IN 1..FND_MSG_PUB.count_msg
    LOOP
    DBMS_OUTPUT.put_line(FND_MSG_PUB.Get(p_msg_index =>i,p_encoded =>'F'));
    end loop;
    END IF;
    END LOOP;
      END;
    Error : Am getting the error saying that
    "Supplier record cannot be updated.Either the Employee ID/Info is incorrect or the employee associated with this supplier is terminated".
    When i checked in the DB this employee is an active employee with us.
    Could any one please help me by providing your suggestion on this with Priority.
    Looking for your answer soon.
    Thanks,
    Surya.

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    "12: How To Access API References via the Oracle Integration Repository" [ ID 462586.1]
    "Oracle Integration Repository Documentation Resources Release 12" [ ID 396116.1]
    Pelase also check below:
    Api's in EBS
    http://forums.oracle.com/forums/thread.jspa?forumID=39&threadID=984534&messageID=3890192#3890192
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    http://forums.oracle.com/forums/thread.jspa?threadID=1038379&tstart=0
    List of API
    http://forums.oracle.com/forums/message.jspa?messageID=4198097#4198097
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    http://forums.oracle.com/forums/thread.jspa?messageID=2340033
    Regard
    Helios

Maybe you are looking for