Querying TREX for catalog information

I'm having some trouble understanding how I can send queries to our TREX server to get catalog information.
I'm trying to do this in 2 cases, one of which I have working correctly.
CASE 1:  Pull product information out of TREX based on material number.  I have successfully done this with the following code.
String strObjectID = request.getParameter("id"); 
WebCatItemList itemList = null;
CatalogFilterFactory cff = CatalogFilterFactory.getInstance();       
IQueryStatement queryStmt;
try {
     queryStmt = theCatalog.getCatalog().createQueryStatement();
     IFilter filter = cff.createAttrEqualValue("OBJECT_ID", strObjectID);
     queryStmt.setStatement(filter, null, null);
     IQuery query = theCatalog.getCatalog().createQuery(queryStmt);               
     log.info("CatalogQueryAction: Query Stmt=" + queryStmt.toString());     
     itemList = new WebCatItemList(theCatalog, query);               
} catch (CatalogException e) {
     // TODO Auto-generated catch block
     log.info("backend.exception: " + e);
     e.printStackTrace();
WebCatItem item = itemList.getItem(0);
CASE 2:  Pull category information based on category name.  here is my code thus far.  Every time I load my test page I get a return of nothing.
IQueryStatement queryStatement;
CatalogFilterFactory cff = CatalogFilterFactory.getInstance();
String tarReturn = "nothing";
try {
     queryStatement = theCatalog.getCatalog().createQueryStatement();
     //area or description
     //parent_area
     //IFilter desc = cff.createAttrEqualValue("AREA", "Selector Switches");
     IFilter desc = cff.createAttrEqualValue("CATEGORY_ID", "DDB7ECAF654748F1B75B001EC9F38646");
     queryStatement.setStatement(desc, null, null);
     IQuery query = theCatalog.getCatalog().createQuery(queryStatement);
     Iterator results = query.submit();
     while(results.hasNext()){
          tarReturn = "got here";
     request.setAttribute("result", tarReturn);
} catch (CatalogException e) {
     e.printStackTrace();               
     request.setAttribute("result", e.toString());
I tried using the same method in case 1, but I can't seem to figure out how to get it working.  I know that the cfg/catalog-site-config.xml file plays a part in the TREX queries, but I'm not exactly sure what part it plays.
Many thanks!
Edited by: Brian Smith on Aug 5, 2009 4:35 PM
Formatting got screwed up.

Hi Brian,
I have checked file "cfg/catalog-site-config.xml" on my local.
Please check file "cfg/catalog-site-config.xml". you can find entry for "OBJECT_ID" under <Map ID="siteMapID"> and "<QuickSearchAttributes> but you cannot find any entry for "CATEGORY_ID" in file.
I think this the reason that you are getting a result for "OBJECT_ID" and not getting result when you use "CATEGORY_ID" because there is no entry for "CATEGORY_ID".
I assume if you make entry of "CATEGORY_ID" then you will able to get result.
By the way which xml file you use? under isaweb~webcatadmin or tcweb~core
I hope this information will help you to resolve your problem.
eCommerce Developer

Similar Messages

  • Search query TREX

    Hi,
    I try to configure the KM iview search query to return only result by the name of documents(or part of name) and not as full text.
    For example, if i make a search on "TEST" i can see in the result page:
    - document.doc <i>(name of file)</i>
    this a <b>test</b> document <i>(full text search)</i>
    - test.doc <i>(name of file)</i>
    this is a new doc to..... <i>(full text search)</i>
    - example.doc <i>(name of file)</i>
    a sample for a <b>test</b> has been ....<i>(full text search)</i>
    and i need to see only:
    - test.doc <i>(name of file)</i>
    this is a new doc to..... <i>(full text search)</i>
    How configure the search to have this result?
    For your information i'm in EP7 SP10, TREX 7.0.06
    Thanks in advance,
    Xavier.

    Hi ,
    The custom QueryExtender works for custom property of type String and not for Timestamp property.
    If add Attribute query for Timestamp property with operator as less or equal to current date value, it doesn't work as below.
    returnList.addAttributeQuery(lPublishDateProp,currentDate,IQueryEntry.PROPERTY_OPERATOR_LESS_OR_EQUAL);
    lPublishDateProp - Customer property name of type Timestamp
    currentDate - String value of java.util.Date current date
    Any clue?
    Thanks,
    Siva

  • ERROR while querying ACM driver's information

    I am using following scheme to transmit sound over network:
    file -> input datasource -> processor -> output datasource -> RTPManager -> network
    File from which i am transmitting is temporary. I am create this file before transmit and delete it after.
    1. Application starts
    2. I am perform transmit first time - everything fine, but in std otput i see message "ERROR while querying ACM driver's information".
    3. I am perform transmit second time - everything fine, but file that i am created for transmitting stays locked by JMF for about 20 minutes.
    4. Any transmit after "ERROR while querying ACM driver's information" locks input file for about 15-20 minutes.
    Any suggestions will be appreciated.
    Thanks for advance!

    I can't download your code RAR, so can you just post the code you're using to handle the shutdown? (and please use the code tags)Thanks for anwser. There is entire test code i wrote (code with "mutex" variable is not nessesary, i wrote it just for clearer output):
    import javax.media.*;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.DataSource;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.File;
    import java.nio.channels.FileChannel;
    public class Test {
        public static void main(String[] args) {
            File sourceFile = new File("1.wav");
            for (int i = 0; i < 3; i++) {
                System.out.format("Try number %d\n", i);
                File tempFile;
                try {
                    tempFile = File.createTempFile("TestTemp", ".wav");
                } catch (IOException e) {
                    System.err.format("Cannot create temporary file %s \n", e);
                    return;
                if (!copyFile(sourceFile, tempFile)) {
                    return;
                DataSource ds;
                try {
                    ds = javax.media.Manager.createDataSource(new MediaLocator("file:" + tempFile.getPath()));
                } catch (Exception e) {
                    System.err.format("Cannot create datasource %s \n", e);
                    return;
                Format[] formats = new Format[1];
                formats[0] = new AudioFormat(AudioFormat.ULAW_RTP, 8000, 8, 1);
                ProcessorModel prm = new ProcessorModel(ds, formats, new ContentDescriptor(ContentDescriptor.RAW_RTP));
                Processor processor;
                try {
                    processor = Manager.createRealizedProcessor(prm);
                } catch (Exception e) {
                    System.err.format("Cannot create processor %s \n", e);
                    return;
                processor.close();
                Object mutex = new Object();
                synchronized (mutex) {
                    try {
                        mutex.wait(1000);
                    } catch (InterruptedException e) {
                        System.err.format("Thread interrupted, try number " + i + "\n");
                        return;
                if (!tempFile.delete()) {
                    System.err.format("Cannot delete temporary file, try number " + i + "\n");
                System.out.format("Try end number %d\n", i);
        public static boolean copyFile(File sourceFile, File destFile) {
            FileChannel source = null;
            FileChannel destination = null;
            try {
                source = new FileInputStream(sourceFile).getChannel();
                destination = new FileOutputStream(destFile).getChannel();
                destination.transferFrom(source, 0, source.size());
            } catch (Exception e) {
                System.err.format("Error while copying files %s \n", e);
                return false;
            finally {
                if (source != null) {
                    try {
                        source.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close source file %s \n", e);
                if (destination != null) {
                    try {
                        destination.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close destination file %s \n", e);
            return true;
    }I have figured out that if i continue to try deleting files used by processor (that already closed) while program is running, files will be deleted after ~15 minutes. I have figured out this while testing my main application. This test app also may be modified to reproduce this behaviour. If you want, i can submit a modified test code to reproduce this behaviour.
    If JMF is maintaining a file lock, then I assume you've improperly shutdown the processor / datasink...About resource deallocation. First, there is no datasink i have been created manually (may be jmf create it internally, but i dont think so). In my test application i've been created only input datasource and processor. I have tried deallocate datasource also, but this is dont have any effect. In JMF reference we can see this description of method Processor.close():
    "Releases all resources and cease all activity."
    I think this is enough to call Processor.close() to deallocate input file, is that right?

  • OCI Catalog for Vendor problem : Logical system for catalog not maintained

    We have set up an OCI catalog with on of our vendors. This works fine untill we transfer shopping basket data from Vendor sysem into our SRM-system (SRM5.0). Then data is not being transfered and Vendor Webshop screen remains 'open'.
    in SLG1 i have found an error "Logical system for catalog not maintained. Inform system administrator'
    Anyone an idea what the cause of this error can be or what we need to check ?
    Thanks in advance

    Hi,
    I have not seen that error before. However, I think it may have to do with the LOGICAL_SYSTEM OCI field. Can you check if your punch-out catalog vendor is populating that field? Also, check if you have the correct BP# populated in the catalog configuration and the LOGICAL SYSTEM Field on the define External Webservices is blank.
    SG

  • Database upgrade from 7.5 to 7.6.0.12 - AK Catalog information not found:00

    I just upgraded a database to 7.6.0.12. The catalog of the upgraded database is corrupt for one user. When I try to view the triggers defined for the user I get this message :
    General error;-9205 POS(1) System error: AK Catalog information not found:0000000000000000007200
    SELECT * FROM "DOMAIN"."TRIGGERS"
    All other entities, tables, sequences, procs appear to be valid. Another user's entities are all present and correct, including triggers.
    How can I repair the catalog to allow me to recreate the missing triggers?

    Hi again Joe,
    with the help of the vtrace you provided, we found out the TABID of the involved table: 0x000000000000051E
    We now need to find out which table it is:
    SELECT SCHEMANAME, TABLENAME FROM TABLES WHERE TABLEID = x'000000000000051E'
    After finding out the relevant table, there are two options:
    1. delete the triggers for this table
    or
    2. copy the table in a new table, delete the old table and rename the new table to the old table:
    CREATE TABLE <schema>.<new_table> AS SELECT * FROM <schema>.<old_table>
    DROP TABLE <schema>.<old_table>
    RENAME TABLE <schema>.<new_table> TO <schema>.<old_table>
    This all (point 1 AND 2) should preferably be done within a transaction, so it can be rollbacked, should anything go wrong.
    Please note that in point 2 that all given privileges, defined views and indexes no longer apply or exist, these have to be regiven/recreated.
    It might thus be a good idea to check if there are views defined using the table <schema>.<old_table> BEFORE following the steps of point 2.
    Regards,
    Roland

  • Linux VM KVP IP can't be shown on Hyper-V Manager after querying its KVP/IP information on Hyper-V host several times

    Hello
    [Sorry for asking the same question in the wrong place/forum of "Hyper-V"]
    I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) and (generation 2) CentOS 7 VM (Linux
    kernel 3.10.0-123) with Hyper-V KVP daemon installed,
    and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.
    However, after querying its IP (KVP) for several times, its IP can’t
    be queried or shown on Hyper-V Manager anymore (Windows VM is ok without this problem).
    And here is the vmIntegrationService status of my CentOS 7 VM for the references.
    PS C:\Users\Administrator> (Get-VM -name G2_CentOS7).vmIntegrationService
    VMName     Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription
    G2_CentOS7 Time Synchronization    True    OK
    G2_CentOS7 Heartbeat               True    OK
    G2_CentOS7 Key-Value Pair Exchange True    OK                       The protocol version of the component installed ...
    G2_CentOS7 Shutdown                True    OK
    G2_CentOS7 VSS                     True    No Contact
    G2_CentOS7 Guest Service Interface False   OK
    I attached a simple KVP query Powershell script as
    the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.
    $VMName = $args[0]
    write-host "$VMName"
    filter Import-CimXml
    $CimXml = [Xml]$_
    $CimObj = New-Object -TypeName System.Object
    foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
    if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
    $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
    $CimObj
    $CimObj = $null
    for ($i=1 ; $i -le 10000 ; $i++) {
    $a = Get-Date
    write-host "$i - Time: " $a.ToLocalTime()
    $vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
    $vm.ElementName
    $vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
    $vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
    Actually, if your CentOS VM (has LIS) installed with KVP daemon running well,
    my test script will show more than 4 keys (include NetworkAddressIPv4 or NetworkAddressIPv6 keys).
    However, while the KVP daemon becomes problematic, it will only show a few keys
    (ex. 4~6 keys) and at this moment, Hyper-V Manager also can't show IP address of it anymore and you may need to reboot the CentOS VM to recover it.
    For example (KVP in 252 time is good, but KVP in 253 and 254 times become problematic)
    252 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    fe80::215:5dff:fe91:b902                                    NetworkAddressIPv6
    3.10.0-123.el7.x86_64                                       OSBuildNumber
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    7                                                           OSMajorVersion
                                                                OSMinorVersion
    CentOS Linux                                                OSName
    129                                                         OSPlatformId
    3.10.0                                                      OSVersion
    x86_64                                                      ProcessorArchitecture
    253 - Time:  8/26/2014 7:19:42 PM
    G2_CentOS7
    localhost                                                   FullyQualifiedDomainName
    3.1                                                         IntegrationServicesVersion
    10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    254 - Time:  8/26/2014 7:19:44 PM
    G2_CentOS7
    0                                                           OSDistributionData
    0                                                           OSDistributionName
    199168                                                      OSKernelVersion
    129                                                         OSPlatformId
    I
    found the following patches and gave them a try, but the
    problem still remains after applying these patches and the (generation 2) Ubuntu 14.04 with Linux kernel 3.13 also has this problem.
     - Patch "Drivers:
    hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree
     - Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
    But (generation 1) Ubuntu 14.04 VM with Linux kernel 3.17 doesn't encounter this problem after querying its KVP/IP information on Hyper-V host several times.
    Does anyone know what changes between Linux kernel 3.13 and 3.17 fix this issue?
    Thanks,
    Paul

    Hi Dexuan and Mike,
    Thanks for your help!
    I did the patch with rpmbuild on CentOS 6.5 (with kernel 2.6.32-431).
    However, the second patch cannot patch on CentOS6.5 since there is no target_cpu in such version.
    So we are patching that with the following similar patch but this issue still occurs. (also replace ko in initrd)
    https://lists.ubuntu.com/archives/kernel-team/2014-August/047725.html
    Can you tell me if any patch I could miss or any suggestion?
    Thanks for your time.

  • How to get RMAN catalog information from Target database?

    Hi,
    How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
    Thanks

    If you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
    The RMAN backup script would have the connection identifier for the Catalog.
    Hemant K Chitale

  • "Integration Repository" catalog information

    Hello all;
    Does anybody knows what tables or schema are behind "Integration Repository" in R12? Catalogs information for "Integration Repository" where are they stored?
    Thank you.
    Shaun S.

    Hi Shaun,
    Did you search eTRM for "Integration Repository"? Have you checked the following tables? I believe "FND_IREP_CLASSES" contains what you are looking for "Unless I still do not get you correctly :)"
    Table: FND_IREP_CLASSES
    Description: Integration Repository information concerning executable interfaces
    Table: FND_CHILD_ANNOTATIONS
    Description: Child Annotations for Integration Repository
    Table: FND_OBJECT_TYPE_MEMBERS
    Description: Type members for Integration Repository shaped data
    Table: FND_IREP_CLASS_PARENT_ASSIGNS
    Description: Parent Assignments for Integration RepositoryThanks

  • Query language for XML documents

    Which is a better (efficiency in terms of memory management) query language for interacting with XML documents.The query language shouls support 'insert', 'delete', 'update' and 'select' commands. How fast is database as compared to XML ( database being replaced by XML) when only 'insert' n 'select' commands are issued?

    Hi,
    I suggest you use the Sunopsis JDBC for XML driver that will let you perform all kind of SQL statements on your XML files. It is a type 4 driver so it's very use to use. You may have more information and download it here:
    http://www.sunopsis.com/corporate/us/products/jdbcforxml/
    Hope that will help
    Simo Fernandez

  • None of the network adapters are bound to the Netmon driver.If you have just installed, you may need to log out and log back in order to obtain the proper rights to capture. Please refer to the product help for more information.

    Hi,
    To analyze Lync issues I have installed these applications in my windows 7 x64 laptop
    1) network monitor 3.4
    2)Lync network monitor parser
    3)nmdecrypt2.3
    4)network monitor parser3.4
    Installtion got completed successfully but when I try to start capture I get this error everytime.......
    "None of the network adapters are bound to the Netmon driver.If you have just installed, you may need to log out and log back in order to obtain the proper rights to capture. Please refer to the product help for more information"
    I read many technet articles and other blogs but that didn't solve this issue. I tried things like
    A) Run as administrator
    B) nmconfig /install in cmd
    So could you please help me how I can fix this issue?
    Regards,
    Ajit

    Seems our driver didn't get installed.  What you see when you type "sc query nm3" from a command prompt?
    Thanks,
    Paul

  • TREX for NetWeaver 7.0  Java (2004s) SP9 not found - Not in FTP site.

    The Sneak Preview for Java 7.0 shows a TREX file for download.  However the file is not there.  Is this a known issue?  We are looking forward to using the trial, but without searching and classification, we cannot research the best way to implement our DMS.
    Thanks in advance for any information on trial TREX availability.
    Message was edited by:
            Craig Burnett

    I just checked this morning and the link now points to the SAPNetWeaver04_SP16Preview_TREX6116P2 rar file.  I had downloaded that file back on 6/7/07 but it would not work.  It would quit at the question asking for an instance to apply the hot fix, so I am guessing that it is only a maintenance release.
    I have not re-downloaded it since they fixed the link.
    However, I eventually found a download of TREX 6.1 on the SAP Software Distribution Center site found here:
    <a href="https://websmp205.sap-ag.de/swdc">SAP Software Distribution Center site</a>
    Search for 51030611.  I was able to load that successfully.
    Good luck.
    Message was edited by:
            Craig Burnett

  • Basic SQL query scripts for SAP B1

    hi guys,
    do you have any documents, guides or reference links regarding basic SQL query scripts for SAP B1?
    thanks and have a nice day!
    blake p.

    Hi
    You can also check SBONotes.com.
    For sql understanding , you can search in websearch - tsql and it will pop up with informations you need.
    You can also refer to forum once you understand the basic techniques
    Hope this helps
    Bishal

  • Is TREX for a Solution Database mandantory

    hey,
    simple question:
    do i need a TREX for the solution database?
    or can i run the sol.db. without any TREX installation?
    kind regard
    dirk

    hello amit,
    thanks for your quick answer.
    but there are still some question-marks.
    our plan is to use and fill the solution database in the first phase of our project.
    and when we see, in three or six month, that we really need this, we will install trex.
    so, can i use solution database without trex? when you say that without trex no search is possible - what is possible? see all solution database entries in a long list? or is it defently not possible to fill solution database with ta IS01 w/o trex?
    i hope you can help.
    thanks a lot and kind regards
    dirk
    Hello Dirk,
    You would require TREX for the Solution Database. Without TREX, the search functionality would not work.
    I hope this answers your query.
    Regards
    Amit

  • Map Viewer Query Rewriting for Dynamic themes and  Materialized Views.

    Hi,
    I am usng a WMS request to render FOI points in my map.
    Internally query rewrite is happening in Mapviewer for this dynamic theme and my data points query is getting converted as
    select FROM
    ( select status, shape from MatView.MyTab where id = '3' )
    WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 4283, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(144.948120117188,-37.8162934802451,144.950866699219,-37.8141237016045)), 'querytype=WINDOW') = 'TRUE'
    here the rewritten query is not correct and is throwing exceptions in mapviewer log
    How can I make this query to be written correctly.
    (My orginal query before rewrite is: select status,shape from MatView.MyTab where id='3' )
    I am using a materialised view : MatView is a materialized view.
    When I used normal tables, the query is re written correctly.But for this materialized view this is happening.
    How can I correct the error?
    Is this has something to do with some Spatial Indexing in Materialised view or Query Rewriting for materialized view?
    Edited by: 841309 on Mar 10, 2011 11:04 PM

    Oops!
    The Materialized view was not accessible from the schema I tried :)
    And so when I gave permissions,it formed the correct query.
    So if permission is not there,map viewer will rewrite the query in a wrong way! New information.

  • TRex for iviews

    Hello
    We've implemented SAP EP few weeks ago.
    We would like to use the TRex server to search for specific iviews among the menu of the portal (for example, I have an iview which title is "Transport date". If I search in the portal for the word "transport", I would like to see my iview in the list of answers).
    We've been told it's not possible but it surprises me a lot. Does someone has done it for his/her company ?
    If yes, can you explain me how.
    Thanks in advance!
    Regards
    Benoit

    hi,
    This can be very well implemented in trex
    for that you have to make an entry into index management services and then assign the pcd repository to it.
    See this for more information
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/d59a4271c80a31e10000000a1550b0/frameset.htm
    hope it helps...
    regards,
    Ganesh

Maybe you are looking for

  • Free disk space

    When I select my HDD in finder and select Get Info it reports that I have 150GB of free disk space, however when I run disk utility it reports that there is only 55GB of free disk space.  What is going on?  Where is that 95GB discrepancy being used? 

  • Connecting mac book to 32 inch LCD

    i have a macbook, and i bought the VGA to DVI adapter. i have a DVI to HDMI cable that i connect to my VIZIO 32" LCD, but i cannot get the resolution right, and the screen is off center and i am not able to see anything. How should i set up my tv and

  • Calling sap transaction in web browser

    Hi, I want to call a sap transaction in web browser. In my case the Solution Manger Transaction SMSY to provide all the System Landscape Information. How can I realise it with less effort? What technology is state of the art for this problem? Thx 4 a

  • Have cs 5.5 design premium but only want to update photoshop

    I have the cs5.5 design premuim and only want to update to photoshop cs6. Anyone know if I can do that. I don't use the other programs much and I use photoshop all the time and there is about a $200 price difference. And no, my cs5.5 is not eligible

  • Refreshing Workbook in Bex

    Hi, I have a workbook which shows result in the form of chart. What' happening is that when I open the workbook it shows me the old saved chart info before showing the prompt and once i select the values then refreshes the chart. What I want is the w