Embedding with JPA annot: column "is not compatible with expected type"

I have the following embed case (things I guess to be inessential omitted):
@Entity
public class Container {
@Id
@GeneratedValue
@Column(name="ID")
private long id;
@Embedded
@AttributeOverride(name="value", column=@Column(name="UID"))
private Uid uid;
@Embeddable
public class Uid {
private String value;
When I run this through the mapping tool to build the schema, it correctly builds the UID column in the MySQL Agreement table as a VARCHAR.
However, when I try to access the table, I get the following error (I've edited class names to match my simplified example):
RROR_SYSTEM_FAILED:
<4|true|4.0.0> kodo.persistence.ArgumentException: "Uid.value" declares a column that is not compatible with the expected type "varchar". Column details:
Full Name: Agreement.UID
Type: blob
Size: 0
Default: null
Not Null: false
     at kodo.jdbc.meta.MappingInfo.mergeColumn(MappingInfo.java:720)
     at kodo.jdbc.meta.MappingInfo.createColumns(MappingInfo.java:567)
     at kodo.jdbc.meta.ValueMappingInfo.getColumns(ValueMappingInfo.java:143)
     at kodo.jdbc.meta.strats.StringFieldStrategy.map(StringFieldStrategy.java:52)
     at kodo.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:101)
     at kodo.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:75)
     at kodo.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:497)
     at kodo.jdbc.meta.FieldMapping.resolve(FieldMapping.java:456)
     at kodo.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:930)
     at kodo.jdbc.meta.ClassMapping.resolveMapping(ClassMapping.java:886)
     at kodo.meta.ClassMetaData.resolve(ClassMetaData.java:1761)
     at kodo.jdbc.meta.ValueMappingImpl.resolve(ValueMappingImpl.java:541)
     at kodo.jdbc.meta.strats.EmbedFieldStrategy.map(EmbedFieldStrategy.java:62)
     at kodo.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:101)
     at kodo.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:75)
     at kodo.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:497)
     at kodo.jdbc.meta.FieldMapping.resolve(FieldMapping.java:456)
     at kodo.jdbc.meta.ClassMapping.resolveMapping(ClassMapping.java:890)
     at kodo.meta.ClassMetaData.resolve(ClassMetaData.java:1761)
     at kodo.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:683)
     at kodo.meta.MetaDataRepository.resolveMapping(MetaDataRepository.java:635)
     at kodo.meta.MetaDataRepository.resolve(MetaDataRepository.java:518)
     at kodo.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:288)
     at kodo.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:352)
     at kodo.kernel.QueryImpl.classForName(QueryImpl.java:1879)
     at kodo.kernel.ExpressionStoreQuery$1.classForName(ExpressionStoreQuery.java:74)
     at kodo.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:151)
     at kodo.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:119)
     at kodo.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:203)
     at kodo.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:176)
     at kodo.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:167)
     at kodo.kernel.jpql.JPQLExpressionBuilder.access$500(JPQLExpressionBuilder.java:30)
===
I can't figure out why it thinks something should be a blob. Any thoughts?
Thanks,
-- Bryan Loofbourrow

Ok, I found the problem. I hadn't added the Uid.java to the persistence.xml file, so although the mapping tool correctly recognized this as a varchar situation, the execution environment did not, taking Uid to be a nonpersistent class that it must treat as a blob.
-- Bryan

