Error when evaluating EL Expression

Hi all,
Im using JDeveloper 11g and im currently trying to set a section of text within an adf faces outputFormatted component. this is based on a EL expression as shown below. The "bindings.Compliance" and "bindings.ComplianceGoal" are two attributes of a VO and are both defined as the same type within the VO definition
color:  #{bindings.Compliance gt bindings.ComplianceGoal ? '#33AA00' : '#CC0000'} ;"however when the spplication is run i get the following error :(
]] Root cause of ServletException.
javax.el.ELException: Cannot compare 100 to 90
     at com.sun.el.lang.ELSupport.compare(ELSupport.java:100)
     at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:49)
     at com.sun.el.parser.AstChoice.getValue(AstChoice.java:47)
     at com.sun.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:46)
     at com.sun.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:51)does anybody know why i might be getting this error orwhere im going wrong?
thanks in advance...

Hi,
this works for me:
        <af:outputFormatted value="Text"
                            inlineStyle="color: #{bindings.Deptno.inputValue gt bindings.Empno.inputValue ? '#33AA00' : '#CC0000'}"/>if I remove inputValue I can reproduce your error so this is the problem
regards,
Branislav

Similar Messages

  • Syntax Error when using SQL Expression

    Morning all,
    When I try to type any SQL Expression within Crystal I am getting syntax errors, even when I type only SELECT {field name} FROM {table name}.
    Here is the query I did which gave me the following error:
    Query
    SELECT  order_progress . date_created
    FROM order_progress
    WHERE  order_progress . order_no = order_header . order_no
    AND  order_progress . order_status =77
    ORDER BY  order_progress . date_created DESC
    Error
    Error in compiliing SQL Expression
    Database connector Error: 'HY000[Informix] [Informix ODBC Driver]General Error. Syntax Error[Database Vendor Code-11060]'.
    Now this means, 1: I am getting a connection error with my db, for no apperent reason. 2: my syntax is not approved?!
    Can someone explain why is this happening and how to resolve this?
    many thanks
    Kind Regards
    Jehanzeb

    Morning Kyle,
    Thanks for the informative answer, I have found out the formula which counts number of days however, I am not sure what you meant by the following:
    >
    Kyle McAdam wrote:
    > create a formula that does the datediff....this will be a group.
    Done this, it counts the working days as in weekdays and takes bank holidays out as well
    here is the formula:
    WhileReadingRecords;
    //{order_progress.order_status}= 77;
    //{order_header.order_status}>=77;
    Local DateVar Start := {order_header.date_entered};   // Starting Date
    Local DateVar End := {order_header.act_despatch};  // Ending Date
    Local NumberVar Weeks;
    Local NumberVar Days;
    Local Numbervar Hol;
    DateVar Array Holidays;
    Weeks:= (Truncate (End - dayofWeek(End) + 1
    - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
    Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
    (if DayOfWeek(Start) = 1 then -1 else 0)  +
    (if DayOfWeek(End) = 7 then -1 else 0);  
    Local NumberVar i;
    For i := 1 to Count (Holidays)
    do (if DayOfWeek ( Holidays<i>) in 2 to 6 and
      Holidays<i> in start to end then Hol:=Hol+1 );
    Weeks + Days - Hol;
    You will then have a formula field that is evaluated to 1, if the status is 77.
    you mean second formula? How I used,
    If Order_header.Order_Status=77 then
    1
    else
    2;
    however this doesn't seem to be working.
    > Now, sum that formula in each group footer. Suppress the detail lines...
    which formula to sum up?
    > **Don't use a cross tab with this solution. For a cross tab, you would have to calculate the totals in a different manner.
    so far I used Cross tab and it is showing the right days, however not showing the correct jobs per day.
    You might be right there that it calculates the totals differently, additionally how am I suppose to get the right Percentage if using the Cross tab. The percentage should be, count of number of jobs % Total jobs.
    hence:
    {#NumofJobs} % {#Total_Jobs}
    however, when I create this formula it does not let me add that into the cross tab.
    I also need to put a subreport in my report, can I use Crosstab to contain a link to my subreport?
    Many thanks
    Kind Regards
    Jehanzeb

  • Unexpected error when connecting Airport Express A1264 to Airport Utility 6.3.1

    My current wireless setup is and has been the following:  Phone Jack --> DSL modem ---> Airport Express via Ethernet cable
    Off of that connection we've been able to wirelessly run our MacBook, Apple TV and iPhones for several years.
    We recently left for vacation, so I unplugged everything (apparently a huge mistake).  When we returned from vacation, the wireless connection was intermittent and kept being dropped.
    If I connect the Ethernet cable directly from the modem into my MacBook the internet works fine.
    I tried refreshing the Airport Express by unplugging it and cycling it through.  It continued to drop. 
    By opening the Airport Utility, a firmware update was recommended.  However, since that update the Airport Express isn't detected anymore.
    I tried a hard reset and Utility finds the Airport Express under "Other Wifi Devices" but then, at the end of trying to "Join the Airport Express to the Network" I get an "Unexpected Error" message.
    Airport Express Model Number: A1264
    Airport Utility: 6.3.1
    OS: 10.8.5
    I am very frustrated and way out of my league here with understanding how this all works and what I can do to fix it.  If anyone has any suggestions or expertise to offer, I would greatly appreciate it.
    Thank you for your time,
    Amanda

    Hi AMM222,
    "Unexpected Error" message with Mountain Lion and AirPort Utility 6.3.x.  Hopefully this is just a matter of enabling IPv6.
    AirPort base station not seen or "An unexpected error occurred" appears in AirPort Utility 6.3
    http://support.apple.com/kb/TS4597
    This can happen if IPv6 has been disabled. To enable IPv6 for your network interface:
    Choose Apple menu () > System Preferences, and then click Network.
    If a lock icon appears in the lower-left corner, click it and enter your admin name and password to unlock the pane.
    Click your network service (Wi-Fi or Ethernet) in the list, and then click Advanced.
    Click the TCP/IP tab.
    Choose Link-local only from the Configure IPv6 pop-up menu.
    Click OK.
    Click Apply.
    The AirPort device should now appear in AirPort Utility.
    Thank you for using Apple Support Communities.
    Nubz

  • Unknown error when using daq express vi's

    Hi there i get unknown error when trying to use DAQ express VI's. I have downloaded and installed NI device drivers which was required to generate EXE since then this problem was occuring what should i do i have done all that was mentioned in the following thread
    (http://forums.ni.com/ni/board/message?board.id=170&message.id=336246&query.id=2154746#M336246) but no use i am not able to figure out the problem can anyone help me. 
    Solved!
    Go to Solution.

    Hi
    Ok, if that is the situation and you've tried everything in the other thread. In the solution of this thread there's a zipfile posted that contains instructions and an application that can help you uninstall all NI software on a computer and start freesh.
    Best Regards
    David
    Message Edited by Davidek on 10-01-2009 01:56 AM
    Message Edited by Davidek on 10-01-2009 01:59 AM

  • Error when launching Logic Express

    I just got a new (mid 2011) iMac and can't run Logic Express. It ran fine on my MBP, but when I try to launch I get the message: An error occurred while trying to open "Logic Express" /Applications/Logic Express.app.
    Trashing and reinstalling didn't help. Any advice?

    Never mind. Turns out my original software update hadn't brought Logic up to the latest version. Works great now.

  • Error when using the expression operator

    Hi All
    When i'm using the following expression in the expression editor i'm getting an error message "expression is not properly formed, error expression cannot be validated". But when i use the same expression in TOAD i'm getting the result. Can any one please help me where i'm going wrong?
    SUBSTR (INGRP1.site_id_nbr, 1, 11)
    || DECODE (SUBSTR (INGRP1.site_id_nbr, -1, 1),
    1, '1',
    2, '1',
    3, '3',
    4, '3'
    Thanks

    This may be a bug in the expression validation, decode is valid in an expression operator always when Set Based code generation only is used (you may get errors if row based is used), if you configure the mapping to set based only code generation mode and default operating mode then try deploying the mapping you should be OK. Otherwise you build an expression that is valid SQL (set based) and PLSQL (row based), the CASE statement will give you this
    Cheers
    David

  • Error when setting EL expression

    Hi,
    Please help me to resolve this issue
    Error is:
    visible="#{pageFlowScope.Category.catType eq 'MC'}": Missing Resource in EL implementation: ???propertyNotReadable???
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111)
    use case
    I have a popup and there is a tab control inside. tab has three
    show detal item. i have to set visibility depending up on
    the value of a variable
    example: if variable cattype="MC" then show only first showDetailItem
      if variable cattype="SC" then show only secoond showDetailItem
      if variable cattype="SSC" then show only Third showDetailItem  
    so i put the below EL expression in visible property of 1st showDetailItem       
    visible="#{pageFlowScope.Category.catType eq 'MC'}
    when i am calling popup i am getting the error i mentioned above
    popup calling method
      public void showPopup(ActionEvent actionEvent) {
            FacesContext context = FacesContext.getCurrentInstance();
            UIComponent source = (UIComponent)actionEvent.getSource();
            RichPopup.PopupHints hints = new RichPopup.PopupHints();
      popCat.show(hints); // popCat is a binding property of popup
    Sujith

    Hi,
    you provide a lot of information, none however on the real problem area, which is
    #{pageFlowScope.Category.catType eq 'MC'}
    The error message basically tells you that it cannot access "catType" as a property. So did you verify catType base a setCattype and getCatType method in the referenced managed bean and that the managed bean is defined in the task flow configuration file it is used in ?
    Frank

  • Errors when applying sql expression on filter, please help

    Hello guys
    I was trying to put a filter on the date column and filter between timestampadd(sql_tsi_day,-31,current_date) and current_date
    I was successfully able to define both field on sql expression of the filter and I selected "is between"
    However when I run reports it returns the following errors:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22024] A comparison is being carried out between non-compatible types. (HY000)
    SQL Issued: SELECT "Year"."Transaction Date" saw_0 FROM tranSale_cube WHERE "Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date ORDER BY saw_0
    When I using the same timestamp expression on the column formula and run report without filters, the report will return the correct date however though
    I am using essbase as the data source.
    Please help
    Thanks

    Thanks
    However, the error still exist the same.. This error code returns when I run report based on this one single column
    when I put this date column with measures and other columns then run report, I get a different error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
    SQL Issued: SELECT Product."Brand Name" saw_0, "Up Level"."Trial - level 12" saw_1, "Year"."Transaction Year" saw_2, "Year"."Transactoin Month" saw_3, "Year"."Transaction Date" saw_4, tranSale.count_of_transactions saw_5, Avg(tranSale.count_of_transactions by "Up Level"."Trial - level 12", "Year"."Transactoin Month", Product."Brand Name") saw_6 FROM tranSale_cube WHERE ("Up Level"."Trial - level 12" IN ('0', 'Product Upsell')) AND ("Year"."Transactoin Month" >= '2009 Feb') AND ("Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4
    I believe it must be something with the essbase that is not serving OBIEE well. Because I tried the same filter on a different environment not having essbase, it return me the right results..
    Could anyone help?
    Thanks

  • "unexpected error" when connecting to Express after reset

    Hi, I had a Time Capsule connected wirelessly to two Airport Expresses - one to extend the network and the other to stream music.  Recently I had to replace my old iMac and at the same time I upgraded the Time Capsule to the new 3Tb model.  The iMac is the 27" late 2013 i7 running the latest release of Mavericks.  the iMac is connected to the Time Capsule via ethernet cable.
    I'm trying to reinstate the configuration I was using but am having trouble connecting to the Express.
    I do a factory reset of the Express.  Amber light flashes slowly.
    I turn wifi on on the iMac, click the icon and select the airport express from the drop down menu.  Airport Utility starts gathering information, then says it's joining, then examining base stations on my network and then "An unexpected error occurred.  Try again".  Trying again doesn't help. 
    Curiously I get a message from Norton Vulnerability protection that it has blocked an ARP Cache poison attack.  Turning off Norton Vulnerability doesn't help.
    Any suggestions?
    Regards,
    Todd

    The "unexpected error occurred" is decidedly unhelpful. All that AirPort Utility knows is that something is preventing communication with the Express, for reasons that it cannot determine.
    What model number Express do you have? Examine its case for a four digit model number preceded by the letter A. The model number is in the red box shown below:
    Turning on Norton Vulnerability can't help either. Uninstall that worthless garbage completely, so that your Mac can work as designed. ARP Cache poison attack, my posterior.

  • ORAMED-01101 :[Filter Expression Error]Error evaluating filter expression.

    I am a newbie with oracle soa suite 11g. I am trying to use file adapter to upload the csv file contents to database.
    My csv file looks like:
    employeeid,employeename,designation,managerempid
    1121,abc,mts,211
    1122,def,mts,232
    1123,xyz,abc,133
    The generated xml file during the xsd test is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Root-Element xmlns="http://TargetNamespace.com/EmpAdaptor">
    <emp>
    <employeeid>1121</employeeid>
    <employeename>suneetha</employeename>
    <designation>mts</designation>
    <managerempid>211</managerempid>
    </emp>
    <emp>
    <employeeid>1122</employeeid>
    <employeename>challa</employeename>
    <designation>mts</designation>
    <managerempid>232</managerempid>
    </emp>
    <emp>
    <employeeid>1123</employeeid>
    <employeename>xyz</employeename>
    <designation>abc</designation>
    <managerempid>133</managerempid>
    </emp>
    </Root-Element>
    and in the mediator, I have the filter expression as shown:
    $in.body/ns1:EmpDetails/ns1:Emp
    the d/b table i created is
    CREATE TABLE empdtls (EMPID NUMBER(5) PRIMARY KEY,ENAME VARCHAR2(15) NOT NULL,DESIG VARCHAR2(10),MGREMPID NUMBER(5));
    When I deployed it, the application throws the below fault
    Non Recoverable System Fault :
    ORAMED-01101:[Filter Expression Error]Error evaluating filter expression.Possible Fix:Please make sure filter expression is valid, otherwise contact oracle for support. Cause:ORAMED-01102:[Filter Expression Metadata Error]Error evaluating filter expression, "$in.body/ns1:EmpDetails/ns1:Emp"Possible Fix:Please make sure filter expression metadata is valid, otherwise contact oracle for support.
    I have been trying to fix this error for almost three days..
    Somebody please help me..

    Sorry the generated xml during test is
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <EmpDetails xmlns="http://TargetNamespace.com/ServiceName">
    <Emp>
    <employeeid>1121</employeeid>
    <employeename>suneetha</employeename>
    <designation>mts</designation>
    <managerempid>211</managerempid>
    </Emp>
    <Emp>
    <employeeid>1122</employeeid>
    <employeename>challa</employeename>
    <designation>mts</designation>
    <managerempid>232</managerempid>
    </Emp>
    <Emp>
    <employeeid>1123</employeeid>
    <employeename>xyz</employeename>
    <designation>abc</designation>
    <managerempid>133</managerempid>
    </Emp>
    </EmpDetails>

  • Binding assignment is not available:Error in the evaluation of expression

    Hi All,
    I have created Workflow to send an Email using Requested Start date concept of a Task.This is for sending a E-mail to the customer when contract end date-60 Days.
    I have done all Bindings and I am getting The date and time from BOR which I am using to triger an Event.
    I am getting these type of Errors:
    Source (expression '&BUS2000137.TIME&') of binding assignment is not available
    Source (expression '&BUS2000137.DATE&') of binding assignment is not available
    Error in the evaluation of expression '<???>&BUS2000137.DATE&' for item '1'
    Unable to determine the value of component ''
    Error in the evaluation of expression '<???>&BUS2000137.TIME&' for item '1'
    Unable to determine the value of component ''
    Looking for Inputs.
    Regard's,
    Lokesh

    Hi Adrash/Rick,
    Object type  ZBS2000137
    Attributes
    ZBS2000137.Time    Time to send mail --> Is nothing but OBJECT-TIME = SY-UZEIT
    ZBS2000137.Date    60 days before contract end date  --> Is nothing but  OBJECT-DATE =  LS_APPOINTMENT-DATE_FROM - 60.
    Methods
    ZBS2000137.Method1       Sending Mail
    Events
    ZBS2000137.Released      Contract Line Item Released
    ie I want to excute the task with same DATE and TIME, the same I have mentioned in "
    Requested Strat Tab with Expression as below
    Refer.date/time EXP Expression
    Date &BUS2000137.DATE&     60 days before contract end date
    Time &BUS2000137.TIME&      Time to send mail
    Note: If I am testing the Workflow from T-code: SWUS it is working fine.
    Regard's,
    Lokesh.

  • CUOM error when trying to poll performance data from IPCC Express

    Hi Network Professionals,
    Using CUOM 2.1 SP1 I get an error when trying to access the Performance menu for a IPCC Express Server in the Service Level View.
    Error Message:
    Performance polling is not supported for the current capability.
    The server is fully monitored and I get enviroment, system, interface and application information.
    I the Polling Parameters menu (Voice Utilization Settings) the only parameter listed is "Communication Manager and Registred MGCP Gateway Utilization".
    The IPCC Express version is 5.0.(2)SR01_Build045.
    Is anything missing on the IPCC server? I have only configured it with SNMP.
    Kind Regards
    Johnny Olsen

    hi teresa.
    well I bother you because I have a problem similar to that raised earlier, I have a vm INTAL CUOM 2.1 SP1 and the problem is that computers add-in-law his administration IPCC view the service level ... but when I fall into a custom group created the group and add the teams the same ip ipcc already visible, in my group I want to generate displays custom cloud but do not show me the equipment, except that I want to add IVR servers and I do not under any circumstances the samples .. lso probe and reset everything and anything related services, install the SP! and nothing. Can you help me with this or if I recommend CUOM up version of the 2.3 that I could not even see the difference with 2.1 CUOM thanks greetings

  • New install of SQL Server 2012 x64 Express on Windows 2008 Server, keep getting error when using Management Studio?

    After installing the x64 with all tools excluding the SDK from the SQL Express Edition, I go to Management Studio, log in and get the error when I click under the Instance name- Databases...Have reinstalled many times, removed all directories and registry
    keys from both HKEYs(regular and Wow6432Node) before rebooting and reinstalling. No VS installed on this computer..put it looks like it installed "MS Visual Studio 2010 Shell (Isolated)-ENU" and "Visual Studio 2010 Prerequisites".....tried working past
    the error, it just hangs the Studio after it tries to add things...HELP..PLEASE!!!
    Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement)
    Program Location:
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject)
       at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Guid guid, Type serviceType)
       at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Type serviceType)
       at Microsoft.VisualStudio.Shell.WindowPane.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerToolWindow.GetService(Type serviceType)
       at Microsoft.VisualStudio.Shell.WindowPane.System.IServiceProvider.GetService(Type serviceType)
       at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.System.IServiceProvider.GetService(Type serviceType)
       at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NodeContext.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__11.MoveNext()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetParentFields(INodeInformation source, Dictionary`2& allValidColumns)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.RequestChildren(IGetChildrenRequest request)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)

    Hi igorteper,
    Any progress?
    "MS Visual Studio 2010 Shell (Isolated)-ENU" and "Visual Studio 2010 Prerequisites" had been installed in your computer, or there is no Visual Studio installed on this computer?
    You log in SQL Server Management Studio and get an error. For further investigation the issue, please post the error messages in detail.
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • ITunes shows time out error when trying to play on Airport Express.

    Time out error when trying to play on Airport Express. This started with an iTunes update, problems has to be with iTunes, Airport Express appears to be communicating fine, even shows when speakers are not connected.

    Same here, though on XP. Have tried cleaning registry, reinstalling, deleting preferences. Created a new user with no library and I have the problem there, too, so it's not the library.
    Is there no one to call about this??

  • "not a GROUP BY expression" error when using EclipseLink

    I'm using EcliseLink 2.3.0
    The follow SQL can be executed successfully.
    select to_char(o.taskDate, 'YYYY/MM'), sum(o.plannedHrs) from TaskItem o group by to_char(o.taskDate, 'YYYY/MM');
    But the JPQL has an error when it gets excuted.
    select FUNC('to_char', o.taskDate, 'YYYY/MM'), sum(o.plannedHrs) from TaskItem o group by FUNC('to_char', o.taskDate, 'YYYY/MM')
    ERROR LOG:
    Local Exception Stack:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression
    Error Code: 979
    Call: SELECT to_char(TASK_DATE, ?), SUM(PLANNED_HRS) FROM ORA47111.S_PROJ_PLAN_ITEM GROUP BY to_char(TASK_DATE, ?)
         bind => [2 parameters bound]
    Query: ReportQuery(referenceClass=TaskItemDAO sql="SELECT to_char(TASK_DATE, ?), SUM(PLANNED_HRS) FROM ORA47111.S_PROJ_PLAN_ITEM GROUP BY to_char(TASK_DATE, ?)")
         at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:333)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:644)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:535)
         at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1702)
         at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:646)
         at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2592)
         at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2535)
         at org.eclipse.persistence.queries.ReportQuery.executeDatabaseQuery(ReportQuery.java:846)
         at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:829)
         at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1056)
         at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:390)
         at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1144)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2863)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1501)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1483)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1457)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:485)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:742)
         at projapis.projrollup.beans.ManagedTaskItemDAOBean.calcResourcePlannedHrsInMonth(ManagedTaskItemDAOBean.java:329)
         at projapis.projrollup.beans.ManagedTaskItemDAOBean.main(ManagedTaskItemDAOBean.java:522)
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:863)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:931)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:607)
         ... 22 more
    Any suggestion?
    Thanks a lot.
    Edited by: sgao on Jul 19, 2011 11:13 PM

    Hello,
    Unfortunately it is the driver complaining about the SQL that is generated, but I see no major difference from the SQL in the exception:
    SELECT to_char(TASK_DATE, ?), SUM(PLANNED_HRS) FROM ORA47111.S_PROJ_PLAN_ITEM GROUP BY to_char(TASK_DATE, ?)
    and the SQL you state works other than it looks like JPQL not SQL: select to_char(o.taskDate, 'YYYY/MM'), sum(o.plannedHrs) from TaskItem o group by to_char(o.taskDate, 'YYYY/MM');
    Does it work if the SQL in the exception is executed as a native query? Since this the driver complaining about what looks correct, I would look at the driver/database versions to see if there is a later version that might have a bug that has been fixed.
    Best Regards,
    Chris

Maybe you are looking for

  • I need to change the decimal sign from a ,  to a . in a worksheet - please help!!

    Im fresh from a Windows background and struggling to get started on the NUMBERS program - I need to change the ,  to a . for decimal numbers (the NUMBERS program does not seem to recognise the . but when I change the separator to a ,  it works - prob

  • Event handling in applets

    Hi, I have a simple applet of a sound calculator. I have two events - one for capturing data from the buttons pressed on the applet and the other to output the sound associated with the button. However only one method is working ie: the sound! If I p

  • Dynamic front panel

    Hi, I'm working on a VI that will be used to control a number of RC Quadcopters and cars. The VI gets the amount of vehicles from tracking tools, and then runs a loop and finds out for each vehicle if it's a quad or a car. Now that that stage is comp

  • File.renameTo method issue

    I have a Java program which processes upto 10000 text files a day. The average size of these files are 1KB to 2KB and the java program parses the contents of the text file, validates and loads them into a database table. The program outline is as fol

  • Flash video path not working on Mac

    Using the Flash Video component in Flash 8 I place my .flv in a directory called Video and then enter the path into the component as Video\myvideo.flv When it runs off my web site on Windows XP all is well but on a Mac OS X it fails to play. If I pla