Map.Entry not supported in queries?

Hi,
I tried to run the following JDO query:
Query query = pm.newQuery(SomeClass.class);
query.setFilter("someMap.contains(entry) && entry.key == value");
query.setOrdering("entry.value ascending");
query.declareVariables("java.util.Map.Entry entry");
query.declareParameters("String value");
Object result = query.execute(someValue);
where someMap is an attribute of SomeClass which is of type java.util.Map
but I received the following exception:
kodo.util.UserException: The type "java.util.Map.Entry" as used in the
variable/parameter declarations could not be found in the imports.
     at kodo.query.AbstractQuery.bindClasses(AbstractQuery.java:1507)
     at kodo.query.AbstractQuery.bindVariables(AbstractQuery.java:1480)
     at kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:501)
     at kodo.query.AbstractQuery.compileForParse(AbstractQuery.java:456)
     at kodo.query.AbstractQuery.getParameterTypes(AbstractQuery.java:1198)
I've also tried specify Map.Entry as "java.util.Map$Entry" and it also
doesn't work. Does it mean that Map.Entry or inner classes are not
supported in queries?
Someone please help,
Stephen

Stephen-
Map.Entry is not supported in queries (although you could conveivably
write a query extension that supports it).
Note that it does look like you can you the supported filter
"someMap.containsKey(keyParam)" (which would do the same thing as your
query "someMap.contains(entry) && entry.key == value").
In article <cc5jbq$c49$[email protected]>, Stephen Leung wrote:
Hi,
I tried to run the following JDO query:
Query query = pm.newQuery(SomeClass.class);
query.setFilter("someMap.contains(entry) && entry.key == value");
query.setOrdering("entry.value ascending");
query.declareVariables("java.util.Map.Entry entry");
query.declareParameters("String value");
Object result = query.execute(someValue);
where someMap is an attribute of SomeClass which is of type java.util.Map
but I received the following exception:
kodo.util.UserException: The type "java.util.Map.Entry" as used in the
variable/parameter declarations could not be found in the imports.
     at kodo.query.AbstractQuery.bindClasses(AbstractQuery.java:1507)
     at kodo.query.AbstractQuery.bindVariables(AbstractQuery.java:1480)
     at kodo.query.AbstractQuery.internalCompile(AbstractQuery.java:501)
     at kodo.query.AbstractQuery.compileForParse(AbstractQuery.java:456)
     at kodo.query.AbstractQuery.getParameterTypes(AbstractQuery.java:1198)
I've also tried specify Map.Entry as "java.util.Map$Entry" and it also
doesn't work. Does it mean that Map.Entry or inner classes are not
supported in queries?
Someone please help,
Stephen
Marc Prud'hommeaux
SolarMetric Inc.

