-
Notifications
You must be signed in to change notification settings - Fork 12
Feel free to share your questions which came up using las2peer and help others with your solution.
- Why does Ant get-deps not download the required dependencies?
- I started my service, why does the Webconnector not find my service methods?
- Eclipse says that some classes are missing, but I fetched dependencies.
- Ivy fetches old versions of dependencies
- Data is lost after node restart
- Common mistakes
First of all check if you have the latest buildscript. Maybe the bundle argument is missing.
<target name="get_deps" depends="install-ivy" description="--> resolve dependencies">
<ivy:retrieve type="jar, bundle"/>
</target>
Just wait a little bit. The Webconnector checks every 5 minutes for new service methods. If it is still not working check your swagger annotations and your getRESTMapping.
That's an Eclipse bug. Simply run ant clean
/ ant clean_deps
, refresh your project in Eclipse (F5), run ant get_deps
and refresh again.
You need to clear your ivy cache. On Linux, run rm -r ~/.ivy2/cache
.
Make sure that you start the node setting the --node-id-seed
parameter. Also, always specify a passphrase when starting a service.
las2peer is only compatible with Java 8. To check your Java version, run
java -version
and make sure that the version number 1.8
appears somewhere in the output.
If you use an Oracle Java version, you have to enable strong encryption for this software.
The policy files can be downloaded via Oracle: JCE for Java 8
Windows: Please put the files to 'jre-1.8.x_x/lib/security/' and 'jdk-1.8.x_x/jre/lib/security/' of your java runtime installation (replacing the existing files).
If you run OpenJDK under Linux, strong encryption should be enabled by default.
Perhaps you did a git push --force
. This is never a good idea since it messes up the git tree. The neccessarity of using this command means that you altered (and not extended) the git tree, resulting in lost commits and/or unmergeable branches.