Dear developers,
some days ago I opened a request for a feature:
https://osgeo-org.atlassian.net/browse/GEOS-7914
Now I wanted to follow the invitation to test the new feature but I do have some problems to get it running.
I followed the instruction from http://docs.geoserver.org/latest/en/developer/quickstart/index.html#build-with-maven
two times.
First of all I tried to use the fork from https://github.com/bradh/geoserver/tree/geos7914
The second time I followed the instruction and used the geoserver respository given in the instructions.
In both cases mvn clean install was successfully
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoServer … SUCCESS [ 13.813 s]
[INFO] Core Platform Module … SUCCESS [ 26.618 s]
[INFO] Open Web Service Module … SUCCESS [ 23.803 s]
[INFO] Main Module … SUCCESS [04:51 min]
[INFO] GeoServer Security Modules … SUCCESS [ 1.688 s]
[INFO] GeoServer JDBC Security Module … SUCCESS [ 35.510 s]
[INFO] GeoServer LDAP Security Module … SUCCESS [03:00 min]
[INFO] Web Coverage Service Module … SUCCESS [ 3.015 s]
[INFO] Web Coverage Service 1.0 Module … SUCCESS [ 24.704 s]
[INFO] Web Coverage Service 1.1 Module … SUCCESS [ 27.004 s]
[INFO] Web Coverage Service 2.0 Module … SUCCESS [ 56.278 s]
[INFO] Web Feature Service Module … SUCCESS [01:39 min]
[INFO] Web Map Service Module … SUCCESS [02:53 min]
[INFO] KML support for GeoServer … SUCCESS [ 32.195 s]
[INFO] GeoWebCache (GWC) Module … SUCCESS [01:06 min]
[INFO] REST Support Module … SUCCESS [ 14.776 s]
[INFO] REST Configuration Service Module … SUCCESS [01:12 min]
[INFO] GeoServer Web Modules … SUCCESS [ 0.076 s]
[INFO] Core UI Module … SUCCESS [01:17 min]
[INFO] WMS UI Module … SUCCESS [ 26.978 s]
[INFO] GWC UI Module … SUCCESS [ 39.033 s]
[INFO] WFS UI Module … SUCCESS [ 10.826 s]
[INFO] Demos Module … SUCCESS [ 19.721 s]
[INFO] WCS UI Module … SUCCESS [ 14.269 s]
[INFO] Security UI Modules … SUCCESS [ 0.060 s]
[INFO] Security UI Core Module … SUCCESS [01:51 min]
[INFO] Security UI JDBC Module … SUCCESS [01:26 min]
[INFO] Security UI LDAP Module … SUCCESS [01:34 min]
[INFO] REST UI Module … SUCCESS [ 12.147 s]
[INFO] GeoServer Web Application … SUCCESS [ 22.329 s]
[INFO] Community Space … SUCCESS [ 1.304 s]
[INFO] GeoServer Extensions … SUCCESS [ 0.037 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27:40 min
[INFO] Finished at: 2016-12-28T13:50:03+01:00
[INFO] Final Memory: 77M/319M
[INFO] ------------------------------------------------------------------------
During the import into eclipse I get the following error:
Errors occurred during the build.
Errors running builder ‘Java Builder’ on project ‘gs-main’.
java.lang.NullPointerException
If I try to run the web-app as a java application despite the error I get:
at org.geoserver.web.Start.main(Start.java:122)
Caused by: java.lang.Error: Unresolved compilation problems:
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, annotations are only available if source level is 1.5 or greater
Syntax error, ‘for each’ statements are only available if source level is 1.5 or greater
Type mismatch: cannot convert from Boolean to boolean
The method putSystemDefault(RenderingHints.Key, Object) in the type Hints is not applicable for the arguments (Hints.Key, boolean)
The method putSystemDefault(RenderingHints.Key, Object) in the type Hints is not applicable for the arguments (Hints.DoubleKey, double)
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, ‘for each’ statements are only available if source level is 1.5 or greater
The method getMethod(String, Class[]) in the type Class is not applicable for the arguments (String)
The method invoke(Object, Object[]) in the type Method is not applicable for the arguments (null)
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, ‘for each’ statements are only available if source level is 1.5 or greater
Syntax error, ‘for each’ statements are only available if source level is 1.5 or greater
Syntax error, parameterized types are only available if source level is 1.5 or greater
Syntax error, ‘for each’ statements are only available if source level is 1.5 or greater
Currently I do not have any further idea how to solve this problem.
Some information about my system:
-
OS: Ubuntu 16.04 LTS
-
Java Path: /usr/lib/jvm/java-8-oracle
-
Java info:
java version “1.8.0_111”
Java™ SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot™ 64-Bit Server VM (build 25.111-b14, mixed mode)
- Maven info:
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: “linux”, version: “4.4.0-57-generic”, arch: “amd64”, family: “unix”
Can anybody see my mistake and point it out to me? I would be very happy.
Kind regards
Niklas