Strange problem while building a secondary index.

Hi,
I have a strange problem in creating a secondary index which is a part of primary data.
I tested my program and a working sample program
My data scheme looks like:
   Key = unique string
   Data = structure {
                    time_t timestamp;
    Secondary Key = timestamp in data (NOT unique)
My BDB environment flags is "DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL | DB_THREAD"
The primary DB is created as BTREE with a custom key compare function provided by calling DB->set_bt_compare.
int my_key_compare(DB *db, const DBT *key1, const DBT *key2)
     const char *k1_v = (const char *)key1->data;
     const char *k2_v = (const char *)key2->data;
     return strcmp(k1_v, k2_v);
The secondary Index DB is created as BTREE while permitting duplication. (DB_DUPSORT)
It has two custom callback functions; one for data compare, the other for extracting a data from the primary data.
int my_extract_timestamp(DB *db, const DBT *primary_key, const DBT *primary_data, DBT *secdondary_key)
     secondary_key->data = ( (MY_DATA *)(primary_data->data))->timestamp;
     secondary_key->size = sizeof(time_t);
     return 0;
int my_secondary_dup_compare(DB *db, const DBT *key1, const DBT *key2)
     time_t      k1_v = *(time_t *)key1->data;
     time_t      k2_v = *(time_t *)key2->data;
     return k1_v - k2_v;
The function 'my_extract_timestamp' is set by calling DB->associate().
My problem is 'my_secondary_dup_compare' function called with a strange DBT values.
I think the values should point to the value provided from my_extract_timestamp(), but they pointed to
the key which provided when calling DB->put on the primary DB.
Could somebody help me ?
Any help highly appreciated.

Hi,
In the secondary database, the key is what you extract and the data is the key of the primary database. As your primary key is a unique string, your data in secondary database is also a unique string. The DB->set_dup_compare sets the comparison function for the duplicate data, so you are comparing time stamps on unique strings, not on what you extract.
As you are comparing the time stamps which are the keys of secondary database, I guess here you want to set the bt_compare function instead of the dup_compare for the secondary database.
Also, about this sentence:
secondary_key->data = ( (MY_DATA *)(primary_data->data))->timestamp;
The DBT.data should be an address, but this is a value here instead of an address.
Regards,
Winter, Oracle Berkeley DB

Similar Messages

  • Strange problem while clearing a customer

    Hi everybody
    I am encountering this strange problem while trying to clear some open items for certain customers. Though these customers have open items on them (checked in BSID and FBL5N), the system is giving a warning message saying that there are no open items on the customers while trying F-30 and F-32.
    The only thing that was different for these customers from the rest was that these customers had some transactions which were supposed to be cleared through AP payment run. (transactions for customer payment).
    Can anybody explain why the system was not considering these line items as open while accessing F-30 and F-32??

    Hi,
    - check SAP Note 136754
    some table fields in the missing documents using Transaction SE16. The following conditions must exist:
    BSIS-XOPVW = X      (Indicator: Open item management, only for G/L                     accounts)
    BSEG-XOPVW = X      (Indicator: Open item management)
    BSEG-AUGBL = space  (clearing document number)
    BSEG-DISBN = space  (discount document number)
    BKPF-BSTAT = space  (document status)
    BKPF-XSTOV = space  (indicator reversal flag)
    REGUS/REGUP -> see below
    Should one or more conditions not exist, please note the following information:
    1. BSEG-XOPVW <> X or BSIS-XOPVW <> X for G/L account line items:
                  The line item presumably comes from a time before you activated the open item management of a G/L account. Documents before this master record change do not contain this technical information. Use report RFSEPA02 if you want to bring the documents in line with the new master record. You must refer to the documentation of this report.
                  Because there may be problems subsequently acivating open item management, RFSEPA02 was changed as of Release 4.5A so that it cannot be started without modifications. SAP wants to make sure you are familiar with the problems, which may result from activating open item management. You can however restart RFSEPA02 when you have deactivated the line:
                  leave program.
    2. BSEG-XOPVW <> X for open item account line items:
                  This data status is not allowed. Contact the SAP Hotline.
    3. BSEG-DISBN <> space.
                  The line item has already been used within bill of exchange accounting.
    4. BKPF-BSTAT <> space.
                  This is a document with a special function, for example a sample document or recurring entry document. Generally these are not taken into account in clearing transactions.
    5. BKPF-XSTOV <> space.
                  The document was flagged for reversal. Only if you cancel the reversal flag, can you clear the document again. You can do this by removing the planned date for the reverse posting (BKPF-STODT) in the document header using Transaction FB02 (Change document).
    6. REGUS/REGUP:
                  Look at table REGUS using Transaction SE16. Enter the account (KONKO) in the selection screen. If you selected an entry, use the information Run date (LAUFD) and Identification (LAUFI) in Transaction F110 (payment program). Check the status of the payment run. If only the proposal was carried out, the documents proposed for payment are blocked for other clearing transactions. It is only when you delete the proposal run that the items are taken into account again in the clearing transaction.
    Rgds.

  • Strange problem while execution of query....

    Hi Friends
    I am facing a strange problem while executing the query.
    I have one query ,its old one ,till yesterday everday it was working fine ,
    But today i am trying to execute that query ,execution process takes very long time ,finally no response from bw server.
    its an important report in our company
    I checked query , Every thing is ok ,bze i haven't made any changes
    So i need some suggetions  .like where can i check and what can i do?
    ASAP ....  So Please ...its very urgent....
    EVERY THING AND ANY THING WILL BE REWARED
    Thanks in advance
    RK

    Hi
    Stefan
    Thank you for your valuable suggestion
    the problem is solved
    Already i  assigned  points.
    Thnaks & Regards
    RK

  • Help me with Points to be noted While creating a Secondary Index.

    Hi,
    There is a Secondary index created on a Z table which already have 9 secondary indexes. This is the 10th index that is created.
    The Index is created as follows
    MANDT             Client
    DOCNUM_REF     Document number
    The Table data is huge and it is more than 4Lakh records.
    I have done the following analyses.
    1) The fields to be used are not in any other indexes.
    2) The Data is mostly different, i.e. The document reference field is having distinct data
      select a~docnum a~werks_o a~docnum_ref a~natop
             a~m_icms a~m_ipi
             b~lgort_out b~mov_est
             b~item b~matnr
        appending table ti_requisicoes
        from zsytmm_reqnfcb as a
       inner join zsytmm_reqnfit as b
          on a~branch_o eq b~branch_o
         and a~requi    eq b~requi
         and a~mask     eq b~mask
         for all entries in ti_doc_saida_del
       where a~docnum_ref   eq ti_doc_saida_del-docnum.
    What else I need to check , so that the index improves the performance. The table is using in 300 reports.

    Ravishankar Lanjewar wrote:
    @SAP LEARNER,
    >
    > There is a Secondary index created on a Z table which already have 9 secondary
    > indexes. This is the 10th index that is created.
    >
    >
    > I will not recommand to create index any more on this table. If you want to create secondary index for on above table which you have mention. You don't create index only for hamper of performance of single program/report.
    >
    > Don't create more than 4 to 5 index on sinlge table.
    >
    > Refere the tread Link:[Why to create Secondary index ?|Re: When is a secondary index used (in select or where)]
    Sounds like another myth that is widely spread across SAP community.
    Remember, complex systems like modern DBMS do not like generalizations. I personally know standard SAP tables with 9 standard secondary indexes. In the meantime the hardware became fast enough to update several secondary indexes without really significant problems. Of course indexes require space, of course one should create indexes that are not similar and differ from each other with more than one field for example. In other words, think before creating!
    But it's again incorrect to say "do not create because you already have 9 others". You did not even ask what fields are in the affected table, what are the existing indexes.
    Ravishankar Lanjewar wrote:
    > I will recommand to delete all the index and create 4 to 5 fresh index while doing analysis for all SQL statement using where use list  depends on where condition of SQL.
    I am now trying to imagine the effort to analyze 300 reports using this table and all corresponding selects. And probably you will drop supporting indexes for several reports. Some of them may be CEO/CFO-relevant reports that will run minutes/hours instead of seconds. And I would like to see the reaction of CEO when he finds out that it was the result of your "optimization" activities.

  • DSO activation problem after creating the secondary indexes

    Hi,
        I am facing the problem with DSO activation after creating the secondary indexes.
    •  Compared with Info Cubes there is no functionality available which allows dropping and recreating a secondary index before/after the data activation.
    As a workaround I can write a simple report which drops and creates the indexes on database level.
    By using a process chain, we can simply insert the drop index report before data activation and the create index report after the data activation process.
    Can any body help me step by step procedure or Material to write the programs for delete index and create index reports on DSO object?..
    Thanks in advance for your help.
    Thanks & Regards,
    Bala

    hi,
    in BI if you are using the dso for reporting then you can simply chk the settings of dso for SID generation.
    no need to create the indexes or delete it.
    if the dso is not used for report then no need to use indexes.
    Ramesh

  • Some problems while building tuxedo executables (OS/390 - Open MVS)

    Hi,
    I have a both strange and serious (at least it seems serious to me) problem
    with building tuxedo executables.
    I'd like to link the object files with a library I created (say libmylib.a),
    and the only place I know about to pass some info to the tux builders is the
    env var CFLAGS. In my case the CFLAGS looks as follows: "-L
    /u/myhome/myproject/lib -lmylib", but the linker protests, saying that the
    symbols from object files placed in my library can't be resolved ;(.
    On the other hand if I just take the object files out from the library and
    try to link the executable placing all of them explicitly in the command
    line everything goes smoothly.
    HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP...
    Regards
    Chris
    PS. I use Tuxedo release 6.5

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET web application development, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Strange problem while login to SCN in Internet explorer

    Dear All,
    I am facing a strange problem, where i am unable to login into SCN through Internet explorer, as when i click logon button a blank screen is coming and the login screen is not opening.Its happening  both in my office and house.
    This question i am posting through google chrome, where i am able to get the below screen.
    The attached image is what i am getting i am talking about
    Is this problem coming for everyone,kindly let me know.As in my office we are using only Internet explorer and i am unable to work on SCN.
    Kindly let me know bout it.Since i am active in this module, i am posting the question here.
    Thanks&Regards
    Darshan Desai

    Hi,
    Please repost at SCN Support to get quick solution.
    IE 9 is best suitable for our forum. IE 11 is not working as required. I am also using Google Chrome at home. But at office i am using  IE9.
    Thanks & Regards,
    Nagarajan

  • Strange Problem While Recording

    I have a PushBufferStream that I separated in 4, because the first one have 4 videos multiplexed. Then I tried to record one of the new PushBufferStreams by wrapping it in a new DataSource in a new Processor. I created the DataSink and started to record and it worked well. But the video file generated (an .AVI) have a strange problem. It has the duration of the original DataSource, not the duration of the recording time. If I start the original DataSource now and after one minute record the PushBufferStream by 5 seconds, the video file created have 1minute and 5 seconds. In the first image just a static image (the first frame) is shown, and in the lasts 5 seconds the video is shown normaly.
    Does anyone could help me, I don�t know what could I do to solve the problem? Thanks.

    just a thought, check how much memory your app is using, is it storing a minuites worth of video in memory, then when yu record for your five seconds, it's dumpng the whole lot into your avi file.
    maybe empty your buffer before you record.

  • A strange problem while Solaris9 CC compile union

    I met a strange question while using solaris9 CC to compile my code.
    These codes looks like as following:
    typedef
    struct {
    int len;
    union {
    DWORD u;
    #if BYTE_ORDER == BIG_ENDIAN
    struct {
    BYTE ext1 : 1;
    BYTE codingStd : 2;
    BYTE infoTransCap : 5;
    BYTE ext2 : 1;
    BYTE transMode : 2;
    BYTE infoTransRate : 5;
    BYTE ext3 : 1;
    BYTE rateMutiplier : 7;
    BYTE ext4 : 1;
    BYTE LAYER1IDENT : 2;
    BYTE USERINFOLAYER : 5;
    } U4;
    struct {
    BYTE EXT1 : 1;
    BYTE CODINGSTD : 2;
    BYTE INFOTRANSCAP : 5;
    BYTE EXT2 : 1;
    BYTE TRANSMODE : 2;
    BYTE INFOTRANSRATE : 5;
    BYTE EXT3 : 1;
    BYTE LAYER1IDENT : 2;
    BYTE USERINFOLAYER : 5;
    BYTE : 8;
    } U3;
    #elif BYTE_ORDER == LITTLE_ENDIAN
    struct {
    BYTE infoTransCap : 5;
    BYTE codingStd : 2;
    BYTE ext1 : 1;
    BYTE infoTransRate : 5;
    BYTE transMode : 2;
    BYTE ext2 : 1;
    BYTE rateMutiplier : 7;
    BYTE ext3 : 1;
    BYTE USERINFOLAYER : 5;
    BYTE LAYER1IDENT : 2;
    BYTE ext4 : 1;
    } U4;
    struct {
    BYTE INFOTRANSCAP : 5;
    BYTE CODINGSTD : 2;
    BYTE EXT1 : 1;
    BYTE INFOTRANSRATE : 5;
    BYTE TRANSMODE : 2;
    BYTE EXT2 : 1;
    BYTE USERINFOLAYER : 5;
    BYTE LAYER1IDENT : 2;
    BYTE EXT3 : 1;
    BYTE : 8;
    } U3;
    #endif /* BYTE_ORDER */
    }_U;
    } CaBEARER, *CaLPBEARER;
    at xxx.cpp , I write some codes:
    bearer._U.U3.EXT1 = 0x01;
    bearer._U.U3.CODINGSTD = 0x01;
    bearer._U.U3.INFOTRANSCAP = 0x08;
    bearer._U.U3.EXT2 = 0x01;
    bearer._U.U3.TRANSMODE = 0x00;
    bearer._U.U3.INFOTRANSRATE = 0x00;
    bearer._U.U3.EXT3 = 0x01;
    bearer._U.U3.LAYER1IDENT = 0x01;
    bearer._U.U3.USERINFOLAYER = 0x05;
    But I compile it, CC reports these errors
    Error: Badly formed expression.
    Error: Identifier expected instead of "0x00000001".
    What' wong with these codes? how to do ?
    Thank you!

    At a.h
    typedef
    struct {
    int len;
    union {
    DWORD u;
    #if BYTE_ORDER == BIG_ENDIAN
    struct {
    BYTE ext1 : 1;
    BYTE codingStd : 2;
    BYTE infoTransCap : 5;
    BYTE ext2 : 1;
    BYTE transMode : 2;
    BYTE infoTransRate : 5;
    BYTE ext3 : 1;
    BYTE rateMutiplier : 7;
    BYTE ext4 : 1;
    BYTE LAYER1IDENT : 2;
    BYTE USERINFOLAYER : 5;
    } U4;
    struct {
    BYTE EXT1 : 1;
    BYTE CODINGSTD : 2;
    BYTE INFOTRANSCAP : 5;
    BYTE EXT2 : 1;
    BYTE TRANSMODE : 2;
    BYTE INFOTRANSRATE : 5;
    BYTE EXT3 : 1;
    BYTE LAYER1IDENT : 2;
    BYTE USERINFOLAYER : 5;
    BYTE : 8;
    } U3;
    #elif BYTE_ORDER == LITTLE_ENDIAN
    struct {
    BYTE infoTransCap : 5;
    BYTE codingStd : 2;
    BYTE ext1 : 1;
    BYTE infoTransRate : 5;
    BYTE transMode : 2;
    BYTE ext2 : 1;
    BYTE rateMutiplier : 7;
    BYTE ext3 : 1;
    BYTE USERINFOLAYER : 5;
    BYTE LAYER1IDENT : 2;
    BYTE ext4 : 1;
    } U4;
    struct {
    BYTE INFOTRANSCAP : 5;
    BYTE CODINGSTD : 2;
    BYTE EXT1 : 1;
    BYTE INFOTRANSRATE : 5;
    BYTE TRANSMODE : 2;
    BYTE EXT2 : 1;
    BYTE USERINFOLAYER : 5;
    BYTE LAYER1IDENT : 2;
    BYTE EXT3 : 1;
    BYTE : 8;
    } U3;
    #endif /* BYTE_ORDER */
    }_U;
    } CaBEARER, *CaLPBEARER;
    At b.cpp
    #include "a.h"
    CaBEARER bearer;
    1:bearer._U.U3.EXT1 = 0x01;
    2:bearer._U.U3.CODINGSTD = 0x01;
    3:bearer._U.U3.INFOTRANSCAP = 0x08;
    4:bearer._U.U3.EXT2 = 0x01;
    5:bearer._U.U3.TRANSMODE = 0x00;
    6:bearer._U.U3.INFOTRANSRATE = 0x00;
    7:bearer._U.U3.EXT3 = 0x01;
    8:bearer._U.U3.LAYER1IDENT = 0x01;
    9:bearer._U.U3.USERINFOLAYER = 0x05;
    But I compile it, CC reports these errors
    Line 1:Error: Badly formed expression.
    Line 1:Error: Identifier expected instead of "0x00000001".
    Line 2:Error: Badly formed expression.
    Line 2:Error: Identifier expected instead of "0x00000001".
    Line 3:Error: Badly formed expression.
    Line 3:Error: Identifier expected instead of "0x00000001".
    Line 4:Error: Badly formed expression.
    Line 4:Error: Identifier expected instead of "0x00000001".
    Line 5:Error: Badly formed expression.
    Line 5:Error: Identifier expected instead of "0x00000001".
    Line 6:Error: Badly formed expression.
    Line 6:Error: Identifier expected instead of "0x00000001".
    Line 7:Error: Badly formed expression.
    Line 7:Error: Identifier expected instead of "0x00000001".
    Line 7:Error: Badly formed expression.
    Line 8:Error: Identifier expected instead of "0x00000001".
    Line 8:Error: Badly formed expression.
    Line 9:Error: Identifier expected instead of "0x00000001".
    Line 9:Error: Badly formed expression.

  • Strange problem while syncronizing catalog

    I am doing a syncronization, once every two weeks or so. Since I started using Lightroom 3 (now 3.3) I end up with a very strange problem, that makes it almost impossible to sync the catalog.
    I get the window were it tells me to "add" pictures or movies without "moving" the images, then after I push the buttom it only takes a moment before I get up a dialog box were it tells me; " Community toolbar" with bold text and then "We're sorry, but the Safari browser version you are currently using does not support the community toolbar"
    If I do not push "OK", so that the dialog box dissapeare the syncronization will not move on. For every image I want to ad the same dialog box appears and I have to push "ok" again.
    Do not understand this at all. I have tried to update the Safari. I also been in contact with the phone support that could not help me.
    Anyone?
    // Torbjorn

    Hello
    I use Mac OSX 10.6.6
    Do not have any add-ons
    And Yes it is when I syncronize  the hole catalog. In the catalog I have several folders.
    //Torbjorn

  • Problem while building jsp/servlet  in j2me

    Hi friends,
    I'm building Servlet in j2me.When i run this Servlet on web browser the Servlet running fine.But while in application when i used
    conn = (HttpConnection)Connector.open( url );
    where url = "http://localhost:8080/servlets-examples/hits"
    It hangs ,the debugger stuck at this method .It didn't throw any Exception also.
    Whats the problem?how could i resolve this issue?
    Note:
    I've used the follwing tutorial
    http://developers.sun.com/techtopics/mobility/midp/articles/tutorial2/
    to build servlet in MIDlet.
    Regards,
    Sachin Warang.

    hi friends,
    I debug the code while doing so i realised that it throwing SecurityException .So edit the preferences>
    where in security i've change it to untrusted and restore the settings.
    After clicking on OK .
    The application works fine.
    Regards,
    Sachin Warang.

  • XQilla problem while building dbxml for Visual Studio 6

    I am simply trying to build dbxml 2.4.16 in Visual Studio 6 on XP Pro. I am following the instructions. It fails to to link when it gets to xqilla. It seems to compiile ok then fails while linking saying it cannot open file xqilla21d.lib.
    The only departure from the instructions was after it says the XercesLib.dsp makefile could not be generated by developer Studio and wraps the makefile for XercesLib.dsp and I save that as XercesLib1.dsp. The instructions say to build the XercesLib now, but the next thing that happens after I save XercesLib1.dsp is that it says it couldn't generate the makefile for xqillla and it asks about wrapping the xqulla makefile. The instructions didn't say anything about that. I said yes and it saved xqilla1.dsp then brings up all the classes in the classview. I can build the XercesLib1.exe fine. But then as I go to build all it eventually chokes giving the link error.
    Can anyone offer any help?
    Thanks,
    Curt

    George,
    Thanks for taking the time to reply, though it was pretty discouraging. We have a legacy application that would cost too much to move out of Visual Studio 6. The compile and link process was almost at the end and it seemed only xqilla remained. We only need use dbxml under Visual Studio 6 in order to put xml documents into a database, but we have a stiff requirement for speed so we cant' afford the speed penalty that would come from including a layer like .NET or something. If you think that it won't build under VS 6 anymore I'll try to deal with that. If you think that there is a way to get it to build and then do the minimal function of putting documents into a database, from Visual C++ I'd appreciate to hear any thing else you may have to say.
    Otherwise I'll just see if I can install VS 2003 .NET but not use the .NET and try that, or try Visual Studio 2005, again not using .NET.
    Thanks,
    Curt

  • Problem while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: GLOBAL_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Hi,
    I think Probably what has failed is some inner kind of operation that didn't handle the exception correctly, that is dropping the offending object automatically and it issue is raised (error). Therefore you'll have to manually drop the index and re-create the desired index (that might solve your problem)
    - Pavan Kumar N

  • Strange problem while executing the Query.......

    Hi,
    I have created a new query and I am facing the strange behaviour.
    When I execute it , it works fine but when one of my colleague execute it , it does not return any value for one of the Price variable.
    It works fine with most of the people I have checked except one.
    Can somebody let me know the reason.....?
    Thanks , Jeetu

    Hello,
    If it is authorization problem go to transaction st01 and mark the first check for authorization. Under filter insert the user. Click Trace On.
    Execute the query with that user and just after the lack of authorization message click trace off.
    Read the trace.
    Do the same with your user and compare the log of the two.
    You'll see what is missing.
    Assign points if helpful.
    Diogo.

  • Facing Problem while building DC  Locally

    Hi all,
    When i build DC from using NWDS, i got the error "unable to find a javac compiler."
    Detailed Error as below :
    Feb 3, 2011 11:20:15 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: createpwdsaf: Build failed for com.bat.saf/createpwdsaf(MyComponents) in variant "default": Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Build log -
    DC Model check:
              [dcmake] All used DCs are available locally
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
    Build Plugin 'WebDynproPlugin', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)
       development component:  createpwdsaf (com.bat.saf)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  Web Dynpro
               build variant:  default
             source location:  ankita@D-166231
           plugin start time:  2011-02-03 11:20:05 GMT+05:30 (IST)
                     Java VM:  Java HotSpot(TM) Client VM, 1.6.0_02-b06 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Plugin initialized in 0.109 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Warning: Did not find any tools.jar in C:\Program Files\Java\jre1.6.0_02
    Data context prepared in 0.031 seconds
    Executing macro file..
      Using macro file:     D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
      Using build target:   build
      Generation folder:    C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\gen\default\deploy
    compile:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\src\packages
         [ddgen] [Info]    Property targetpath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\gdd
         [ddgen] [Info]    Property archivename: com.bat.saf~createpwdsaf
         [ddgen] [Info]    Property vendor: com.bat.saf
         [ddgen] [Info]    Property dcname: createpwdsaf
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapDictionaryTypeServices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypesRuntime.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       jrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_util_misc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.util.misc/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       cmiapi.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       exception.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.bat.saflibrarylibrary_DCs.jar - C:/Documents and Settings/ankita/.dtc/LocalDevelopment/DCs/com.bat.saf/library/_comp/gen/default/public/library_DCs/lib/java
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_proxy_rt.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.proxy.framework/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.perf.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.sap.security.api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.sap.security.api.perm.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproadmin.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynprobasesrvc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproclientserver.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodelimpl.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodel_dynamicrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpropdfobject.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproprogmodel.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling_api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository_pmr.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproservices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [wdgen] [Info]    Generating configuration/Applications/com.bat.saf.application.CreatePWDSAFApp/CreatePWDSAFApp.xml
         [wdgen] [Info]    Generating portalapp.xml
         [wdgen] [Info]    Generating wd.xml
         [wdgen] [Info]    Generating application.xml
         [wdgen] [Info]    Generating application-j2ee-engine.xml
         [wdgen] [Info]    Generating PublicPartFileList.properties
         [wdgen] [Info]    Generating PublicPartFileList.xml
         [wdgen] [Info]    Generation finished (6 seconds)
         [wdgen]
         [timer] WebDynpro generator  finished in 6.734 seconds
          [echo] Starting Java compiler
         [javac] Compiling 47 source files to C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\classes
    Ant runtime 9.828 seconds
    Ant build finished with ERRORS
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Error: Build stopped due to an error: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Build plugin finished at 2011-02-03 11:20:15 GMT+05:30 (IST)
    Total build plugin runtime: 10.343 seconds
    Build finished with ERROR
    I check the JAVA_HOME, it is C:\Program Files\Java\j2re1.4.2_13\bin
    In NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's, it is C:\Program Files\Java\j2re1.4.2_13
    Do i need to chck any other setup?
    Regards,
    Manchari

    Hi Manchari,
    In your directory C:\Program Files\Java\j2re1.4.2_13 there is a bin folder. Check there for the executable javac.exe. If that executable is not available, you just have a Java runtime environment installed.
    Download from the net a Java SDK (System Development Kit) of the right version i.e. j2sdk1.4.2_13. Point it to your NWDS under NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's.
    Hope this helps.
    Regards,
    Alain.

