Different behaviors of Ant's MappingToolTask and "Refresh Mappings" in eclipse

Hello
I'm using KodoJDO 3.0 rc2.
I tried two different ways, to generate the mappings file and update the
tables in the database.
Strangely, they both behave differently:
1. using ant with the task: kodo.jdbc.ant.MappingToolTask -a refresh
does ignore all fields of type java.util.Calendar
2. using "Refresh Mappings" from the eclipse plugin
adds the Calendar fields correctly to the mappings file and the DB
tables,
but raises an exception, with an inverse-owner field (in 1:m) , which is
mapped correctly by the ant tasks
Do this two tools use different classes to generate the mappings and the
tables?
Is the Calendar datatype natively supported by Kodo?
Best regards
-- Pat

Patrick-
Is the Calendar datatype natively supported by Kodo?JDO does not offer native support for java.util.Calendar. You should be
able to easily support it using the externalization metadata extensions:
http://www.solarmetric.com/Software/Documentation/3.0.0/docs/manual.html#ref_guide_mapping_fieldmapping_extern
Please let us know if you are still experiencing the problems you
describe with the 3.0.0 final release of Kodo.
In article <bntvlu$k9q$[email protected]>, Patrick Sager wrote:
Hello
I'm using KodoJDO 3.0 rc2.
I tried two different ways, to generate the mappings file and update the
tables in the database.
Strangely, they both behave differently:
1. using ant with the task: kodo.jdbc.ant.MappingToolTask -a refresh
does ignore all fields of type java.util.Calendar
2. using "Refresh Mappings" from the eclipse plugin
adds the Calendar fields correctly to the mappings file and the DB
tables,
but raises an exception, with an inverse-owner field (in 1:m) , which is
mapped correctly by the ant tasks
Do this two tools use different classes to generate the mappings and the
tables?
Is the Calendar datatype natively supported by Kodo?
Best regards
-- Pat
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Different behaviors of NSTask within Debug and Release configuraton

    Hey there,
    I am writing my first OSX application. It will be a starter helper for some daemons.
    In order to start the daemons I am using NSTask but this class behaves completely different within the two build configurations (Debug and Release).
    If I choose Debug - everything works fine, my daemon (apache) gets started. But if I choose Release, I get this error message in the log console:
    Jan 11 22:50:49 Synthomat [0x0-0x682682].com.yourcompany.PAMP[24421]: httpd (no pid file) not running
    I know, this is an apache specific error message. But why does it not appear when I choose the Debug environment? Are in Release some environment variables missing or so?
    Here is my code part:
    // get bundle path
    binDir = [NSString stringWithFormat:@"%@/Library/bin", [[NSBundle mainBundle] bundlePath]];
    // compose command path
    NSString *command = [NSString stringWithFormat:@"%@/apachectl", binDir];
    // run command
    [NSTask launchedTaskWithLaunchPath: command
    arguments:[NSArray arrayWithObjects:@"start", nil]];
    Any idea, anyone? - Thanks in advance

    synthomat wrote:
    My idea was to distribute a full web stack within my application. Thus there should't be touched other system directories or files except the ones in my application bundle.
    Launchctl is similar to xinetd. You can run it in user space out of your own directories.
    Its not the apache which comes with osx!
    Is it the same one in XAMPP?

  • Different behavior when running in Eclipse and on Tomcat

    I am having a problem because the program that I wrote, tested, and work fine on Eclipse doesn't have the same behavior when I convert it to a Web Service and called by a client.
    I have not this strange behavior. See this code:
    NamedNodeMap attrs = node.getAttributes();
    System.out.println(attrs.getNamedItem("performance"));When I run it on exist I got something like this:
    org.apache.crimson.tree.AttributeNode1@11bed71which should be correct since attrs.getNamedItem() return a Node.
    But! When I run it as a web service on Axis hosted on Tomcat I got
    performance="3758.0"???!!!
    Also, when I do something like
    System.out.println(node)In Eclipse I got the whole XML file like this:
    <root><sequence name="main" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
              <switch name="switch-1" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
                   <case condition="bpws:getVariableData('i') = 0" performance="3425.0" cost="77.0" reliability="1.0" availability="1.0" integrity="1.0" security="128.0">
                        <invoke name="invoke-2" partnerLink="HotelBooking" portType="nsxml2:HotelBooking" operation="searchHotel" inputVariable="searchHotelParam" outputVariable="searchHotelResult" serviceKey="95EDCDE0-46F6-11DA-BEB0-90CACF0DCD6A" />
                   </case>
                   <otherwise performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                        <while name="while-1" condition="bpws:getVariableData('i') > 0" performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                             <sequence performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
                                  <invoke name="invoke-1" partnerLink="FlightBooking" portType="nsxml0:FlightBooking" operation="searchFlight" inputVariable="searchFlightParam" outputVariable="searchFlightResult" serviceKey="AD5A1880-46EC-11DA-B399-97115D85E15E" />
                             </sequence>
                        </while>
                   </otherwise>
              </switch>
         </sequence></root>but on Axis I got:
    [root: null]I'm confused. I think it might be because of the different version of the library between eclipse environment and axis environment. But the problem is, I can't figure out what JAR should I change. Can you give me a clue??

    DOM doesn't specify what the toString() method of Node etc. should return. So each implementation of DOM chooses something that seems reasonable to the implementers. If this isn't suitable for you then don't use the toString() method. (That's what System.out.println calls when you pass it an Object, in case you didn't know.)

  • Different behavior from the PRE function based on BMRS and WMRS

    Hi All,
    We are seeing different behavior from the PRE function based on whether the type is Before Modified Record Saved or When Modified Record Saved. Should the PRE function work the same for both as long as there is not a Wait action in the WMRS workflow?
    (((PRE('<plTier_ITAG>') <> [<plTier_ITAG>]) AND ([<plTier_ITAG>] = '2 - BA')) AND [<IndexedPick4>] = 'FSCM')
    Explaination: The Tier field changes AND now equals Tier 2, AND Application is equal to 'FSCM'
    The same expression fires only as designed in BRMS, but in WMRS it fires every time a SR is in Tier 2 and IndexedPick4 = 'FSCM', regardless of whether a change was made to the Tier field.

    Try changing your syntax around to something like -:
    PRE('<plTier_ITAG>') {NOT EQUAL} '2 - BA' AND [<plTier_ITAG>] = '2 - BA' AND [<IndexedPick4>] = 'FSCM'
    +i.e. Previous value of Tier is not equal to "2 - BA" and current value of Tier equals "2 - BA" and IndexedPick4 equals "FSCM". Replace {NOT EQUAL} with the appropriate syntax+
    Regards,
    Cam

  • Download and refresh button in Dashboard

    Hi,
    I have a chart report and table report in the same section of a dashboard. How to have a common Download and Refresh button at the end for both the reports. If I use the report links in both the "reports link" of teh report I get two sets and one is in the middle of the section. If I use the one in the end, it downloads only the second report. Is it possible to do both with one refresh and download, and how can it be done.
    Thanks for your time and help.

    If the table report and the chart report are completely different, then I don't know how you would do that (except for using the dashboard refresh button and the very bottom left of the dashboard page).
    But if they are of the same columns, you can create a pivot table to mimic a regular table and check the "chart pivoted results" to have a chart of that data. Then you will have only one refresh and download for both table and chart.

  • Blobs and refreshing the schema

    Hi all,
    I have two questions about Kodo 3.3.3.
    1) About blobs. A blob is the serialization fof an object. Does Kodo store
    the hashCode of the class (ir the serialVersionUID of the class) that was
    used to serialize the object ? Will I have a problem if I want to get back
    that blob with a recompiled version of that class, with a different
    serialVersionUID ?
    2) About the XML descriptors of the schema. I configured my mappingtool to
    write the XML descriptor of the my schema in the base, it works very fine.
    I can get these descriptor, class by class, with the command mappingtool
    -a export -f dump.xml package.jdo, it's very handy. From the
    documentation, I red that one can export this XML, edit it, import it back
    in the base, and refresh the schema
    (http://www.solarmetric.com/jdo/Documentation/3.3.3/docs/ref_guide_mapping_factory.html).
    My problem is : I cant find the command to perform this refresh, the
    schema is just not "synchronized" with the XML. Any hint ? :)
    Btw, I came across a bug using SQL Server : a field named "index"
    generated a column named "index", SQL Server was quite angry at that.
    Sorry if this one is know already.
    Thanks for your answers,
    Jos__

    1) About blobs. A blob is the serialization fof an object. Does Kodo store
    the hashCode of the class (ir the serialVersionUID of the class) that was
    used to serialize the object ? Will I have a problem if I want to get back
    that blob with a recompiled version of that class, with a different
    serialVersionUID ?Kodo just serializes the field value to a byte array using standard Java
    serialization. So yes, you will have problems if the serialVersionUID of the
    class changes. If you want more control over this process, you can create a
    custom DBDictionary that overrides the serialize() method. Or you can use a
    field of type byte[] and a byte-array mapping rather than a blob mapping, so
    that Kodo doesn't do any serialization.
    My problem is : I cant find the command to perform this refresh, the
    schema is just not "synchronized" with the XML. Any hint ? :)Use the schema tool to synchronize the schema with the XML. See:
    http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_schema_schematool.html
    Btw, I came across a bug using SQL Server : a field named "index"
    generated a column named "index", SQL Server was quite angry at that.
    Sorry if this one is know already.Thanks. We'll make sure this is fixed in Kodo 3.3.4.

  • Are 'Select' and 'Refresh' supposed to be sticky in VM Manager GUI?

    VM Manager 2.2 - very nice GUI - pretty intuitive and easy to find your way around. Congrats to the team that added this.
    I did notice a couple of things:
    The 'Select' radiobutton choices and 'Refresh in:' dropdown choices are not sticky in the VM Manager GUI.
    Select a 2nd (anything but first) server and select '30 seconds' for 'refresh' on the Server Pools page (or any other page).
    Move to a different page; e.g. 'Servers'
    Return to the original page.
    The first radio button will be the one selected and not the one the user chose. Also, the 'refresh' setting will have been reset to 'Manually'.
    Also the TimeStamp format for the Administration logs is different than the format for the server pool and server logs:
    Admin log: 2009.12.14 at 20:52:25 GMT+00:00
    Server log: 2009-12-14 12:27:19
    Server pool log: 2009-12-11 21:19:53
    One possibility for the refresh is to always do a refresh on a page load. Then when you tab to a new page you know you are getting fresh info. Or make the refresh choice sticky and add a '10 second' and '20 second' choice.

    rp0428 wrote:
    I did notice a couple of things:This forum should not be used as an enhancement request/bug reporting tool. :) You're better off logging an SR with your issues/suggestions: that can at least be assigned to the product management/development teams for review.

  • ESS Benefits Generic Enrollment - Different behavior backend v/s portal

    We are using the ESS Benefits generic enrollment service for enrollment kicking off the adjustment reasons on IT 0378.
    Here is the configuration set up, trying to simplify to explain the matter. We are on ECC 6.0 with EHP2.
    1.  Configured one plan type in savings category.
    2.  Within this plan type,  configured 2 plans.
    3.  Configured all other related configuration to set up the 2 plans.
    4. Configured the adjustment reason and the appropriate plan type created in step 2.
    5.  Created the required adjustment reason on 378.
    In HRBEN0001 transaction via backendwe can  see the 2 plans configured within the plan type.
    But when Trying to enroll from ESS - only one plan can be seen for that plan type, the other plan is not shown at all.
    OK - eventually, debugged and found this piece of code in FM HR_BEN_ESS_FILL_SELECTION_DISP.  The 2 different plans are there until this piece of code takes one of them Off...
      CODE -
    3.) Reduce entries to one entry per type and period
      delete adjacent duplicates from selection_display_gt
        comparing pernr
                  barea
                  bpcat
                  pltyp
                  begda
                  sprps.
    CODE -
    This FM is called only for ESS application and not for backed program.
    What we do not understand is why is it behaving differntly on backend v/s portal.
    Any information or experience with this form any one of you will be highly appreciated.
    Thanks.

    Siddharth,
    Thanks for your reply. Yes ESS has its own FMs.  The UI, user exits, BADIs etc are different for backend v/s front end.
    What we are not clear with, is the different behavior in core functionality --  i.e. When the adjustment reason is processed from the backend using HRBEN0001 - The 2 plans within the Plan Type are available for elections. BUT the same adjustment reason for the same penr when processed from  ESS - there is just one plan available for elections.
    It's clear from the code, that it is deleting one plan and this code is within the FM which is called only from ESS.  But we are still not sure why it should behave differently i.e. 2 plans via backend v/s one plan  via ESS. 
    Wanted to see if anyone can share any information if they have a similar benefits set up .. 2 plans within one plan type FOR savings plan category and then having a adjustment reason set up.
    Regards.

  • Materialized View and Refresh Fast

    Hi,
    Below is a sample query for generating a MV. Since I am new to Oracle,
    Experts please help me.
    create materialized view user1.mv_empdept refresh fast
    as select * from user1.employee e
    where exists(select * from user2.department d where d.deptId=e.deptid);
    Is it possible to have a MV with objects from different schema of the same
    database for Refresh Fast?
    I ran into "insufficient privileges" error eventhough both user1 and user2 have sysdba privileges.
    Thanks,
    Jagan

    Hi Ajiaz,
    User user1 has select privileges on Department table.
    if we omit "refresh fast" in the query, I am able to create the MV
    create materialized view user1.mv_empdept refresh fast
    as select * from user1.employee e
    where exists(select * from user2.department d where d.deptId=e.deptid);
    Regards,
    Jagan Kumar K

  • Different behavior of movewindow with different windows is (xp or windows 7)

    we have a windows wpf stand alone application which must be integrated within a windows form 2.0 stand alone application. given to the particular implementation of the windows form application we decided to use a light integration trying to change the parent
    handle of the wpf main window setting  as parent the handle of a windows of the windows form 2.0 application.
    in order to reposition the wpf windows on top of the parent windows form window, we have a thread which keeps doing two operations: (1) invoke getwindowsrect on the parent windows form windows to get the parent absolute position and (2) invoke movewindow
    on the wpf main window handle to reposition the window.
    when we move the windows form window, the wpf windows follows the parent remaining in the correct position. we tested this solution with windows xp, windows 7, windows 8 in our office. when we went to the customer to complete the installation, both on a
    windows xp and on a windows 7 the behavior was different. the size of the wpf window was much bigger than the size of the windows form parent window. back in office we found the same strange behavior in windows xp wirtual machine. in order to fix the problem
    (at least partially) we had to change the operation sequence within our code as follows in the monitoring thread: (0) get parent windows position with getwindowrect (1) set the parent of the wpf main window to (null) 0 invoking setparent, (2) invoke the movewindow,
    (3) re set the parent handler of the wpf main window to the handler of the windows form window.
    with last solution it works but clearly there are more flikering when the window is moving or resizing respect to initial implementation.
    any idea about this different behavior of movewindow function? any suggestion?
    thanks
    Paolo

    Hi Paolo,
    You'll need to post it in the dedicated WPF or Windows Forms forum for more efficient responses, where you can contact the experts.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=wpf WPF forum
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms  Windows Forms forum
    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.

  • Different behavior with decimal data on same version of CF

    I have a linux/apache/mysql/CF MX 7 Enterprise server. I insert decimal data using the cfqueryparam that looks like
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_DECIMAL">.
    No problems the decimal data does not get rounded, 123.45 inserts as 123.45.
    I'm building applications for my neighborhood association, so I'm having godaddy.com host the web site with CF and MySQL.
    Like a good developer, I took code from my CF server, moved some of the more useful programs to the godaddy.com, set up the database and started testing some apps. Now any decimal data inserted gets rounded using the same cfqueryparam syntax from my CF server (like above). The decimal data on the godaaddy.com inserts as 123.00, when I'm trying to insert 123.45, of course if I insert 123.99 I get 124.00, rounding. So I called godaddy.com and of course I get the standard technical answer "its your code". So off to testing I go. Only to determine, by not using the cfqueryparam, I could stop the rounding, more testing I determined that I need to use
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_MONEY"> or
    <cfqueryparam value="#BudgetSet.BUD_SET_DETAIL_COST_PER#" CFSQLType="CF_SQL_DECIMAL" scale="2">. The version of CF @ godaddy.com is also MX 7 Enterprise. Finally the question, what in configuration could cause such different behavior ?
    Thanks for reading my short novel.

    The database drivers determine how the cfqueryparam values are
    interpreted (behind the scenes ColdFusion generates a prepared
    statement using the driver interface and sets the values using
    standard JDBC calls). Unfortunately, like you found out, not all
    drivers are created equal and have slightly different behavior or
    defaults.
    I would check and compare the driver versions.
    Mack

  • Different behavior for index

    Hi.
      I have the table inl_allocations with following index:
    CREATE INDEX inl_allocations_n1 ON inl_allocations
      ( ship_header_id                  ASC,
        adjustment_num                  ASC,
        ship_line_id                    ASC )
    When running query below, we have different behaviors for indexes in different DB:
    SELECT *
      FROM INL_ALLOCATIONS CA, INL_SHIP_LINES_ALL CC
      WHERE CC.SHIP_LINE_ID = CA.SHIP_LINE_ID
      AND CC.SHIP_HEADER_ID = CA.SHIP_HEADER_ID
    1- For DB 1 (11.2.0.1.0) the explain plan for query:
                    (3)  INDEX INDEX FULL SCAN INL.INL_ALLOCATIONS_N1  [Analyzed]
                        Est. Rows: 33  Cost: 1
    2- For DB2 (11.2.0.3.0) the explain plan for query does not use the index INL_ALLOCATIONS_N1, and we have a FULL in table.
               (3)  TABLE TABLE ACCESS FULL INL.INL_ALLOCATIONS  [Analyzed]
               (3)   Blocks: 13 Est. Rows: 167 of 269  Cost: 5
    We would like to know the reason why there are differences between both environments.
    Thanks and Regards.

    many years ago Oracle used to optimize queries with a set of rules that ranked the potential access paths and finally chosed the possible operation with the highest rank. So for two systems with the same DDL Oracle would have generated the same plan. This was the rule based optimizer (RBO) and its shady ghost still dwells somewhere deep in the Oracle code. Since at least Oracle 8i (> 10 years ago) the standard optimization engine is the cost based optimizer (CBO) which uses statistics to generate execution plans: and if the data of your systems is different (or even if the data is identic but its physical order is different and changes the index clustering factor) the CBO can and will generate different plans and use or not use existing indexes.
    Regards
    Martin

  • RDCMan different behavior for different machines

    I'm using Remote Desktop Connection Manager, which has been very useful since I have to remote into so many different machines.
    I am curious though and this is more of a question than a problem, but I notice different behavior remoting into different systems.
    On some servers, I get this popup when I connect:
    On other servers, I get brought to this screen to enter my password:
    I've checked the group policy settings, registry settings, made sure I didn't have any saved credentials, makes no difference.
    Any idea why?

    RDP Session Setting:
    Console Session Settings:
    Hi,
    As per my research, that is the default behavior and it correlates for 2 different scenario “Console and RDP”. When you are performing “Console” of server then it will provide you the direct screen of server to login. But when you want to take RDP
    then it will ask you as “Windows Security” login prompt.
    Please check my words on your screenshots
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • ADF 10.1.3 Programatically committing changes and refreshing the list page.

    Hello,
    I have a requirement where on list page i select a recrod and than modifies it on next page. I am using different database views for list and update purpose. So when i save the changes, control comes back to REFRESHED list page.
    Pls let me know how can i commit and refresh the changes programatically. I hav added a method on managed bean as part of action binding.
    Thanks
    Manish

    public String beanMethod() {
    //obtain a reference to your bindingcontainer. chances are you have the "bindings" member variable of the mangaged bean and you have the getBindings() function already built by the wizard for you.
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    //Make sure you have the "Commit" action binding on your pageDef. If not ob will return a Null reference. If you have drag and dropped the Commit operation on your ApplicationModule found on the Data Control Pallete on your page, the "Commit" operation should be there on your pageDef
    OperationBinding ob = (OperationBinding)bc.get("Commit");
    ob.execute();
    return "navigationToListPage";
    I think when you go back the listPage, the ADF framework will execute the query automatically.
    When you go to the update page, are you just updating the current row or creating a new row and then filling out the attribute values?

  • Close child window and refresh parent

    Hi there,
    I am hoping someone can help me in my quest to complete a
    store that I am working on.
    On my checkout page is a link to select a different address,
    up pops a window with a list of available addresses. The user
    presses a radio button to select the address, the form get
    submitted to an ASP page that has a command on it, the command
    completes...this is as far as I am. I want the popped up window to
    close and refresh/reload the page it popped up from. Does this make
    any sense?
    I am useless at Javascript, can anyone advice me the best
    route to take? I only need pointers to start googling, at the
    moment I am at a loss.
    Cheers!
    Steve

    As always seems to be the way I have solved my problem and
    want to share my solution with the community in case someone else
    has the same problem.
    <script
    type="text/javascript">window.opener.location.reload();
    self.close()</script>

Maybe you are looking for

  • Windows Vista 64 Bit and Button Support - Qosmio G30?

    Windows Vista 64 Bit and Button Support?

  • HT204370 Problem viewing movie on computer

    I purchased 2 movies on the iPad and they play great.  When I downloaded to the Mac, I can view chapters, extras, more, but when I click on Play, the movie will not play, but I can hear the music.  Any suggestions?

  • Please help: I need a "sleep" program

    Hi! I need an ABAP program which will start, then 'sleep' (i.e.do nothing) for 5 minutes, and eventually exit with a message like 'I wake up' on the screen. Please help. Points guaranteed. Thanks!

  • Incorrect created date

    All files in my computer shows the same created date and not their real one. how can i change it? Thanks, Doron

  • AWT Popup Menu in Fullscreen Exclusive + JOGL

    Our application runs in Fullscreen Exclusive mode and uses JOGL. We want the user to be able to access right-click Popup menus like in other applications. (Obviously, this isn't a game; but I figured I'd post here because game developers are the only