Results 1 to 2 of 2

Thread: Invalid path: 'null.id'

  1. #1
    Join Date
    Aug 2006
    Posts
    221

    Unhappy Invalid path: 'null.id'

    Code:
    1080 [main] ERROR org.hibernate.hql.PARSER -  Invalid path: 'null.id'
    1080 [main] ERROR org.hibernate.hql.PARSER - <AST>:0:0: unexpected end of subtree
    1080 [main] ERROR org.hibernate.hql.PARSER -  left-hand operand of a binary operator was null
    1080 [main] ERROR org.hibernate.hql.PARSER - <AST>:0:0: unexpected end of subtree
    1138 [main] ERROR org.hibernate.impl.SessionFactoryImpl - Error in named query: findSensorGroupBySensorId
    org.hibernate.hql.ast.QuerySyntaxException: Invalid path: 'null.id' [SELECT sgroup FROM com.pointsix.model.security.SensorGroup AS sgroup, com.pointsix.model.security.SensorGroupEntry AS entry, com.pointsix.model.sensor.Sensor WHERE Sensor.id = ?   AND entry.sensorId = Sensor.id   AND sgroup.id = entry.sensorGroupId ]
    Hibernate gave me this error on my query. I'm unsure as to how to proceed.

    How can one of the properties be null in this circumstance?

  2. #2
    Join Date
    Aug 2006
    Posts
    221

    Default

    Nevermind. Figured it out. Had the sensor ID twice essentially. It must have been confusing the compiler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •