[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3863) Exception when using "log4j.logger.org.hibernate.engine.QueryParameters=trace"

Ioan LUPU (JIRA) noreply at atlassian.com
Thu Apr 16 11:10:23 EDT 2009


Exception when using "log4j.logger.org.hibernate.engine.QueryParameters=trace"
------------------------------------------------------------------------------

                 Key: HHH-3863
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3863
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.1
         Environment: hibernate-distribution-3.3.1.GA

            Reporter: Ioan LUPU


Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
  at org.hibernate.type.MetaType.toXMLString(MetaType.java:115)
  at org.hibernate.type.MetaType.toLoggableString(MetaType.java:110)
  at org.hibernate.pretty.Printer.toString(Printer.java:99)
  at org.hibernate.engine.QueryParameters.traceParameters(QueryParameters.java:300)
  at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:276)
  at org.hibernate.impl.StatelessSessionImpl.executeUpdate(StatelessSessionImpl.java:355)
  at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:117)
  ...

log4j.logger.org.hibernate.engine.QueryParameters=trace

HQL:

  query = session.createQuery("" //
      + "delete " + Device.class.getName() + " a" //
      + " where a.object.class=:paramObjectClass" //
      + " and a.object.id in (:paramObjectListId)" //
      + "" //
  );
  query.setParameter("paramObjectClass", Rack.class);
  query.setParameterList("paramObjectListId", list);
  query.executeUpdate();

Device.hbm.xml:
...
  <!-- Associations -->
  <any name="object" id-type="integer" meta-type="string">
    ...
    <meta-value value="G" class="xxx.Rack" />
    ...
  </any>
...


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list