• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Deploy java error illegal start of expression

    Hi,

    I’m trying to deploy OpenSpecimen on Ubuntu 16.04.1 LTS. I have installed JDK, and MySQL and JBoss are running successfully, with a new database created for OpenSpecimen.

    but there is a “java:46: error: illegal start of expression” error when trying to deploy with gradle.

    Any help is appreciated!

    The error log is below:

    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:446: error: illegal start of expression
    .map(name -> {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:446: error: illegal start of expression
    .map(name -> {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:446: error: ‘;’ expected
    .map(name -> {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: illegal start of expression
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: illegal start of expression
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: ‘;’ expected
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: illegal start of type
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: not a statement
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:447: error: ‘;’ expected
    Map<String, String> strategy = new HashMap<>();
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:451: error: illegal start of type
    })
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:451: error: ‘;’ expected
    })
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: invalid method declaration; return type required
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: expected
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: ‘;’ expected
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: illegal start of type
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: expected
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/rest/controller/StorageContainersController.java:452: error: ‘;’ expected
    .collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/auth/services/impl/OldPasswordNotification.java:69: error: illegal start of expression
    expiredPasswds.forEach(user -> sendPasswordExpiryNotif(user, 0));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/auth/services/impl/InactiveUserAccountsNotification.java:46: error: ‘)’ expected
    users.forEach(this::sendAccountLockedNotif);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/auth/services/impl/InactiveUserAccountsNotification.java:46: error: illegal start of expression
    users.forEach(this::sendAccountLockedNotif);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/auth/services/impl/InactiveUserAccountsNotification.java:46: error: ‘;’ expected
    users.forEach(this::sendAccountLockedNotif);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/events/UnhandledExceptionSummary.java:83: error: ‘)’ expected
    return exceptions.stream().map(UnhandledExceptionSummary::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/events/UnhandledExceptionSummary.java:83: error: illegal start of expression
    return exceptions.stream().map(UnhandledExceptionSummary::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/events/UnhandledExceptionSummary.java:83: error: ‘;’ expected
    return exceptions.stream().map(UnhandledExceptionSummary::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/service/impl/ObjectStateParamsResolverFactoryImpl.java:19: error: illegal start of expression
    resolvers.forEach(resolver -> this.resolvers.put(resolver.getObjectName(), resolver));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/service/impl/AbstractObjectCopier.java:20: error: illegal start of expression
    attrCopiers.forEach(attrCopier -> attrCopier.copy(source, target));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:430: error: illegal start of expression
    return fields.stream().filter(field -> {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:430: error: illegal start of expression
    return fields.stream().filter(field -> {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:430: error: ‘;’ expected
    return fields.stream().filter(field -> {
    ^ [199/1696]
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:431: error: not a statement
    if (!field.startsWith(“extensionDetail.attrsMap.”)) {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:431: error: ‘;’ expected
    if (!field.startsWith(“extensionDetail.attrsMap.”)) {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:433: error: ‘else’ without ‘if’
    } else {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: illegal start of type
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: ‘;’ expected
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: invalid method declaration; return type required
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: expected
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: ‘;’ expected
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: illegal start of type
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:437: error: expected
    }).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/util/Utility.java:441: error: illegal start of expression
    return fields.stream().filter(field -> !equals(obj1, obj2, field)).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/access/AccessCtrlMgr.java:335: error: illegal start of expression
    Set siteIds = sites.stream().map(s -> s.getId()).collect(Collectors.toSet());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/access/AccessCtrlMgr.java:381: error: illegal start of expression
    siteCps.add(Pair.make(sites.stream().map(s -> s.getId()).collect(Collectors.toSet()), cpId));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/repository/AbstractDao.java:52: error: ‘)’ expected
    entity.getOnSaveProcs().forEach(Runnable::run);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/repository/AbstractDao.java:52: error: illegal start of expression
    entity.getOnSaveProcs().forEach(Runnable::run);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/repository/AbstractDao.java:52: error: ‘;’ expected
    entity.getOnSaveProcs().forEach(Runnable::run);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/domain/LabelPrintRule.java:183: error: illegal start of expression
    .map(token -> getMessageStr(token.getName()))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/common/domain/PrintItem.java:35: error: illegal start of expression
    return objects.stream().map((object) -> make(object, copies)).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/init/AppServletContextListener.java:119: error: illegal start of expression
    .filter(f -> !f.isDirectory() && f.getName().endsWith(".jar"))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/init/AppServletContextListener.java:120: error: ‘)’ expected
    .sorted((f1, f2) -> ObjectUtils.compare(f1.getName(), f2.getName()))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/init/AppServletContextListener.java:120: error: illegal start of expression
    .sorted((f1, f2) -> ObjectUtils.compare(f1.getName(), f2.getName()))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/init/AppServletContextListener.java:120: error: ‘;’ expected
    .sorted((f1, f2) -> ObjectUtils.compare(f1.getName(), f2.getName()))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/ExecuteSavedQueryOp.java:38: error: illegal start of expression
    return criteria.stream().filter(criterion -> criterion.getFilterId() == filterId).findFirst().orElse(null);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/ExtensionDetail.java:155: error: illegal start of expression
    detail.setValue(sfAttrs.stream().map(sfAttr -> from(sfAttr, excludePhi)).collect(Collectors.toList()));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/ExtensionDetail.java:170: error: illegal start of expression
    return attrs.stream().map(attr -> from(attr, excludePhi)).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/FieldValue.java:49: error: ‘)’ expected
    return cvs.stream().map(FieldValue::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/FieldValue.java:49: error: illegal start of expression
    return cvs.stream().map(FieldValue::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/events/FieldValue.java:49: error: ‘;’ expected
    return cvs.stream().map(FieldValue::from).collect(Collectors.toList());
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:656: error: ‘)’ expected
    .map(SavedQuerySummary::fromSavedQuery)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:656: error: illegal start of expression
    .map(SavedQuerySummary::fromSavedQuery)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:656: error: ‘;’ expected
    .map(SavedQuerySummary::fromSavedQuery)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:707: error: ‘)’ expected
    .map(UserSummary::from)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:707: error: illegal start of expression
    .map(UserSummary::from)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:707: error: ‘;’ expected
    .map(UserSummary::from)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/QueryServiceImpl.java:889: error: illegal start of expression
    .map(facet -> getFacetDetail(op.getCpId(), facet, op.getSearchTerm()))
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/FormServiceImpl.java:907: error: illegal start of expression
    procs.forEach(proc -> proc.onSaveOrUpdate(formCtxt));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/FormServiceImpl.java:919: error: illegal start of expression
    procs.forEach(proc -> proc.onRemove(formCtxt));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/CatalogServiceImpl.java:50: error: illegal start of expression
    target.addOnSaveProc(() -> copyCatalogSettings(source, target));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/services/impl/CatalogServiceImpl.java:50: error: illegal start of expression
    target.addOnSaveProc(() -> copyCatalogSettings(source, target));
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/Filter.java:154: error: illegal start of expression
    String[] cond = values.stream().filter(val -> val != null).map(val -> val.toString()).toArray(String[]::new);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/Filter.java:154: error: illegal start of expression
    String[] cond = values.stream().filter(val -> val != null).map(val -> val.toString()).toArray(String[]::new);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/Filter.java:154: error: ‘.class’ expected
    String[] cond = values.stream().filter(val -> val != null).map(val -> val.toString()).toArray(String[]::new);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/Filter.java:154: error: ‘;’ expected
    String[] cond = values.stream().filter(val -> val != null).map(val -> val.toString()).toArray(String[]::new);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/Filter.java:154: error: expected
    String[] cond = values.stream().filter(val -> val != null).map(val -> val.toString()).toArray(String[]::new);
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:223: error: illegal start of expression
    attr -> attr.getCaption(),
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:224: error: illegal start of expression
    attr -> attr.getDisplayValue(notSpecified),
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:225: error: ‘)’ expected
    (v1, v2) -> {throw new IllegalStateException(“Duplicate key”);},
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:225: error: illegal start of expression
    (v1, v2) -> {throw new IllegalStateException(“Duplicate key”);},
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:225: error: illegal start of expression
    (v1, v2) -> {throw new IllegalStateException(“Duplicate key”);},
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:225: error: illegal start of type
    (v1, v2) -> {throw new IllegalStateException(“Duplicate key”);},
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:225: error: ‘;’ expected
    (v1, v2) -> {throw new IllegalStateException(“Duplicate key”);},
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:226: error: illegal start of type
    LinkedHashMap::new)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:226: error: expected
    LinkedHashMap::new)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:226: error: ‘;’ expected
    LinkedHashMap::new)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:226: error: illegal start of type
    LinkedHashMap::new)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:226: error: expected
    LinkedHashMap::new)
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:230: error: class, interface, or enum expected
    public static Long saveFormData(
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:231: error: class, interface, or enum expected
    final String formName,
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:232: error: class, interface, or enum expected
    final String entityType,
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:233: error: class, interface, or enum expected
    final Long cpId,
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:234: error: class, interface, or enum expected
    final Long objectId,
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:235: error: class, interface, or enum expected
    final Map<String, Object> values) {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:239: error: class, interface, or enum expected
    public void setAttrValues(Map<String, Object> attrValues) {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:243: error: class, interface, or enum expected
    public Long getObjectId() {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:245: error: class, interface, or enum expected
    }
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:248: error: class, interface, or enum expected
    public String getFormName() {
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:251: error: class, interface, or enum expected
    }
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:253: error: class, interface, or enum expected
    }
    ^
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/de/domain/DeObject.java:256: error: class, interface, or enum expected
    public String getEntityType() {
    ^
    100 errors
    :compileJava FAILED

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ‘:compileJava’.

    Compilation failed; see the compiler error output for details.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 8.291 secs

    Hi Shalem,

    It seems like an issue with JDK version you are using to build code. OpenSpecimen requires JDK 8.

    For prerequisites and steps to build OpenSpecimen from source code, please refer below document

    https://openspecimen.atlassian.net/wiki/x/MwcR

    Thank you!!

    I have changed the default to JDK 8, and it seems to compile fine now.
    but I am getting another error in processResources…

    The error log is below:

    shalem@ubuntu:~/Downloads/openspecimen$ echo $JAVA_HOME
    /usr/lib/jvm/java-8-openjdk-i386/jre
    shalem@ubuntu:~/Downloads/openspecimen$ gradle deploy
    :compileJava
    /home/shalem/Downloads/openspecimen/WEB-INF/src/com/krishagni/catissueplus/core/biospecimen/label/visit/AbstractVisitLabelToken.java:18: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    return getReplacement(object, null);
    ^
    cast to String for a varargs call
    cast to String[] for a non-varargs call and to suppress this warning
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 warning
    Download http://repo.maven.apache.org/maven2/org/aspectj/aspectjtools/1.8.6/aspectjtools-1.8.6.pom
    Download http://repo.maven.apache.org/maven2/org/aspectj/aspectjtools/1.8.6/aspectjtools-1.8.6.jar
    [ant:iajc] /home/shalem/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/3.2.13.RELEASE/be0a2c3763f67adaaf5c407a9ef56c320a9fbb1d/spring-aspects-3.2.13.RELEASE.jar!org/springframework/orm/j
    pa/aspectj/JpaExceptionTranslatorAspect.class:32 [warning] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
    [ant:iajc]
    [ant:iajc] org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj:83 [warning] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has n
    ot been applied [Xlint:adviceDidNotMatch]
    [ant:iajc]
    [ant:iajc] /home/shalem/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/3.2.13.RELEASE/be0a2c3763f67adaaf5c407a9ef56c320a9fbb1d/spring-aspects-3.2.13.RELEASE.jar!org/springframework/mock/
    staticmock/AbstractMethodMockingControl.class:190 [warning] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
    [ant:iajc]
    [ant:iajc] /home/shalem/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/3.2.13.RELEASE/be0a2c3763f67adaaf5c407a9ef56c320a9fbb1d/spring-aspects-3.2.13.RELEASE.jar!org/springframework/mock/
    staticmock/AbstractMethodMockingControl.class:199 [warning] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
    [ant:iajc]
    [ant:iajc] /home/shalem/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/3.2.13.RELEASE/be0a2c3763f67adaaf5c407a9ef56c320a9fbb1d/spring-aspects-3.2.13.RELEASE.jar!org/springframework/sched
    uling/aspectj/AbstractAsyncExecutionAspect.class:58 [warning] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
    [ant:iajc]
    :processResources FAILED

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ‘:processResources’.

    Could not copy file ‘/home/shalem/Downloads/openspecimen/WEB-INF/resources/application.properties’ to ‘/home/shalem/Downloads/openspecimen/build/resources/main/application.properties’.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 1 mins 21.817 secs

    Hello…
    I have the same error, yo can tell me, how did you solve it?

    Was this ever resolved. I’m having the same issue. I’m able to copy the file manually through the command line.

    Could not copy file
    ‘c:\openspecimen\WEB-INF\resources\application.properties’ to
    ‘c:\openspecimen\build\resources\main\application.properties’.

    This error is a compile time error when the compiler encounters an inappropriate statement in the source code. This error can be encountered in various scenarios . Illegal start of expression can be encountered in various scenarios. The following are the most common errors:

    • Missing an opening or closing curly bracket for a code block
    • Declaring a function inside another function
    • Using an access specifier with a function’s local variable
    • String Character Without Double Quote

    To debug this error, try looking at the lines preceding the error message for missing brackets, curly braces or semicolons and check the syntax.