2

I am getting Exception on Enum Type field using hibernate search.

Internal Server Error: javax.persistence.PersistenceException: org.hibernate.search.bridge.BridgeException: Exception while calling bridge#objectToString class: com.billbii.model.Empolyee path: status

my code::

 @Column(name = "employee_status")
    @Field(bridge=@FieldBridge(impl=EnumBridge.class),index=Index.YES, analyze=Analyze.YES, store=Store.NO)
    @Enumerated(EnumType.STRING)
    private EmpolyeeStatus status;

Please solve this issue.

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Mike Clark
  • 1,860
  • 14
  • 21
  • Can you share more of the exception's stack trace? – RandomMooCow Aug 06 '15 at 15:26
  • No stack trace for this error only posted exception message received. – Mike Clark Aug 07 '15 at 04:14
  • Somewhere there must be a stack trace. Did you check the logs? – Hardy Aug 07 '15 at 08:38
  • hi Hardy , Yes i check all log. I am just receiving "Internal Server Error: javax.persistence.PersistenceException: org.hibernate.search.bridge.BridgeException: Exception while calling bridge#objectToString class: com.billbii.model.Empolyee path: status" Search working fine if I removed '@Field' annotation above given column field "empolyee_status". but when i am add this '@Field'to Employee Status(its A Enum Type) for search then throws exception which i posted. – Mike Clark Aug 07 '15 at 08:54
  • 1
    this was happening to me too, what I realized is that I was trying to search on an INT instead of STRING so I just casted to String and all was well. – mikebertiean Dec 12 '16 at 18:13
  • Same here. I got this error. Turned out i had put the wrong field name – fatdunky Feb 04 '22 at 10:57

0 Answers0