Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

NoViableAltException: unexpected token: @ Edited

Hello! I'm getting this exception with OpenClover 4.2.1 when running "mvn clover:setup":

com.atlassian.clover.api.CloverException: token: @
Caused by: clover.antlr.NoViableAltException: unexpected token: @
at (
at (
at (
at (
at (
at (
at (
at (
at com.atlassian.clover.CloverInstr.execute (
at com.atlassian.clover.CloverInstr.mainImpl (
at com.atlassian.maven.plugin.clover.internal.instrumentation.AbstractInstrumenter.instrumentSources (
at com.atlassian.maven.plugin.clover.internal.instrumentation.AbstractInstrumenter.instrument (
at com.atlassian.maven.plugin.clover.CloverInstrumentInternalMojo.execute (
at com.atlassian.maven.plugin.clover.CloverSetupMojo.execute (

This is the code where it says it fails:

* Returns all the entities matching {@code user}.
* @param user the user
* @return the entities
@GraphQLQuery(description = "Returns all the entities for a specific user")
public List<@NotNull AutosshHost> autosshHosts(@NotNull @GraphQLArgument(name = "user") String user) {
return this.repository.findByUser(user);

Line 81 is the first line after the JavaDoc (i.e. the annotation "@NotNull") and column 5 is the at sign of "@NotNull".

What is causing this?

1 answer

1 vote

This is the problem:

List<@NotNull AutosshHost>

Neither Atlassian Clover nor the OpenClover fork support annotations on java types, see feature requests:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

442 views 5 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you