net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file C:\Users\Username\Java_programm.jar:myPackage.path/**SampleClass.java at line 1, column 1. Encountered: "\ufeff" (65279), after : ""**

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via pmd by milch1l
, 1 year ago
Lexical error in file C:\Users\Username\Java_programm.jar:myPackage.path/**SampleClass.java at line 1, column 1. Encountered: "\ufeff" (65279), after : ""**
net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file C:\Users\Username\Java_programm.jar:myPackage.path/**SampleClass.java at line 1, column 1. Encountered: "\ufeff" (65279), after : ""**
at net.sourceforge.pmd.lang.java.ast.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:2263)
at net.sourceforge.pmd.lang.java.ast.JavaParser.(JavaParser.java:10903)
at net.sourceforge.pmd.lang.java.AbstractJavaParser.createJavaParser(AbstractJavaParser.java:42)
at net.sourceforge.pmd.lang.java.Java18Parser.createJavaParser(Java18Parser.java:23)
at net.sourceforge.pmd.SourceCodeProcessor.parse(SourceCodeProcessor.java:91)
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:138)
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:76)
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:79)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.