Similar Messages

  • The update map does not support "UPDATE"

    Hi,
    I've created a Logical Data Service, but get a warning
    The update map does not support "UPDATE" : One or more update operations do not have update capabilities
    While creating the Physical Services(Oracle 11g), the update methos was not creating; so I create those manually.
    The update does not work, even from the Physcial service( It says Operation Successful) but the data does not change
    Any help is appreciated
    Rgds,
    Is

    Please post your physical data service both before and after you added the update.

  • Show error at the time of checking compactibility of android apps in BB playbook Google Maps API not support?

    Hello Friends,
    Please Help
    I am trying to check the compactibility of android apps in BB playbook but I get error message
    "Your application is not compatible with the BlackBerry® Runtime for Android™ Apps."
    This package not support
        uses-package    com.google.android.maps
    But actully issue is I am not using com.google.android.maps package in project.
    But It also shous the error of google.maps package.
    Please help me tell me the solution regarding that.
    Only this one issue is not solve.
    Thanks Billions!!
    Aniruddha

    My Eris? Only minor occasionally glitches (force closes or bad apps) and just recently found one tiny dead spot in the LCD screen (no big thing). Biggest thing is I have NOT had to pull my battery in months! I think it was more my fault the last time it happened.
    The main reason I think my phone is so problem free is I did a factory reset soon after 2.1 OTA update.
    Btw I went from a Motorola W385 to the Droid Eris. Big learning curve, but I enjoyed the trip. LOL

  • Class-map does not support match protocol ssl

    I have several 1941/k9's that do not have the class-map command: to suppot ssl.  System image is c1900-universalk9-mz.SPA.152-1.T.bin.
    class-map match-any af31
    match protocol ssl  <-- missing.
    I did some google searches but come up with nothing. 
    Is the fix to upgrade IOS?  I have found it on other routers running c1900-universalk9-mz.SPA.152-4.M4.bin.  I would just upgrade and check but have an extensive change review board with questions before doing so.
    Thanks for advice,
    Haydn

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    I'm not current on NBAR (or NBAR 2), but NBAR used to support loadable modules (PDMs?).  Sometimes Cisco would provide those so you could add match protocols without upgrading your IOS.
    Otherwise the "fix" would be to upgrade your IOS.
    Lastly, depending on what it matching SSL really means to you, using port based ACLs might suffice (in fact, some NBAR match protocol is only really that, but some NBAR matches regardless of the port usage).
    PS:
    Also on the subject of SSL, don't forget much can use it.  I once matched on it for the purposes of providing secure shell higher queuing priority, worked great for SSH, not so great when secure copy (SCP) also matched against it.

  • Google Maps Lacks KML Support

    For some reason, the Palm Pre version of Google Maps does not support KML files.  The full web version allows you to enter the URL to a KML file hosted on a web server into the search box and it will display the points in the KML file on the map (just like Google Earth does).  This also works on other mobile platforms, including the iPhone/iPod touch, and some Windows Mobile phones.  Does anyone know if this is going to be added?  I use this feature in Google Maps for fleet management.  I foolishly assumed that the feature set in the Pre version of Maps would be similar to the iPhone and other platforms.
    Dwayne 
    Post relates to: Pre p100eww (Sprint)

    I read through the posts and I'm happy this has been put on the "list".
    I work for a state agency and I'm working on developing free map sets for mobile phones (e.g. hiking trail information).  I got the Pre to help me with testing and I'm extremely dissapointed to see that .kml's and .kmz's are not supported. Had I known this I would have gone with a blackberry and would advise others against purchasing the pre. 
    These units have great GPS capabilities making them really practical for importing data sets, this is very dissapointing. Perhaps I'll just have to put a note on our webpage saying that the Palm Pre doesn't support mobile google map files.... 

  • Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot

    Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot update either as anything up to 9.1.1 tells me I don't need it yet 9.1.2 tells me I need an eligable Logic Pro Version was not found in applications.
    All of my files are stored in a separate hard drive with only the actual app having been on my Macbook. Should I just reinstall?

    Hi
    To run Mouitain Lion you need to update Logic.
    For the updaters to work the Logic application must be:
    a) Within the Applications folder, and not in any sub-folder
    b) Named "Logic Pro" with no extra numbers or spaces
    CCT

  • "SQL Server 2008 Reporting Services does not support map report items"

    Hi,
    I am trying some new feature that are introduced in SQL Server 2008 R2 version. While I try to use "Map" control within it, it threw the following error:-
    "Error 1 The map, Map1, was removed from the report. SQL Server 2008 Reporting Services does not support map report items. "
    -Also, similar kind of error I am getting for "Indicator" control.

    Hi Tej,
    I think you get this error message when you are deploying a report to report server using BIDS, correct?  If not, please provide more details on your scenario :-)
    If I guessed correctly, then this message is a result of trying to deploy a map report (a SSRS 2008 R2 feature) to a non-R2 2008 report server.  When deploying a report of RDL2010 format to a non-R2 report server, BIDS will downgrade the file to RDL2008 format, so that the non-R2 report server can process it.  Any report elements using features not supported in RDL2008 will be dropped during this downgrade process.
    BIDS gets the server version from a report project property called TargetServerVersion:
    http://technet.microsoft.com/en-us/library/ee635898(SQL.105).aspx
    If your report server is indeed the 2008 R2 version, then the TargetServerVersion property should be set to "SQL Server 2008 R2 Reporting Services."  The project property page also has a "Auto Detect..." option if you are uncertain about the version of your report server.
    Hope this helps!
    Cheers,
    LawrenceThis posting is provided "AS IS" with no warranties, and confers no rights.

  • Interface Mapping not supported in the JPA specification?

    Are there any plans to add Interface support in the JPA specification? It is not supported by JPA annotations, which seems quite disruptive to proper object oriented design. However, individual implementations of JPA seem to support this:
    http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#inheritance-tableperclass
    http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Use_the_.40VariableOneToOne_Annotation
    There is visible interest in getting this implemented at an Annotation level for Hibernate also but the developers for Hibernate point out that this isn't even in the JPA specifications.
    http://opensource.atlassian.com/projects/hibernate/browse/ANN-9
    https://forum.hibernate.org/viewtopic.php?f=9&t=941363&sid=4abdbc72cbf04380f4a8e2cadd7dfada&start=15
    Is this being talked about/in the works for JPA? Why not include @VariableOneToOne in the spec? It would seem to be quite an essential feature for wide adoption.

    Hi,
    You can only choose the Interface mapping for the Enhanced recevier determination in the extended tab of Receiver determination. & I dont see the Interface mapping in the select list.
    Where do I have to check for the proper outbound message???
    Regards

  • Is HTML's image mapping in OWA not supported?

    We compose a mail inserted with a HTML page which contains a image devided into serveral parts by using <map> and <area> tages.  People received mail can follow the hyperlinks set in the different part of the image to be directed to various
    web pages.
    It is fine to display this HTML page with mail clients such as Outlook.
    But in OWA (Exchange 2010), the hyperlinks inside the image are missing, only an image left.
    So I am wondering if some HTML tags such as image mapping tag <map> and <area> are not supported in OWA.
    Or do I need to do some configurations to make this effect?
    Can someone give me some advices?
    Thanks in advance!

    Hi,
    What's your Outlook version?
    Based on my search, Outlook 2003 and Outlook 2007 can support HTML image mapping. Even Outlook 2010 don't support image mapping.
    Someone encountered the same issue in Outlook 2010 as you got in OWA. It seems that OWA don't support HTML image mapping as well. You can look at the following thread.
    https://social.technet.microsoft.com/Forums/office/en-US/aac24b10-40ab-4510-bd5a-17ab351a4711/how-do-i-use-an-image-map-in-outlook-2010?forum=outlook
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s).

    Hi,
    Can anyone help me out please.
    I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error
    " Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s)."
    Please refer the Stored Procedure & error message below.
    USE [Ice]
    GO
    /****** Object:  StoredProcedure [dbo].[Pr_DBAccess]    Script Date: 08/14/2014 16:08:20 ******/
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    ALTER
    PROCEDURE [dbo].[ Pr_DBAccess](@SERVERTYPE
    NVARCHAR(50),@SERVERNAME
    NVARCHAR(100),@DATABASENAME
    NVARCHAR(100),@SCHEMANAME
    NVARCHAR(100),@TABLENAME
    NVARCHAR(100),@USERNAME
    NVARCHAR(100),@PASSWORD
    NVARCHAR(100))
    AS
    BEGIN
    DECLARE @openquery
    NVARCHAR(4000),
    @ETL_CONFIG_IDN
    NVARCHAR(100);
     IF @SERVERTYPE='SQL'
     BEGIN
    SET @openquery= 
    'CREATE VIEW '+@TABLENAME+
    ' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@SCHEMANAME+'.'+@TABLENAME+''')'
    SELECT @openquery
    END
    EXECUTE
    sp_executesql @openquery
    END
    ----While running the SP manually below error occured

    HI ,
    1. You cannot use a table or view that contains xml or clr type as 4-part name in your query
    2. You need to cast the column to either nvarchar(max) or varbinary(max) or other appropriate type to use
    3. If you have a table that has xml type for example then you need to create a view that contains all columns other than xml and query it instead. Or you can issue a pass-through query using OPEN QUERY with the appropriate columns only.
    Here is a work around:
    SELECT
          Cast(a.XML_Data as XML) as XML_Data
    FROM
          OPENQUERY([LINKED SERVER NAME HERE],'
              SELECT
                Cast(XML_Data as Varchar) as XML_Data
             FROM
                [DATABASE NAME].[SCHEMA].[TABLE NAME]'
    ) a
    Basically, the data is queried on the remote server, converts the XML data to a varchar, sends the data to the requesting server and then reconverts it back to XML.
    You can take help from below link;
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c6e0f4da-821f-4ba2-9b01-c141744076ef/xml-data-type-not-supported-in-distributed-queries?forum=transactsql
    Thanks

  • Special Stock E not supported (check your entry) error in returns delivery

    Dear friends,
    While we are doing the returns delivery, we are getting the error " Special Stock E not supported (check your entry)
    Message no. M7146
    Diagnosis
    The specified objekt (Special Stock E) is not supported."
    This is an M.T.O scenario
    In the returns order the requirement type is 'KE"
    can u pls tell me how the requirement type is determined at sales order level. Can it be changed manually.
    How the strategy group is linked to requirement type.

    Hi,
    Requirement type KE you can not changed manually.
    For a strategy two requirement types are linked. One is from PIR requirement type,another one is from customer requirement type.
    For 20 strategy, customer requirement type is KE.
    For more detais Goto SPRO>Production>Production planning>Demand management>Planned ind req>Planning strategy>Define planning strategy.
    Here you can find the link between requirement type to a strategy.
    Regards,
    Dharma

  • Special Stock E not supported (check your entry) Message no.

    Hi,
    While we are doing the returns delivery, we are getting the error "
    Special Stock E not supported (check your entry)
    Message no. M7146
    Diagnosis
    The specified objekt (Special Stock E) is not supported."
    This is an M.T.O scenario
    In the returns order the requirement type is 'KE"
    The item category is REN
    Schedule line category is DN
    movement type is 651
    Kindly guide how to over come this issue.
    Warm Regards
    Somnath
    09903518371

    Dear somnath
    For information, in returns scenario, special stock indicator E will not support.  The logic behind this is that while taking back the goods into plant, you should not assign those stocks to original sale order.  Either you have to post the stock for Quality or to some new storage location.
    thanks
    G. Lakshmipathi

  • CSM map/policy type dns not supported

    When I configure dns maps or dns policies on my CSMs (WS-X6066-SLB-APC, HW 1.7, SW 3.2(2)) they say
    "Map type DNS not supported by card, config accepted." and
    "Policy type DNS not supported by card, config accepted."
    What's the reason for that restriction? Will there be a software release that supports it? Didn't find anything about that in the release notes.
    Many thanks in advance
    Uli

    I too have received this message in the past. I found that it was because I had not entered the GSLB license key into the CSM configuration (GSLB *is* an optional software license).
    You enter your license key via a CSM variable. This configuration would work (substitute your own license key):
    conf t
    mod csm X <- where X is the slot # of your CSM
    variable GSLB_LICENSE_KEY xxxxxxxxxxxxxxxxxxxxx
    Substitute your license key for the row of 'x's. Then you will need to reboot the CSM. If you are running redundant CSM's you will need a license key for each.

  • Why New Apple maps not supporting the direction of route  in the UAE; which was supported in ios5.Please help

    Why New Apple maps not supporting the direction of route  in the UAE; which was supported in ios5.
    When it is going to resolve

    iOS 6  Which Features in What Countries...
    http://www.apple.com/ios/feature-availability/

  • Alert file entry: Load Information not supported by OS!

    I get the following alert file entry every 30-60 seconds with any database I create with Oracle8.1.5i on RedHat6.2:
    Load Information not supported by OS!
    The entry appears to relate to PMON and (eventually) causes the creation of PMON derived trace files.
    Can anybody help?

    Thanks Kristian, your solution is totally correct.
    About a day after you posted your advice, I finally managed to get our Oracle support info from our Oracle reseller, and they have advised the same thing. Apparently, this is a known bug.

Maybe you are looking for

  • The end of a beautiful relationship (long)

    I purchased a Sony 4K 49 “TV on Tuesday (11/4/2014) in the Palmdale, CA Best Buy. I was told it would be delivered on Thursday with a confirmation call on Wednesday giving me my delivery time. The call did come Wednesday stating a delivery time betwe

  • Reg : Getting error while approving leave request

    Hello Experts, Manger is getting and error message u2018Work item 000000000000 cannot be readu2019 while Approving the leave request of one his reportee. This error is triggering for only one Reportee.  Experts please kindly help us. Regards, Raj

  • InDesign CS4 is missing!

    Got a new macbook. Migrated everything from my imac. Lots of apps don't work, it's all a mess. I tried to clean it up, deleted stuff, and reintalled 10.7. Then I inserted the original Creative Suite CS4 Design Standard install CD, and InDesign is not

  • Problems with my photoshop elements:

    I cannot download my photos from my camera, I have been using this product for 2 years.

  • Stateless session's one method to call  two bmp's create method

    JSP calls one stateless session's one method and the method calls two bmps'           create method.           However, When the second bmp run the create operation, the exception           happens.           But the date that the first bmp insert is