HQL ClassicQueryTranslatorFactory related information need

Hi all,
Please help me to know
If i use ClassicQueryTranslatorFactory in my cfg.xml am getting below error
Am using Spring+hibernate +sunone application server 8.2
[#|2008-07-17T17:23:14.353+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;|
Hibernate: select hostel1_.DEPT_C as DEPT2_3_, hostel1_.DEPT_T2 as DEPT4_3_, hostel1_.FAC_C as FAC3_3_, hostel1_.DEPT_C as col_0_0_, raposition0_.RA_POSTN_N as col_1_0_, raposition0_.APPL_ST_D as col_2_0_, raposition0_.APPL_END_D as col_3_0_, raposition0_.ACAD_Y as col_4_0_, raposition0_.SEM_C as col_5_0_, raposition0_.STDCAT_C as col_6_0_, raposition0_.POSTN_ST_D as col_7_0_, raposition0_.POSTN_END_D as col_8_0_, raposition0_.POSTN_STS_C as col_9_0_ from RA_APPL_CTRL raposition0_, DEPARTMENT hostel1_ where (raposition0_.APPL_ST_D<current_date())and(raposition0_.APPL_END_D>current_date())and(raposition0_.HSTL_C=hostel1_.DEPT_C )and(raposition0_.POSTN_STS_C='O' )and(raposition0_.STDCAT_C=? )|#]
[#|2008-07-17T17:23:14.369+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;|
2008-07-17 17:23:14,369 WARN [org.hibernate.util.JDBCExceptionReporter] - <SQL Error: 907, SQLState: 42000>
|#]
[#|2008-07-17T17:23:14.369+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;|2008-07-17 17:23:14,369 ERROR [org.hibernate.util.JDBCExceptionReporter] - <ORA-00907: missing right parenthesis
>
|#]
[#|2008-07-17T17:23:14.369+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;|Exception rise..|#]
[#|2008-07-17T17:23:14.369+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=7e774726-9b56-4a65-b320-f268158b6af0;|StandardWrapperValve[oraaps]: PWC1406: Servlet.service() for servlet oraaps threw exception
javax.servlet.ServletException: Form object returned by formBackingObject() must not be null
     at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:345)
     at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:323)
     at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:263)
     at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:415)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
     at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
     at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|#]
------------------------------------------------------------Can any one help me to know why am getting above error if I use below Query
Query query = getSession().createQuery("select new RAPosition(h, raPostion.positionId, raPostion.applicationStartDate, " +
                    "raPostion.applicationEndDate, raPostion.acadYear, raPostion.acadSem, " +
                    "raPostion.studType, raPostion.apptStartDate, raPostion.apptEndDate, " +
                    "raPostion.positionStatus) from RAPosition as raPostion, Hostel as h " +
                    "where raPostion.applicationStartDate < current_date() " +
                    "and raPostion.applicationEndDate > current_date() " +
                    "and raPostion.hostel.hostelId = h.hostelId " +
                    "and raPostion.positionStatus = 'O' " +
                    "and raPostion.studType = ?");
          query.setParameter(0, studType);
----------------------------------cfg.xml have below deatils---------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
     <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
          <property name="location" value="/WEB-INF/jdbc.properties"/>
     </bean>
<!--
     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
               <property name="driverClassName" value="${jdbc.driverClassName}"/>
               <property name="url" value="${jdbc.url}"/>
          <property name="username" value="${jdbc.username}"/>
               <property name="password" value="${jdbc.password}"/>
     </bean>
     <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
          <property name="environment">
               <props>
                    <prop key="java.naming.factory.initial">org.springframework.jndi.JndiObjectFactoryBean</prop>
                    <prop key="java.naming.provider.url">java:comp/env/jdbc/oraaps</prop>
               </props>
          </property>
     </bean>
     -->
     <!-- CustomDataSource :: by Lalitha -->
     <bean id="customDataSource" class="oraaps.dataaccess.CustomDataSource"/>
     <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
          <property name="dataSource" ref="customDataSource"/>
          <property name="mappingResources" value="oraaps.hbm.xml"/>
          <property name="hibernateProperties">
               <props>
                    <prop key="hibernate.dialect">${hibernate.dialect}</prop>
                    <prop key="hibernate.show_sql">true</prop>
                    <prop key="hibernate.generate_statistics">true</prop>
                    <!-- <prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop> -->
                    <prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
               </props>
          </property>
          <property name="eventListeners">
               <map>
                    <entry key="merge">
                         <bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener"/>
                    </entry>
               </map>
          </property>
     </bean>
     <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
          <property name="sessionFactory" ref="sessionFactory"/>
     </bean>
     <tx:advice id="txAdvice" transaction-manager="transactionManager">
          <tx:attributes>
               <tx:method name="get*" read-only="true"/>
               <tx:method name="find*" read-only="true"/>
               <tx:method name="*"/>
          </tx:attributes>
     </tx:advice>
     <aop:config>
          <aop:pointcut id="transMethods" expression="execution(* oraaps.service.*.*(..))"/>
          <aop:advisor advice-ref="txAdvice" pointcut-ref="transMethods"/>
     </aop:config>
</beans>
------------------------------------ CustomDataSource.java --------------------
Connection con =null;
          try{
                         InitialContext ic = new InitialContext();
                         DataSource ds = (DataSource)ic.lookup("jdbc/oraaps");
                    con = ds.getConnection();
                         }catch (Exception e)
                    finally{}
          return con;
--------------- jdbc.property------------
jdbc.driverClassName=oracle.jdbc.OracleDriver
#local [not in use]
jdbc.url=jdbc:oracle:thin:@quest31.nus.edu.sg:1523:ADMT
#SIT or Prod [not in use]
#jdbc.url=oracle.jdbc.pool.OracleConnectionPoolDataSource
jdbc.username=""
jdbc.password=""
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect

ORA-00907: missing right parenthesis
You missed a bracket.

Similar Messages

  • I need to know how to delete an old apple account and to create a new account because i forgot some related information

    i need to help to delete an old apple account and to reate a new account because i forgot some related information for the old accounts

    If you have iCloud and/or iTunes accounts just sign out of them (however iTunes Store purchases cannot be transferred to a different account). You can create a new ID at http://appleid.apple.com - you will need a different non-Apple email address.
    However if you've forgotten the password to the original account, go to http://iforgot.apple.com and sign in with your iCloud login. A new password will be sent to your associated email address. If this doesn't work you will have to contact Support. Go to https://getsupport.apple.com; click' See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'

  • Table for Stock Requirement List related information

    Dear Sir,
    We have make-to-order scenario , on receiving the Order from Customer  we first create a Sale-Order for the Ordered Item . Subsequently in MD04 , we find a requirement getting reflected  for the Customer Order .
    For example say the Sale-Order number is S-101 and the Line Item is 10 for the FERT material say FERT-101 having the Order quantity as 1 number .  In MD04 , we find a requirement getting reflected with the following information :
    MRP Element  --> CustOrd
    MRP element data --> S-101 / 00010 / 0001
    Recd/Reqd Qty  -->  1-
    Available Qty  --> 1-
    We need to write a Z program for getting the list of  the requirements against the Customer Order (as shown in MD04) .
    Kindly guide us as which Tables we need to refer for getting the above information pl .
    We assure to award full points for the suggested solution .
    Rgds
    B Mittal

    Hi,
    Pls use below function module, same as you will get Stock Requirement List related information
    MD_STOCK_REQUIREMENTS_LIST_API
    For test, goto SE37 and test it
    Regards,
    Sankaran

  • Customizing Related Information Layout

    Hi,
    Need to add the "Last Activity" field in "Contact" Related Information Layout for "Accounts" record type.
    The Problem is, can't find the "Last Activity" field in the Available Section of the Related Information layout for Contacts in Accounts record type.
    How can I add a field in the Available section to get it to the selected section.
    Thanks

    The last activity field is not available in the contact related information layout for the account record type at this time. Fields will be added in a future release.

  • Customising Related Information Layouts

    Hello,
    For the Accounts Related List under Contact I want to add the Status field.
    Unfortunately Status is not one of the availalbe fields to be customised on the Accounts Related Information Section.
    Does anyone know if we can change which fields are available within 'Step 2: field set-up' for customising Related Lists.
    Regards
    Minesh Patel

    The Related Information list for both accounts (under contacts) and contacts (under accounts) works with the Account Contact Table. You cannot create new fields to this table. You also cannot bring any fields from either Account or contact objects. This is an intersection table that needs major enhancement

  • Territories Related Information Section

    Hi All
    In the Automotive edition, on the Dealer detail page, there is a Territories related information section that does not appear to be linked to the Territories that I have set up in my Territory Management. Are these not the same? Am not sure if I have misunderstood something or is this an error?
    Appreciate any help.
    Thanks
    Gail

    You will need to replicate your territories again via "Record Type Setup" -> "Dealer Territory Field Setup" -> Edit Picklist of field "Name".
    - Prakash

  • Which table contains the task related information in WMS

    Hi I have a requirement in which I need to have taskID, employee wms id.. Please help me know the main table which contains tasks related information in WMS.
    Thanks

    Thanks for your reply,,
    I came to know that task has status like unreleased, pending, queued, dispatched, active, loaded and completed.
      What is the table name, If their is a specific table that can hold the status of all the status, if not what are all tables that are getting effected in this process.
      for example:
       order number has status and it is maintained in or_order_headers and oe_order_lines. as the process changes wsh_deliveries, wsh_delivery_details, wsh_delivery_assignments,... etc will get effected.
    The similar way, in our case what is the main derived table like(order_headers, lines) and if their is a process what will be the underlined tables which are getting effected.
    Thanks,

  • Related information - custom object 1

    On Custom object 1, I have a related information tab. There you can add records from this Custom object to others on the same object. (entity name is contracts, in the company there are parent contracts and child contracts). At the moment I can link one (child-)contract to another, but it will only show this on the contract you have actively added the other record to.
    How can I arrange that the newly added related contract is automatically added on the other contract as well? Thanks in advance!

    You need something similar to Account Partners, where you can set the reverse relationship. This is not configurable. Contact Customer Care and create an enhancement request.

  • Reg : SAP EDI/ALE or GIS 3.1 or 4.0 related information

    Hi floks,
    I need SAP EDI/ALE or GIS 3.1 or 4.0 related information  Related links or documents Sent to me .mail Address [email protected] if any body work on this can u suggest me how to process idoc from sap to GIS few steps.
    thanking you,
    suresh

    An AS Java is running if you have at least three "jlaunch" processes.
    You can also do (as user <sid>adm)
    cdpro
    jcmon pf=<instance-profile>
    20
    Dispatcher, server and SDM should run.
    Markus

  • Handling address related information for different countries

    Hi,
    We are trying to understand the best way to display / query address related information (while designing internationalization for our application) - from users based on their locale - for example we would need to ask zip code - if the user is in US, in UK it would be postal code , there would be counties in UK but not in India etc . Is there some guideline / frame work for designing address related forms for international applications?
    Thanks in Advance for your help !!

    The problem is that you need different pieces of information for different countries, and they need to be in a different order. Some information is required for some countries, some information does not exist for some countries, and the content for certain pieces of information is different for some countries.
    If you are not going to do any kind of verification of the information (zip code, for instance), and also not check whether the field is filled in at all, then it doesn't matter if you have separate fields.
    There are 3 choices:
    1. Implement correct addresses for every single country in the world
    2. Implement correct addresses for a few select countries, and then state clearly that you only support those countries
    3. Treat an address as a single piece of information
    Good luck with #1.

  • Creating a calendar format on contact related information

    Hi All,
    We need to be able to detect appointments made by different sales reps during the same timeframe in the contact related information.
    Has anybody done anything before to achieve a Calendar visualization from within the Contact related information ? If so, do you have any instructions concerning how to set this up?
    Cheers
    Bhas.

    Hi, You can try out surfacing a report (plain / pivot) but the look and feel may not match to standard calendar. If the requirement is specific about the look, then a customer webservices based solution surfaced as an applet is an option
    -- Venky CRMIT

  • Opportunity Product-Revenue related information section

    Hi,
    We are going to use the 'Product Revenue' related information section on the Opportunity for Products & Services. Hence, we want to rename this section to 'Products & Services' instead of 'Product Revenue'. I tried to change the name of the Object Type Revenue, but that is not possible using the 'Rename Object Type' function. Does anyone know whether it is possible to change the name and how to do it.
    Thanks.
    Kind regards,
    Niels Rekers

    Hi,
    Thanks for the quick response.
    Is it known when it will be possible? Is that with R16 and when will that Release be released?
    Kind regards,
    Niels Rekers

  • Error in Account related information sections Access denied.(SBL-DAT-00553)

    Hi,
    I have 2 users, 1 from Spain and the other from Italy.
    The spanish user is the owner of an account and adds the user from italy to the account team section with full access to the account.
    The italian user is able to view the account. However the italian user is not able to view any of the custom objects in the related information sections below the account information.
    The error is as follows:
    Access denied.(SBL-DAT-00553)
    Both users have the same role. However, if he/she is not the owner of the account but only a 'Team' member, he's able to view the account but not the CO's below the account. I've checked the access profiles and roles and it all seems fine. Oracle support confirmed this as well as both users were able to search and view the CO records without any issues. It's just that it hits the error if it's in the related information section.
    I was just wondering if I'm missing any settings for customer team.
    Currently, I'm not even sure if Customer team functionality was built for use with custom objects in related information sections.
    Any help would be greatly appreciated!

    Hi, What i meant is, if you are using C04 - C015 objects, then ensure under related sections of Accounts in "Full" access profile, you set it as "View" or "Read-Only" instead of "No Access". "No Access" is what being set by OnDemand by default even though the access profile is named as "Full"
    -- Venky CRMIT

  • Payment advice printing X's for Vendor related information

    Dear experts,
    We are implementing check printing from SAP. I have done the necessary configuration. The program RFFOUS_C does generate the check as well as payment advice. The check looks good.
    However, on the payment advice I am getting 'X''s for vendor related information. For e.g. Vendor Name, address, the related line items of the vendor which are being paid.
    I tried various ways to fix it but it is not making sense still. It always give me those X's. Has anyone experience this in the past? Any lead into a solution is welcome.
    Thank you very much,
    Vishal Thakur.

    answer

  • Deleting an account and related information

    When deleting an account does all the related information get deleted?
    Does the account also get deleted from historical analysis?
    Edited by: user643040 on Jan 20, 2011 9:16 AM

    When an account is deleted the associated Opportunity is deleted (except for opportunities that are Closed/Won or Closed/Closed), the associated Asset is deleted (if it is not associated with another object), the associated Task or Appointment is deleted (if it is not associated with another object). Contacts and Service Requests are not deleted. Also, the account is deleted from historical analysis at the next ETL.

Maybe you are looking for