[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-user] Antwort: NullPointerException with Java 9 and Tycho 1.1.0
|
In case it helps, here is the full debug output
from tycho-compiler-plugin for the failing module. I've just shortened
the classpath and other lengthy parameters.
[INFO] --- tycho-compiler-plugin:1.1.0:compile
(default-compile) @ my.project.name ---
[DEBUG] Configuring mojo org.eclipse.tycho:tycho-compiler-plugin:1.1.0:compile
from plugin realm ClassRealm[plugin>org.eclipse.tycho:tycho-compiler-plugin:1.1.0,
parent: jdk.internal.loader.ClassLoaders$AppClassLoader@3b764bce]
[DEBUG] Configuring mojo 'org.eclipse.tycho:tycho-compiler-plugin:1.1.0:compile'
with basic configurator -->
[DEBUG] (f) basedir = D:\workspace\parent_project\my_project
[DEBUG] (f) buildDirectory =
D:\workspace\parent_project\my_project\target
[DEBUG] (f) compilerId = jdt
[DEBUG] (f) copyResources =
true
[DEBUG] (f) debug = true
[DEBUG] (f) encoding = UTF-8
[DEBUG] (f) fork = false
[DEBUG] (f) generatedSourcesDirectory
= D:\workspace\parent_project\my_project\target\generated-sources\annotations
[DEBUG] (f) logDirectory = D:\workspace\parent_project\my_project\target\compile-logs
[DEBUG] (f) optimize = false
[DEBUG] (f) outputFileName =
my.project.name-0.0.1-SNAPSHOT
[DEBUG] (f) project = MavenProject:
my.project.name:0.0.1-SNAPSHOT @ D:\workspace\parent_project\my_project\pom.xml
[DEBUG] (f) requireJREPackageImports
= false
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@7100b724
[DEBUG] (f) showDeprecation
= false
[DEBUG] (f) showWarnings = false
[DEBUG] (f) staleMillis = 0
[DEBUG] (f) strictCompilerTarget
= false
[DEBUG] (f) useJDK = SYSTEM
[DEBUG] (f) useProjectSettings
= true
[DEBUG] (f) verbose = false
[DEBUG] -- end configuration --
[DEBUG] Manifest BREEs: [OSGi profile
'JavaSE-9' { source level: 9, target level: 9}]
[DEBUG] Effective EE: OSGi profile
'JavaSE-9' { source level: 9, target level: 9}
[DEBUG] Effective source/target: 9/9
[DEBUG] Using compiler 'jdt'.
[DEBUG] Source directories: [D:\workspace\parent_project\my_project\src\main\java
D:\workspace\parent_project\my_project\src\main\resources]
[DEBUG] Classpath: [D:\workspace\parent_project\my_project\target\classes
C:\Users\user\.m2\repository\p2\osgi\bundle\com.google.guava\23.0.0\com.google.guava-23.0.0.jar[+com/google/common/base/*;?**/*]
...snip...]
[DEBUG] Output directory: D:\workspace\parent_project\my_project\target\classes
[DEBUG] Classpath:
[DEBUG] D:\workspace\parent_project\my_project\target\classes
[DEBUG] C:\Users\user\.m2\repository\p2\osgi\bundle\com.google.guava\23.0.0\com.google.guava-23.0.0.jar[+com/google/common/base/*;?**/*]
[DEBUG] ...snip...
[DEBUG] Source roots:
[DEBUG] D:\workspace\parent_project\my_project\src\main\java
[DEBUG] D:\workspace\parent_project\my_project\src\main\resources
[INFO] Compiling 77 source files to
D:\workspace\parent_project\my_project\target\classes
[DEBUG] JDT compiler args: [-s, D:\workspace\parent_project\my_project\target\generated-sources\annotations,
-d, D:\workspace\parent_project\my_project\target\classes, -classpath,
D:\workspace\parent_project\my_project\target\classes;C:\Users\user\.m2\repository\p2\osgi\bundle\com.google.guava\23.0.0\com.google.guava-23.0.0.jar[+com/google/common/base/*;?**/*];...more
classpath entries..., D:\workspace\parent_project\my_project\src\main\java\my\project\name\TransactionServiceImpl.java,
...more source files..., -g, -nowarn, -target, 9, -source, 9, -encoding,
UTF-8]
[DEBUG] Original compiler output: ----------
1. ERROR in D:\workspace\parent_project\my_project\src\main\java\my\project\name\TransactionServiceImpl.java
(at line 0)
package
my.project.name;
^
Internal compiler error: java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.lookup.BinaryModuleBinding.create(BinaryModuleBinding.java:64)
----------
java.lang.NullPointerException
at
org.eclipse.jdt.internal.compiler.lookup.BinaryModuleBinding.create(BinaryModuleBinding.java:64)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getModuleFromAnswer(LookupEnvironment.java:423)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForTypeFromModules(LookupEnvironment.java:363)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:224)
at
org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:105)
at
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:215)
at
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:236)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:527)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:586)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:435)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:501)
at
org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:878)
at
org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:141)
at
java.base/java.lang.Thread.run(Thread.java:844)Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature