japa.parser.ParseException

Encountered " "package" "package "" at line 1, column 1. Was expecting one of: <EOF> "abstract" ... "class" ... "enum" ... "final" ... "import" ... "interface" ... "native" ... "private" ... "protected" ... "public" ... "static" ... "strictfp" ... "synchronized" ... "transient" ... "volatile" ... ";" ... "@" ... "\u001a" ... "@" ... "@" ... "@" ...

Solutions on the web4

  • via Spring JIRA by Frédéric Camblor, 1 year ago
    Encountered " "package" "package "" at line 1, column 1. Was expecting one of: <EOF> "abstract" ... "class" ... "enum" ... "final" ... "import" ... "interface" ... "native" ... "private" ... "protected
  • via Spring JIRA by Frédéric Camblor, 1 year ago
    Encountered " "package" "package "" at line 1, column 1. Was expecting one of: <EOF> "abstract" ... "class" ... "enum" ... "final" ... "import" ... "interface" ... "native" ... "private" ... "protected
  • Encountered " <IDENTIFIER> "out "" at line 114, column 13. Was expecting one of: "catch" ... "finally" ...
  • Stack trace

    • japa.parser.ParseException: Encountered " "package" "package "" at line 1, column 1. Was expecting one of: <EOF> "abstract" ... "class" ... "enum" ... "final" ... "import" ... "interface" ... "native" ... "private" ... "protected" ... "public" ... "static" ... "strictfp" ... "synchronized" ... "transient" ... "volatile" ... ";" ... "@" ... "\u001a" ... "@" ... "@" ... "@" ... at japa.parser.ASTParser.generateParseException(ASTParser.java:7697) at japa.parser.ASTParser.jj_consume_token(ASTParser.java:7570) at japa.parser.ASTParser.CompilationUnit(ASTParser.java:190) at japa.parser.JavaParser.parse(JavaParser.java:81) at japa.parser.JavaParser.parse(JavaParser.java:94) at org.springframework.roo.classpath.javaparser.JavaParserClassMetadata.<init>(JavaParserClassMetadata.java:56) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.get(JavaParserMetadataProvider.java:153) at org.springframework.roo.metadata.internal.DefaultMetadataService.get(DefaultMetadataService.java:106) at org.springframework.roo.metadata.internal.DefaultMetadataService.get(DefaultMetadataService.java:124) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:175) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:100) at org.springframework.roo.metadata.internal.DefaultMetadataService.notify(DefaultMetadataService.java:148) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:255) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:324) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:210) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:137) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:94) at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:31) at org.springframework.roo.shell.internal.AbstractShell.executeCommand(AbstractShell.java:128) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:158) at org.springframework.roo.bootstrap.Bootstrap.run(Bootstrap.java:113) at org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:53)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 months ago