Portability issues

Hi,
We could not build db-4.5.20 "out of the box" on solaris2.6 or 2.7 or on AIX-4.3, hpux10.20, or Tru64 (4,0D and 5.1) with the native compilers. Most of the problems were to do with socklen_t, but there were one or two other little things. We have patches, but I am not sure where to send them.
Peter

Hi,
I also had problems building db-4.5.20 on Tru64 5.1. A few of the repmgr modules in particular would not compile because of socklen_t issues. Are the patches referred to previously available for download?
Kathy

Similar Messages

  • OIM API portablity issue  with OIM 9.1 / Weblogic 10.3

    Hi , We have a existing piece of code which does some User Mutation through OIM API.
    [I am not well versed with OIM ]
    The code was running fine with Weblogic 8.3 and previous OIM version.
    Here is the piece of code.
    logger.info("Initializing OIM Params from config location:" oimConfigFileUtil.getOIMConfigBase());+*
    +          System.setProperty("XL.HomeDir", oimConfigFileUtil.getOIMConfigBase().getAbsolutePath());+
    +          System.setProperty("java.security.auth.login.config", oimConfigFileUtil.getOIMAuthWLFile().getAbsolutePath());+
    +          ConfigurationClient.ComplexSetting configClient = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");+
    +          env = configClient.getAllSettings();+
    *+          try {+*
    +               oimAccessFactory = new tcUtilityFactory(env, oimConfigFileUtil.getUserID(), oimConfigFileUtil.getPassword());+
    I traced all the dependecy's for this piece of code.
    If I run this with Weblogic.jar[8.1] it gives me
    java.io.InvalidClassException: com.thortech.xl.dataaccess.tcDataSet; local class incompatible: stream classdesc serialVersionUID = -5446056666465114187, local class serialVersionUID = -8857647322544023100*
    With the compatablity issue I substituted with weblogic.jar:10.3 , now its giving me all classpath issues.
    Can someone layout the exact jars that are required for this to work?
    Thanks
    Vignesh

    Installl a Design Console. Copy any files that are required. Then take the class paths that are listed in the classpath and basecp files and put those into your application classpath files.
    -Kevin

  • Color portability issue

    I have an application that runs both on NT 4.0 or on HP 10.20 (CDE). In
    NT the application is the "normal" gray color but on the HP it displays
    in an obnoxious "lime green" color! The window color is set to
    "inherit" so I don't understand why it doesn't display in light blue
    since that is my normal HP window color.
    Any ideas?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Same thing here. Unibody MacBook Pro 15" 2.93Ghz with external 23" cinema display with Apple Displayport adapter thingee.
    I can't figure out when it happens or what causes it, but from time to time (daily at least) it changes to some default. Did anyone try deleting any preferences? Mine definitely started after Snow Leopard install.
    I also have to start the Displays System Pref for it to load up the selected profile.

  • Solaris Intel to Solaris SunSparc Portability

    Hi. Is anyone out there aware of any code portability issues for
    a software application that is written on Solaris Intel and subsequently
    deployed on a Solaris Sun Sparc workstation ?
    Does the code need to be tuned ?
    If needed, what is the effort required ?
    Thanks.
    Aran

    The source code is the same for both versions of Solaris. As long as
    your code doesn't make any ISA or endian assumptions, your port
    should be nothing more than a recompile.
    -- richard

  • Offline Team/Number Portability

    My phone line and boardband was due to be connected on Friday 1st October, the order was placed on Tuesday 21st September and I was told the additional time required was because I was bringing the number over from Virgin Media.
    As I was told that they could be connected anytime before 20:00 for the Boardband and anytime before Midnight for the phone line so I waited until the early hours of Saturday to try the line only to find that, although I have a dialling tone, you cannot dial out and when you try and call the number, it comes up as unavailable.
    I called BT on Saturday and was told that there was a problem and that the offline team would contact me within 24/48 hours, this didn't happen.
    Since that time, I've called BT every day to be repeatedly told that it was a number portability problem and someone would call me back either within 20 minutes, 1 hour, 24 hours & 24/48 hours, I've not been called back with any resolution, only once to tell me that they needed more time and they would call me back.
    Going through the same process repeatedly with different people who seem to be totally devoid of any common sense and don't listen to you when you tell them at the start of the conversation that the problem is a number portabilty issue is becoming increasingly frustrating.
    As of this morning, I am back to waiting for the offline team to call me back within 24/48 hours but I'm not expecting a call to actually materialise.
    What I'm most confused about is that on every piece of paperwork I received prior to the installation date, it stated that the number wasn't guaranteed and if the problem is genuinely a 'number portability' issue, why not just give me a new number?
    Is it really too much to ask for someone to actually call and tell me when I'm going to be connected?
    If anyone can help or give me some suggestions as to who I can talk to get this resolved, I'd very much appreciate it.

    Bedders71 wrote:snip
    If anyone can help or give me some suggestions as to who I can talk to get this resolved, I'd very much appreciate it.
    Hi Bedders71 and welcome
    I'd be inclined to contact the forum mods to look in to what's going off.
    Send an email to [email protected] with your name, forum username, any BT account number(s) or order number(s), a contact phone number and a link to this thread. They can chase things up for you and hopefully resolve this for you.
    -+-No longer a forum member-+-

  • Oracle Jinitiator Issue

    Hi,when i try to run a form from form builder in the web browser(firefox 5),it doesn't show up any content.When it asked to install missing plugins i.e., Jinitiator..installed it.But,still it doesn't show up anything
    My forms version is 10.1 and my O.S is Windows Xp sp2.
    Can anyone kindly suggest me what i need to do in order to solve this issue.
    Thanks in advance!!
    Edited by: sandy on Aug 3, 2011 11:22 AM
    Edited by: sandy on Aug 3, 2011 11:23 AM

    sandy wrote:
    In my home pc,i am not even getting the oracle application form services page in IE v8..Back in my office it was IE v7..I don't understand what the problem is.Can anyone suggest me any work around to solve this version portability issues.From the link referenced above, it clearly states that you "Need minimum 10.1.2.3 patch level for IE 8.0 and Firefox3.5. Oracle Application Interconnect (OAI), Oracle Application Server Personalization, Oracle Application Server Wireless, and Oracle BusinessActivity Monitoring are not supported for this browser".
    So, are you on 10.1.2.3?
    Thanks,
    Hussein

  • NT - Unix portability

    Hi folks... I may be posting in the wrong place, but here goes.
    We're developing a web application and our development platform
    is NT but the app and database will eventually run on a Unix
    box. Does anyone know whether there are any portability issues
    with PL/SQL scripts -- if we do all our development on the NT
    platform, will we be able to easily recreate everything on the
    Unix platform? If so, how? If not, any suggestions?
    Our database is (or will be, when I work out how to configure
    everything -- another thread methinks) Oracle 8. Development
    platform is NT4.0, and the live platform Unix Ultra250 box will
    be running Solaris 2.6.
    TIA
    null

    Fiona (guest) wrote:
    : Hi folks... I may be posting in the wrong place, but here goes.
    : We're developing a web application and our development platform
    : is NT but the app and database will eventually run on a Unix
    : box. Does anyone know whether there are any portability issues
    : with PL/SQL scripts -- if we do all our development on the NT
    : platform, will we be able to easily recreate everything on the
    : Unix platform? If so, how? If not, any suggestions?
    : Our database is (or will be, when I work out how to configure
    : everything -- another thread methinks) Oracle 8. Development
    : platform is NT4.0, and the live platform Unix Ultra250 box will
    : be running Solaris 2.6.
    : TIA
    Hi Fiona,
    you should have no problems. We develop on Solaris and deliver on
    Solaris & NT making. We use a lot of PL/SQL procedures being
    called via JDBC. I simply export the schema from the Solaris
    instance and import it into the NT one. It works "out of the
    box",
    HtH
    Phil
    null

  • Handling multi-platform compatibility issues

    I created an application for a client using LabVIEW 2010 that pops up a window with instructions and a continue button. (Actually, there is more to the project than just this VI). I have demonstrated that this application works on several Dell laptops at several different screen resolutions from 800x600 to 1920x1080.  No problems. The VI panel is orange (customer's choice) and the string control (takes up 80 % of the panel) is white. Text is black.
    Today, I got a call from my customer. He was installing this application on his customer's personal IBM computer (thinkpad) and the window that popped up was black text and black background. I have no way to debug this problem since the customer could not leave his laptop.  As a test, I put a string control on a vi panel and made an application of it to put on the laptop. The test worked as expected with a white string constant and black text.
    The laptop was windows 7 (latest updates) running a 1400x900 screen resolution and 16 bit color.  The color options were 32 bit and 16 bit. Neither allowed my application to run correctly.
    The panel does a soft transition from 50% to 0% transparency.
    Any ideas would be helpful!
    If anyone has a high end thinkpad and is courageous, I could send you a test application to try out.
    I am stumped about this portability issue.   
    And then he asked if he could run the application on an apple under wine.  My support task is going to get larger!
    GOTALIA means LabVIEW

    I just discovered a similar topic in this forum.  Sorry about that
    GOTALIA means LabVIEW

  • IMac portability questions....

    The iMac REALLY appeals to me, but it's a toss up between the MB Pro and the iMac. I love the portability of the MBP, but the iMac also seems really portable as well (to some degree). I go on vacation a few times per year and really want something I can carry & use in my hotel rooms etc...
    1. Anyone knows how much "the total iMac package" weighs? (The newest iMac.)
    2. Does anyone out there sell a sturdy carrying case for it, used for travelling with it, etc... (in case I want to bring it on a business trip, etc...)?
    3. Can I use my existing Dell 1704FPT flat screen monitor as 2nd monitor to the iMac, like a dual screen setup? How about 3 screen support?
    If I can overcome this portability issue then I'm tempted to purchase one!
    Thanks y'all!

    (1) Per specs on Apple's website, 20" weighs 20 pounds and the 24" weighs 25.4 pounds.
    (2) Do a search on the iLugger, a decent bag for the iMac. Runs around $100+ last I checked.
    (3) You should be able to use any external monitor, LCD flatscreen or even CRT, as long as it has a DVI or VGA input (which most do). You will need to buy the appropriate mini-DVI to DVI adapter, or mini-DVI to VGA adapter from Apple for about $20 each. You can only connect one external display to the iMac, so cannot run two external monitors as there is only one display output on the iMac.
    Personally, if your travel with the iMac is less than 5 times a year and you can easliy take the iMac along when you go, I would go for the iMac. I used to own a black MacBook, but my Mac sits at my desk 98% of the time, so I opted to sell the MacBook and get a 17" white iMac on closeout, for less than what I got for my MacBook on ebay! The larger screen/greater storage/better ergonomics of the iMac at less cost makes the iMac a lot nicer computer to work on.
    Good luck with your decision.

  • Taking Java a little lower

    This post is not a help request.
    It's just a sort of poll or curiousity question.
    Would you agree to let java (by means of new api and jvm support of them, obviously) have lower level features?
    Java VM works on every system, through native code, or better interfacing to a specific code of a specific Operating System.
    That's why every os needs a dedicated vm.
    Well, if that low level access is reached for operations like, drawing on the screen, playing sounds, io streams, networking, hidden memory management, and so on, what's the problem in giving java the possibility to do things like shutting down a system or formatting a unit (real formatting).
    I know the latter is possible, in terms of file system manipulation.
    But as for things like the first one? Every OS has a call which lets you shut it down.
    Runtime.exec() is not cross-platform and it's not even always considered pure java.
    JNI is not java (the part regarding native code).
    What's the matter in having a System.shutdown()?
    Or File.format(File root)?
    Obviously such calls should be protected by a SecurityManager, as are other features in Java.
    Java has a great API and you hardly feel the necessity for a closer contact with the hardware, but sometimes you do.
    It'd get to be the most powerful, all-purposes, ultimate language.
    Luckily, thanks to JNI and exec, you can find a way around most of those necessities, but it's not like the java I'd really like.
    The 2 examples I've given are just the first things I could think of, but I'm sure many people would like to have other characteristics implemented.
    Don't get me wrong.
    I think Java is already the best all-purpose language around, and I really like it.
    I like it so much I'd like I could do everything just using Java, no need for other external resources.
    I just hope Sun will consider possibilities like those I mentioned.
    So if you want to post your considerations, I'd really appreciate them, but please let's not start a flame out of it ^__^
    Nobody criticized JAVA!!!

    You seriously exepect the OS to let an application
    tell it when to shut down? What happnes if you're
    running this on some critical server thats running a
    load of other apps?
    I think you need to think your argument through a bit
    more!I don't see any problem with that. Windows, Linux, MacOS,... native applications can easily shut the system down and nothing bad has ever happened...
    As I said, that feature could be protected by security managing, meaning you need prehemptive user authorization.
    Many native applications don't even let you authorize it.
    Don't tell me you've never had a download manager or a cd-burner tool which had a check box like this : "Shut system down when operation is finished"...
    So as you can see... it is accomplished regularily on every application. Java could easily be no exception.
    I agrees to the idea but not the solution. instead I want to suggest > to have another package or development kit like j2me, j2ee for low
    level hardware programming. Yes, why not. The problem though is not whether the APIs for that are standard or an expansion. The important thing should be the jvm accepting low level commands.
    On SUN/OS (or Linux etc.) for example there is the shutdown command -
    but it is available only with appropriate privileges, that is, for
    the super user.YES, EXACTLY! On windows also, and probably on MacOS.
    So, this is an example of low level feature available in every OS.
    No portability issues in this one!
    My guess why this does not yet exist is that either there are
    technical difficulties (which you will probably discover when you
    write the reference implementations), or there was no need for it yet
    (which is a hint that it should better be an extension library
    instead of part of the standard classes).I think the second one is the reason.
    Probably there wouldn't be many tech diff. Java has much tougher features already there.
    Very likely, Sun don't see specific low level access suitable in Java original conception.

  • Embed eForm on Frontend of Site, Generate and Store Accomplished PDF

    Hi Everyone,
    My company is thinking about purchasing Adobe Acrobat X Pro, but we're on the fence since we're not sure which variant of the product to buy, nor are we sure if its even capable of doing what we need it to do.
    I've tried doing the live-chat a couple of times, but no luck. And the wait-time for the calls might as well be eternity.
    If anyone can tell me if what we want is possible, and what we need to accomplish it (do we need to buy anything, how do we integrate the application to our framework?), we'd really appreciate it.
    Basically it's like this. We have a couple of PDFs of blank forms that we use at the office. We want to make online versions of these forms that we will have up on our website.
    Whenever a client fills-out the form and clicks submit, we want the accomplished (with answers) PDF to be generated and/or stored on the server.
    We were able to use a trial version of the Acrobat X Pro just fine and we were able to select the blanks and set them as fields... but after that, we don't know how to move on. Is there anyway to store this on Adobe's server and embed it on our site? Can we convert this to HTML?
    Afterwards, when the client submits, the data is sent to which database? Do we need to retreive it (from where) so we can create the PDFs ourselves? Or is there an Adobe Service for this?
    Our main concern is that the final product (accomplished PDF) should be identical to the original PDF we had. The eForm/Online-form itself can be redesigned so it looks better on a webpage.
    Any suggestions? Are we on the right track?
    Thanks!
    Justin

    When you say "You can then gather, organize, download, etc. the data at Acrobat.com as you wish.", how do we do this? I tried using the offline TRACKER applet (I have one on my PC), which had a Portfolio that auto-synced with Acrobat.com. I could export to CSV, and extract individual PDFs from the Portfolio, which was cool.
    But is there any way to do the same operations online (no need to Adobe Acrobat on your PC)... I'm thinking of portability issues (our site admin's might need to maintain the site from a different laptop while on the go, for example.
    Is there an area on the actual http://acrobat.com/ website that tracks my distributed forms and the responses, allows me to export to CSV, and extract individual PDFs?
    Thanks!
    Justin

  • PLEASE HELP me select new internal hard drive for Macbook Pro 2012 (non-retina)

    Good afternoon.
    I just bought a Macbook Pro 2012 (non-retina) 15 inch from a friend.  I think it is running Mountain Lion (has not been upgraded to Mavericks yet), and has iLife on it.  It came with the stock 500 gb 5400 rpm internal hard drive.  At home, I only have the Snow Leopard OS installation Cds and a copy of iLife 2011 installation Cds.  I am going to buy 16 gb of RAM from Other World Computing to install.
    I want to replace the hard drive with a 1 tb hard drive, preferably something that is $100 or less.
    I talked to Other World Computing (OWC) and looked at the Data Doubler Option to replace the optical drive with a Solid State drive, but decided that for now I want to keep the optical drive inside the computer for portability issues.
    I know that Solid State drives are better, but they are still too small, and I want the ease and portability of a 1 tb size INSIDE my computer.
    Initially I was going to order this from Other World Computing: 1.0TB 2.5" HGST Travelstar 7K1000 7200RPM SATA 6Gb/s 9.5mm Notebook Drive 32MB Cache. *'New' Factory Replacement with 2+ Year HGST Warranty*    As of April 4, 2014 it's on sale for $79
    But then I started reading some of the discussions online and thought maybe I should get a hybrid solid state drive?
    I saw on Amazon the Seagate 1TB Solid State Hybrid Drive SATA 6Gbps 64MB Cache 2.5-Inch ST1000LM014  It's on sale for $94.
    But according to some reviews, this Seagate has a platter that is only 5400rpm, unlike the previous Seagate Momentum that has a platter speed of 7200rpm.
    How reliable are the Seagate, versus a Toshiba or Western Digital or Hitachi or something else?
    Here are my questions about replacing the hard drive:
    1.  Is a hybrid solid state drive going to need some kind of special formatting after I put it into the macbook so that I can put the operating system on it?
    2.  Is a "normal" platter hard drive more reliable than a hybrid solid state drive?
    3.  Is there any additional driver or special software that I have to install for a hybrid solid state drive?
    4.  Currently there is no personal data stored on the computer.  Can I just put the new hard drive in, and then insert the snow leopard install cd?
    5.  If I install snow leopard, can I just go to the App store and get the free upgrade to Mavericks?
    6.  If I want to do the "Data Doubler" option in the future and add a normal Solid State drive into my computer, will it have trouble interacting with the 1 tb hybrid solid state drive?
    I would love to get some recommendations about the smartest option to upgrade my hard drive with something that will be fast (I edit lots of photos) and large (1 tb) that isn't going to cost too much.  I don't know much about the different brands or options (and there are so many listed in tons of online reviews), that I got really overwhelmed and confused by the info out there.
    I would really appreciate any help and advice.  I've never switched out a hard drive before.
    PLEASE HELP !!!  Thanks!
    Here is the "About this Mac" Info:
    Macbook Pro 15-in Mid 2012
    Model Identifier: MacBookPro9,1
    Processor: 2.3 GHz Intel Core i7
    Memory: 4 GB 1600 MHz DDR3
    Software: OS x 10.8.5
    Storage (Hard drive): APPLE HDD ST500LM012 Media, Rotational, SATA, GPT (GUID Partition Table)

    1.  Is a hybrid solid state drive going to need some kind of special formatting after I put it into the macbook so that I can put the operating system on it?
    The boot drive, regardless of what it is, needs to be formatted as Mac OS Extended (Journaled).  This is standard with OS X.
    2.  Is a "normal" platter hard drive more reliable than a hybrid solid state drive?
    There are arguments pro and con.  Bottom line, SSD's and hybrid drives are still quite expensive per GB than standard hard drives.  If you have the bucks and are a speed demon, go ahead.   I have better use for my money.   Standard hard drives are mechanical and may wear out over time.  But even though SSDs are not mechancial, they can still go bad and ultimately they even have a limit to their write capacity.  The jury is still out on this debate.
    3.  Is there any additional driver or special software that I have to install for a hybrid solid state drive?
    No
    4.  Currently there is no personal data stored on the computer.  Can I just put the new hard drive in, and then insert the snow leopard install cd?
    You can physically put the hard drive in but probably not install Snow Leopard on this MBP.
    The mid-2012 MacBookPro9,1 models came with Lion 10.7.3 (11D2097) preinstalled.   It is very unlikely you would be able to install Snow Leopard on it.  Historically you cannot install a version of OS X that is earlier than the version that came with your Mac (even if you replace the hard drive).
    5.  If I install snow leopard, can I just go to the App store and get the free upgrade to Mavericks?
    Not via Snow Leopard on this MBP.  See my response to #4.
    6.  If I want to do the "Data Doubler" option in the future and add a normal Solid State drive into my computer, will it have trouble interacting with the 1 tb hybrid solid state drive?
    No.  They are completely independent of each other; they are just independent storage units (drives) and their RAM does not interact.

  • Mac book Pro i5 or i7 ? Performance difference major or minor ?

    Hi folks ,
    Hope every one is doing great
    I have to purchase a Mac book pro 13 inch . But confusion I am having is between i5 and i7 processor . I ll be using my laptop mainly for surfing , movie watching, and Video editing ( FCP , Adobe premiere pro ) . i7 is expensive than i5 and right now my budget is not permiting me to buy i7 until or unless there it is EXTREMELY important to buy a i7 mac book as there are will be huge performance issue . From what I read I got to know that there wont be huge difference since they both are using dual core processor and there is no option of hyper threading in i7 either . Also there aint any difference of graphics card as they both use the cpu inbuilt intel graphics card. So one thing which I am considering in to buy i5 and then spend some money on expanding RAM which will be cheaper , I suppose .(4GB to 8Gb). Will that be fine?
    So just wanted to know from some one who has used i5 mac book pro and ran editing software (or any one who knows about it)  . Did you guys face any glitches or are they very minor to be noticeable. I am fine with extra time taken in rendering and exporting , thats not the issue for me . Only issues is that videos shouldnt lag or appear jerky in the timeline because then it will hamper editing experience .
    I know Imac in same rate is the best option for editing and nothing can beat that . But I couldnt go for it because of portability issue as I have to travel a lot .
    Hope to hear expert comments from you guys.
    Cheers !
    Anurag

    I have been editing with Final Cut for many years, on many different Macs.  Currently using Final Cut Express v4 on a 2.66GHZ Core2Duo MacBookPro with 8GB RAM.  Ditto on my 3.06GHZ Core2Duo iMac with 8GB RAM.  It runs really well on both computers.  An i5 based Mac will do even better.
    The amount of RAM definitely makes a difference if you are using things like Photoshop, Aperture, Lightroom, iMovie, Final Cut and similar apps.  They will run in 4GB RAM but they run a lot better with 8GB RAM or more.  If I were configuring a new Mac to run these kinds of programs, 8GB RAM would be my suggested minimum.

  • Migration from MySql to Derby

    I am currently migrating from MySql to Derby.
    I have been developing a MRPII package for a while now and whilst my classes worked with MySql I am finding difficulty with implementing them using Derby.
    I have developed a GUI interface for MRPII functions and use a Database Interface class to connect to the database.
    The Database Interface class gives me the capability of reading and writing from a database.
    I extend this capability to sub classes ie part, customers, suppliers, work orders.
    The problem I have is with the ' "+standardCost+" ' type statements. In MySql, the database engine recognises that the standard cost variable is a double though using Derby I get the following Errors.
    SQL Exception: Columns of type 'DOUBLE' cannot hold values of type 'CHAR'. In Save Data error code30000
    SQL Exception: Columns of type 'DOUBLE' cannot hold values of type 'CHAR'. In Save Data error code30000
    Executed statement INSERT INTO stock VALUES('BUDGET500','A1', '100.0','50.0','1.0','100.0')
    Executed statement INSERT INTO part VALUES('BUDGET500', 'PENTIUM','76.0', '86.0','EACH','MP','7','33')
    The only solution I see is giving each subclass of Database Interface the individual capability within that class to connect to the database and use prepared statements.
    Does anyone know if Derby has the capability of processing the updates using a similar format as shown in my code.
    package delta.databaseInterface;
    import delta.databaseInterface.DatabaseInterface;
    public class Part extends DatabaseInterface{
         private String partNumber;
         private String partType;
         private String description;
         private double standardCost;
         private double sellingPrice;
         private String stockLocation;
         private double quantityOnHand;
         private String unitOfMeasure;
         private double minimumStock;
         private double minimumOrderQuantity;
         private int leadTime;
         private double avaliableStock;
                         private int commodityCode;
         public void setPartNumber(String pn){
              this.partNumber = pn.toUpperCase();
         public void setDescription(String ds){
              this.description = ds.toUpperCase();
         public void setStandardCost(double sc){
              this.standardCost = sc;
         public void setSellingPrice(double sp){
              this.sellingPrice = sp;
         public void setQuantityOnHand(double qt){
              this.quantityOnHand = qt;
              this.avaliableStock = qt;
         public void setStockLocation(String sl){
              this.stockLocation = sl.toUpperCase();
         public void setUnitOfMeasure(String uom){
              this.unitOfMeasure = uom.toUpperCase();
         public void setTypeOfPart(String top){
              this.partType = top.toUpperCase();
         public void setMinimumStock(double ms){
              this.minimumStock= ms;
         public void setMinimumOrderQuantity(double moq){
              this.minimumOrderQuantity = moq;
         public void setLeadTime(int lt){
              this.leadTime = lt;
                         public void setCommodityCode(int cc){
              this.commodityCode = cc;
         public void insertIntoPartDatabase(){
           super.setDatabase("mrpii");
                           super.setUpdate( "INSERT INTO part VALUES('"+partNumber+"', '"+description+"','"+standardCost+"'," +
           " '"+sellingPrice+"','"+unitOfMeasure+"','"+partType+"','"+leadTime+"','"+commodityCode+"')");
                             super.saveData();       
         public void insertIntoStockDatabase(){
            super.setDatabase("mrpii");
            super.setUpdate("INSERT INTO stock VALUES('"+partNumber+"','"+stockLocation+"',"+
    " '"+quantityOnHand+"','"+minimumStock+"','"+minimumOrderQuantity+"','"+avaliableStock+"')");
                    super.saveData();
         public void changePartDetails(){
            super.setDatabase("mrpii");
            super.setUpdate( "UPDATE part SET description = '"+description+"',unitOfMeasure = '"+unitOfMeasure+"',"+
              "partType = '"+partType+"' WHERE partNumber = '"+partNumber+"' ");
            super.saveData();
         public void adjustStock(){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET stockLocation = '"+stockLocation+"',"+
              "avaliableStock = (('"+quantityOnHand+"' - qtyOnHand ) + avaliableStock), "+
              " qtyOnHand = '"+quantityOnHand+"' WHERE partNumber = '"+partNumber+"' ");
              super.saveData();
         public void insertAllocation(String allocationID, double quantity){
              super.setDatabase("mrpii");
              super.setQuery("INSERT INTO allocations VALUES('"+partNumber+"','"+quantity+"',"+
                 " '"+allocationID+"')");
              super.saveData();
         public void reduceAvaliable(double allocated){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET avaliableStock = (avaliableStock - '"+allocated+"') WHERE " +
              "partNumber = '"+partNumber+"' ");
              super.saveData();
         public void increaseAvaliable(double allocated){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET avaliableStock = (avaliableStock - '"+allocated+"') WHERE " +
              "partNumber = '"+partNumber+"' ");
              super.saveData();
    }Any help would be deeply appreciated
    Thanks
    Jim

    I am currently migrating from MySql to Derby. Dear God, why?I am using the embedded functionality.
    >
    I have been developing a MRPII package for a whilenow
    MRP as in "manufacturing resource planning"?Yes
    >
    and whilst my classes worked with MySql I am
    finding difficulty with implementing them using
    Derby.That suggests that your Java code relies too heavily
    on MySQL features. You didn't make your code
    portable enough.
    I have developed a GUI interface for MRPIIfunctions
    and use a Database Interface class to connect tothe
    database.
    The Database Interface class gives me thecapability
    of reading and writing from a database.
    I extend this capability to sub classes ie part,
    customers, suppliers, work orders.
    The problem I have is with the ' "+standardCost+"'
    type statements. In MySql, the database engine
    recognises that the standard cost variable is a
    double though using Derby I get the following
    Errors.Right - you're counting on something that might not
    be true for all databases. MySQL appears to be doing
    an implicit conversion from string to double. Bad
    idea.
    SQL Exception: Columns of type 'DOUBLE' cannothold
    values of type 'CHAR'. In Save Data errorcode30000
    SQL Exception: Columns of type 'DOUBLE' cannothold
    values of type 'CHAR'. In Save Data errorcode30000
    Executed statement INSERT INTO stock
    VALUES('BUDGET500','A1',
    '100.0','50.0','1.0','100.0')
    Executed statement INSERT INTO part
    VALUES('BUDGET500', 'PENTIUM','76.0',
    '86.0','EACH','MP','7','33')Do you use PreparedStatements to escape strings and
    dates for you? If not, you're in for a bumpy ride.
    The only solution I see is giving each subclass of
    Database Interface the individual capabilitywithin
    that class to connect to the database and use
    prepared statements.I would not have a single database interface. Each
    class has its own requirements. How can a single
    class know about all of them? Better to break your
    persistence layer into several interaces, one per
    persistent class.That is what I thought
    >
    Does anyone know if Derby has the capability of
    processing the updates using a similar format as
    shown in my code.I think your code is in trouble, Jim.Probably so, thought a redesign is not so much of a problem now as I am a bit more experienced than when I started out.
    >
    You don't use prepared statements, which would help
    with your portability issues.
    You have SQL embedded in the objects. I'd move it
    out into a separate persistence layer.
    You might want to read about Hibernate, an
    object/relational mapping layer. You've got objects
    and tables. Hibernate tools or Middlegen can
    generate the XML mapping files for you. Once you
    have those, you'll find that Hibernate will make
    porting to another database a lot easier. It can be
    as easy as changing configuration files.
    I'd also look into Spring. It has some great
    plumbing to help you deal with databases and lots of
    other stuff.
    %My main class is as follows;
    package delta.databaseInterface;
    * @author James Charles
    import java.sql.SQLException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.util.Vector;
    import javax.swing.JTable;
    public class DatabaseInterface{
         private String database;
         private String query;
                         private String update;
                private String[][] results = new String[0][0];
         private int columnCount = 0;
         private int rowCount = 0;
         private boolean resultsExist = false;
         Object data[][];
         private JTable table;
         public void setDatabase(String database){
              this.database = database;
         public void setQuery(String query){
              this.query = query;
                public void setUpdate(String update){
              this.update= update;
            public void saveData(){
              try{
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
              String sourceURL = new String("jdbc:derby:" + this.database);
              Connection databaseConnection = DriverManager.getConnection(sourceURL);
              Statement statement = databaseConnection.createStatement();
              statement. executeUpdate(this.update);
                    databaseConnection.close();
              } // end of try
              catch(ClassNotFoundException cnfe){
                   System.err.println(cnfe);
              catch(SQLException sqle){
                   System.err.println(sqle + " In Save Data error code" + sqle.getErrorCode());
                             System.out.println("Executed statement " + this.query);
                    catch(InstantiationException ie){
                        System.err.println(ie);
             catch(IllegalAccessException iae){
                        System.err.println(iae);
         public String getDatabase(){
              return this.database;
         public String getQuery(){
              return this.query;
         public void setResults(){           
         try{
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
              String sourceURL = new String("jdbc:derby:" + this.database);
              Connection databaseConnection = DriverManager.getConnection(sourceURL);
              Statement statement = databaseConnection.createStatement();
              ResultSet thisResult = statement.executeQuery(this.query);
                    databaseConnection.commit();
              System.out.println("Executed statement");
              convertToArray(thisResult);
              databaseConnection.close();
         } // end of try
         catch(ClassNotFoundException cnfe){
              System.err.println(cnfe);
         catch(SQLException sqle){
              System.err.println(sqle);
         catch(InstantiationException ie){
                        System.err.println(ie);
             catch(IllegalAccessException iae){
                        System.err.println(iae);
         public void convertToArray(ResultSet resultsIn) throws SQLException{
              this.resultsExist = false;
              String[] columnNames = new String[0];
              Vector dataRows = new Vector();
              ResultSetMetaData metadata = resultsIn.getMetaData();
              this.columnCount = metadata.getColumnCount();
              columnNames = new String[this.columnCount];
              for(int i = 0; i < this.columnCount; i++)
                   columnNames[i] = metadata.getColumnLabel(i+1);
              String[] rowData = new String[this.columnCount]; // Stores one row
              while(resultsIn.next()){ // For each row...
                   rowData = new String[this.columnCount]; // create array to hold thedata
                        for(int i = 0; i < this.columnCount; i++)// For each column
                        rowData[i] = resultsIn.getString(i+1); // retrieve the data item
                        dataRows.addElement(rowData); // Store the row in the vector
              this.results= new String[dataRows.size()][this.columnCount];
              this.data= new Object[dataRows.size()][this.columnCount];
              for(int column = 0; column < this.columnCount; column++)
                   for(int row = 0; row < dataRows.size(); row++){
              this.results[row][column] = ((String[])(dataRows.elementAt(row)))[column];
              this.data[row][column] = ((String[])(dataRows.elementAt(row)))[column];
              this.rowCount = dataRows.size();
              try{
                   if  (results[0][0].equals(null)){ this.resultsExist = false;} //ckecks results
                        else {this.resultsExist = true;}
                   catch (ArrayIndexOutOfBoundsException e){
                   System.out.println(e + "in catch");
                   this.resultsExist = false;
                   System.out.println("Value of exists in catch = " + this.resultsExist);
         }// end of set results
         public JTable getTable(Object[] columnNames) {
              table = new JTable(data, columnNames);
              return table;
         public int getColumnCount(){
              return this.columnCount;
         public int getRowCount(){
              return this.rowCount;
         public String getData(int row, int column){
              return this.results[row][column];
         public boolean doResultsExist(){
              return this.resultsExist;
    } // end of database InterfaceI developed this code about a year ago and maybe it is time to simplify it.
    With MySql I could create an instance of Database Interface or use one of its subclasses and perform any function on the database by calling its methods.
    maybe it is time for a redesign!
    thanks
    jim

  • ODBC function SQLDriverConnect() crashes with SQL Server 2008 R2

    When calling the SQLDriverConnect() function from a 64-bit process and selecting a system DSN with a SQL Server Native Client 10.0 ODBC driver with SQL Server 2008 R2 SP3, then this call crashes here:
         sqlncli10.dll!SNIMemRegion::Pop()  + 0x77 bytes    
         sqlncli10.dll!SNIPacketAllocateEx2()  + 0xa8 bytes    
         sqlncli10.dll!Np::ReadSync()  + 0x7e bytes    
         sqlncli10.dll!Ssl::HandshakeReadToken()  - 0x1b bytes    
         user32.dll!InternalDialogBox()  + 0x132 bytes    
         user32.dll!DialogBoxIndirectParamAorW()  + 0x56 bytes    
         user32.dll!DialogBoxParamW()  + 0x85 bytes    
         sqlncli10.dll!SQLDriverConnectW()  + 0x34f23 bytes    
         odbc32.dll!SQLInternalDriverConnectW()  + 0x17c bytes    
         odbc32.dll!SQLDriverConnectW()  + 0xa15b bytes
    Am I calling SQLDriverConnect() correctly (see below)? Or is this a bug in the 64-bit version of the ODBC driver?
    In the 32-bit version, everything works fine.
    Here is a test program:
    int _tmain(int argc, _TCHAR* argv[])
    SQLHENV hEnv = NULL;
    SQLHDBC hDbc = NULL;
    SQLRETURN ret = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &hEnv);
    assert(ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO);
    ret = SQLSetEnvAttr(hEnv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER) SQL_OV_ODBC3, 0);
    if (ret != SQL_SUCCESS && ret != SQL_SUCCESS_WITH_INFO)
    fprintf(stderr, "SQLSetEnvAttr failed\r\n");
    return EXIT_FAILURE;
    ret = SQLAllocHandle(SQL_HANDLE_DBC, hEnv, &hDbc);
    assert(ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO);
    SQLTCHAR szConnection[2048];
    SQLSMALLINT cbChars;
    ret = SQLDriverConnect(hDbc, ::GetDesktopWindow(), (SQLTCHAR*) _T(""), SQL_NTS,
    szConnection, _countof(szConnection)-1, &cbChars, SQL_DRIVER_PROMPT);
    if (ret != SQL_SUCCESS && ret != SQL_SUCCESS_WITH_INFO && ret != SQL_NO_DATA)
    fprintf(stderr, "SQLDriverConnect failed\r\n");
    return EXIT_FAILURE;
    else
    fprintf(stdout, "Success\r\n");
    return 0;
    The stdafx.h contains the following includes:
    #include "targetver.h"
    #include <stdio.h>
    #include <tchar.h>
    #include <Windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #include <assert.h>
    Steps to reproduce the crash: compile program with Visual Studio 2010 as 64-bit console application; run it and select a 64-bit SQL Server DSN.
    If the crash does not occur, try using the "AllocationPreference" registry entry set to 0x100000 (see https://msdn.microsoft.com/en-us/library/windows/hardware/Dn613975%28v=vs.85%29.aspx for details); don't forget to reboot Windows. This registry
    helps to find 64-bit portability issues.

    Hi T.holt,
    Personally, I don’t believe SQL 2008 R2 with ADMT 3.2 is supported.  From the guidelines of install the Active Directory Migration Tool (ADMT), ADMT v3.2 requires a preconfigured instance of SQL Server for its underlying data store. We
    should use SQL Server Express and install ADMT v3.2 on a member server. ADMT installation enforces the following service pack requirements:
    • SQL Server 2005 Express must be installed with Service Pack 3 (SP3) or later.
    • SQL Server 2008 Express must be installed with Service Pack 1 (SP1) or later.
    If you use full versions of SQL Server 2005 or SQL Server 2008. In this case, you need to install and run the ADMT console on a remote computer, and you can run multiple ADMT consoles on different remote computers. If
    you use a full version of SQL Server, ADMT installation does not enforce any service pack requirements.
    For more information about installing ADMT in the target domain, you can review the following article.http://technet.microsoft.com/en-us/library/cc974370(v=ws.10).aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • Help re databases in Dreamweaver 8

    I am looking to set up a members database using Dreamweaver 8. I have MS Access. Is there an easy way of doing this and having a "login" facility based on membership category.  The website is stored locally and uploaded to remote server via FTP conne

  • Screenshot cmd-shift-4 not working after startup

    Guys, please help me. I have a 7 months old Imac running on OS X 10.9.4 with a bluetooth/wireless keyboard. Recently my keyboard shortcut for screenshot (cmd-shift-4) stopped working. The funny thing is when I restart, the screenshot shortcut works f

  • Autocad Architecture 2009 & PDFMaker 9 Pro

    We were running Architecture 2009 and Adobe Pro 8. Turned out 8 was not compatible w/ any autocad 2008 (wouldn't give us the pdfmaker toolbars & pulldown menu). We were told 9 Pro was compatible w/ Autocad 2008 so we just upgraded 9 computers to 9 Pr

  • X3-02 dead after update fail

    I was updating firmware with OviSuite (ver.3). Then I got halfway the message: Something went wrong start all over again. But the phone does nothing. When I push startbutton the text testmode is on the screen for some time but that's all. What shold

  • When opening new page on latest version, I get two Java Script error messages.

    Mac Snow Leopard Error Messages are: [JavaScript Application] Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrom