java.lang.IllegalArgumentException

Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt"


Solutions on the web21536

Solution icon of stackoverflow
Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt"

Solution icon of web
via apache.org by Unknown author, 1 year ago
Pathname /C:/trunk/build/test/data from C:/trunk/build/test/data is not a valid DFS filename.

Solution icon of github
Only a valid unit kind or the identifier of an existing unit definition are allowed here.

Solution icon of github
All compilation units must be of SOURCE kind

Solution icon of stackoverflow
via Stack Overflow by ali haider
, 5 months ago
File does not contain valid certificates: /Users/continue/IdeaProjects/git/test/build/resources/main/keys/myprivkey.pem

Solution icon of github
via GitHub by etj
, 9 months ago
'http://www.opengis.net/sld/units/pixel' is not a valid OGC SE standard Unit of Measure

Solution icon of oraclecommunity
The file file:C:\test\build\JSPC\assets\scripts\bv\checks.js is not a source file

Solution icon of oraclecommunity
The file file:C:\test\build\JSPC\assets\scripts\bv\checks.js is not a source file

Solution icon of github
via GitHub by tsachev
, 1 year ago
Not supported: InMemoryJavaFileObject{uri=mem:///SOURCE_OUTPUT/com/example/test/definition/package-info.java, kind=SOURCE}

Solution icon of stackoverflow
The main resource set specified [C:\DEV\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\REST] is not valid

Stack trace

  • java.lang.IllegalArgumentException: Compilation unit is not of SOURCE kind: "/C:/dev/gsonpath/gsonpath-compiler/build/resources/test/adapter/auto/field_types/primitives/valid/TestValidPrimitives.kt" at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:137) at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:107) at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64) at com.google.testing.compile.Compilation.compile(Compilation.java:69) at com.google.testing.compile.JavaSourcesSubject$CompilationClause.compilesWithoutError(JavaSourcesSubject.java:281)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates