Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Compile failures only in Tycho

My project (based on RCP) compiles and runs successfully within Eclipse.  However the Tycho build fails due to compile errors.  I’ve included environment, errors and debug output below.

 

Any suggestions would be greatly appreciated on how to proceed in troubleshooting the issue.

Timothy

 

 

Environment: Tycho 2.1.0, Eclipse 2020-12, Java 14 building for Java 11

 

Tycho only compile errors

----------

1. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\BusinessStatusHandler.java (at line 36)

               logger.error(((BusinessException) t).extractErrorMsg());

                                                    ^^^^^^^^^^^^^^^

The method extractErrorMsg() is undefined for the type BusinessException

----------

2. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\BusinessStatusHandler.java (at line 37)

               logger.error(((BusinessException) t).extractStackTrace());

                                                    ^^^^^^^^^^^^^^^^^

The method extractStackTrace() is undefined for the type BusinessException

----------

----------

3. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\UpdateManager.java (at line 88)

               public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Exception InterruptedException is not compatible with throws clause in IRunnableWithProgress.run(IProgressMonitor)

----------

4. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\UpdateManager.java (at line 137)

               new ProgressMonitorDialog(null).run(true, false, runnable);

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Unhandled exception type InterruptedException

----------

5. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\UpdateManager.java (at line 142)

               } catch (InterruptedException e) {

                        ^^^^^^^^^^^^^^^^^^^^

Unreachable catch block for InterruptedException. This exception is never thrown from the try statement body

----------

----------

6. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\AfterInstall.java (at line 19)

               import com.wxyz.acmotor.core.PrefElement;

                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The import com.wxyz.acmotor.core.PrefElement cannot be resolved

----------

7. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\AfterInstall.java (at line 28)

               IPreferenceStore prefs = new ScopedPreferenceStore(InstanceScope.INSTANCE, PrefElement.STORE_MEMBER);

                                                                                          ^^^^^^^^^^^

PrefElement cannot be resolved to a variable

----------

8. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\AfterInstall.java (at line 29)

               String afterInstall = prefs.getString(PrefElement.AFTER_INSTALL);

                                                     ^^^^^^^^^^^

PrefElement cannot be resolved to a variable

----------

9. ERROR in C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\src\com\wxyz\acmotor\base\AfterInstall.java (at line 33)

               prefs.setValue(PrefElement.AFTER_INSTALL, "false"); // prevent infinite loop

                              ^^^^^^^^^^^

PrefElement cannot be resolved to a variable

----------

9 problems (9 errors)

 

Log output

[INFO] --- tycho-compiler-plugin:2.1.0:compile (default-compile) @ com.wxyz.acmotor.base ---

[DEBUG] Configuring mojo org.eclipse.tycho:tycho-compiler-plugin:2.1.0:compile from plugin realm ClassRealm[plugin>org.eclipse.tycho:tycho-compiler-plugin:2.1.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@109f1214]

[DEBUG] Configuring mojo 'org.eclipse.tycho:tycho-compiler-plugin:2.1.0:compile' with basic configurator -->

[DEBUG]   (f) basedir = C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base

[DEBUG]   (f) buildDirectory = C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\target

[DEBUG]   (f) compilerArgument = -err:none

[DEBUG]   (f) compilerId = jdt

[DEBUG]   (f) copyResources = true

[DEBUG]   (f) debug = true

[DEBUG]   (f) deriveReleaseCompilerArgumentFromTargetLevel = true

[DEBUG]   (f) encoding = UTF-8

[DEBUG]   (f) failOnWarning = false

[DEBUG]   (f) fork = false

[DEBUG]   (f) generatedSourcesDirectory = C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\target\generated-sources\annotations

[DEBUG]   (f) logDirectory = C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\target\compile-logs

[DEBUG]   (f) optimize = false

[DEBUG]   (f) outputFileName = com.wxyz.acmotor.base-1.9.27-SNAPSHOT

[DEBUG]   (f) project = MavenProject: com.wxyz:com.wxyz.acmotor.base:1.9.27-SNAPSHOT @ C:\Users\asdf\git\MotorDB-master\com.wxyz.acmotor.base\pom.xml

[DEBUG]   (f) requireJREPackageImports = false

[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@d48a79f8

[DEBUG]   (f) showDeprecation = false

[DEBUG]   (f) showWarnings = false

[DEBUG]   (f) staleMillis = 0

[DEBUG]   (f) strictCompilerTarget = false

[DEBUG]   (f) useJDK = SYSTEM

[DEBUG]   (f) useProjectSettings = false

[DEBUG]   (f) verbose = false

[DEBUG] -- end configuration --

[DEBUG] Manifest BREEs: [OSGi profile 'JavaSE-11' { source level: 11, target level: 11}]

[DEBUG] Target Platform EE: OSGi profile 'JavaSE-11' { source level: 11, target level: 11}

[DEBUG] Effective source/target: 11/11

[DEBUG] Using compiler 'jdt'.


Back to the top