Similar Messages

  • Apps built with Flex Builder 2 - 3 not compatible with new Flash Players and/or new browsers, FB4 OK

    My applications built with Flex Builder 2 and 3 do not start in new versions of Flash Player and/or new browsers when run remotely. I have not been able to test all combinations of FP and browser versions but there is no problem with applications built with Flash Builder 4. Does anyone have info on this?

    Hi Dimitar,
    Did you close all the browsers (and applications which use
    Flash Player) when you install Flex Builder 3 Beta 3 or Flash
    Player? You can try manually installing it from <FB install
    location>/player/ directory. Here're some
    installation/unintallation instructions of Flash Player:
    http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_Flex_SDK_3_Beta_3
    thanks,
    Sharon

  • Adding an entity with a COA that is not compatible with the existing one

    Hi guys,
    I'm facing quite a challenge right now. I'm working in a client who sells car, so they have several stores that consolidate in one parent. The current application has more than 5000 accounts (BS and P&L).
    They also have a bank who was left out to the initial scope of the implementation. Now, it's going to be added.
    The thing is that the bank has a different chart of accounts (really different!), and I was recommended the following steps:
    1. Keep the current BS and P&L but rename them as CarRet_PL and CarRet_BS
    2. Add Parent accounts: "Group_PL" and "Group_BS"
    3. Create an additional structure: "Bank_PL" and "Bank_BS" with the chart of accounts of the bank.
    4. Make both PL and both BS consolidate to Group_PL and Group_BS.
    So, in the end, we'll have 2 BS and 2 P&L... I'm not quite sure if this is the right approach. For me, it'd be best to use the existing structure, and add some accounts if necessary.
    Could you please let me know your thoughts?
    Thank you.
    Lu

    Hi there,
    Sounds very complicated to me... I don't think you'll meet all the requirements by only creating one consolidated balance sheet & income statement by combining the two sub-BSs and sub-ISs. If the two balance sheets are a must, to me it would be good idea to sit down with the group accounting team and go through at which level they need to present/see the data and build the group hierarchy accordingly. Ie:
    Group BS
         Current Assets - Group
              Current Assets - Cars
                   CarAccount1
                   CarAccount2
              Current Assets - Bank
                   BankAccount1
                   BankAccount2
         Equity - Group
              Common and preferred stock - Group
                   Common and preferred stock - Cars
                   Common and preferred stock - Bank
                   Whatever Bank accounts come next
              Retained earnings - Group
                   RE - Cars
                   RE- Banks
    etc.
    It will surely not be easy like that either...
    Hope this helps!        

  • I can't use Offline Mail with Gmail because Gears is not compatible with Firefox 4. Is this a Firefox issue or a Gears issue?

    It appears that an update for Gears will be required for Offline Mail to work. I assume this is a Google issue. Do you know if they are working on this and if so, do you know how long it might take.

    From what I've read, Google want's to use HTML 5 instead of Gears in the future. But they said they are going to support Gears until that solution is available.
    Unfortunately, right now, we don't have either.

  • ACR 5.7 not compatible with PSE 6 or 7

    Though the recently released ACR 5.7 works with PSE 8, it is not compatible with PSE 6 or 7.  A number of people (including me) have observed that if you try to open a raw file in 6 or 7 you get:
    Unable to use the Camera Raw plug-in. It is not compatible with this version of Photoshop Elements.
    The accompanying documentation is an inconsistent mess about which versions are supported, variously implying that it works with 6 or later, 7 or later, or just 8:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4685
    This new version of the Camera Raw plug-in replaces the original Camera Raw plug-in that was installed with Adobe® Creative Suite® 4, Adobe Photoshop® CS4, Adobe Photoshop Elements 8 and Premiere® Elements 8 software.
    The Camera Raw 5.7 plug-in is not compatible with versions of Photoshop earlier than Photoshop CS4, versions of Photoshop Elements earlier than Photoshop Elements 6.0, or versions of Premiere Elements earlier than 4.0.
    The latest version of the Camera Raw plug-in available for Photoshop Elements 6.0 (Windows) is Camera Raw 5.5.
    This new version of the Camera Raw plug-in replaces the original Camera Raw plug-in that was installed with Adobe Creative Suite 4, Photoshop CS4, Photoshop Elements 7.0 or 8 and Premiere Elements 7.0 or 8.
    5. Navigate to the location designated by your version of Photoshop Elements: (Please read directory carefully)
    a. Photoshop Elements 7.0: Program Files\Adobe\Photoshop Elements 7.0\Plug-Ins\File Formats
    http://www.adobe.com/special/photoshop/camera_raw/Camera_Raw_5.7_ReadMe.pdf
    This new version of the Camera Raw plug-in replaces the original Camera Raw plug-in that was installed with Photoshop CS4, Photoshop Elements 8.0 and Premiere Elements 8.0.
    The Camera Raw 5.7 plug-in is not compatible with versions of Photoshop earlier than Photoshop CS4 or versions of Photoshop Elements earlier than Photoshop Elements 7.0 for Windows and Photoshop Elements 6 for Mac.
    Navigate to location designated by your version of Photoshop Elements:
    a. Program Files\Common Files\Adobe\Plug-ins\Elements 8\ File Formats
    b. Program Files\Adobe\Photoshop Elements 7.0\Plug-Ins\File Formats

    I agree with John,  there is certainly a mess and confusion
    over the use of ACR 5.7 with PSE 7.  I have tried to upgrade and got various error messages including the version incompatibility one. I did try both the 32 and 64 bit versions since I am running Windows 7 64 bit.  However I have now reached a slightly different opinion since I am still able to open Raw files from my Canon G10 (which previously worked with 5.6) but cannot open my EOS 550D Raw files which suggests a specific code problem rather than a version incompatibility.  Any comments or help Adobe?

  • Latest version of firefox program is not compatible with windows 7

    After I updated the latest version of mozilla firefox in my laptop which is a windows 7 program,it doesn't work anymore. Every time I open the firefox, the screen goes black and I can't see anything on the screen but black. And when I troubleshoot and fix the problem, it says that "COLOR SCHEMES IS NOT COMPATIBLE WITH WINDOWS 7". Program compatibility is the 1.5 version or 1.0. How to fix this one? I uninstalled and already installed a new one but still to no avail the problem is still the same. Should I install the older version? Where to download the older version? It seems that in mozilla firefox website, only the latest version or the 3.0 version is available.

    hello Gracerilla, other users with this problem all had an embedded intel hd3000 graphics card with an old driver present. in case this also applies to you, here would be a link to update the driver, which in turn should also address the black firefox problem: https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23764 (for win7 64 bit)
    in case this doesn't solve the issue or does not apply to your system, start firefox into safemode '''by pressing the shift key while the application is launching''' & disable hardware acceleration in the firefox ''menu ≡ > options > advanced > general'' (that setting will take a restart of the browser to take effect).
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • How do I resolve: "Could not complete the Crop command because the file is not compatible with this version of Photoshop" error message?

    Photoshop document created in current version of PSCC2014, now will not crop, resize, etc without throwing compatibility error.
    "Could not complete the Crop command because the file is not compatible with this version of Photoshop."
    How do I resolve without recreating the file?

    Ooops.  Hit save reply prematurely. 
    You may be able to open the flattened composite or the embedded JPEG preview of your file in Adobe Illustrator, GraphicConverter (Mac only) or some such application, but your layers will be gone.
    The problem of working across a network is that it's not supported by Adobe:
    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • This feature is disabled because it is not compatible with RTF???????

    Anybody, have this error. I don't why this is occurring. Everytime I try to paste a table inside another one (nesting) I get this error saying I can't.
    The two fixes:
    1. was to save the file as WORD 97-2002 RTF (*.doc) paste the nested table, save it back to rtf
    or
    2. draw the table inside the other table.
    both methods are super annoying....
    Is there patch from microsoft we need to apply? The version mortenson is using is Microsoft Word 2002 (10.6835.6830) SP3.
    When I go to system information for office I found the following:
    Tables in document     1
    Current table location     Page: 1, Section: 1
    Rows     1
    Columns     1
    Allow page breaks     True
    Rows allow page breaks     Yes
    Auto resize to fit contents     True
    Cells auto resize to fit contents     No
    Nested level     1
    Tables inside this table     0
    Preferred width     Type: Inches, Width: 6.9
    Default cell spacing     0.00 in..
    Default cell margins     Top: 0.00 in., Bottom: 0.00 in., Left: 0.08 in., Right: 0.08 in.
    Row alignment     Left
    Row height rule     At Least
    Left indent     -0.4 in.
    Uniform     True
    Table     1
    Location     Page: 1, Section: 1
    Rows     1
    Columns     1
    Contains nested tables     False

    The requirements for Shark Dash say that it requires a 3rd-generation or 4th-generation iPod touch. It won't install nor run on a 2nd-gen iPod touch. Check the requirements for the other apps you can't get to load; I'll wager they similarly are not compatible with the 2nd-generation iPod touch.
    And if you have a 2nd-gen iPod touch, you don't have iOS 5.1, so you probably will want to correct your profile information. I'd also suspect that your other iPod really isn't a 2nd-generation unit.
    Regards.

  • Nikon D7100 Not Compatible with Adobe CS6

    I recently purchased a new Nikon D7100 DSLR camera and was quite surprised to find out that it is not compatible with my Adobe CS5 Standard Edition Suite software.
    From the little bit of info I found online, it appears that non-upgradable changes to the Camera Raw component between versions CS5 and CS6 have made my software incompatible with my new camera.  This means that with my CS5 Standard Suite I cannot open RAW image files in Bridge or Photoshop.
    The only two options I have found so far are:
    [1]  Upgrade my software to CS6 or CC:  For me this is cost prohibitive.
    [2] Use Adobe's  RAW to DNG converter and then open the image files as DNGs in Bridge and Photoshop:  It appears that the DBG converter is reducing the file size and this I assume (rightly to wrongly) that it might also be reducing the image quality.  To facilitate maximum options in image post production, I want to maintain the extreme detail that RAW provides.  I am not sure if DNG will retail the exact same level of detail and quality.  Can anyone shed additional light on this?
    [3]  Are there any other option that I have missed that would allow me to upgrade the Camera Raw component of CS5 so that it is compatible with newer DSLRs like the Nikon D7100?
    Thanks in advance.
    Regards
      irwin

    You have not missed any options for CS5 opening the raw data, directly.  The D7100 requires at least CS6/ACR 7.4 or DNGC 7.4 that will make DNGs that will open in older ACR versions. 
    DNGs may different in size from the NEFs due to differences in lossless compression or a different-sized embedded preview image or even missing Nikon-only metadata in the DNG.   In other words, the photosite values for the sensor data should be preserved but the packaging of, or the other data around, the sensor data may be different.
    The cheapest option to make PS work with the native raw files is likely PS-CC for $10/month as part of the Photography Plan. 
    Another option is to purchase (serial number version) or rent (CC Photography Plan version) Lightroom and use it to do what you’d normally do in Bridge and ACR, and then use Edit In Photoshop w/in LR to do finishing touches in your older PS.  This option renders a TIF or PSD to disk with all your raw-file adjustments and then passes this file to PS for further editing.  The one caveat with buying the serial-number LR is that a new version of LR is probably about ready to come out and waiting until that new version is available would save money. 
    One thing to consider is that the PS-CS6/ACR 7.x has a new toning model which is an improvement for most images and you don’t have access to that if you’re not using at least CS6.
    The reason Adobe doesn’t add new camera support to CS5 (and CS4 and CS3 and CS2 and CS and 7, 6, 5, 4, 3, 2, 1) forever is because they want to be paid for their work, and if every camera update was free forever people would only buy PS, once, and would keep using that without paying anything more until maybe the OS on their computer wasn’t compatible, anymore.  This is one reason Adobe went with CC, so people would pay a little continuously and this constant cashflow would better match Adobe paying their employees continuously, instead of having to budget for the future based on how many new customers might buy an upgrade every 1.5 years or so.

  • Mail app deleted and reinstall wont open, says not compatible with OSX

    i accindetally deleted my mail app and emptied the trash, when I tried to reinstall from the startup disk, it installs but wont open, saying that the version of mail is not compatible with the version of OSX (10.5.8)

    The Combo updater of Leopard 10.5.8 can be found here:
    http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    There is no downloadable version of Mail.app - it comes with the operating system i.e. on your install disks.

  • I have Trend Micro antivirus for Windows 7, but I am being told it is not compatible with Mozilla 9.1, how do I get an older version or adapt?

    I am using a lap top, just reinstalled everything, and now have Firefox 9.1 and am being told it is not compatible with my antivirus, Trend Micro Titanium. I am running Windows 7.

    See:
    * http://community.trendmicro.com/t5/Home-and-Home-Office-Forum/Read-Me-Before-Posting-Titanium-Hotfixes/m-p/55632

  • I have installed Firefox4 to find it is not compatible with my version of OSX how do I get version 3.6 back or do I just give up and use Safari?

    I downloaded Version 4 and installed it. At no point did it say that it was not compatible with the version of OS X that I am running (10.4.11) now that it is installed it will not open but it has already up graded from 3.6 so I have lost the lot. How can I download a version of 3.6 so that I can use it again or should I just pack up and use Safari as all I can get from your site is version 4. HELP!!!

    Go to this link and find your language:
    http://www.mozilla.com/en-US/firefox/all-older.html

  • IPod 4,1 will not update to iOS 7. I updated my iMac to 10.9.1 (maverick). Latest Numbers version on iMac is not compatible with Numbers on iPod. Ideas? Can I go back a version with Numbers?

    iPod 4,1 will not update to iOS 7. I updated my iMac to 10.9.1 (maverick). Latest Numbers version on iMac is not compatible with Numbers on iPod. Ideas? Can I go back a version with Numbers? I downloaded old version of Numbers 2.0.1 from DVD but with both versions the 2.0.1 will not open.  So both versions are present but only the new version functions. I tried to drag the new version to the trash but the old version still runs error message and will not open. I did not try to restart with the new version in the trash.

    Maybe. See:
    Reverting to previous version of Numbers

  • I need to silently upgrade from 3.5 to 7 but get an error message after 7 install. Platform version 7.0 is not compatible with minVersion = 1.9.1

    I'm trying to silently upgrade my environment to FF 7. I've gotten the silent install working great, it puts in my Proxy Server info, reassigns the home page and all that. But, the last version we pushed out was FF 3.5. If a user had that on their PC and they run the FF7 install, they get weird messages when clicking on the icon.
    XULRunner: Error: Platform version '7.0' is not compatible with minVersion >= 1.9.1 maxVersion <=1.9.1
    Another message they get is:
    AutoConfigAlert:
    Netscape.cfg/AutoConfig failed. Error: pref failed: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.setBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: prefcalls.js :: pref :: line 70" data: no]
    This is on Windows XP

    Do you have other virtualization or security software that might protect .ini and possibly other files in the Firefox program folder (C:\Program Files\Mozilla Firefox\) and prevent Firefox from updating them properly?
    You need to do a clean reinstall.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • After update to 3.6.20, ERROR, platform version 1.9.2.18 not compatible with Min/Max v 1.9.2.20

    Win2000 Pro SP4. Been running FireFox for several years. Ver3.6.6 since 03/22/2011. Got a msg window in FireFox stating important security update available. ''(ADDED INFO: Checked System Requirements of update and then...)'' As usual, I clicked yes load it. A few moments later I got the message: "XULRunner Error:
    Platform version '1.9.2.18' is not compatible with
    minVersion>=1.9.2.20
    maxVersion<=1.9.2.20"
    That is it, NO MORE FIREFOX!!! How can I fix it and not loose any of my 'stuff'?

    You're welcome

Maybe you are looking for

  • S110 Dual boot Windows 7 and windows xp

    Hello, I have purchased lenovo S110 with out of the box windows 7 and microsoft office starter. I want to install windows xp as dual boot option, can moderator guide me how to achieve it. I have researched a bit and I think I will face issues on the

  • DIRADMIN account not working anymore

    I have seen many other posts related to this issue, and I have tried all the suggestions I have seen. I can't log into Workgroup Manager as diradmin and can't re-kerberize my domain as it doesn't take the diradmin account and password in slapconfig.

  • Cannot stop vpn

    how to stop vpn from restarting

  • Download assistant quits every time launched

    im on a mac os x version 10.6.7 and ive attempted to download adobe illustrator many times (trial). ive downloaded air as well as the downloading assistant. when i click download, the assistant launches but then quits right away and i get an this "ad

  • APPLEWORKS SPREADSHEET TIME CALCULATION

    CAN YOU CALCULATE TIME IN AN APPLEWORKS SPREADSHEET APPLICATION, I.E. I WANT TO SUBTRACT AN END TIME IN 1 COLUMN FROM A START TIME IN ANOTHER COLUMN TO DETERMINE THE TOTAL TIME? E.G, 9:15 - 9:10 = 5 MINUTES.