UI API Problem

Hi All,
I am trying to install an Add-On on a server machine but when i click on the Install button it returns a error "UI API not found- Installation can not be done" .
What is the problem can any one help me.
Please reply as soon as possible.
Regards,
Anil Kumar

Hello Anil,
Have you installed the SDK from package folder of the latest PL of SBO installation you are using now? I am afraid it could be the cause of the problem.
Rgds,

Similar Messages

  • Comm API problems RS232 SerialDemo

    Hello,
    before you ask: yes, i have read a lot of postings concerning this topic.
    However, my problem is different than the common Comm API problems.
    Win2000, JDK 1.5.2, Comm API 2.0.
    The SerialDemo compiles (wow), shows the correct COM Ports (1) (this has been a major problem in a lot of postings), and works without exceptions. Great, but i dont get any serialEvent when i send something from my device on COM1 (a balance).
    I know the RS232 parameters (1200,7 data bits, 1 stop bit, parity odd), and i connected this device without problems to a Delphi application.
    Cable is the same and the correct one. The device sends with CRLF (ASCII 13 and 10) at the end of each string.
    I tried SimpleRead.java too, but here the same: no serialEvent has been triggered when the device sends its data.
    Any ideas?
    Oliver

    Hi
    sorry, it does work now :)
    It was the device itself which was causing the problem.
    But i really wasnt expecting this, because the day before the device (a balance) worked without any problems. Its quite funny that the balance stopped working just the day i started with the Java communication :)
    thanks
    Oliver

  • Deprecated API Problem

    I have tried (unsuccessfully) for hours and hours to correct a deprecated Api problem with an old java program I have been tinkering with. Is there anyone out there who may be able to help me? I would appreciate it very much.

    Hello Lovadina,
    I do not think my problem is the most difficult problem that has ever been posted but because I am so new to this I am having difficulty in fixing a java program I am working on. It is to do with an old API Mouse event that is currently part of the source code and from what I have read about it, it should not take much to update it as an old version is being used. You can contact me at [email protected] Thanks

  • Problems with Direct Entitlement API ( problems to download the issuenumbers and others)

    Hi there.
    Here we are using the last version of Direct Entitlement API , we had download on this url : http://www.adobe.com/devnet/digitalpublishingsuite/articles/direct-entitlement-starter-kit .html
    But We are getting some problems
    With https://dev01.cartacapital.com.br/adobe/api/entitlements.php?authToken=0fc82ad9b9c11703ad5 c8dee47d7ee26&appVersion=1.3.1&appId=468573252
    This api is modificated to show only the issuenumbers that I have the right to read.
    I'm getting this results
    <result httpResponseCode="200">
    <entitlements>
    <productId>com.editoraconfianca.revistacartacapital.edicao753</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao754</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao755</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao756</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao757</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao758</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao759</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao760</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao761</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao762</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao763</productId>
    <productId>com.editoraconfianca.revistacartacapital.edicao764</productId>
    </entitlements>
    </result>
    That's ok
    But on my Ipad ( for testing only) , show this entitlement on a first place, on top of my screen.
    1) Why does the app is showing others  entitlements too, like ( com.editoraconfianca.revistacartacapital.edicao752, 751 ...  ) ?
    2) When I try to download all the result in  my xml , is not allowed to donwload, but the ( com.editoraconfianca.revistacartacapital.edicao752, 751 ...  ) is allowed to download
    When I verify if I can download the issue ( https://dev01.cartacapital.com.br/adobe/api/verifyEntitlement.php?authToken=0fc82ad9b9c117 03ad5c8dee47d7ee26&appId=com.editoraconfianca.revistacartacapital&productId=com.editoracon fianca.revistacartacapital.edicao753&appVersion=1.0.34 )
    show this result
    <result httpResponseCode="200">
    <entitled>true</entitled>
    </result>
    But I can't do the download.
    Help Please.

    There is no license or serial number for the DVD installer.
    If you can get access to a Mac with a working DVD Drive, make the DVD into a .dmg file in Disk Utility and then copy the .dmg file onto a USB key and install onto your Mac from that.
    Peter

  • Can anuone help me on persistence API problem please?

    I would like someone to explain me why when using persistence API
    sometime i can insert data in database normally but later when i
    have added more functionalities like ajax, and file upload i can
    insert data in database using persistence API.
    for instance, using this i was able in the begin of my development
    but now i am not:
    utx.begin();
    inst.insert(name, email); 
    utx.commit();replace the code above by this below i can insert the data
    at the same step of my project:
    Class.forName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/loja?user=marcos&password=131283");     
                String selectStatement = "insert into cadastroswebradio values(?, ?)";
                PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                prepStmt.setString(1, name);
                prepStmt.setString(2, email);So what's the problem? could anyone help me?Thanks!!
    this explain either:http://forum.java.sun.com/thread.jspa?threadID=764824

    Basically i totally not understand your question and i believe also nobody would understand what is your question. You mean your persistence APIs, but you didnt show how the APIs and just use it, i can say that, the only different of that JDBC and your 'persistence', is your JDBC isnt commit function(not include auto-commit). What i can see is that's all.
    But the idea of usage DB conn API should be correct with the 3 steps,
    Begin - Open connection
    Query - insert/update/delete
    Close - commit
    catch - Rollback
    Hopefully it helps.

  • Can anyone help me on persistence API problem?

    I would like someone to explain me why when using persistence API
    sometime i can insert data in database normally but later when i
    have added more functionalities like ajax, and file upload i can
    insert data in database using persistence API.
    for instance, using this i was able in the begin of my development
    but now i am not:
    utx.begin();
    inst.insert(name, email); 
    utx.commit();replace the code above by this below i can insert the data
    at the same step of my project:
    Class.forName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/loja?user=marcos&password=131283");     
                String selectStatement = "insert into cadastroswebradio values(?, ?)";
                PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                prepStmt.setString(1, name);
                prepStmt.setString(2, email);So what's the problem? could anyone help me?Thanks!!
    this explain either:http://forum.java.sun.com/thread.jspa?threadID=764824

    Basically i totally not understand your question and i believe also nobody would understand what is your question. You mean your persistence APIs, but you didnt show how the APIs and just use it, i can say that, the only different of that JDBC and your 'persistence', is your JDBC isnt commit function(not include auto-commit). What i can see is that's all.
    But the idea of usage DB conn API should be correct with the 3 steps,
    Begin - Open connection
    Query - insert/update/delete
    Close - commit
    catch - Rollback
    Hopefully it helps.

  • COMM API problem

    Hello there
    I am hoping you can help me with following. I am trying to transfer files from one computer
    to another using a serial port and hence I am using the communications api. I have gotten so
    many errors on the problem. I have followed the information for installing the api but I
    still get errors. It will let me compile a file but when I try to run it it give me the
    following error
    NoClassDeffounder found
    What my lecturer did was opened up the jar file and put them into a separate folder. We then
    put them into the bin directory in the jdk.
    Everywhere in the code where it was calling a class,constant belong to the api we did the
    following
    comm.CommPortIdentifier.getPortIdentifiers();
    In the above line comm is the folder with the class files
    When we try to tun it now it executes.But it still cannot find any ports whatsoever
    Please can anyone at all help. I am stuck on this problem for over a month and is slowing me down
    Thanks

    No the code has not come from my tutor
    I've had 2 experts trying to help me and they dont
    know what the problem is
    I have tried the SerialDemo
    I still get the same result
    Any other ideasIf you have followed these instructions to the letter, which I doubt, then you probably need to re-install Windows.
    If they haven't fixed this relatively simple problem they are not experts. Consultants perhaps, but not experts.

  • [Addin API] Problem with setting Common data in ProjectSettings

    I'm experimenting with how to store information in a project and trying out the "ProjectSettings.jpr" example coming with the AddinAPI samples.
    In the sample, data set in "Common" settings doesn't work (while data set in "Configuration" settings works).
    To reproduce the problem,
    1. Compile and install the ProjectSettings plugin
    2. Restart JDev
    3. Go to Project | Project Settings
    4. Type in some data under Common/"My Properties" and
    Type in some data under Configuration/Development/"My CFG Properties"
    5. Click OK
    6. Go to Project | Project Settings again
    7. Now, data entered under Common/"My Properties" is lost but data under
    Configuration/Development/"My CFG Properties" retains.
    I figured out the problem is that inside CommonProjectSettingsPanel.onEntry(TraversableContext tc), tc.find(ConfigProjectSettings.KEY) returns null, meaning the setting object is not found in the context.
    I'm using JDev 9.0.2.829.
    Is this a known bug in 9.0.2's Addin API?
    Thanks.

    Besides, I found out that if I changed the value of the key ConfigProjectSettings.KEY from "MyConfig.PrjSettings" to "samples.oracle.addin.projectsettings.ConfigProjectSettings" (which is same as the classname), it doesn't work anymore.
    Is there any restriction (e.g. number of dots, length, etc.) on the keys used in project settings?

  • Using Design-Time API problems

    I've been using the design time API to create an effect similar to that achieved in the examples section of the User guide for the HtmlDataTable. I'm not having any luck with my beanCreatedSetup method. I've done simething similar to the example and have created DesignBeans as table columns but in my examplecode the JSP code is not correct. In the JSP none of the children elements appear as children of the table,. I'm passing in the correct parent design bean when I call createBean, so I'm not sure what I'm doing wrong.
    My code is pretty much the same as in the example.
    Any ideas would help. Or a look at the complete source to HtmlDataTableDesignInfo.
    Don

    I was looking for a more immediate response to this specific problem, the other thread was a request for better examples in the docs. They are related, a complete example could solve my problem, but I'm nore sure there isn't a problem with the createBean() call. No matter what I do, I can't create a bean for component that get's persisted as a child component of a parent. In this case the parent DesignBean is derived from HtmlTableData and I'm trying to add children DesignBeans that are columns. After adding them they are persisted into the jsp page but not as children of the table component.
    Don

  • Grid API problem

    Hi, I sort of copied and pasted the example from Grid API doc. But the output doesn't produce as necessary.The result I get is:,Scenario,,,,,,,,,and I think it should be: , ,Year,Product,MarketActual, Sales, 333, , Any ideas ???Here is the Code: ( quite long but mostly copied from the example )#include <stdio.h>#include <essapi.h>#include <essgapi.h>ESSG_PPDATA_T BuildTable (ESSG_PRANGE_T pRange) ;ESSG_PPDATA_T AllocTwoDims (ESS_ULONG_T ulRows, ESS_ULONG_T ulCols) ;ESSG_VOID_T FreeTwoDim(ESSG_PPDATA_T ppDataToFree,ESSG_ULONG_T ulRows) ;int main(void) {     // Initialize API.     ESSG_FUNC_M sts = ESSG_STS_NOERR ;     ESSG_INIT_T InitStruct ;     ESSG_HANDLE_T Handle ;     ESSG_HGRID_T hGrid ;     InitStruct.ulVersion = ESSG_VERSION ;     InitStruct.ulMaxColumns = 1000 ;     InitStruct.ulMaxRows = 200 ;     InitStruct.pfnMessageFunc = ESS_NULL ;     InitStruct.pUserdata = ESS_NULL ;     sts = EssGInit(&InitStruct, &Handle) ;     if(sts != 0) {          printf("API Grid Init failed\n %d\n", sts) ;          return 0 ;     }     // Initialize Grid.     sts = EssGNewGrid(Handle, &hGrid) ;     if(sts != ESSG_STS_NOERR) {          printf("New Grid Init failed\n") ;          return 0 ;     }     // Data Retrieval.     ESSG_ULONG_T     ulRow, ulCol, ulOptions ;     ESSG_PPDATA_T     ppDataIn, ppDataOut ;     ESSG_RANGE_T     rRangeDataIn, rRangeDataOut ;     ESSG_USHORT_T     usState ;     /* Connect to Essbase and assigne to Grid */     sts = EssGConnect(     hGrid,                              "Sever",                              "Admin",                              "admin92",                              "username",                              "pass",                              ESSG_CONNECT_NODIALOG                         ) ;          if(sts == 0) {          ppDataIn = BuildTable(&rRangeDataIn) ;          ulOptions = 0 ;          sts = EssGBeginRetrieve(hGrid, ESSG_RET_RETRIEVE);     } else {               printf( "Connection Problem \n") ;               return 0 ;     }     if(sts == 0) {          sts = EssGSendRows(hGrid, &rRangeDataIn, ppDataIn) ;     } if (sts == 0) {                /* We're done sending rows, perform the retrieval */                sts = EssGPerformOperation(hGrid, 0);                        /* Free the data we built */                FreeTwoDim(ppDataIn, rRangeDataIn.ulNumRows);        }          if (sts == 0) {                /* Determine the results of the retrieve and how much data                 * is being returned.                 */                sts = EssGGetResults(hGrid, 0, &rRangeDataOut, &usState);        } if (sts == 0) {                /* Get all of the data */                sts = EssGGetRows(hGrid,0, &rRangeDataOut,                         &rRangeDataOut, &ppDataOut);        }          if (sts == 0) {                /* Interate though the data ... */                /* First the rows */                for (ulRow = rRangeDataOut.ulRowStart;                                ulRow < rRangeDataOut.ulNumRows;                                ulRow++)                {                        /* Then the columns */                        for (ulCol = rRangeDataOut.ulColumnStart;                                        ulCol < rRangeDataOut.ulNumColumns;                                        ulCol++)                        {                                /* Here's a cell ... just render it. */                                switch (ppDataOut[ulRow][ulCol].usType) {                                        // Renderint it. too big to post.                                }                                             printf(","); }                                                  printf("\n") ; }               }     if(sts == 0) {          EssGEndOperation(hGrid, 0) ;          EssGDisconnect(hGrid,0) ;     }     return 0 ;}ESSG_PPDATA_T BuildTable (ESSG_PRANGE_T pRange){ESSG_PPDATA_T   ppTable;ESSG_STR_T      current_str;ESSG_USHORT_T   slen = 0;   pRange->ulRowStart = 0;   pRange->ulColumnStart = 0;   pRange->ulNumRows = 2 ;   pRange->ulNumColumns = 5;   ppTable = AllocTwoDims(2, 5);   /* ROW 1 */   ppTable[0][0].usType = ESSG_DT_BLANK; ppTable[0][1].usType = ESSG_DT_BLANK; return ppTable ; slen = strlen("Year"); current_str = (ESSG_CHAR_T *) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str = slen;   strcpy( (current_str + 1), "Year");   ppTable[0][2].usType = ESSG_DT_STRING;   ppTable[0][2].Value.pszStr = current_str;      slen = strlen("Product");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str =  slen;   strcpy( (current_str + 1), "Product");   ppTable[0][3].usType = ESSG_DT_STRING;   ppTable[0][3].Value.pszStr = current_str;   slen = strlen("Market");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str =  slen;   strcpy((current_str + 1), "Market");   ppTable[0][4].usType = ESSG_DT_STRING;   ppTable[0][4].Value.pszStr = current_str;   /** ROW 2 ***/ slen = strlen("Actual"); current_str = (ESSG_CHAR_T *) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); current_str = slen;   strcpy((current_str + 1), "Actual");   ppTable[1][0].usType = ESSG_DT_STRING;   ppTable[1][0].Value.pszStr = current_str;   ppTable[1][1].usType = ESSG_DT_STRING;   slen = strlen("Sales");   current_str = (ESSG_CHAR_T ) malloc(sizeof(ESSG_CHAR_T)*(slen+2)); *current_str =   slen;   strcpy( (current_str + 1), "Sales");   ppTable[1][1].Value.pszStr = current_str;   ppTable[1][2].usType = ESSG_DT_BLANK;   ppTable[1][3].usType = ESSG_DT_BLANK;   ppTable[1][4].usType = ESSG_DT_BLANK;   return (ppTable);}ESSG_PPDATA_T AllocTwoDims (ESS_ULONG_T ulRows, ESS_ULONG_T ulCols){        ESSG_PPDATA_T   ppTemp;        ESS_ULONG_T     ulIndex;        ppTemp = (ESSG_PDATA_T * ) malloc(sizeof(ESSG_PDATA_T) * ulRows);        for (ulIndex = 0; ulIndex < ulRows; ulIndex++)        {                ppTemp[ulIndex] =( ESSG_DATA_T * ) malloc(sizeof(ESSG_DATA_T) * ulCols); } return ppTemp;}ESSG_VOID_T FreeTwoDim(ESSG_PPDATA_T ppDataToFree, ESSG_ULONG_T ulRows){   ESSG_ULONG_T ulIndex;   for (ulIndex = 0; ulIndex < ulRows; ulIndex++)   {      if (ppDataToFree[ulIndex]->usType == ESSG_DT_STRING) {         free(ppDataToFree[ulIndex]->Value.pszStr); } free(ppDataToFree[ulIndex]); } free(ppDataToFree);}

    Assuming there are no errors happening, it looks like the function you are using to output the results is not displaying the data properly.Could you post that function? It looks like it got truncated...Regards,Jade----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Facebook Flash graph api problem please help !!

    Hi people
    I have som porblem with Facebook Flash graph API
    I am receiving request, but realy when I check my wall in facebook FacebookDesktop.api not adds Like or unLike
    please help me if anyone have experience in Flash Gaph API, and how to solve the problem
    thanks
    private function likeClickHandler(event:MouseEvent):void{
                   handleLikeClick()
              protected function populateLikeCount():void {
                   if (intData.user_likes) {
                        likeBtn.label = 'Unlike';
                   } else {
                        likeBtn.label = 'Like';
                   likesCount.text = intData.likes == null ? '':intData.likes + ' likes.';
                   //likeBtn.visible = int(intData.likes > 0);
              protected function handleLikeClick():void {
                   loading.visible = true;
                   if (intData.user_likes) {
                        FacebookDesktop.api('/'+intData.id+'/likes', handlePostUnliked);
                   } else {
                        FacebookDesktop.api('/'+intData.id+'/likes', handlePostLiked);
              protected function handlePostUnliked(response:Object, fail:Object):void {
                   loading.visible = false;
                   if (response) {
                        var objet:Object = response as Object;
                        intData.likes--;
                        intData.user_likes = false;
                        populateLikeCount();
              protected function handlePostLiked(response:Object, fail:Object):void {
                   loading.visible = false;
                   if (response) {
                        (intData.likes == null)?intData.likes = 1:intData.likes++;
                        intData.user_likes = true;
                        populateLikeCount();

    no any idea??  (((

  • COMM Api problems to send a CR (13 or ^M) character.

    I am trying to get familiar with the COMM API, I use the examples in the package like "BlackBox", or "SerialDemo".
    They work fine, but I realized there is no way to send an "enter" to my router I am trying for testing the COM.
    With any other term program on my COM1 I have no problems, both with standard ASCII characters, and with any control character (0-32), thus including "enter" (CR, 13, ^M are equivalents as far as I know).

    When trying to send ASCII characters, make sure that you don't send a String, as Java strings are Unicode characters consisting of two bytes. Standard ASCII uses the bottom 7-bits of a byte. The send an Enter or Return chararcter, use the primative type: char
    char myEnterChar = '\r';Cheers,
    - David

  • SAFP API Problem

    Hi gurus,
    We have problem with SFP. We are trying copy PSFC_PRINT_LAY in Z.... but an error internal is produced. Exactly "Internal error ocurred in SAFP API". In notes OSS any reference to 'SAFP API'.
    We need help!! Thank You! I have points for best answers!

    Hello Phillip!
    I have executed FP_PDF_TEST_00 and the result is NO OK. The system message is...
    Error Code: 2 
    Invalid HTTP connection: ADS
    But, we only need modify forms to orders production. I don't understand the reason to install all ADS to make one or two forms...

  • Consolidator API - problems

    Hi!
    I'm trying to create publications, publication items and so on programmatically with Java. Therefor I use the Consolidator API and the Resource Manager API. I also found some documentation and code examples how to use these APIs. But my code does not work correctly. My first problem is to connect to the mobile server with the ResourceManager object. To connect I want to use this code linem which is surrounded by a try-catch:
    oracle.mobile.admin.ResourceManager.openConnection(          "mobileadmin","manager",
         "jdbc:oracle:thin:@server005:1521:test10g2");
    This code line throws following exceptions:
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParser
         at oracle.mobile.admin.ResourceManager.openConnection(ResourceManager.java:158)
         at basics.Publication.openOliteConnection(Publication.java:29)
         at basics.Publication.createSnapshot(Publication.java:17)
         at basics.MyFrame.actionPerformed(MyFrame.java:59)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    OpenConnection
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParser
         at oracle.lite.common.Profile.getBinDirectory(Profile.java:154)
         at oracle.lite.sync.SiteDef.init(SiteDef.java:345)
         at oracle.lite.sync.SiteDef.<clinit>(SiteDef.java:331)
         at oracle.lite.sync.Consolidator.<clinit>(Consolidator.java:397)
         at basics.Publication.createPublication(Publication.java:53)
         at basics.Publication.createSnapshot(Publication.java:18)
         at basics.MyFrame.actionPerformed(MyFrame.java:59)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    webtogo.ora not found
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParser
         at oracle.lite.common.Profile.getBinDirectory(Profile.java:154)
         at oracle.lite.sync.tracing.ConsLogger.init(ConsLogger.java:158)
         at oracle.lite.sync.tracing.ConsLogger.<clinit>(ConsLogger.java:142)
         at oracle.lite.sync.EnvLocal.<init>(EnvLocal.java:40)
         at oracle.lite.sync.Environment$1.initialValue(Environment.java:15)
         at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(Unknown Source)
         at java.lang.ThreadLocal$ThreadLocalMap.get(Unknown Source)
         at java.lang.ThreadLocal$ThreadLocalMap.access$000(Unknown Source)
         at java.lang.ThreadLocal.get(Unknown Source)
         at oracle.lite.sync.Environment.getOnLogger(Environment.java:212)
         at oracle.lite.sync.Consolidator.CreatePublication(Consolidator.java:3540)
         at basics.Publication.createPublication(Publication.java:53)
         at basics.Publication.createSnapshot(Publication.java:18)
         at basics.MyFrame.actionPerformed(MyFrame.java:59)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    I can't find any documentation to these exceptions.
    Does anybody know what's the problem and please tell me?
    Thanks in advance.
    Robert

    Hello, I make all my publications and more with the Java consolidator API and it works quite fine.
    I've only worked with ORACLE LITE 9i but I think it sould work the same on 10 g lite.
    Find here after some of my sample code I use and works.
    For the "java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParser" you just need to put in your classpath the xmlparserv2.jar that is located in
    ORACLE_HOME\lib.
    import java.sql.SQLException;
    import java.sql.*;
    import oracle.lite.web.util.JupDebug;
    import oracle.lite.sync.Consolidator;
    public class ean128 {
    static String CONS_SCHEMA;
    static String DEFAULT_PASSWORD;
    public static void main(String argv[]) throws Throwable {
    // SAMPLE11 - the standard OKAPI sample
    if (argv.length != 2) {
    Consolidator.pout.println("Syntax: java ean128 <Schema> <Password>");
    return;
    CONS_SCHEMA = argv[0];
    DEFAULT_PASSWORD = argv[1];
    // create required tables using standard jdbc
    DriverManager.registerDriver(
    (Driver) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance());
    Connection c = null;
    Statement s = null;
    // create consolidator publications.
    oracle.mobile.admin.ResourceManager.openConnectiown(CONS_SCHEMA,
    DEFAULT_PASSWORD);
    /* try {
    Consolidator.DropPublication("11804");
    } catch (Throwable e) {// e.printStackTrace(); ignore error
    Consolidator.CreatePublication("11804", Consolidator.OKPI_CREATOR_ID,
    "EAN128.%s", null);*/
    try {
    Consolidator.DropPublicationItem("WTGPI_10001");
    } catch (Throwable e) {// e.printStackTrace(); //aramani ignore error due to user request
    try {
    Consolidator.CreatePublicationItem("PUB_POST_TRAIT", "SPI_APP",
    "POST_TRAITEMENTS_EAN", "F",
    "SELECT NO_POST_TRAITEMENTS_EAN,NO_TRAITEMENT,LIBELLE_TRAITEMENT,NO_SEQUENCE_CB,CB_EANUD,CB_SSCC,PALETTE_COMPLETE,DATE_TRAITEMENT,SELECTED,TRAITE,PDA_ID, REF_ARTPROD FROM SPI_APP.POST_TRAITEMENTS_EAN WHERE PDA_ID = :PDA_ID",
    "SPI_APP", "PACK_PUB_POST_TRT");
    } catch (Throwable e) {
    // e.printStackTrace();
    JupDebug.print(e);
    try {
    Consolidator.DropPublicationItem("WTGPI_10000");
    } catch (Throwable e) {// e.printStackTrace(); //aramani ignore error due to user request
    try {
    Consolidator.CreatePublicationItem("PUB_LIEN_SSCC_PALETTIER",
    "SPI_APP", "LIEN_SSCC_PALETTIER", "F",
    "SELECT NO_LIEN_SSCC_PALETTIER,NO_SSCC,ADRESSE,DATE_TRAITEMENT,INVALIDE,PDA_ID FROM SPI_APP.LIEN_SSCC_PALETTIER WHERE PDA_ID = :PDA_ID",
    "SPI_APP", "PACK_MONTEE_PDA");
    } catch (Throwable e) {
    // e.printStackTrace();
    JupDebug.print(e);
    try {
    Consolidator.DropPublicationItem("WTGPI_10002");
    } catch (Throwable e) {// e.printStackTrace(); //aramani ignore error due to user request
    try {
    Consolidator.CreatePublicationItem("PUB_EAN_RECEP_PDA", "SPI_APP",
    "EAN_PDA_RECEPTION", "F",
    "SELECT NO_EAN_PDA_RECEPTION, NO_SSCC, ADRESSE, CONFIRME FROM EAN_PDA_RECEPTION",
    "SPI_APP", "PACK_RECEP_PDA");
    } catch (Throwable e) {
    // e.printStackTrace();
    JupDebug.print(e);
    try {
    Consolidator.CreatePublicationItem("PUB_MONTEE_HRS_ZONE", "SPI_APP",
    "MONTEE_HRS_ZONE", "F",
    "SELECT NO_MONTEE_HRS_ZONE,NO_SSCC,PDA_ID FROM SPI_APP.MONTEE_HRS_ZONE WHERE PDA_ID = :PDA_ID",
    "SPI_APP", "PACK_MONTEE_PDA_HRS_ZONE");
    } catch (Throwable e) {
    // e.printStackTrace();
    JupDebug.print(e);
    try {
    Consolidator.CreatePublicationItem("PUB_ADR_PAL", "SPI_APP",
    "ADRESSES_PAL", "F",
    "SELECT adresse, ref_article, date_montee_rack, qte_uc, no_sscc FROM spi_app.adresses_pal",
    null, null);
    } catch (Throwable e) {
    // e.printStackTrace();
    JupDebug.print(e);
    Consolidator.AddPublicationItem("11034", "PUB_LIEN_SSCC_PALETTIER", null,
    null, "S", null, null);
    Consolidator.AddPublicationItem("11034", "PUB_POST_TRAIT", null, null,
    "S", null, null);
    Consolidator.AddPublicationItem("11034", "PUB_EAN_RECEP_PDA", null, null,
    "S", null, null);
    Consolidator.AddPublicationItem("11034", "PUB_MONTEE_HRS_ZONE", null, null,
    "S", null, null);
    Consolidator.AddPublicationItem("11034", "PUB_ADR_PAL", null, null,
    "S", null, null);
    oracle.mobile.admin.ResourceManager.commitTransaction();
    oracle.mobile.admin.ResourceManager.closeConnection();
    Hope it helps, if you need more info please feel free to ask.
    All those stuff require some time.
    Olivier

  • Java API, problem with secondary keys using multi key creator

    Hi,
    I'm developing an application that inserts a few 100k or so records into a Queue DB, then access them using one of four Hash SecondaryDatabases. Three of these secondary dbs use a SecondaryMultiKeyCreator to generate the keys, and one uses a SecondaryKeyCreator. As a test, I'm trying to iterate through each secondary key. When trying to iterate through the keys of any of the secondary databases that use a SecondaryMultiKeyCreator, I have problems. I'm attempting to iterate through the keys by:
    1: creating a StoredMap of the SecondaryDatabase
    2: getting a StoredKeySet from said map
    3: getting a StoredIterator on said StoredKeySet
    4: iterate
    The first call to StoredIterator.next() fails at my key binding (TupleBinding) because it is only receiving 2 bytes of data for the key, when it should be getting more, so an Exception is thrown. I suspected a problem with my SecondaryMultiKeyCreator, so I added some debug code to check the size of the DatabaseEntries it creates immediately before adding them to the results key Set. It checks out right. I also checked my key binding like so:
    1: use binding to convert the key object to a DatabaseEntry
    2: use binding to convert the created DatabaseEntry back to a key object
    3: check to see if the old object contains the same data as the new one
    Everything checked out ok.
    What it boils down to is this: my key creator is adding DatabaseEntries of the correct size to the results set, but when the keys are being read back later on, my key binding is only receiving 2 bytes of data. For the one SecondaryDatabase that doesn't use a SecondaryMultiKeyCreator, but just a SecondaryKeyCreator, there are no issues and I am able to iterate through its secondary keys as expected.
    EDIT: New discovery: if I only add ONE DatabaseEntry to the results set in my SecondaryMultiKeyCreator, I am able to iterate through the keys as I would like to.
    Any ideas or suggestions?
    Thank you for your attention,
    -Justin
    Message was edited by:
    Steamroller

    Hi Justin,
    Sorry about the delayed response here. I have created a patch that resolves the problem.
    If you apply the patch to your 4.6.21 source tree, and then rebuild Berkeley DB, the improper behavior should be resolved.
    Regards,
    Alex
    diff -rc db/db_am.c db/db_am.c
    *** db/db_am.c     Thu Jun 14 04:21:30 2007
    --- db/db_am.c     Fri Jun 13 11:20:28 2008
    *** 331,338 ****
           F_SET(dbc, DBC_TRANSIENT);
    !      switch (flags) {
    !      case DB_APPEND:
                 * If there is an append callback, the value stored in
                 * data->data may be replaced and then freed.  To avoid
    --- 331,337 ----
           F_SET(dbc, DBC_TRANSIENT);
    !       if (flags == DB_APPEND && LIST_FIRST(&dbp->s_secondaries) == NULL) {
                 * If there is an append callback, the value stored in
                 * data->data may be replaced and then freed.  To avoid
    *** 367,388 ****
    -            * Secondary indices:  since we've returned zero from an append
    -            * function, we've just put a record, and done so outside
    -            * __dbc_put.  We know we're not a secondary-- the interface
    -            * prevents puts on them--but we may be a primary.  If so,
    -            * update our secondary indices appropriately.
    -            * If the application is managing this key's data, we need a
    -            * copy of it here.  It will be freed in __db_put_pp.
    -           DB_ASSERT(dbenv, !F_ISSET(dbp, DB_AM_SECONDARY));
    -           if (LIST_FIRST(&dbp->s_secondaries) != NULL &&
    -               (ret = __dbt_usercopy(dbenv, key)) == 0)
    -                ret = __db_append_primary(dbc, key, &tdata);
                 * The append callback, if one exists, may have allocated
                 * a new tdata.data buffer.  If so, free it.
    --- 366,371 ----
    *** 390,401 ****
                /* No need for a cursor put;  we're done. */
                goto done;
    !      default:
    !           /* Fall through to normal cursor put. */
    !           break;
    !      if (ret == 0)
                ret = __dbc_put(dbc,
                    key, data, flags == 0 ? DB_KEYLAST : flags);
    --- 373,379 ----
                /* No need for a cursor put;  we're done. */
                goto done;
    !      } else
                ret = __dbc_put(dbc,
                    key, data, flags == 0 ? DB_KEYLAST : flags);
    diff -rc db/db_cam.c db/db_cam.c
    *** db/db_cam.c     Tue Jun  5 21:46:24 2007
    --- db/db_cam.c     Thu Jun 12 16:41:29 2008
    *** 899,905 ****
           DB_ENV *dbenv;
           DB dbp, sdbp;
           DBC dbc_n, oldopd, opd, sdbc, *pdbc;
    !      DBT olddata, oldpkey, newdata, pkey, temppkey, tempskey;
           DBT all_skeys, skeyp, *tskeyp;
           db_pgno_t pgno;
           int cmp, have_oldrec, ispartial, nodel, re_pad, ret, s_count, t_ret;
    --- 899,905 ----
           DB_ENV *dbenv;
           DB dbp, sdbp;
           DBC dbc_n, oldopd, opd, sdbc, *pdbc;
    !      DBT olddata, oldpkey, newdata, pkey, temppkey, tempskey, tdata;
           DBT all_skeys, skeyp, *tskeyp;
           db_pgno_t pgno;
           int cmp, have_oldrec, ispartial, nodel, re_pad, ret, s_count, t_ret;
    *** 1019,1026 ****
            * should have been caught by the checking routine, but
            * add a sprinkling of paranoia.
    !      DB_ASSERT(dbenv, flags == DB_CURRENT || flags == DB_KEYFIRST ||
    !            flags == DB_KEYLAST || flags == DB_NOOVERWRITE);
            * We'll want to use DB_RMW in a few places, but it's only legal
    --- 1019,1027 ----
            * should have been caught by the checking routine, but
            * add a sprinkling of paranoia.
    !       DB_ASSERT(dbenv, flags == DB_APPEND || flags == DB_CURRENT ||
    !             flags == DB_KEYFIRST || flags == DB_KEYLAST ||
    !             flags == DB_NOOVERWRITE);
            * We'll want to use DB_RMW in a few places, but it's only legal
    *** 1048,1053 ****
    --- 1049,1107 ----
                     goto err;
                have_oldrec = 1; /* We've looked for the old record. */
    +      } else if (flags == DB_APPEND) {
    +           /*
    +            * With DB_APPEND, we need to do the insert to populate the
    +            * key value. So we swap the 'normal' order of updating
    +            * secondary / verifying foreign databases and inserting.
    +            *
    +            * If there is an append callback, the value stored in
    +            * data->data may be replaced and then freed.  To avoid
    +            * passing a freed pointer back to the user, just operate
    +            * on a copy of the data DBT.
    +            */
    +           tdata = *data;
    +           /*
    +            * If this cursor is going to be closed immediately, we don't
    +            * need to take precautions to clean it up on error.
    +            */
    +           if (F_ISSET(dbc_arg, DBC_TRANSIENT))
    +                dbc_n = dbc_arg;
    +           else if ((ret = __dbc_idup(dbc_arg, &dbc_n, 0)) != 0)
    +                goto err;
    +
    +           pgno = PGNO_INVALID;
    +
    +           /*
    +            * Append isn't a normal put operation;  call the appropriate
    +            * access method's append function.
    +            */
    +           switch (dbp->type) {
    +           case DB_QUEUE:
    +                if ((ret = __qam_append(dbc_n, key, &tdata)) != 0)
    +                     goto err;
    +                break;
    +           case DB_RECNO:
    +                if ((ret = __ram_append(dbc_n, key, &tdata)) != 0)
    +                     goto err;
    +                break;
    +           default:
    +                /* The interface should prevent this. */
    +                DB_ASSERT(dbenv,
    +                    dbp->type == DB_QUEUE || dbp->type == DB_RECNO);
    +
    +                ret = __db_ferr(dbenv, "DBC->put", 0);
    +                goto err;
    +           }
    +           /*
    +            * The append callback, if one exists, may have allocated
    +            * a new tdata.data buffer.  If so, free it.
    +            */
    +           FREE_IF_NEEDED(dbenv, &tdata);
    +           pkey.data = key->data;
    +           pkey.size = key->size;
    +           /* An append cannot be replacing an existing item. */
    +           nodel = 1;
           } else {
                /* Set pkey so we can use &pkey everywhere instead of key.  */
                pkey.data = key->data;
    *** 1400,1405 ****
    --- 1454,1465 ----
      skip_s_update:
    +       * If this is an append operation, the insert was done prior to the
    +       * secondary updates, so we are finished.
    +       */
    +      if (flags == DB_APPEND)
    +           goto done;
    +      /*
            * If we have an off-page duplicates cursor, and the operation applies
            * to it, perform the operation.  Duplicate the cursor and call the
            * underlying function.

Maybe you are looking for

  • Need help in migration from Layer2 to layer3

    HI Guys Need u r help in migration from layer2 switched network to layer3. here is the setup there are 9 sites connected with a 10gig backbone in a ring.each site has a 6513 but at the data centre site we having two 6513.we are having a combination o

  • How to check data in physical standby database?

    Hi! I'm maintaining physical standby database system. everyday, i must check tranfer and apply progress. I known, it operate very good. No archive gap is found. But i want to check data in physical standby database that there is consistant with prima

  • Optimistic Locking - Possible bug with Weblogic

    After extensive testing of a j2ee application Im involved with, it would appear their exists a problem with using Weblogic's Optimistic Concurrency (OL) mechanism. The exact problem is as follows: The ejbCreate and ejbRemove methods of a particular e

  • WMV no audio

    Hello! I have a problem when I render in WMV format. The active audio output, just not displayed settings. And when I render, renders only the video but no audio. Put a print image of what is happening. I do not know what else to do ... Thank you. Ve

  • Can someone explain "copy address" in Mail?

    I have never understood why when you click on an address in an e-mail and then select "copy address" what you get is not only the address but also the name. For  instance,  "[email protected]" when you copy and paste yields "Name <[email protected]>"