Hi,
instead of the "normal" jars the *-test.jar versions are installed in build/lib/
which causes a compiler error ("cannot find symbol"). This is reproducible
locally by
- removing the ormlite libs in the local ivy cache
rm -rf ~/.ivy2/cache/com.j256.ormlite/
- and running
ant clean nightly
I'll open an issue to fix this. It could be
- a misconfiguration in our build configuration
- eventually related to the ivy upgrade (2.4.0 -> 2.5.0-rc1)
Best,
Sebastian
resolve-test:
[ivy:resolve] :: Apache Ivy 2.5.0-rc1 - 20180412005306 ::
http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file =
/home/jenkins/jenkins-slave/workspace/Nutch-trunk/ivy/ivysettings.xml
...
resolve-default:
[ivy:resolve] downloading
http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-auth/2.7.4/hadoop-auth-2.7.4-tests.jar
...
[ivy:resolve] ...... (99kB)
[ivy:resolve] .. (0kB)
[ivy:resolve] [SUCCESSFUL ]
org.apache.hadoop#hadoop-auth;2.7.4!hadoop-auth.jar(test-jar) (181ms)
[ivy:resolve] downloading
http://repo1.maven.org/maven2/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6-tests.jar
...
[ivy:resolve]
........................................................................ (526kB)
[ivy:resolve] .. (0kB)
[ivy:resolve] [SUCCESSFUL ]
org.apache.zookeeper#zookeeper;3.4.6!zookeeper.jar(test-jar) (35ms)
[ivy:resolve] downloading
http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-yarn-common/2.7.4/hadoop-yarn-common-2.7.4-tests.jar
...
[ivy:resolve] ........................... (258kB)
[ivy:resolve] .. (0kB)
[ivy:resolve] [SUCCESSFUL ]
org.apache.hadoop#hadoop-yarn-common;2.7.4!hadoop-yarn-common.jar(test-jar)
(181ms)
[ivy:resolve] downloading
http://repo1.maven.org/maven2/com/j256/ormlite/ormlite-core/5.1/ormlite-core-5.1-tests.jar
...
[ivy:resolve]
......................................................................................
(643kB)
[ivy:resolve] .. (0kB)
[ivy:resolve] [SUCCESSFUL ]
com.j256.ormlite#ormlite-core;5.1!ormlite-core.jar (321ms)
[taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml.
It could not be found.
copy-libs:
compile-core:
[javac] Compiling 298 source files to
/home/jenkins/jenkins-slave/workspace/Nutch-trunk/build/classes
[javac]
/home/jenkins/jenkins-slave/workspace/Nutch-trunk/src/java/org/apache/nutch/webui/model/SeedList.java:32:
error: cannot find symbol
[javac] import com.j256.ormlite.field.ForeignCollectionField;
[javac] ^
[javac] symbol: class ForeignCollectionField
[javac] location: package com.j256.ormlite.field
[javac]
/home/jenkins/jenkins-slave/workspace/Nutch-trunk/src/java/org/apache/nutch/webui/model/SeedUrl.java:29:
error: cannot find symbol
[javac] import com.j256.ormlite.field.DatabaseField;
[javac] ^
On 10/30/18 2:33 PM, Apache Jenkins Server wrote:
> See
> <https://builds.apache.org/job/Nutch-trunk/3579/display/redirect?page=changes>
>
> Changes:
>
> [snagel] NUTCH-2671 Upgrade to ant ivy library - upgrade to 2.5.0-rc1 to
> address
>
> ------------------------------------------
> [...truncated 80.38 KB...]
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomDaoFactory.java>:47:
> error: cannot find symbol
> [javac] private <T, ID> void register(Dao<T, ID> dao) {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomDaoFactory
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomDaoFactory.java>:53:
> error: cannot find symbol
> [javac] public List<Dao<?, ?>> getCreatedDaos() {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomDaoFactory
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:22:
> error: cannot find symbol
> [javac] import com.j256.ormlite.dao.BaseDaoImpl;
> [javac] ^
> [javac] symbol: class BaseDaoImpl
> [javac] location: package com.j256.ormlite.dao
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:23:
> error: cannot find symbol
> [javac] import com.j256.ormlite.dao.Dao;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: package com.j256.ormlite.dao
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:25:
> error: cannot find symbol
> [javac] import com.j256.ormlite.table.DatabaseTableConfig;
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: package com.j256.ormlite.table
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:26:
> error: cannot find symbol
> [javac] import com.j256.ormlite.table.TableUtils;
> [javac] ^
> [javac] symbol: class TableUtils
> [javac] location: package com.j256.ormlite.table
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:30:
> error: cannot find symbol
> [javac] private ConnectionSource connectionSource;
> [javac] ^
> [javac] symbol: class ConnectionSource
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:31:
> error: cannot find symbol
> [javac] private List<Dao<?, ?>> configuredDaos;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:33:
> error: cannot find symbol
> [javac] public CustomTableCreator(ConnectionSource connectionSource,
> [javac] ^
> [javac] symbol: class ConnectionSource
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:34:
> error: cannot find symbol
> [javac] List<Dao<?, ?>> configuredDaos) {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:51:
> error: cannot find symbol
> [javac] private void createTableForDao(Dao<?, ?> dao) {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:56:
> error: cannot find symbol
> [javac] private DatabaseTableConfig<?> getTableConfig(Dao<?, ?> dao) {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:56:
> error: cannot find symbol
> [javac] private DatabaseTableConfig<?> getTableConfig(Dao<?, ?> dao) {
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:68:
> error: cannot find symbol
> [javac] private DatabaseTableConfig<?> getConfigFromClass(Class<?>
> clazz) {
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:76:
> error: cannot find symbol
> [javac] private void createTableIfNotExists(DatabaseTableConfig<?>
> tableConfig) {
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:66:
> error: cannot find symbol
> [javac] public Dao<NutchInstance, Long> createNutchDao() throws
> SQLException {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SpringConfiguration
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:71:
> error: cannot find symbol
> [javac] public Dao<SeedList, Long> createSeedListDao() throws
> SQLException {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SpringConfiguration
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:76:
> error: cannot find symbol
> [javac] public Dao<SeedUrl, Long> createSeedUrlDao() throws
> SQLException {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SpringConfiguration
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:81:
> error: cannot find symbol
> [javac] public Dao<Crawl, Long> createCrawlDao() throws SQLException {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SpringConfiguration
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/service/impl/CrawlServiceImpl.java>:49:
> error: cannot find symbol
> [javac] private Dao<Crawl, Long> crawlDao;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CrawlServiceImpl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/service/impl/NutchInstanceServiceImpl.java>:38:
> error: cannot find symbol
> [javac] private Dao<NutchInstance, Long> instancesDao;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class NutchInstanceServiceImpl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/service/impl/SeedListServiceImpl.java>:35:
> error: cannot find symbol
> [javac] private Dao<SeedList, Long> seedListDao;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SeedListServiceImpl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/service/impl/SeedListServiceImpl.java>:38:
> error: cannot find symbol
> [javac] private Dao<SeedUrl, Long> seedUrlDao;
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class SeedListServiceImpl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/model/SeedList.java>:45:
> error: cannot find symbol
> [javac] @ForeignCollectionField(eager = true)
> [javac] ^
> [javac] symbol: class ForeignCollectionField
> [javac] location: class SeedList
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/model/SeedUrl.java>:39:
> error: cannot find symbol
> [javac] @DatabaseField(foreign = true, foreignAutoCreate = true,
> foreignAutoRefresh = true)
> [javac] ^
> [javac] symbol: class DatabaseField
> [javac] location: class SeedUrl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/client/model/Crawl.java>:53:
> error: cannot find symbol
> [javac] @DatabaseField(foreign = true, foreignAutoRefresh = true)
> [javac] ^
> [javac] symbol: class DatabaseField
> [javac] location: class Crawl
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/indexer/IndexWriters.java>:213:
> warning: [deprecation] open(Configuration,String) in IndexWriter has been
> deprecated
> [javac] entry.getValue().getIndexWriter().open(conf, name);
> [javac] ^
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomDaoFactory.java>:31:
> error: cannot find symbol
> [javac] .synchronizedList(new ArrayList<Dao<?, ?>>());
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomDaoFactory
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomDaoFactory.java>:39:
> error: cannot find symbol
> [javac] Dao<T, ID> dao = DaoFactory.createDao(connectionSource,
> clazz);
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomDaoFactory
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:46:
> error: cannot find symbol
> [javac] for (Dao<?, ?> dao : configuredDaos) {
> [javac] ^
> [javac] symbol: class Dao
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:52:
> error: cannot find symbol
> [javac] DatabaseTableConfig<?> tableConfig = getTableConfig(dao);
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:58:
> error: cannot find symbol
> [javac] DatabaseTableConfig<?> tableConfig = null;
> [javac] ^
> [javac] symbol: class DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:59:
> error: cannot find symbol
> [javac] if (dao instanceof BaseDaoImpl) {
> [javac] ^
> [javac] symbol: class BaseDaoImpl
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:60:
> error: cannot find symbol
> [javac] tableConfig = ((BaseDaoImpl<?, ?>) dao).getTableConfig();
> [javac] ^
> [javac] symbol: class BaseDaoImpl
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:70:
> error: cannot find symbol
> [javac] return DatabaseTableConfig.fromClass(connectionSource,
> clazz);
> [javac] ^
> [javac] symbol: variable DatabaseTableConfig
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/CustomTableCreator.java>:78:
> error: cannot find symbol
> [javac] TableUtils.createTableIfNotExists(connectionSource,
> tableConfig);
> [javac] ^
> [javac] symbol: variable TableUtils
> [javac] location: class CustomTableCreator
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:54:
> error: cannot access BaseDatabaseType
> [javac] JdbcConnectionSource source = new JdbcConnectionSource(
> [javac] ^
> [javac] class file for com.j256.ormlite.db.BaseDatabaseType not found
> [javac]
> <https://builds.apache.org/job/Nutch-trunk/ws/src/java/org/apache/nutch/webui/config/SpringConfiguration.java>:56:
> error: cannot access BaseConnectionSource
> [javac] source.initialize();
> [javac] ^
> [javac] class file for com.j256.ormlite.support.BaseConnectionSource
> not found
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 46 errors
> [javac] 1 warning
>
> BUILD FAILED
> <https://builds.apache.org/job/Nutch-trunk/ws/build.xml>:104: Compile failed;
> see the compiler error output for details.
>
> Total time: 1 minute 26 seconds
> Build step 'Invoke Ant' marked build as failure
> Publishing Javadoc
> INFO: Starting to record.
> INFO: Processing JUnit
> ERROR: Step ?Publish xUnit test result report? aborted due to exception:
> Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to H21
> at
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
> at
> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
> at hudson.remoting.Channel.call(Channel.java:955)
> at hudson.FilePath.act(FilePath.java:1036)
> at hudson.FilePath.act(FilePath.java:1025)
> at
> org.jenkinsci.plugins.xunit.XUnitProcessor.processTestsReport(XUnitProcessor.java:174)
> at
> org.jenkinsci.plugins.xunit.XUnitProcessor.process(XUnitProcessor.java:144)
> at
> org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:127)
> at
> hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
> at
> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
> at hudson.model.Build$BuildExecution.post2(Build.java:186)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
> at hudson.model.Run.execute(Run.java:1819)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at
> hudson.model.ResourceController.execute(ResourceController.java:97)
> at hudson.model.Executor.run(Executor.java:429)
> org.jenkinsci.plugins.xunit.service.NoTestFoundException: [JUnit] - No test
> report file(s) were found with the pattern 'build/test/TEST-*.xml' relative
> to '<https://builds.apache.org/job/Nutch-trunk/ws/'> for the testing
> framework 'JUnit'. Did you enter a pattern relative to (and within) the
> workspace directory? Did you generate the result report(s) for 'JUnit'?
> at
> org.jenkinsci.plugins.xunit.service.XUnitReportProcessorService.findReports(XUnitReportProcessorService.java:81)
> at
> org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:84)
> at
> org.jenkinsci.plugins.xunit.service.XUnitTransformerCallable.invoke(XUnitTransformerCallable.java:39)
> at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918)
> at hudson.remoting.UserRequest.perform(UserRequest.java:212)
> at hudson.remoting.UserRequest.perform(UserRequest.java:54)
> at hudson.remoting.Request$2.run(Request.java:369)
> at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> Caused: java.io.IOException: remote file operation failed:
> <https://builds.apache.org/job/Nutch-trunk/ws/> at
> hudson.remoting.Channel@5b5f8e66:H21
> at hudson.FilePath.act(FilePath.java:1043)
> at hudson.FilePath.act(FilePath.java:1025)
> at
> org.jenkinsci.plugins.xunit.XUnitProcessor.processTestsReport(XUnitProcessor.java:174)
> at
> org.jenkinsci.plugins.xunit.XUnitProcessor.process(XUnitProcessor.java:144)
> at
> org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:127)
> at
> hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
> at hudson.model.Build$BuildExecution.post2(Build.java:186)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
> at hudson.model.Run.execute(Run.java:1819)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:97)
> at hudson.model.Executor.run(Executor.java:429)
> [JIRA] Updating issue NUTCH-2671
>