Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
DXP 7.1 Custom form adapter bundle-Spring based jar integration issue
Hello.
I am using DXP 7.1 and trying to create a custom bundle which also needs to use a spring built custom non-osgi webservice client jar. Basically i am creating a form adapter which will call a SOAP service to store data. i already have the spring based webservice client jar that i think to re-use.
But getting Null pointer exception.
In 6.2 i was achieve the same using spring portlet and by using a spring-context/portlet.xml with following content and it worked fine. be.bpost.home.ws.client.service.**, be.bpost.home.ws.client.configuration.** packages reside in the jar file.
Attaching the source code of the form adapter bundle as reference.
Thanks in advance for any pointer towards resolution.
Thanks,
Gopal
I am using DXP 7.1 and trying to create a custom bundle which also needs to use a spring built custom non-osgi webservice client jar. Basically i am creating a form adapter which will call a SOAP service to store data. i already have the spring based webservice client jar that i think to re-use.
But getting Null pointer exception.
java.lang.NullPointerException
at be.bpost.home.ws.client.service.impl.CreateWebformDataClientImpl.sendWebFormDataToSharePoint(CreateWebformDataClientImpl.java:50)
at custom.form.adapter.service.SharePointServiceImpl.callSharePointServices(SharePointServiceImpl.java:24)
at custom.form.adapter.portlet.CustomFormAdapterComponent.doCreate(CustomFormAdapterComponent.java:75)
at com.liferay.dynamic.data.mapping.storage.BaseStorageAdapter.create(BaseStorageAdapter.java:41)
at com.liferay.dynamic.data.mapping.storage.impl.StorageEngineImpl.create(StorageEngineImpl.java:47)
at com.liferay.dynamic.data.mapping.service.impl.DDMFormInstanceRecordLocalServiceImpl.addFormInstanceRecord(DDMFormInstanceRecordLocalServiceImpl.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
In 6.2 i was achieve the same using spring portlet and by using a spring-context/portlet.xml with following content and it worked fine. be.bpost.home.ws.client.service.**, be.bpost.home.ws.client.configuration.** packages reside in the jar file.
<!--?xml version="1.0"?-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd">
<util:properties id="servicesPropertyConfigurer" location="classpath:/portlet-ext.properties" />
<context:component-scan base-package="be.bpost.home.roleholiday.controller.**, be.bpost.home.ws.client.service.**, be.bpost.home.ws.client.configuration.**" />
</beans>
Attaching the source code of the form adapter bundle as reference.
Thanks in advance for any pointer towards resolution.
Thanks,
Gopal
Attachments:
Hello,
Can anyone help me out on this please??
Thanks
Gopal
Can anyone help me out on this please??
Thanks
Gopal
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™