Maybe you are looking for

  • HP Color Laserjet 4520 not switching automatically to Tray 1

    Hi, I have a strange tray issue with a HP Laserjet 4520. If a sheet of paper is put into tray 1 (manual feed), the printer still take tray 2 for printing. It only prints from tray 1 when its manualy selected in the printer properties... Its very weir

  • My iMac beeps and freezes

    I will be using it and it randomly will stop and freeze than beep three times the only way to stop it is a hard boot up unplugging it only works I had upgraded the ram to the max that a 27 inch 2011 model will take I believe 16 gb

  • Polymorphism in a JAX-WS 2.1

    I will try and describe this problem by using simple examples - I would like to leverage the power of polymorphism in web services. Suppose I have a simple web service class with a set and get operation as below: package wsserv; import javax.jws.Onew

  • Laserjet M475DW won't print last page from iPad

    It's all in the subject. The printer prints fine via the iPad PrinterControl app but won't print the last page of the Word document or Powerpoint slide deck. Since you can't choose which page to print from PrinterControl, I can't force the printer to

  • CS2 Help Center Won't Open

    All of a sudden I can't open the Photoshop Help Center. When I click on help, a tab appears in the bottom tray, yet, it opens nothing. Clicking on it produces no result. What am I missing here? Thanks! :-)