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