Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

incompatible types

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am receiving the error below which I don't know what to do about. Line 67 is the line which starts "Query query3". I copied this code from another part of the program (9,000 files) and it is fine there.

:\VOX\voxware-1.1.12\voxware\voxware-impl\src\main\java\com\voxware\impl\wem\WemUserRepository.java:[67,44] error: incompatible types
[ERROR]
[ERROR] could not parse error message: required: Query
[ERROR] found: SQLQuery

 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check that the imports you have where you copied the code from are the same as you have where you copied the code to.
 
Michael Piaser
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solve this problem by:
1) Closing every open java file in Eclipse
2) Running a Eclipse clean operation
3) From a DOS prompt, running a Maven clean operation
4) Launching Eclipse
5) Opening my Java program

Strange, but once I did these things, everything started working as I expected.
 
I am mighty! And this is a mighty small ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic