amusarra / liferay-portal-database-all-in-one-support

This is the driver implementation to add support for Oracle, SQL Server and DB2 database for Liferay 7, 7.1, 7.2, 7.3 and 7.4 CE
http://bit.ly/2IQ6X4n
GNU Lesser General Public License v2.1
5 stars 7 forks source link

cannot access external db via service builder with liferay-portal-database-all-in-one-support #8

Closed ScarleTAKE closed 3 years ago

ScarleTAKE commented 3 years ago

hi sorry for bother i use liferay 7.4.2 ga3 with jdk8 and ide 3.9.4.202108090632-ga5 i try use liferay-portal-database-all-in-one-support, put the jar it in ROOT/WEB-INF/lib, and put driver in ROOT/WEB-INF/shielded-container-lib set my service.xml dependency-injector="spring" in service-builder tag data-source="extPlmDataSource" in my entity tag create ext-spring.xml in META-INF/spring/parent/ of service madule alias="extPlmDataSource" name="liferayDataSource" in alias tag of ext-spring.xml

after i build-service/build and deploy my module, i got exception when getService() java.lang.NullPointerException: null at com.raritan.ci.plm.service.ItemLocalServiceUtil.getItem(ItemLocalServiceUtil.java:232) ~[bundleFile:?] at com.raritan.ci.amd.portlet.AdminMasterDataPortlet.render(AdminMasterDataPortlet.java:102) ~[bundleFile:?] at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127) ~[portal-impl.jar:?] at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58) ~[portal-impl.jar:?] at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124) ~[portal-impl.jar:?] at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71) ~[portal-kernel.jar:?] at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115) ~[portal-kernel.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[servlet-api.jar:4.0.FR] after googled, some user of 7.3 had same issue, but resolved after upgrade com.liferay.gradle.plugins.workspace version. but it's not work in this case.

amusarra commented 3 years ago

Hi @ScarleTAKE I'm sorry but I have to close the issue because it is absolutely not about this project. You could open it instead at https://github.com/amusarra/sb-extdb

ScarleTAKE commented 3 years ago

hi @amusarra thank you for your support. i cannot create issue in https://github.com/amusarra/sb-extdb i created in https://github.com/dnebing/sb-extdb/issues/2