java.lang.UnsupportedOperationException: Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr'

Spring JIRA | Gerolf Scherr | 4 years ago
  1. 0

    class Tester{ @Max(value = (1+2) ) int test; } results in the Exception below, without parentheses it works. e.g. @Max(value = 1+2 ) [FelixDispatchQueue] Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr' java.lang.UnsupportedOperationException: Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr' at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.convert(JavaParserAnnotationMetadataBuilder.java:612) at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.<init>(JavaParserAnnotationMetadataBuilder.java:430) at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.getInstance(JavaParserAnnotationMetadataBuilder.java:370) at org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.<init>(JavaParserMethodMetadataBuilder.java:404) at org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.getInstance(JavaParserMethodMetadataBuilder.java:306) at org.springframework.roo.classpath.javaparser.details.JavaParserClassOrInterfaceTypeDetailsBuilder.build(JavaParserClassOrInterfaceTypeDetailsBuilder.java:315) at org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeFromString(JavaParserTypeParsingService.java:139) at org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeAtLocation(JavaParserTypeParsingService.java:118) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.get(DefaultPhysicalTypeMetadataProvider.java:94) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:214) at org.springframework.roo.metadata.DefaultMetadataService.evictAndGet(DefaultMetadataService.java:121) at org.springframework.roo.classpath.TypeLocationServiceImpl.lookupClassOrInterfaceTypeDetails(TypeLocationServiceImpl.java:597) at org.springframework.roo.classpath.TypeLocationServiceImpl.cacheType(TypeLocationServiceImpl.java:157) at org.springframework.roo.classpath.TypeLocationServiceImpl.initTypeMap(TypeLocationServiceImpl.java:573) at org.springframework.roo.classpath.TypeLocationServiceImpl.updateTypeCache(TypeLocationServiceImpl.java:714) at org.springframework.roo.classpath.TypeLocationServiceImpl.getTypeDetails(TypeLocationServiceImpl.java:499) at org.springframework.roo.addon.gwt.scaffold.GwtScaffoldMetadataProviderImpl.notify(GwtScaffoldMetadataProviderImpl.java:282) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:323) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:237) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:186) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:429) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:642) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:258) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:37) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:182) at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725) at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949) at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54) at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106) at java.lang.Thread.run(Unknown Source)

    Spring JIRA | 4 years ago | Gerolf Scherr
    java.lang.UnsupportedOperationException: Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr'
  2. 0

    class Tester{ @Max(value = (1+2) ) int test; } results in the Exception below, without parentheses it works. e.g. @Max(value = 1+2 ) [FelixDispatchQueue] Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr' java.lang.UnsupportedOperationException: Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr' at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.convert(JavaParserAnnotationMetadataBuilder.java:612) at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.<init>(JavaParserAnnotationMetadataBuilder.java:430) at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.getInstance(JavaParserAnnotationMetadataBuilder.java:370) at org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.<init>(JavaParserMethodMetadataBuilder.java:404) at org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.getInstance(JavaParserMethodMetadataBuilder.java:306) at org.springframework.roo.classpath.javaparser.details.JavaParserClassOrInterfaceTypeDetailsBuilder.build(JavaParserClassOrInterfaceTypeDetailsBuilder.java:315) at org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeFromString(JavaParserTypeParsingService.java:139) at org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeAtLocation(JavaParserTypeParsingService.java:118) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.get(DefaultPhysicalTypeMetadataProvider.java:94) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:214) at org.springframework.roo.metadata.DefaultMetadataService.evictAndGet(DefaultMetadataService.java:121) at org.springframework.roo.classpath.TypeLocationServiceImpl.lookupClassOrInterfaceTypeDetails(TypeLocationServiceImpl.java:597) at org.springframework.roo.classpath.TypeLocationServiceImpl.cacheType(TypeLocationServiceImpl.java:157) at org.springframework.roo.classpath.TypeLocationServiceImpl.initTypeMap(TypeLocationServiceImpl.java:573) at org.springframework.roo.classpath.TypeLocationServiceImpl.updateTypeCache(TypeLocationServiceImpl.java:714) at org.springframework.roo.classpath.TypeLocationServiceImpl.getTypeDetails(TypeLocationServiceImpl.java:499) at org.springframework.roo.addon.gwt.scaffold.GwtScaffoldMetadataProviderImpl.notify(GwtScaffoldMetadataProviderImpl.java:282) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:323) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:237) at org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:186) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:429) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:642) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39) at org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:283) at org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:258) at org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:37) at org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:182) at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725) at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949) at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54) at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106) at java.lang.Thread.run(Unknown Source)

    Spring JIRA | 4 years ago | Gerolf Scherr
    java.lang.UnsupportedOperationException: Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr'
  3. 0

    Jackcess / Feature Requests / #27 Support for non-general collation

    sourceforge.net | 5 months ago
    java.lang.UnsupportedOperationException: Cannot write indexes of this type due to unsupported collating sort order SortOrder for text index
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jackcess / Feature Requests / #27 Support for non-general collation

    sourceforge.net | 11 months ago
    java.lang.UnsupportedOperationException: Cannot write indexes of this type due to unsupported collating sort order SortOrder for text index
  6. 0

    CompilationException: Don't know how to generate this prefix expression

    YouTrack | 5 years ago
    org.jetbrains.jet.codegen.CompilationException: Don't know how to generate this prefix expression

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Unable to parse annotation attribute 'value' due to unsupported annotation expression 'japa.parser.ast.expr.EnclosedExpr'

      at org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.convert()
    2. org.springframework.roo
      DefaultProcessManager$1.frameworkEvent
      1. org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.convert(JavaParserAnnotationMetadataBuilder.java:612)
      2. org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.<init>(JavaParserAnnotationMetadataBuilder.java:430)
      3. org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadataBuilder.getInstance(JavaParserAnnotationMetadataBuilder.java:370)
      4. org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.<init>(JavaParserMethodMetadataBuilder.java:404)
      5. org.springframework.roo.classpath.javaparser.details.JavaParserMethodMetadataBuilder.getInstance(JavaParserMethodMetadataBuilder.java:306)
      6. org.springframework.roo.classpath.javaparser.details.JavaParserClassOrInterfaceTypeDetailsBuilder.build(JavaParserClassOrInterfaceTypeDetailsBuilder.java:315)
      7. org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeFromString(JavaParserTypeParsingService.java:139)
      8. org.springframework.roo.classpath.javaparser.JavaParserTypeParsingService.getTypeAtLocation(JavaParserTypeParsingService.java:118)
      9. org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.get(DefaultPhysicalTypeMetadataProvider.java:94)
      10. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:214)
      11. org.springframework.roo.metadata.DefaultMetadataService.evictAndGet(DefaultMetadataService.java:121)
      12. org.springframework.roo.classpath.TypeLocationServiceImpl.lookupClassOrInterfaceTypeDetails(TypeLocationServiceImpl.java:597)
      13. org.springframework.roo.classpath.TypeLocationServiceImpl.cacheType(TypeLocationServiceImpl.java:157)
      14. org.springframework.roo.classpath.TypeLocationServiceImpl.initTypeMap(TypeLocationServiceImpl.java:573)
      15. org.springframework.roo.classpath.TypeLocationServiceImpl.updateTypeCache(TypeLocationServiceImpl.java:714)
      16. org.springframework.roo.classpath.TypeLocationServiceImpl.getTypeDetails(TypeLocationServiceImpl.java:499)
      17. org.springframework.roo.addon.gwt.scaffold.GwtScaffoldMetadataProviderImpl.notify(GwtScaffoldMetadataProviderImpl.java:282)
      18. org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:323)
      19. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:237)
      20. org.springframework.roo.classpath.DefaultPhysicalTypeMetadataProvider.onFileEvent(DefaultPhysicalTypeMetadataProvider.java:186)
      21. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:429)
      22. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:642)
      23. org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:39)
      24. org.springframework.roo.process.manager.internal.MonitoringRequestCommand.callback(MonitoringRequestCommand.java:15)
      25. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:283)
      26. org.springframework.roo.process.manager.internal.DefaultProcessManager.completeStartup(DefaultProcessManager.java:258)
      27. org.springframework.roo.process.manager.internal.DefaultProcessManager.access$100(DefaultProcessManager.java:37)
      28. org.springframework.roo.process.manager.internal.DefaultProcessManager$1.frameworkEvent(DefaultProcessManager.java:182)
      28 frames
    3. Apache Felix Framework
      EventDispatcher$1.run
      1. org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
      3. org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
      4. org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
      5. org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
      5 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame