Issue
- While deploying Elastic Search Connector 6 LPKG on Liferay DXP 7.0, getting the below errors:
INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263] Processing Liferay Connector to Elasticsearch 6.lpkg
2019-03-26 08:13:50.391 ERROR [fileinstall-/opt/springsource/tcserver3.1/liferayportalic1.v2.j2/osgi/marketplace][org_apache_felix_fileinstall:97] Failed to install artifact: /opt/springsource/tcserver3.1/liferayportalic1.v2.j2/osgi/marketplace/Liferay Connector to Elasticsearch 6.lpkg
java.lang.NullPointerException
at com.liferay.marketplace.deployer.internal.LPKGArtifactInstaller.install(LPKGArtifactInstaller.java:65)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:937)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
Environment
- Liferay DXP 7.0
Resolution
Whenever the issue is coming while deploying the Elastic Search Connector 6 LPKG, the first thing that needs to be checked is the version of the LPKG file. You can check the version of LPKG by following the below steps:
- Open the Elastic Search Connector LPKG file. Open the marketplace.properties.
- The version is mentioned inside the
marketplace.properties.
Just to inform, all the Elastic Search version starting from 2.0.0 are for Liferay DXP 7.1 whereas all the version starting with 1.0.0 supports Liferay DXP 7.0.
Therefore, if in the marketplace.properties the version is 2.0.0 or above, make sure to undeploy that version and download the correct version of Elastic Search Connector 6.
Additional Information
There are three versions of Liferay Elastic connector 6 for Liferay DXP 7.0:
1) Version 1.1.0 - This is the latest connector for Elastic Search connector 6. But this requires the fix-pack 79 or above.
2) Version 1.0.1 - This version requires fix-pack 70 or above.
3) Version 1.0.0 - This version requires fix-pack 42 or above.